Changeset 08941f56


Ignore:
Timestamp:
Jun 28, 2008, 11:55:02 AM (16 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
16b6cf87
Parents:
818cf09
Message:

2nd half of r3932.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • patches/ncurses-5.6-branch_update-3.patch

    r818cf09 r08941f56  
    11Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
    2 Date: 12-21-2007
     2Date: 06-18-2008
    33Initial Package Version: 5.6
    44Origin: Upstream
    55Upstream Status: Applied
    66Description: This is a branch update for NCurses-5.6, and should be
    7              rechecked periodically. This patch covers up to 5.6-20071215.
     7             rechecked periodically. This patch covers up to 5.6-20080614.
    88
    99diff -Naur ncurses-5.6.orig/Ada95/gen/Makefile.in ncurses-5.6/Ada95/gen/Makefile.in
    1010--- ncurses-5.6.orig/Ada95/gen/Makefile.in      2006-12-17 11:53:33.000000000 -0500
    11 +++ ncurses-5.6/Ada95/gen/Makefile.in   2007-12-21 00:02:35.000000000 -0500
     11+++ ncurses-5.6/Ada95/gen/Makefile.in   2008-06-18 06:49:44.000000000 -0400
    1212@@ -1,5 +1,5 @@
    1313 ##############################################################################
     
    303303diff -Naur ncurses-5.6.orig/Ada95/gen/adacurses-config.in ncurses-5.6/Ada95/gen/adacurses-config.in
    304304--- ncurses-5.6.orig/Ada95/gen/adacurses-config.in      1969-12-31 19:00:00.000000000 -0500
    305 +++ ncurses-5.6/Ada95/gen/adacurses-config.in   2007-12-21 00:02:35.000000000 -0500
     305+++ ncurses-5.6/Ada95/gen/adacurses-config.in   2008-06-18 06:49:44.000000000 -0400
    306306@@ -0,0 +1,35 @@
    307307+#! /bin/sh
     
    342342diff -Naur ncurses-5.6.orig/Ada95/gen/gen.c ncurses-5.6/Ada95/gen/gen.c
    343343--- ncurses-5.6.orig/Ada95/gen/gen.c    2005-01-22 12:03:48.000000000 -0500
    344 +++ ncurses-5.6/Ada95/gen/gen.c 2007-12-21 00:02:35.000000000 -0500
     344+++ ncurses-5.6/Ada95/gen/gen.c 2008-06-18 06:49:44.000000000 -0400
    345345@@ -1,5 +1,5 @@
    346346 /****************************************************************************
     
    578578diff -Naur ncurses-5.6.orig/Ada95/gen/html.m4 ncurses-5.6/Ada95/gen/html.m4
    579579--- ncurses-5.6.orig/Ada95/gen/html.m4  2006-04-22 19:16:44.000000000 -0400
    580 +++ ncurses-5.6/Ada95/gen/html.m4       2007-12-21 00:02:35.000000000 -0500
     580+++ ncurses-5.6/Ada95/gen/html.m4       2008-06-18 06:49:44.000000000 -0400
    581581@@ -1,5 +1,5 @@
    582582 dnl***************************************************************************
     
    605605diff -Naur ncurses-5.6.orig/Ada95/gen/terminal_interface-curses-aux.ads.m4 ncurses-5.6/Ada95/gen/terminal_interface-curses-aux.ads.m4
    606606--- ncurses-5.6.orig/Ada95/gen/terminal_interface-curses-aux.ads.m4     2003-10-25 11:39:18.000000000 -0400
    607 +++ ncurses-5.6/Ada95/gen/terminal_interface-curses-aux.ads.m4  2007-12-21 00:02:35.000000000 -0500
     607+++ ncurses-5.6/Ada95/gen/terminal_interface-curses-aux.ads.m4  2008-06-18 06:49:44.000000000 -0400
    608608@@ -1,6 +1,7 @@
    609609 --  -*- ada -*-
     
    626626diff -Naur ncurses-5.6.orig/Ada95/gen/terminal_interface-curses-menus.ads.m4 ncurses-5.6/Ada95/gen/terminal_interface-curses-menus.ads.m4
    627627--- ncurses-5.6.orig/Ada95/gen/terminal_interface-curses-menus.ads.m4   2006-06-25 10:30:22.000000000 -0400
    628 +++ ncurses-5.6/Ada95/gen/terminal_interface-curses-menus.ads.m4        2007-12-21 00:02:35.000000000 -0500
     628+++ ncurses-5.6/Ada95/gen/terminal_interface-curses-menus.ads.m4        2008-06-18 06:49:44.000000000 -0400
    629629@@ -38,8 +38,8 @@
    630630 ------------------------------------------------------------------------------
     
    649649diff -Naur ncurses-5.6.orig/Ada95/gen/terminal_interface-curses.adb.m4 ncurses-5.6/Ada95/gen/terminal_interface-curses.adb.m4
    650650--- ncurses-5.6.orig/Ada95/gen/terminal_interface-curses.adb.m4 1969-12-31 19:00:00.000000000 -0500
    651 +++ ncurses-5.6/Ada95/gen/terminal_interface-curses.adb.m4      2007-12-21 00:02:35.000000000 -0500
     651+++ ncurses-5.6/Ada95/gen/terminal_interface-curses.adb.m4      2008-06-18 06:49:44.000000000 -0400
    652652@@ -0,0 +1,2501 @@
    653653+--  -*- ada -*-
     
    31543154diff -Naur ncurses-5.6.orig/Ada95/gen/terminal_interface-curses.ads.m4 ncurses-5.6/Ada95/gen/terminal_interface-curses.ads.m4
    31553155--- ncurses-5.6.orig/Ada95/gen/terminal_interface-curses.ads.m4 2006-06-25 10:30:22.000000000 -0400
    3156 +++ ncurses-5.6/Ada95/gen/terminal_interface-curses.ads.m4      2007-12-21 00:02:35.000000000 -0500
     3156+++ ncurses-5.6/Ada95/gen/terminal_interface-curses.ads.m4      2008-06-18 06:49:44.000000000 -0400
    31573157@@ -9,7 +9,7 @@
    31583158 --                                 S P E C                                  --
     
    32313231diff -Naur ncurses-5.6.orig/Ada95/samples/ncurses2-attr_test.adb ncurses-5.6/Ada95/samples/ncurses2-attr_test.adb
    32323232--- ncurses-5.6.orig/Ada95/samples/ncurses2-attr_test.adb       2006-06-25 10:24:40.000000000 -0400
    3233 +++ ncurses-5.6/Ada95/samples/ncurses2-attr_test.adb    2007-12-21 00:02:35.000000000 -0500
     3233+++ ncurses-5.6/Ada95/samples/ncurses2-attr_test.adb    2008-06-18 06:49:44.000000000 -0400
    32343234@@ -7,7 +7,7 @@
    32353235 --                                 B O D Y                                  --
     
    32883288diff -Naur ncurses-5.6.orig/Ada95/samples/ncurses2-m.adb ncurses-5.6/Ada95/samples/ncurses2-m.adb
    32893289--- ncurses-5.6.orig/Ada95/samples/ncurses2-m.adb       2006-06-25 10:24:40.000000000 -0400
    3290 +++ ncurses-5.6/Ada95/samples/ncurses2-m.adb    2007-12-21 00:02:35.000000000 -0500
     3290+++ ncurses-5.6/Ada95/samples/ncurses2-m.adb    2008-06-18 06:49:44.000000000 -0400
    32913291@@ -35,8 +35,8 @@
    32923292 ------------------------------------------------------------------------------
     
    33103310diff -Naur ncurses-5.6.orig/Ada95/samples/rain.adb ncurses-5.6/Ada95/samples/rain.adb
    33113311--- ncurses-5.6.orig/Ada95/samples/rain.adb     2003-10-25 11:39:18.000000000 -0400
    3312 +++ ncurses-5.6/Ada95/samples/rain.adb  2007-12-21 00:02:35.000000000 -0500
     3312+++ ncurses-5.6/Ada95/samples/rain.adb  2008-06-18 06:49:44.000000000 -0400
    33133313@@ -36,7 +36,8 @@
    33143314 --  Author:  Laurent Pautet <pautet@gnat.com>
     
    33303330diff -Naur ncurses-5.6.orig/Ada95/samples/sample.adb ncurses-5.6/Ada95/samples/sample.adb
    33313331--- ncurses-5.6.orig/Ada95/samples/sample.adb   2003-10-25 11:39:18.000000000 -0400
    3332 +++ ncurses-5.6/Ada95/samples/sample.adb        2007-12-21 00:02:35.000000000 -0500
     3332+++ ncurses-5.6/Ada95/samples/sample.adb        2008-06-18 06:49:44.000000000 -0400
    33333333@@ -35,7 +35,8 @@
    33343334 ------------------------------------------------------------------------------
     
    33513351diff -Naur ncurses-5.6.orig/Ada95/src/Makefile.in ncurses-5.6/Ada95/src/Makefile.in
    33523352--- ncurses-5.6.orig/Ada95/src/Makefile.in      2004-08-21 17:29:50.000000000 -0400
    3353 +++ ncurses-5.6/Ada95/src/Makefile.in   2007-12-21 00:02:35.000000000 -0500
     3353+++ ncurses-5.6/Ada95/src/Makefile.in   2008-06-18 06:49:44.000000000 -0400
    33543354@@ -28,7 +28,7 @@
    33553355 #
     
    59525952diff -Naur ncurses-5.6.orig/INSTALL ncurses-5.6/INSTALL
    59535953--- ncurses-5.6.orig/INSTALL    2006-12-17 14:58:19.000000000 -0500
    5954 +++ ncurses-5.6/INSTALL 2007-12-21 00:02:35.000000000 -0500
     5954+++ ncurses-5.6/INSTALL 2008-06-18 06:49:49.000000000 -0400
    59555955@@ -25,7 +25,7 @@
    59565956 -- sale, use or other dealings in this Software without prior written        --
     
    59585958 -------------------------------------------------------------------------------
    59595959--- $Id: INSTALL,v 1.114 2006/12/17 19:58:19 tom Exp $
    5960 +-- $Id: INSTALL,v 1.122 2007/12/01 19:37:47 tom Exp $
     5960+-- $Id: INSTALL,v 1.124 2008/03/29 18:07:32 tom Exp $
    59615961 ---------------------------------------------------------------------
    59625962              How to install Ncurses/Terminfo on your system
    59635963 ---------------------------------------------------------------------
    5964 @@ -304,6 +304,11 @@
     5964@@ -149,6 +149,9 @@
     5965     recent implementation of libiconv.  We have built this configuration on
     5966     Linux using libiconv, sometimes requiring libutf8.
     5967 
     5968+    If you configure using the --with-pthread option, a "t" is appended to
     5969+    the library names (e.g., libncursest.a, libncursestw.a).
     5970+
     5971     If you do not specify any models, the normal and debug libraries will be
     5972     configured.  Typing `configure' with no arguments is equivalent to:
     5973 
     5974@@ -304,6 +307,11 @@
    59655975        return deceptive results, so you may have to override the configure
    59665976        script.  Or you may be building tic for a smaller machine.
     
    59745984        Use only built-in data.  The ncurses libraries normally read terminfo
    59755985        and termcap data from disk.  You can configure ncurses to have a
    5976 @@ -334,6 +339,16 @@
     5986@@ -334,6 +342,16 @@
    59775987        For testing, compile-in code that frees memory that normally would not
    59785988        be freed, to simplify analysis of memory-leaks.
     
    59916001        The header files will ignore use of the _LP64 symbol to make chtype
    59926002        and mmask_t types 32 bits (they may be long on 64-bit hosts, for
    5993 @@ -358,6 +373,13 @@
     6003@@ -358,6 +376,13 @@
    59946004        rather than the include directory.  This makes it simpler to avoid
    59956005        compile-time conflicts with other versions of curses.h
     
    60056015        Compile with environment restriction, so certain environment variables
    60066016        are not available when running as root, or via a setuid/setgid
    6007 @@ -476,12 +498,22 @@
     6017@@ -476,12 +501,23 @@
    60086018        may not be accurate, or that your stty settings have disabled the use
    60096019        of tabs.
     
    60236033+    --enable-reentrant
    60246034+       Compile experimental configuration which improves reentrant use of the
    6025 +       library by reducing global and static variables.
     6035+       library by reducing global and static variables.  This option is also
     6036+       set if --with-pthread is used.
    60266037+
    60276038     --enable-rpath
    60286039        Use rpath option when generating shared libraries, and (with some
    60296040        restrictions) when linking the corresponding programs.  This originally
    6030 @@ -495,6 +527,9 @@
     6041@@ -495,6 +531,9 @@
    60316042        environment variable, they do not work with setuid applications since
    60326043        the LD_LIBRARY_PATH variable would be unset in that situation.
     
    60386049        Compile with experimental safe-sprintf code.  You may consider using
    60396050        this if you are building ncurses for a system that has neither
    6040 @@ -659,10 +694,16 @@
     6051@@ -659,10 +698,16 @@
    60416052 
    60426053        See also --without-dlsym
     
    60566067        If you use this option for configuring ncurses, tic will only be able
    60576068        to write entries in the hashed database.  infocmp can still read
    6058 @@ -674,6 +715,12 @@
     6069@@ -674,6 +719,12 @@
    60596070        You cannot have a directory containing both hashed-database and
    60606071        filesystem-based terminfo entries.
     
    60696080 
    60706081     --with-install-prefix=XXX
    6071 @@ -833,6 +880,15 @@
     6082@@ -769,6 +820,11 @@
     6083        Generate profile-libraries These are named by adding "_p" to the root,
     6084        e.g., libncurses_p.a
     6085 
     6086+    --with-pthread
     6087+       Link with POSIX threads, set --enable-reentrant.  The use_window() and
     6088+       use_screen() functions will use mutex's, allowing rudimentary support
     6089+       for multithreaded applications.
     6090+
     6091     --with-rcs-ids
     6092        Compile-in RCS identifiers.  Most of the C files have an identifier.
     6093 
     6094@@ -833,6 +889,15 @@
    60726095        Specify a search-list of termcap files which will be compiled into the
    60736096        ncurses library (default:  /etc/termcap:/usr/share/misc/termcap)
     
    60876110diff -Naur ncurses-5.6.orig/MANIFEST ncurses-5.6/MANIFEST
    60886111--- ncurses-5.6.orig/MANIFEST   2006-11-25 21:21:05.000000000 -0500
    6089 +++ ncurses-5.6/MANIFEST        2007-12-21 00:02:35.000000000 -0500
     6112+++ ncurses-5.6/MANIFEST        2008-06-18 06:49:46.000000000 -0400
    60906113@@ -4,6 +4,7 @@
    60916114 ./Ada95/README
     
    61236146 ./man/curs_overlay.3x
    61246147 ./man/curs_pad.3x
    6125 @@ -709,7 +712,8 @@
     6148@@ -568,6 +571,7 @@
     6149 ./man/curs_termattrs.3x
     6150 ./man/curs_termcap.3x
     6151 ./man/curs_terminfo.3x
     6152+./man/curs_threads.3x
     6153 ./man/curs_touch.3x
     6154 ./man/curs_trace.3x
     6155 ./man/curs_util.3x
     6156@@ -709,7 +713,8 @@
    61266157 ./mk-0th.awk
    61276158 ./mk-1st.awk
     
    61336164 ./ncurses/README
    61346165 ./ncurses/README.IZ
    6135 @@ -799,6 +803,7 @@
     6166@@ -799,15 +804,19 @@
    61366167 ./ncurses/base/safe_sprintf.c
    61376168 ./ncurses/base/sigaction.c
     
    61416172 ./ncurses/base/vsscanf.c
    61426173 ./ncurses/base/wresize.c
    6143 @@ -808,6 +813,8 @@
     6174 ./ncurses/curses.priv.h
     6175 ./ncurses/fifo_defs.h
     6176 ./ncurses/llib-lncurses
     6177+./ncurses/llib-lncursest
    61446178 ./ncurses/llib-lncursesw
    61456179 ./ncurses/modules
     
    61506184 ./ncurses/tinfo/MKkeys_list.sh
    61516185 ./ncurses/tinfo/MKnames.awk
    6152 @@ -824,6 +831,7 @@
     6186@@ -824,6 +833,7 @@
    61536187 ./ncurses/tinfo/comp_scan.c
    61546188 ./ncurses/tinfo/db_iterator.c
     
    61586192 ./ncurses/tinfo/getenv_num.c
    61596193 ./ncurses/tinfo/hashed_db.c
    6160 @@ -856,6 +864,7 @@
     6194@@ -856,6 +866,7 @@
    61616195 ./ncurses/tinfo/setbuf.c
    61626196 ./ncurses/tinfo/strings.c
     
    61666200 ./ncurses/trace/README
    61676201 ./ncurses/trace/lib_trace.c
    6168 @@ -891,6 +900,7 @@
     6202@@ -891,6 +902,7 @@
    61696203 ./ncurses/widechar/lib_in_wchnstr.c
    61706204 ./ncurses/widechar/lib_ins_wch.c
     
    61746208 ./ncurses/widechar/lib_slk_wset.c
    61756209 ./ncurses/widechar/lib_unget_wch.c
    6176 @@ -934,29 +944,6 @@
     6210@@ -934,29 +946,6 @@
    61776211 ./progs/toe.c
    61786212 ./progs/tput.c
     
    62046238 ./test/Makefile.in
    62056239 ./test/README
    6206 @@ -981,6 +968,7 @@
     6240@@ -981,6 +970,7 @@
    62076241 ./test/demo_termcap.c
    62086242 ./test/ditto.c
     
    62126246 ./test/edit_field.c
    62136247 ./test/edit_field.h
    6214 @@ -992,8 +980,11 @@
     6248@@ -992,8 +982,11 @@
    62156249 ./test/gdc.c
    62166250 ./test/hanoi.c
     
    62246258 ./test/knight.c
    62256259 ./test/linux-color.dat
    6226 @@ -1010,8 +1001,15 @@
     6260@@ -1010,8 +1003,15 @@
    62276261 ./test/rain.c
    62286262 ./test/redraw.c
     
    62426276diff -Naur ncurses-5.6.orig/NEWS ncurses-5.6/NEWS
    62436277--- ncurses-5.6.orig/NEWS       2006-12-17 15:36:26.000000000 -0500
    6244 +++ ncurses-5.6/NEWS    2007-12-21 00:02:36.000000000 -0500
     6278+++ ncurses-5.6/NEWS    2008-06-18 06:49:52.000000000 -0400
    62456279@@ -1,5 +1,5 @@
    62466280 -------------------------------------------------------------------------------
    62476281--- Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.               --
    6248 +-- Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.               --
     6282+-- Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.               --
    62496283 --                                                                           --
    62506284 -- Permission is hereby granted, free of charge, to any person obtaining a   --
     
    62556289 -------------------------------------------------------------------------------
    62566290--- $Id: NEWS,v 1.1056 2006/12/17 20:36:26 tom Exp $
    6257 +-- $Id: NEWS,v 1.1187 2007/12/16 00:23:41 tom Exp $
     6291+-- $Id: NEWS,v 1.1245 2008/06/14 23:08:10 tom Exp $
    62586292 -------------------------------------------------------------------------------
    62596293 
    62606294 This is a log of changes that ncurses has gone through since Zeyd started
    6261 @@ -45,9 +45,508 @@
     6295@@ -45,9 +45,688 @@
    62626296 Changes through 1.9.9e did not credit all contributions;
    62636297 it is not possible to add this information.
    62646298 
     6299+20080614
     6300+       + modify test/ditto.c to illustrate multi-threaded use_screen().
     6301+       + change CC_SHARED_OPTS from -KPIC to -xcode=pic32 for Solaris.
     6302+       + add "-shared" option to MK_SHARED_LIB for gcc on Solaris (report
     6303+         by Poor Yorick).
     6304+
     6305+20080607
     6306+       + finish changes to wgetch(), making it switch as needed to the
     6307+         window's actual screen when calling wrefresh() and wgetnstr().  That
     6308+         allows wgetch() to get used concurrently in different threads with
     6309+         some minor restrictions, e.g., the application should not delete a
     6310+         window which is being used in a wgetch().
     6311+       + simplify mutex's, combining the window- and screen-mutex's.
     6312+
     6313+20080531
     6314+       + modify wgetch() to use the screen which corresponds to its window
     6315+         parameter rather than relying on SP; some dependent functions still
     6316+         use SP internally.
     6317+       + factor out most use of SP in lib_mouse.c, using parameter.
     6318+       + add internal _nc_keyname(), replacing keyname() to associate with a
     6319+         particular SCREEN rather than the global SP.
     6320+       + add internal _nc_unctrl(), replacing unctrl() to associate with a
     6321+         particular SCREEN rather than the global SP.
     6322+       + add internal _nc_tracemouse(), replacing _tracemouse() to eliminate
     6323+         its associated global buffer _nc_globals.tracemse_buf now in SCREEN.
     6324+       + add internal _nc_tracechar(), replacing _tracechar() to use SCREEN in
     6325+         preference to the global _nc_globals.tracechr_buf buffer.
     6326+
     6327+20080524
     6328+       + modify _nc_keypad() to make it switch temporarily as needed to the
     6329+         screen which must be updated.
     6330+       + wrap cur_term variable to help make _nc_keymap() thread-safe, and
     6331+         always set the screen's copy of this variable in set_curterm().
     6332+       + restore curs_set() state after endwin()/refresh() (report/patch
     6333+         Miroslav Lichvar)
     6334+
     6335+20080517
     6336+       + modify configure script to note that --enable-ext-colors and
     6337+         --enable-ext-mouse are not experimental, but extensions from
     6338+         the ncurses ABI 5.
     6339+       + corrected manpage description of setcchar() (discussion with
     6340+         Emanuele Giaquinta).
     6341+       + fix for adding a non-spacing character at the beginning of a line
     6342+         (report/patch by Miroslav Lichvar).
     6343+
     6344+20080503
     6345+       + modify screen.* terminfo entries using new screen+fkeys to fix
     6346+         overridden keys in screen.rxvt (Debian #478094) -TD
     6347+       + modify internal interfaces to reduce wgetch()'s dependency on the
     6348+         global SP.
     6349+       + simplify some loops with macros each_screen(), each_window() and
     6350+         each_ripoff().
     6351+
     6352+20080426
     6353+       + continue modifying test/ditto.c toward making it demonstrate
     6354+         multithreaded use_screen(), using fifos to pass data between screens.
     6355+       + fix typo in form.3x (report by Mike Gran).
     6356+
     6357+20080419
     6358+       + add screen.rxvt terminfo entry -TD
     6359+       + modify tic -f option to format spaces as \s to prevent them from
     6360+         being lost when that is read back in unformatted strings.
     6361+       + improve test/ditto.c, using a "talk"-style layout.
     6362+
     6363+20080412
     6364+       + change test/ditto.c to use openpty() and xterm.
     6365+       + add locks for copywin(), dupwin(), overlap(), overlay() on their
     6366+         window parameters.
     6367+       + add locks for initscr() and newterm() on updates to the SCREEN
     6368+         pointer.
     6369+       + finish table in curs_thread.3x manpage.
     6370+
     6371+20080405
     6372+       + begin table in curs_thread.3x manpage describing the scope of data
     6373+         used by each function (or symbol) for threading analysis.
     6374+       + add null-pointer checks to setsyx() and getsyx() (prompted by
     6375+         discussion by Martin v. Lowis and Jeroen Ruigrok van der Werven on
     6376+         python-dev2 mailing list).
     6377+
     6378+20080329
     6379+       + add null-pointer checks in set_term() and delscreen().
     6380+       + move _nc_windows into _nc_globals, since windows can be pads, which
     6381+         are not associated with a particular screen.
     6382+       + change use_screen() to pass the SCREEN* parameter rather than
     6383+         stdscr to the callback function.
     6384+       + force libtool to use tag for 'CC' in case it does not detect this,
     6385+         e.g., on aix when using CC=powerpc-ibm-aix5.3.0.0-gcc
     6386+         (report/patch by Michael Haubenwallner).
     6387+       + override OBJEXT to "lo" when building with libtool, to work on
     6388+         platforms such as AIX where libtool may use a different suffix for
     6389+         the object files than ".o" (report/patch by Michael Haubenwallner).
     6390+       + add configure --with-pthread option, for building with the POSIX
     6391+         thread library.
     6392+
     6393+20080322
     6394+       + fill in extended-color pair two more places in wbkgrndset() and
     6395+         waddch_nosync() (prompted by Sedeno's patch).
     6396+       + fill in extended-color pair in _nc_build_wch() to make colors work
     6397+         for wide-characters using extended-colors (patch by Alejandro R
     6398+         Sedeno).
     6399+       + add x/X toggles to ncurses.c C color test to test/demo
     6400+         wide-characters with extended-colors.
     6401+       + add a/A toggles to ncurses.c c/C color tests.
     6402+       + modify test/ditto.c to use use_screen().
     6403+       + finish modifying test/rain.c to demonstrate threads.
     6404+
     6405+20080308
     6406+       + start modifying test/rain.c for threading demo.
     6407+       + modify test/ncurses.c to make 'f' test accept the f/F/b/F/</> toggles
     6408+         that the 'F' accepts.
     6409+       + modify test/worm.c to show trail in reverse-video when other threads
     6410+         are working concurrently.
     6411+       + fix a deadlock from improper nesting of mutexes for windowlist and
     6412+         window.
     6413+
     6414+20080301
     6415+       + fixes from 20080223 resolved issue with mutexes; change to use
     6416+         recursive mutexes to fix memory leak in delwin() as called from
     6417+         _nc_free_and_exit().
     6418+
     6419+20080223
     6420+       + fix a size-difference in _nc_globals which caused hanging of mutex
     6421+         lock/unlock when termlib was built separately.
     6422+
     6423+20080216
     6424+       + avoid using nanosleep() in threaded configuration since that often
     6425+         is implemented to suspend the entire process.
     6426+
     6427+20080209
     6428+       + update test programs to build/work with various UNIX curses for
     6429+         comparisons.  This was to reinvestigate statement in X/Open curses
     6430+         that insnstr and winsnstr perform wrapping.  None of the Unix-branded
     6431+         implementations do this, as noted in manpage (cf: 20040228).
     6432+
     6433+20080203
     6434+       + modify _nc_setupscreen() to set the legacy-coding value the same
     6435+         for both narrow/wide models.  It had been set only for wide model,
     6436+         but is needed to make unctrl() work with locale in the narrow model.
     6437+       + improve waddch() and winsch() handling of EILSEQ from mbrtowc() by
     6438+         using unctrl() to display illegal bytes rather than trying to append
     6439+         further bytes to make up a valid sequence (reported by Andrey A
     6440+         Chernov).
     6441+       + modify unctrl() to check codes in 128-255 range versus isprint().
     6442+         If they are not printable, and locale was set, use a "M-" or "~"
     6443+         sequence.
     6444+
     6445+20080126
     6446+       + improve threading in test/worm.c (wrap refresh calls, and KEY_RESIZE
     6447+         handling).  Now it hangs in napms(), no matter whether nanosleep()
     6448+         or poll() or select() are used on Linux.
     6449+
     6450+20080119
     6451+       + fixes to build with --disable-ext-funcs
     6452+       + add manpage for use_window and use_screen.
     6453+       + add set_tabsize() and set_escdelay() functions.
     6454+
     6455+20080112
     6456+       + remove recursive-mutex definitions, finish threading demo for worm.c
     6457+       + remove a redundant adjustment of lines in resizeterm.c's
     6458+         adjust_window() which caused occasional misadjustment of stdscr when
     6459+         softkeys were used.
     6460+
     6461+20080105
     6462+       + several improvements to terminfo entries based on xterm #230 -TD
     6463+       + modify MKlib_gen.sh to handle keyname/key_name prototypes, so the
     6464+         "link_test" builds properly.
     6465+       + fix for toe command-line options -u/-U to ensure filename is given.
     6466+       + fix allocation-size for command-line parsing in infocmp from 20070728
     6467+         (report by Miroslav Lichvar)
     6468+       + improve resizeterm() by moving ripped-off lines, and repainting the
     6469+         soft-keys (report by Katarina Machalkova)
     6470+       + add clarification in wclear's manpage noting that the screen will be
     6471+         cleared even if a subwindow is cleared (prompted by Christer Enfors
     6472+         question).
     6473+       + change test/ncurses.c soft-key tests to work with KEY_RESIZE.
     6474+
     6475+20071222
     6476+       + continue implementing support for threading demo by adding mutex
     6477+         for delwin().
     6478+
    62656479+20071215
    62666480+       + add several functions to C++ binding which wrap C functions that
     
    67696983          definitions in <wchar.h>.
    67706984        + revert the va_copy() change from 20061202, since it was neither
    6771 @@ -62,7 +561,7 @@
     6985@@ -62,7 +741,7 @@
    67726986        + modify configure --with-gpm option to allow it to accept a parameter,
    67736987          i.e., the name of the dynamic GPM library to load via dlopen()
     
    67786992          'return' in preference to 'exit()'.
    67796993 
    6780 @@ -1524,7 +2023,8 @@
     6994@@ -1524,7 +2203,8 @@
    67816995 20031108
    67826996        + add DJGPP to special case of DOS-style drive letters potentially
     
    67887002 
    67897003 20031101
    6790 @@ -1814,7 +2314,7 @@
     7004@@ -1814,7 +2494,7 @@
    67917005          "--srcdir" work (report by Warren L Dodge).
    67927006        + correct missing definition of $(CC) in Ada95/gen/Makefile.in
     
    67977011 
    67987012 20030503
    6799 @@ -3449,7 +3949,7 @@
     7013@@ -3449,7 +4129,7 @@
    68007014 
    68017015 20000923
     
    68067020          <jhawk@MIT.EDU> (see NetBSD misc/11052)).
    68077021        + using parameter check added to tic, corrected 27 typos in
    6808 @@ -4266,7 +4766,7 @@
     7022@@ -4266,7 +4946,7 @@
    68097023          <bledp@voila.fr>)).
    68107024        + change renaming of dft_fgbg.3x to use_default_colors.3ncurses in
     
    68157029        + corrected scoansi terminfo entry by testing with scoterm and console.
    68167030        + revert change from 990614 to terminal_interface-curses-forms.ads.m4,
    6817 @@ -5309,7 +5809,7 @@
     7031@@ -5309,7 +5989,7 @@
    68187032 
    68197033 980321
     
    68267040diff -Naur ncurses-5.6.orig/TO-DO ncurses-5.6/TO-DO
    68277041--- ncurses-5.6.orig/TO-DO      2006-10-28 15:49:16.000000000 -0400
    6828 +++ ncurses-5.6/TO-DO   2007-12-21 00:02:35.000000000 -0500
     7042+++ ncurses-5.6/TO-DO   2008-06-18 06:49:44.000000000 -0400
    68297043@@ -1,5 +1,5 @@
    68307044 -------------------------------------------------------------------------------
     
    68917105diff -Naur ncurses-5.6.orig/aclocal.m4 ncurses-5.6/aclocal.m4
    68927106--- ncurses-5.6.orig/aclocal.m4 2006-12-17 11:12:38.000000000 -0500
    6893 +++ ncurses-5.6/aclocal.m4      2007-12-21 00:02:35.000000000 -0500
     7107+++ ncurses-5.6/aclocal.m4      2008-06-18 06:49:52.000000000 -0400
    68947108@@ -1,5 +1,5 @@
    68957109 dnl***************************************************************************
    68967110-dnl Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    6897 +dnl Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     7111+dnl Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    68987112 dnl                                                                          *
    68997113 dnl Permission is hereby granted, free of charge, to any person obtaining a  *
     
    69047118 dnl
    69057119-dnl $Id: aclocal.m4,v 1.407 2006/12/17 16:12:38 tom Exp $
    6906 +dnl $Id: aclocal.m4,v 1.442 2007/12/01 20:02:42 tom Exp $
     7120+dnl $Id: aclocal.m4,v 1.448 2008/06/14 19:12:45 tom Exp $
    69077121 dnl Macros used in NCURSES auto-configuration script.
    69087122 dnl
     
    69127126 ])dnl
    69137127 dnl ---------------------------------------------------------------------------
    6914 +dnl CF_ADD_INCDIR version: 8 updated: 2007/07/30 19:22:58
     7128+dnl CF_ADD_INCDIR version: 9 updated: 2008/02/09 13:15:34
    69157129+dnl -------------
    69167130+dnl Add an include-directory to $CPPFLAGS.  Don't add /usr/include, since it's
     
    69547168+
    69557169+               if test "$cf_have_incdir" = no ; then
    6956 +                 AC_VERBOSE(adding $cf_add_incdir to include-path)
     7170+                 CF_VERBOSE(adding $cf_add_incdir to include-path)
    69577171+                 ifelse($2,,CPPFLAGS,$2)="-I$cf_add_incdir $ifelse($2,,CPPFLAGS,[$]$2)"
    69587172+
     
    69697183+])dnl
    69707184+dnl ---------------------------------------------------------------------------
    6971 +dnl CF_ADD_LIBDIR version: 5 updated: 2007/07/30 19:12:03
     7185+dnl CF_ADD_LIBDIR version: 6 updated: 2008/02/09 13:15:34
    69727186+dnl -------------
    69737187+dnl    Adds to the library-path
     
    69977211+      fi
    69987212+      if test "$cf_have_libdir" = no ; then
    6999 +        AC_VERBOSE(adding $cf_add_libdir to library-path)
     7213+        CF_VERBOSE(adding $cf_add_libdir to library-path)
    70007214+        ifelse($2,,LDFLAGS,$2)="-L$cf_add_libdir $ifelse($2,,LDFLAGS,[$]$2)"
    70017215+      fi
     
    70087222 dnl ----------------
    70097223 dnl This is adapted from the macros 'fp_PROG_CC_STDC' and 'fp_C_PROTOTYPES'
     7224@@ -220,7 +313,7 @@
     7225 fi
     7226 ])dnl
     7227 dnl ---------------------------------------------------------------------------
     7228-dnl CF_ANSI_CC_REQD version: 3 updated: 1997/09/06 13:40:44
     7229+dnl CF_ANSI_CC_REQD version: 4 updated: 2008/03/23 14:48:54
     7230 dnl ---------------
     7231 dnl For programs that must use an ANSI compiler, obtain compiler options that
     7232 dnl will make it recognize prototypes.  We'll do preprocessor checks in other
     7233@@ -229,7 +322,7 @@
     7234 AC_DEFUN([CF_ANSI_CC_REQD],
     7235 [AC_REQUIRE([CF_ANSI_CC_CHECK])
     7236 if test "$cf_cv_ansi_cc" = "no"; then
     7237-       AC_ERROR(
     7238+       AC_MSG_ERROR(
     7239 [Your compiler does not appear to recognize prototypes.
     7240 You have the following choices:
     7241        a. adjust your compiler options
     7242@@ -521,7 +614,7 @@
     7243 test "$cf_cv_cgetent" = yes && AC_DEFINE(HAVE_BSD_CGETENT)
     7244 ])dnl
     7245 dnl ---------------------------------------------------------------------------
     7246-dnl CF_CHECK_CACHE version: 10 updated: 2004/05/23 13:03:31
     7247+dnl CF_CHECK_CACHE version: 11 updated: 2008/03/23 14:45:59
     7248 dnl --------------
     7249 dnl Check if we're accidentally using a cache from a different machine.
     7250 dnl Derive the system name, as a check for reusing the autoconf cache.
     7251@@ -552,7 +645,7 @@
     7252 
     7253 if test ".$system_name" != ".$cf_cv_system_name" ; then
     7254        AC_MSG_RESULT(Cached system name ($system_name) does not agree with actual ($cf_cv_system_name))
     7255-       AC_ERROR("Please remove config.cache and try again.")
     7256+       AC_MSG_ERROR("Please remove config.cache and try again.")
     7257 fi
     7258 ])dnl
     7259 dnl ---------------------------------------------------------------------------
    70107260@@ -612,6 +705,50 @@
    70117261 
     
    71717421 dnl ---------------------------------------------------------------------------
    71727422 dnl CF_DIRNAME version: 4 updated: 2002/12/21 19:25:52
    7173 @@ -1070,7 +1161,7 @@
     7423@@ -967,6 +1058,34 @@
     7424 test "$cf_cv_func_nanosleep" = "yes" && AC_DEFINE(HAVE_NANOSLEEP)
     7425 ])
     7426 dnl ---------------------------------------------------------------------------
     7427+dnl CF_FUNC_OPENPTY version: 2 updated: 2008/04/12 19:49:01
     7428+dnl ---------------
     7429+dnl Check for openpty() function, along with <pty.h> header.  It may need the
     7430+dnl "util" library as well.
     7431+AC_DEFUN([CF_FUNC_OPENPTY],
     7432+[
     7433+AC_CHECK_LIB(util,openpty,cf_cv_lib_util=yes,cf_cv_lib_util=no)
     7434+AC_CACHE_CHECK(for openpty header,cf_cv_func_openpty,[
     7435+    cf_save_LIBS="$LIBS"
     7436+    test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
     7437+    for cf_header in pty.h libutil.h util.h
     7438+    do
     7439+    AC_TRY_LINK([
     7440+#include <$cf_header>
     7441+],[
     7442+    int x = openpty((int *)0, (int *)0, (char *)0,
     7443+                   (struct termios *)0, (struct winsize *)0);
     7444+],[
     7445+        cf_cv_func_openpty=$cf_header
     7446+        break
     7447+],[
     7448+        cf_cv_func_openpty=no
     7449+])
     7450+    done
     7451+    LIBS="$cf_save_LIBS"
     7452+])
     7453+])dnl
     7454+dnl ---------------------------------------------------------------------------
     7455 dnl CF_FUNC_POLL version: 4 updated: 2006/12/16 12:33:30
     7456 dnl ------------
     7457 dnl See if the poll function really works.  Some platforms have poll(), but
     7458@@ -1070,7 +1189,7 @@
    71747459 
    71757460 ])dnl
     
    71807465 dnl Test for availability of useful gcc __attribute__ directives to quiet
    71817466 dnl compiler warnings.  Though useful, not all are supported -- and contrary
    7182 @@ -1097,7 +1188,7 @@
     7467@@ -1097,7 +1216,7 @@
    71837468 then
    71847469        AC_CHECKING([for $CC __attribute__ directives])
     
    71897474 #include "conftest.h"
    71907475 #include "conftest.i"
    7191 @@ -1159,7 +1250,7 @@
     7476@@ -1159,7 +1278,7 @@
    71927477 fi
    71937478 ])dnl
     
    71987483 dnl Check if the compiler supports useful warning options.  There's a few that
    71997484 dnl we don't use, simply because they're too noisy:
    7200 @@ -1184,7 +1275,7 @@
     7485@@ -1184,7 +1303,7 @@
    72017486 CF_INTEL_COMPILER(GCC,INTEL_COMPILER,CFLAGS)
    72027487 
     
    72077492 EOF
    72087493 
    7209 @@ -1205,7 +1296,7 @@
     7494@@ -1205,7 +1324,7 @@
    72107495        AC_CHECKING([for $CC warning options])
    72117496        cf_save_CFLAGS="$CFLAGS"
     
    72167501                wd1682 \
    72177502                wd1683 \
    7218 @@ -1561,11 +1652,24 @@
     7503@@ -1561,11 +1680,24 @@
    72197504 AC_SUBST(EXTRA_CXXFLAGS)
    72207505 ])dnl
     
    72427527 CF_HASHED_DB_VERSION
    72437528 if test "$cf_cv_hashed_db_version" = unknown ; then
    7244 @@ -1583,7 +1687,7 @@
     7529@@ -1583,7 +1715,7 @@
    72457530 ])
    72467531 ])dnl
     
    72517536 dnl Given that we have the header and version for hashed database, find the
    72527537 dnl library information.
    7253 @@ -1591,7 +1695,7 @@
     7538@@ -1591,7 +1723,7 @@
    72547539 [
    72557540 AC_CACHE_CHECK(for db libraries, cf_cv_hashed_db_libs,[
     
    72607545        cf_save_libs="$LIBS"
    72617546        if test -n "$cf_db_libs"; then
    7262 @@ -1655,7 +1759,7 @@
     7547@@ -1655,7 +1787,7 @@
    72637548 ])
    72647549 ])dnl
     
    72697554 dnl Given that we have the header file for hashed database, find the version
    72707555 dnl information.
    7271 @@ -1664,7 +1768,7 @@
     7556@@ -1664,7 +1796,7 @@
    72727557 AC_CACHE_CHECK(for version of db, cf_cv_hashed_db_version,[
    72737558 cf_cv_hashed_db_version=unknown
     
    72787563        CF_MSG_LOG(checking for db version $cf_db_version)
    72797564        AC_TRY_COMPILE([
    7280 @@ -1778,7 +1882,7 @@
     7565@@ -1778,7 +1910,7 @@
    72817566 test "$cf_cv_have_isascii" = yes && AC_DEFINE(HAVE_ISASCII)
    72827567 ])dnl
     
    72877572 dnl Add checks for large file support.
    72887573 AC_DEFUN([CF_LARGEFILE],[
    7289 @@ -1796,6 +1900,7 @@
     7574@@ -1796,6 +1928,7 @@
    72907575        # the config.h
    72917576        test "$ac_cv_sys_large_files"      != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
     
    72957580        AC_CACHE_CHECK(whether to use struct dirent64, cf_cv_struct_dirent64,[
    72967581                AC_TRY_COMPILE([
    7297 @@ -1816,6 +1921,48 @@
     7582@@ -1816,6 +1949,48 @@
    72987583 ])
    72997584 ])
     
    73447629 dnl ----------
    73457630 dnl Check for libutf8
    7346 @@ -1852,11 +1999,11 @@
     7631@@ -1852,11 +2027,11 @@
    73477632        AC_SUBST(LIB_PREFIX)
    73487633 ])dnl
     
    73587643 dnl
    73597644 dnl For shared libraries, make a list of symbolic links to construct when
    7360 @@ -1875,7 +2022,6 @@
     7645@@ -1875,7 +2050,6 @@
    73617646                continue
    73627647        elif test -f $srcdir/$cf_dir/modules; then
     
    73667651                LIBS_TO_MAKE=
    73677652                for cf_item in $cf_LIST_MODELS
    7368 @@ -1922,9 +2068,7 @@
     7653@@ -1922,9 +2096,7 @@
    73697654                        # use autodetected ${cf_prefix} for import lib and static lib, but
    73707655                        # use 'cyg' prefix for shared lib.
     
    73777662                        fi
    73787663                        fi
    7379 @@ -1933,17 +2077,34 @@
     7664@@ -1933,17 +2105,34 @@
    73807665 
    73817666                if test $cf_dir = ncurses ; then
     
    74187703                        $cf_dir/Makefile >$cf_dir/Makefile.out
    74197704                mv $cf_dir/Makefile.out $cf_dir/Makefile
    7420 @@ -1968,13 +2129,20 @@
     7705@@ -1968,13 +2157,20 @@
    74217706                                case $cf_subset in
    74227707                                *base*)
     
    74417726                        fi
    74427727 
    7443 @@ -2015,8 +2183,11 @@
     7728@@ -2015,8 +2211,11 @@
    74447729                                prefix=$cf_prefix \
    74457730                                suffix=$cf_suffix \
     
    74537738                                rmSoLocs=$cf_cv_rm_so_locs \
    74547739                                ldconfig="$LDCONFIG" \
    7455 @@ -2103,8 +2274,8 @@
     7740@@ -2103,8 +2302,8 @@
    74567741 
    74577742 cat >> Makefile <<CF_EOF
     
    74647749 
    74657750 install.man \\
    7466 @@ -2113,7 +2284,7 @@
     7751@@ -2113,7 +2312,7 @@
    74677752 
    74687753 distclean ::
     
    74737758 CF_EOF
    74747759 
    7475 @@ -2224,41 +2395,10 @@
     7760@@ -2224,41 +2423,10 @@
    74767761        fi
    74777762 
     
    75197804 
    75207805        if test -f $srcdir/$cf_dir/modules; then
    7521 @@ -2776,7 +2916,7 @@
     7806@@ -2776,7 +2944,7 @@
    75227807 AC_MSG_RESULT($MANPAGE_TBL)
    75237808 ])dnl
     
    75287813 dnl Try to determine if the man-pages on the system are compressed, and if
    75297814 dnl so, what format is used.  Use this information to construct a script that
    7530 @@ -2826,6 +2966,7 @@
     7815@@ -2826,6 +2994,7 @@
    75317816 esac
    75327817 
     
    75367821 cat >$cf_edit_man <<CF_EOF
    75377822 #! /bin/sh
    7538 @@ -2841,7 +2982,7 @@
     7823@@ -2841,7 +3010,7 @@
    75397824 NCURSES_OSPEED="$NCURSES_OSPEED"
    75407825 TERMINFO="$TERMINFO"
     
    75457830 INSTALL="$INSTALL"
    75467831 INSTALL_DATA="$INSTALL_DATA"
    7547 @@ -2889,6 +3030,32 @@
     7832@@ -2889,6 +3058,32 @@
    75487833                \$MKDIRS \$cf_subdir\$section
    75497834        fi
     
    75787863        cf_source=\`basename \$i\`
    75797864        inalias=\$cf_source
    7580 @@ -2901,7 +3068,7 @@
     7865@@ -2901,7 +3096,7 @@
    75817866 
    75827867 if test "$MANPAGE_ALIASES" != no ; then
     
    75877872 fi
    75887873 
    7589 @@ -2922,36 +3089,13 @@
     7874@@ -2922,36 +3117,13 @@
    75907875                cf_target="\$cf_source"
    75917876        fi
     
    76267911 if test -f $MANPAGE_RENAMES ; then
    76277912 cat >>$cf_edit_man <<CF_EOF
    7628 @@ -3012,6 +3156,7 @@
     7913@@ -3012,6 +3184,7 @@
    76297914        if test \$verb = installing ; then
    76307915                echo \$verb \$cf_target
     
    76347919                        cd \$cf_subdir\${section} && (
    76357920                                cf_source=\`echo \$cf_target |sed -e 's%^.*/\([[^/]][[^/]]*/[[^/]][[^/]]*$\)%\1%'\`
    7636 @@ -3053,8 +3198,11 @@
     7921@@ -3053,8 +3226,11 @@
    76377922                        )
    76387923                )
     
    76487933                        cd \$cf_subdir\${section} && (
    76497934                                for cf_alias in \$aliases
    7650 @@ -3192,12 +3340,12 @@
     7935@@ -3192,12 +3368,12 @@
    76517936 fi
    76527937 ])dnl
     
    76637948 dnl ---------------------------------------------------------------------------
    76647949 dnl CF_NCURSES_ABI_6 version: 1 updated: 2005/09/17 18:42:49
    7665 @@ -3680,7 +3828,73 @@
     7950@@ -3297,7 +3473,7 @@
     7951        AC_SUBST(PATHSEP)
     7952 ])dnl
     7953 dnl ---------------------------------------------------------------------------
     7954-dnl CF_PATH_SYNTAX version: 11 updated: 2006/09/02 08:55:46
     7955+dnl CF_PATH_SYNTAX version: 12 updated: 2008/03/23 14:45:59
     7956 dnl --------------
     7957 dnl Check the argument to see that it looks like a pathname.  Rewrite it if it
     7958 dnl begins with one of the prefix/exec_prefix variables, and then again if the
     7959@@ -3329,7 +3505,7 @@
     7960   $1=`echo [$]$1 | sed -e s%NONE%$cf_path_syntax%`
     7961   ;;
     7962 *)
     7963-  ifelse($2,,[AC_ERROR([expected a pathname, not \"[$]$1\"])],$2)
     7964+  ifelse($2,,[AC_MSG_ERROR([expected a pathname, not \"[$]$1\"])],$2)
     7965   ;;
     7966 esac
     7967 ])dnl
     7968@@ -3680,7 +3856,73 @@
    76667969                -e 's/-[[UD]]$3\(=[[^   ]]*\)\?[$]//g'`
    76677970 ])dnl
     
    77348037+])dnl
    77358038+dnl ---------------------------------------------------------------------------
    7736 +dnl CF_SHARED_OPTS version: 46 updated: 2007/02/24 18:58:09
     8039+dnl CF_SHARED_OPTS version: 48 updated: 2008/06/14 15:08:17
    77378040 dnl --------------
    77388041 dnl --------------
    77398042 dnl Attempt to determine the appropriate CC/LD options for creating a shared
    7740 @@ -3757,14 +3971,27 @@
     8043@@ -3726,7 +3968,7 @@
     8044                cf_cv_shlib_version=$withval
     8045                ;;
     8046        *)
     8047-               AC_ERROR([option value must be one of: rel, abi, auto or no])
     8048+               AC_MSG_ERROR([option value must be one of: rel, abi, auto or no])
     8049                ;;
     8050        esac
     8051        ],[cf_cv_shlib_version=auto])
     8052@@ -3757,14 +3999,27 @@
    77418053                ;;
    77428054        cygwin*)
     
    77688080                cf_cv_shlib_version_infix=yes
    77698081                AC_CACHE_CHECK([if ld -search_paths_first works], cf_cv_ldflags_search_paths_first, [
    7770 @@ -3818,11 +4045,11 @@
     8082@@ -3818,11 +4073,11 @@
    77718083                CF_SHARED_SONAME
    77728084                MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_shared_soname',-stats,-lc -o $[@]'
     
    77828094                MK_SHARED_LIB='${LD} -Bshareable -o $[@]'
    77838095                test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
    7784 @@ -4043,6 +4270,41 @@
     8096@@ -3903,9 +4158,7 @@
     8097                ;;
     8098        solaris2*)
     8099                # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
     8100-               if test "$GCC" != yes; then
     8101-                       CC_SHARED_OPTS='-KPIC'
     8102-               fi
     8103+               # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
     8104                if test "$DFT_LWR_MODEL" = "shared" ; then
     8105                        LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
     8106                        LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
     8107@@ -3915,7 +4168,12 @@
     8108                        EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
     8109                fi
     8110                CF_SHARED_SONAME
     8111-               MK_SHARED_LIB='${CC} -dy -G -h '$cf_shared_soname' -o $[@]'
     8112+               if test "$GCC" != yes; then
     8113+                       CC_SHARED_OPTS='-xcode=pic32'
     8114+                       MK_SHARED_LIB='${CC} -dy -G -h '$cf_shared_soname' -o $[@]'
     8115+               else
     8116+                       MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_shared_soname' -o $[@]'
     8117+               fi
     8118                ;;
     8119        sysv5uw7*|unix_sv*)
     8120                # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
     8121@@ -4043,6 +4301,41 @@
    77858122 fi
    77868123 ])dnl
     
    78248161 dnl -------------
    78258162 dnl Check for definitions & structures needed for window size-changing
    7826 @@ -4503,11 +4765,12 @@
     8163@@ -4503,11 +4796,12 @@
    78278164 $1=`echo "$2" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
    78288165 ])dnl
     
    78388175 dnl ---------------------------------------------------------------------------
    78398176 dnl CF_WCHAR_TYPE version: 2 updated: 2004/01/17 19:18:20
    7840 @@ -4643,7 +4906,7 @@
     8177@@ -4610,7 +4904,7 @@
     8178 fi
     8179 ])dnl
     8180 dnl ---------------------------------------------------------------------------
     8181-dnl CF_WITH_GPM version: 6 updated: 2006/12/17 11:12:09
     8182+dnl CF_WITH_GPM version: 7 updated: 2008/03/23 14:48:54
     8183 dnl -----------
     8184 dnl
     8185 dnl The option parameter (if neither yes/no) is assumed to be the name of
     8186@@ -4632,7 +4926,7 @@
     8187                        AC_DEFINE(HAVE_LIBGPM)
     8188                else
     8189                        AC_CHECK_LIB(gpm,Gpm_Open,[:],[
     8190-                               AC_ERROR(Cannot link with GPM library)
     8191+                               AC_MSG_ERROR(Cannot link with GPM library)
     8192                fi
     8193                with_gpm=yes
     8194                ])
     8195@@ -4643,7 +4937,7 @@
    78418196 fi
    78428197 ])
    78438198 dnl ---------------------------------------------------------------------------
    78448199-dnl CF_WITH_LIBTOOL version: 10 updated: 2006/10/14 15:23:15
    7845 +dnl CF_WITH_LIBTOOL version: 18 updated: 2007/04/08 20:02:38
     8200+dnl CF_WITH_LIBTOOL version: 19 updated: 2008/03/29 15:46:43
    78468201 dnl ---------------
    78478202 dnl Provide a configure option to incorporate libtool.  Define several useful
    78488203 dnl symbols for the makefile rules.
    7849 @@ -4692,7 +4955,7 @@
     8204@@ -4692,7 +4986,7 @@
    78508205 # doing:
    78518206 LIB_CLEAN=
     
    78568211 LIB_UNINSTALL=
    78578212 
    7858 @@ -4718,12 +4981,12 @@
     8213@@ -4718,12 +5012,12 @@
    78598214                AC_MSG_ERROR(Cannot find libtool)
    78608215        fi
     
    78728227        LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
    78738228        LIB_PREP=:
    7874 @@ -4734,10 +4997,10 @@
     8229@@ -4734,16 +5028,17 @@
    78758230        # Save the version in a cache variable - this is not entirely a good
    78768231        # thing, but the version string from libtool is very ugly, and for
     
    78858240 
    78868241        # special hack to add --tag option for C++ compiler
    7887 @@ -4758,6 +5021,7 @@
     8242        case $cf_cv_libtool_version in
     8243        1.[[5-9]]*|[[2-9]]*)
     8244                LIBTOOL_CXX="$LIBTOOL --tag=CXX"
     8245+               LIBTOOL="$LIBTOOL --tag=CC"
     8246                ;;
     8247        *)
     8248                LIBTOOL_CXX="$LIBTOOL"
     8249@@ -4758,6 +5053,7 @@
    78888250 
    78898251 AC_SUBST(LIBTOOL)
     
    78938255 AC_SUBST(LIB_CREATE)
    78948256 AC_SUBST(LIB_OBJECT)
    7895 @@ -4772,7 +5036,7 @@
     8257@@ -4772,7 +5068,7 @@
    78968258 
    78978259 ])dnl
     
    79028264 dnl Wrapper for AC_ARG_WITH to ensure that user supplies a pathname, not just
    79038265 dnl defaulting to yes/no.
    7904 @@ -4786,7 +5050,9 @@
     8266@@ -4786,7 +5082,9 @@
    79058267 AC_DEFUN([CF_WITH_PATH],
    79068268 [AC_ARG_WITH($1,[$2 ](default: ifelse($4,,empty,$4)),,
     
    79128274 AC_SUBST($3)dnl
    79138275 ])dnl
    7914 @@ -4896,7 +5162,7 @@
     8276@@ -4833,6 +5131,32 @@
     8277 
     8278 ])dnl
     8279 dnl ---------------------------------------------------------------------------
     8280+dnl CF_WITH_PTHREAD version: 1 updated: 2008/03/29 13:42:21
     8281+dnl ---------------
     8282+dnl Check for POSIX thread library.
     8283+AC_DEFUN([CF_WITH_PTHREAD],
     8284+[
     8285+AC_MSG_CHECKING(if you want to link with the pthread library)
     8286+AC_ARG_WITH(pthread,
     8287+    [  --with-pthread          use POSIX thread library],
     8288+    [with_pthread=$withval],
     8289+    [with_pthread=no])
     8290+AC_MSG_RESULT($with_pthread)
     8291+
     8292+if test "$with_pthread" != no ; then
     8293+    AC_CHECK_HEADER(pthread.h,[
     8294+        AC_DEFINE(HAVE_PTHREADS_H)
     8295+        AC_CHECK_LIB(pthread,pthread_create,[
     8296+            LIBS="-lpthread $LIBS"
     8297+            AC_DEFINE(HAVE_LIBPTHREADS)
     8298+            with_pthread=yes
     8299+        ],[
     8300+            AC_MSG_ERROR(Cannot link with pthread library)
     8301+        ])
     8302+    ])
     8303+fi
     8304+])
     8305+dnl ---------------------------------------------------------------------------
     8306 dnl CF_WITH_REL_VERSION version: 1 updated: 2003/09/20 18:12:49
     8307 dnl -------------------
     8308 dnl Allow library's release-version to be overridden.  Generally this happens when a
     8309@@ -4896,7 +5220,7 @@
    79158310        [USE_VALGRIND])
    79168311 ])dnl
     
    79218316 dnl Try to get _XOPEN_SOURCE defined properly that we can use POSIX functions,
    79228317 dnl or adapt to the vendor's definitions to get equivalent functionality,
    7923 @@ -4930,7 +5196,7 @@
     8318@@ -4930,7 +5254,7 @@
    79248319 irix[[56]].*) #(vi
    79258320        CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
     
    79328327diff -Naur ncurses-5.6.orig/c++/Makefile.in ncurses-5.6/c++/Makefile.in
    79338328--- ncurses-5.6.orig/c++/Makefile.in    2006-10-21 13:07:49.000000000 -0400
    7934 +++ ncurses-5.6/c++/Makefile.in 2007-12-21 00:02:35.000000000 -0500
     8329+++ ncurses-5.6/c++/Makefile.in 2008-06-18 06:49:44.000000000 -0400
    79358330@@ -1,6 +1,6 @@
    79368331-# $Id: Makefile.in,v 1.78 2006/10/21 17:07:49 tom Exp $
     
    79948389diff -Naur ncurses-5.6.orig/c++/README-first ncurses-5.6/c++/README-first
    79958390--- ncurses-5.6.orig/c++/README-first   2006-04-22 18:19:37.000000000 -0400
    7996 +++ ncurses-5.6/c++/README-first        2007-12-21 00:02:35.000000000 -0500
     8391+++ ncurses-5.6/c++/README-first        2008-06-18 06:49:44.000000000 -0400
    79978392@@ -1,5 +1,5 @@
    79988393 -------------------------------------------------------------------------------
     
    80778472diff -Naur ncurses-5.6.orig/c++/cursesapp.cc ncurses-5.6/c++/cursesapp.cc
    80788473--- ncurses-5.6.orig/c++/cursesapp.cc   2005-04-03 08:25:23.000000000 -0400
    8079 +++ ncurses-5.6/c++/cursesapp.cc        2007-12-21 00:02:35.000000000 -0500
     8474+++ ncurses-5.6/c++/cursesapp.cc        2008-06-18 06:49:44.000000000 -0400
    80808475@@ -1,6 +1,6 @@
    80818476 // * this is for making emacs happy: -*-Mode: C++;-*-
     
    81148509diff -Naur ncurses-5.6.orig/c++/cursesmain.cc ncurses-5.6/c++/cursesmain.cc
    81158510--- ncurses-5.6.orig/c++/cursesmain.cc  2003-10-25 10:53:13.000000000 -0400
    8116 +++ ncurses-5.6/c++/cursesmain.cc       2007-12-21 00:02:35.000000000 -0500
     8511+++ ncurses-5.6/c++/cursesmain.cc       2008-06-18 06:49:44.000000000 -0400
    81178512@@ -1,6 +1,6 @@
    81188513 // * this is for making emacs happy: -*-Mode: C++;-*-
     
    81788573diff -Naur ncurses-5.6.orig/c++/cursesp.h ncurses-5.6/c++/cursesp.h
    81798574--- ncurses-5.6.orig/c++/cursesp.h      2005-08-13 14:09:21.000000000 -0400
    8180 +++ ncurses-5.6/c++/cursesp.h   2007-12-21 00:02:35.000000000 -0500
     8575+++ ncurses-5.6/c++/cursesp.h   2008-06-18 06:49:44.000000000 -0400
    81818576@@ -1,6 +1,6 @@
    81828577 // * This makes emacs happy -*-Mode: C++;-*-
     
    82078602diff -Naur ncurses-5.6.orig/c++/cursespad.cc ncurses-5.6/c++/cursespad.cc
    82088603--- ncurses-5.6.orig/c++/cursespad.cc   2005-07-23 16:51:23.000000000 -0400
    8209 +++ ncurses-5.6/c++/cursespad.cc        2007-12-21 00:02:35.000000000 -0500
     8604+++ ncurses-5.6/c++/cursespad.cc        2008-06-18 06:49:44.000000000 -0400
    82108605@@ -1,6 +1,6 @@
    82118606 // * this is for making emacs happy: -*-Mode: C++;-*-
     
    82348629diff -Naur ncurses-5.6.orig/c++/cursesw.cc ncurses-5.6/c++/cursesw.cc
    82358630--- ncurses-5.6.orig/c++/cursesw.cc     2005-08-13 14:12:17.000000000 -0400
    8236 +++ ncurses-5.6/c++/cursesw.cc  2007-12-21 00:02:36.000000000 -0500
     8631+++ ncurses-5.6/c++/cursesw.cc  2008-06-18 06:49:45.000000000 -0400
    82378632@@ -1,77 +1,83 @@
    82388633 // * this is for making emacs happy: -*-Mode: C++;-*-
     
    89339328diff -Naur ncurses-5.6.orig/c++/cursesw.h ncurses-5.6/c++/cursesw.h
    89349329--- ncurses-5.6.orig/c++/cursesw.h      2005-07-23 16:51:39.000000000 -0400
    8935 +++ ncurses-5.6/c++/cursesw.h   2007-12-21 00:02:36.000000000 -0500
    8936 @@ -1,6 +1,6 @@
     9330+++ ncurses-5.6/c++/cursesw.h   2008-06-18 06:49:46.000000000 -0400
     9331@@ -1,6 +1,7 @@
    89379332 // * This makes emacs happy -*-Mode: C++;-*-
     9333+// vile:cppmode
    89389334 /****************************************************************************
    89399335- * Copyright (c) 1998-2004,2005 Free Software Foundation, Inc.              *
    8940 + * Copyright (c) 1998-2005,2007 Free Software Foundation, Inc.              *
     9336+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    89419337  *                                                                          *
    89429338  * Permission is hereby granted, free of charge, to any person obtaining a  *
    89439339  * copy of this software and associated documentation files (the            *
    8944 @@ -30,17 +30,10 @@
     9340@@ -30,17 +31,10 @@
    89459341 #ifndef NCURSES_CURSESW_H_incl
    89469342 #define NCURSES_CURSESW_H_incl 1
     
    89509346-#include <stdarg.h>
    89519347-#include <stdio.h>
    8952 +// $Id: cursesw.h,v 1.47 2007/12/16 00:21:05 tom Exp $
     9348+// $Id: cursesw.h,v 1.48 2008/01/19 21:09:10 tom Exp $
    89539349 
    89549350 #include <etip.h>
     
    89619357 #  include   <curses.h>
    89629358 }
    8963 @@ -61,16 +54,17 @@
     9359@@ -61,16 +55,17 @@
    89649360 #define addch UNDEF(addch)
    89659361 #endif
     
    89879383 
    89889384 #ifdef addstr
    8989 @@ -79,28 +73,34 @@
     9385@@ -79,28 +74,34 @@
    89909386 #define addstr UNDEF(addstr)
    89919387 #endif
     
    90329428 
    90339429 #ifdef border
    9034 @@ -116,18 +116,11 @@
     9430@@ -116,18 +117,11 @@
    90359431 #define box UNDEF(box)
    90369432 #endif
     
    90569452 
    90579453 #ifdef clear
    9058 @@ -156,6 +149,18 @@
     9454@@ -156,6 +150,18 @@
    90599455 #define clrtoeol UNDEF(clrtoeol)
    90609456 #endif
     
    90759471 inline int UNDEF(delch)()  { return delch(); }
    90769472 #undef delch
    9077 @@ -168,12 +173,24 @@
     9473@@ -168,12 +174,24 @@
    90789474 #define deleteln UNDEF(deleteln)
    90799475 #endif
     
    91009496 inline int UNDEF(flushok)(WINDOW* _win, bool _bf)  {
    91019497   return flushok(_win, _bf); }
    9102 @@ -183,91 +200,34 @@
     9498@@ -183,91 +201,34 @@
    91039499 #define _no_flushok
    91049500 #endif
     
    92129608 
    92139609 #ifdef getnstr
    9214 @@ -276,6 +236,18 @@
     9610@@ -276,6 +237,18 @@
    92159611 #define getnstr UNDEF(getnstr)
    92169612 #endif
     
    92319627 inline void UNDEF(getyx)(const WINDOW* win, int& y, int& x) {
    92329628   getyx(win, y, x); }
    9233 @@ -283,18 +255,6 @@
     9629@@ -283,18 +256,6 @@
    92349630 #define getyx UNDEF(getyx)
    92359631 #endif
     
    92509646 inline int UNDEF(hline)(chtype ch, int n) { return hline(ch, n); }
    92519647 #undef hline
    9252 @@ -307,18 +267,62 @@
     9648@@ -307,18 +268,62 @@
    92539649 #define inch UNDEF(inch)
    92549650 #endif
     
    93139709 inline int UNDEF(leaveok)(WINDOW* win, bool bf)  { return leaveok(win, bf); }
    93149710 #undef leaveok
    9315 @@ -333,142 +337,127 @@
     9711@@ -333,142 +338,127 @@
    93169712 #define move UNDEF(move)
    93179713 #endif
     
    95439939 
    95449940 #ifdef mvwchgat
    9545 @@ -479,212 +468,275 @@
     9941@@ -479,212 +469,275 @@
    95469942 #define mvwchgat UNDEF(mvwchgat)
    95479943 #endif
     
    996310359 
    996410360 /*
    9965 @@ -705,11 +757,13 @@
     10361@@ -705,11 +758,13 @@
    996610362 private:
    996710363   static bool    b_initialized;
     
    997810374   static int     setpalette(short fore, short back, short pair);
    997910375   static int     colorInitialized;
    9980 @@ -743,7 +797,7 @@
     10376@@ -743,7 +798,7 @@
    998110377   NCursesWindow();
    998210378 
     
    998710383   NCursesWindow(int nlines,        // number of lines
    998810384                int ncols,         // number of columns
    9989 @@ -823,16 +877,22 @@
     10385@@ -823,16 +878,22 @@
    999010386   int            width() const { return maxx() + 1; }
    999110387   // Number of columns in this window
     
    1001410410 
    1001510411   short          getcolor() const;
    10016 @@ -867,6 +927,15 @@
     10412@@ -867,6 +928,15 @@
    1001710413   void           getyx(int& y, int& x) const { ::getyx(w, y, x); }
    1001810414   // Get current position of the cursor
     
    1003010426     return ::mvcur(oldrow, oldcol, newrow, newcol); }
    1003110427   // Perform lowlevel cursor motion that takes effect immediately.
    10032 @@ -909,6 +978,9 @@
     10428@@ -909,6 +979,9 @@
    1003310429   ;
    1003410430 #endif
     
    1004010436     // Move the cursor to the requested position and then perform a scanw
    1004110437     // from the window.
    10042 @@ -918,6 +990,10 @@
     10438@@ -918,6 +991,10 @@
    1004310439   ;
    1004410440 #endif
     
    1005110447   // output
    1005210448   // -------------------------------------------------------------------------
    10053 @@ -939,7 +1015,17 @@
     10449@@ -939,7 +1016,17 @@
    1005410450 
    1005510451   int            addstr(int y, int x, const char * str, int n=-1) {
     
    1007010466 
    1007110467   int            printw(const char* fmt, ...)
    10072 @@ -958,6 +1044,12 @@
     10468@@ -958,6 +1045,12 @@
    1007310469   ;
    1007410470 #endif
     
    1008310479   // Retrieve attributed character under the current cursor position.
    1008410480 
    10085 @@ -965,6 +1057,16 @@
     10481@@ -965,6 +1058,16 @@
    1008610482   // Move cursor to requested position and then retrieve attributed character
    1008710483   // at this position.
     
    1010010496   // Insert attributed character into the window before current cursor
    1010110497   // position.
    10102 @@ -1001,6 +1103,9 @@
     10498@@ -1001,6 +1104,9 @@
    1010310499   int            attrset(chtype at) { return ::wattrset(w, static_cast<int>(at)); }
    1010410500   // Set the window attributes;
     
    1011010506     return ::wcolor_set(w, color_pair_number, opts); }
    1011110507   // Set the window color attribute;
    10112 @@ -1116,11 +1221,13 @@
     10508@@ -1116,11 +1222,13 @@
    1011310509   // If bf is TRUE, use insert/delete line hardware support if possible.
    1011410510   // Otherwise do it in software.
     
    1012510521   // Mark the whole window as modified.
    1012610522 
    10127 @@ -1173,9 +1280,13 @@
     10523@@ -1173,9 +1281,13 @@
    1012810524   // If called with bf=TRUE, any change in the window will cause an
    1012910525   // automatic immediate refresh()
     
    1013910535   // If called with bf=TRUE, keys may generate 8-Bit characters. Otherwise
    1014010536   // 7-Bit characters are generated.
    10141 @@ -1220,6 +1331,14 @@
     10537@@ -1220,6 +1332,14 @@
    1014210538   // sminrow,smincol.
    1014310539 
     
    1014510541+  // Extended functions
    1014610542+  // -------------------------------------------------------------------------
    10147 +#ifdef NCURSES_EXT_FUNCS
     10543+#if defined(NCURSES_EXT_FUNCS) && (NCURSES_EXT_FUNCS != 0)
    1014810544+  int            wresize(int newLines, int newColumns) {
    1014910545+    return ::wresize(w, newLines, newColumns); }
     
    1015610552diff -Naur ncurses-5.6.orig/c++/demo.cc ncurses-5.6/c++/demo.cc
    1015710553--- ncurses-5.6.orig/c++/demo.cc        2006-04-22 18:38:57.000000000 -0400
    10158 +++ ncurses-5.6/c++/demo.cc     2007-12-21 00:02:35.000000000 -0500
     10554+++ ncurses-5.6/c++/demo.cc     2008-06-18 06:49:44.000000000 -0400
    1015910555@@ -1,6 +1,6 @@
    1016010556 // * This makes emacs happy -*-Mode: C++;-*-
     
    1045710853diff -Naur ncurses-5.6.orig/c++/edit_cfg.sh ncurses-5.6/c++/edit_cfg.sh
    1045810854--- ncurses-5.6.orig/c++/edit_cfg.sh    2005-04-30 17:00:22.000000000 -0400
    10459 +++ ncurses-5.6/c++/edit_cfg.sh 2007-12-21 00:02:35.000000000 -0500
     10855+++ ncurses-5.6/c++/edit_cfg.sh 2008-06-18 06:49:44.000000000 -0400
    1046010856@@ -1,7 +1,7 @@
    1046110857 #!/bin/sh
     
    1049310889diff -Naur ncurses-5.6.orig/c++/etip.h.in ncurses-5.6/c++/etip.h.in
    1049410890--- ncurses-5.6.orig/c++/etip.h.in      2005-08-06 15:55:57.000000000 -0400
    10495 +++ ncurses-5.6/c++/etip.h.in   2007-12-21 00:02:35.000000000 -0500
     10891+++ ncurses-5.6/c++/etip.h.in   2008-06-18 06:49:44.000000000 -0400
    1049610892@@ -1,6 +1,6 @@
    1049710893 // * This makes emacs happy -*-Mode: C++;-*-
     
    1059210988diff -Naur ncurses-5.6.orig/c++/headers ncurses-5.6/c++/headers
    1059310989--- ncurses-5.6.orig/c++/headers        1998-02-11 07:13:40.000000000 -0500
    10594 +++ ncurses-5.6/c++/headers     2007-12-21 00:02:35.000000000 -0500
     10990+++ ncurses-5.6/c++/headers     2008-06-18 06:49:44.000000000 -0400
    1059510991@@ -1,7 +1,7 @@
    1059610992 # C++ headers
     
    1061011006diff -Naur ncurses-5.6.orig/c++/internal.h ncurses-5.6/c++/internal.h
    1061111007--- ncurses-5.6.orig/c++/internal.h     2006-09-30 17:59:57.000000000 -0400
    10612 +++ ncurses-5.6/c++/internal.h  2007-12-21 00:02:35.000000000 -0500
     11008+++ ncurses-5.6/c++/internal.h  2008-06-18 06:49:44.000000000 -0400
    1061311009@@ -1,6 +1,6 @@
    1061411010 // * This makes emacs happy -*-Mode: C++;-*-
     
    1063811034diff -Naur ncurses-5.6.orig/c++/modules ncurses-5.6/c++/modules
    1063911035--- ncurses-5.6.orig/c++/modules        1999-07-31 05:46:54.000000000 -0400
    10640 +++ ncurses-5.6/c++/modules     2007-12-21 00:02:35.000000000 -0500
     11036+++ ncurses-5.6/c++/modules     2008-06-18 06:49:44.000000000 -0400
    1064111037@@ -1,7 +1,7 @@
    1064211038 # Program modules
     
    1066611062diff -Naur ncurses-5.6.orig/config.guess ncurses-5.6/config.guess
    1066711063--- ncurses-5.6.orig/config.guess       2006-07-22 11:57:37.000000000 -0400
    10668 +++ ncurses-5.6/config.guess    2007-12-21 00:02:35.000000000 -0500
    10669 @@ -4,7 +4,7 @@
    10670  #   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
    10671  #   Inc.
     11064+++ ncurses-5.6/config.guess    2008-06-18 06:49:49.000000000 -0400
     11065@@ -1,10 +1,10 @@
     11066 #! /bin/sh
     11067 # Attempt to guess a canonical system name.
     11068 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     11069-#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
     11070-#   Inc.
     11071+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
     11072+#   Free Software Foundation, Inc.
    1067211073 
    1067311074-timestamp='2006-07-02'
    10674 +timestamp='2007-05-17'
     11075+timestamp='2008-03-12'
    1067511076 
    1067611077 # This file is free software; you can redistribute it and/or modify it
    1067711078 # under the terms of the GNU General Public License as published by
     11079@@ -56,8 +56,8 @@
     11080 GNU config.guess ($timestamp)
     11081 
     11082 Originally written by Per Bothner.
     11083-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
     11084-Free Software Foundation, Inc.
     11085+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
     11086+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
     11087 
     11088 This is free software; see the source for copying conditions.  There is NO
     11089 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    1067811090@@ -161,6 +161,7 @@
    1067911091            arm*) machine=arm-unknown ;;
     
    1068411096        esac
    1068511097        # The Operating System including object format, if it has switched
     11098@@ -179,7 +180,7 @@
     11099                fi
     11100                ;;
     11101            *)
     11102-               os=netbsd
     11103+               os=netbsd
     11104                ;;
     11105        esac
     11106        # The OS release
     11107@@ -218,11 +219,11 @@
     11108        exit ;;
     11109     alpha:OSF1:*:*)
     11110        case $UNAME_RELEASE in
     11111-       *4.0)
     11112+           *4.0)
     11113                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
     11114                ;;
     11115-       *5.*)
     11116-               UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
     11117+           *5.*)
     11118+               UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
     11119                ;;
     11120        esac
     11121        # According to Compaq, /usr/sbin/psrinfo has been available on
     11122@@ -294,7 +295,7 @@
     11123        echo s390-ibm-zvmoe
     11124        exit ;;
     11125     *:OS400:*:*)
     11126-        echo powerpc-ibm-os400
     11127+       echo powerpc-ibm-os400
     11128        exit ;;
     11129     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
     11130        echo arm-acorn-riscix${UNAME_RELEASE}
    1068611131@@ -329,7 +330,7 @@
    1068711132     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
     
    1068911134        exit ;;
    1069011135-    i86pc:SunOS:5.*:*)
    10691 +    i86pc:SunOS:5.*:* | ix86xen:SunOS:5.*:*)
     11136+    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
    1069211137        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    1069311138        exit ;;
    1069411139     sun4*:SunOS:6*:*)
    10695 @@ -780,7 +781,7 @@
     11140@@ -374,23 +375,23 @@
     11141     # MiNT.  But MiNT is downward compatible to TOS, so this should
     11142     # be no problem.
     11143     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
     11144-        echo m68k-atari-mint${UNAME_RELEASE}
     11145+       echo m68k-atari-mint${UNAME_RELEASE}
     11146        exit ;;
     11147     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
     11148        echo m68k-atari-mint${UNAME_RELEASE}
     11149-        exit ;;
     11150+       exit ;;
     11151     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
     11152-        echo m68k-atari-mint${UNAME_RELEASE}
     11153+       echo m68k-atari-mint${UNAME_RELEASE}
     11154        exit ;;
     11155     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
     11156-        echo m68k-milan-mint${UNAME_RELEASE}
     11157-        exit ;;
     11158+       echo m68k-milan-mint${UNAME_RELEASE}
     11159+       exit ;;
     11160     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
     11161-        echo m68k-hades-mint${UNAME_RELEASE}
     11162-        exit ;;
     11163+       echo m68k-hades-mint${UNAME_RELEASE}
     11164+       exit ;;
     11165     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
     11166-        echo m68k-unknown-mint${UNAME_RELEASE}
     11167-        exit ;;
     11168+       echo m68k-unknown-mint${UNAME_RELEASE}
     11169+       exit ;;
     11170     m68k:machten:*:*)
     11171        echo m68k-apple-machten${UNAME_RELEASE}
     11172        exit ;;
     11173@@ -460,8 +461,8 @@
     11174        echo m88k-motorola-sysv3
     11175        exit ;;
     11176     AViiON:dgux:*:*)
     11177-        # DG/UX returns AViiON for all architectures
     11178-        UNAME_PROCESSOR=`/usr/bin/uname -p`
     11179+       # DG/UX returns AViiON for all architectures
     11180+       UNAME_PROCESSOR=`/usr/bin/uname -p`
     11181        if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
     11182        then
     11183            if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
     11184@@ -531,7 +532,7 @@
     11185                echo rs6000-ibm-aix3.2
     11186        fi
     11187        exit ;;
     11188-    *:AIX:*:[45])
     11189+    *:AIX:*:[456])
     11190        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
     11191        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
     11192                IBM_ARCH=rs6000
     11193@@ -574,8 +575,8 @@
     11194            9000/[678][0-9][0-9])
     11195                if [ -x /usr/bin/getconf ]; then
     11196                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
     11197-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
     11198-                    case "${sc_cpu_version}" in
     11199+                   sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
     11200+                   case "${sc_cpu_version}" in
     11201                       523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
     11202                       528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
     11203                       532)                      # CPU_PA_RISC2_0
     11204@@ -710,22 +711,22 @@
     11205        exit ;;
     11206     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
     11207        echo c1-convex-bsd
     11208-        exit ;;
     11209+       exit ;;
     11210     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
     11211        if getsysinfo -f scalar_acc
     11212        then echo c32-convex-bsd
     11213        else echo c2-convex-bsd
     11214        fi
     11215-        exit ;;
     11216+       exit ;;
     11217     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
     11218        echo c34-convex-bsd
     11219-        exit ;;
     11220+       exit ;;
     11221     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
     11222        echo c38-convex-bsd
     11223-        exit ;;
     11224+       exit ;;
     11225     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
     11226        echo c4-convex-bsd
     11227-        exit ;;
     11228+       exit ;;
     11229     CRAY*Y-MP:*:*:*)
     11230        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     11231        exit ;;
     11232@@ -749,14 +750,14 @@
     11233        exit ;;
     11234     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
     11235        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     11236-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
     11237-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
     11238-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     11239-        exit ;;
     11240+       FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
     11241+       FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
     11242+       echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     11243+       exit ;;
     11244     5000:UNIX_System_V:4.*:*)
     11245-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
     11246-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
     11247-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     11248+       FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
     11249+       FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
     11250+       echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     11251        exit ;;
     11252     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
     11253        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
     11254@@ -780,22 +781,28 @@
    1069611255     i*:CYGWIN*:*)
    1069711256        echo ${UNAME_MACHINE}-pc-cygwin
     
    1070211261        exit ;;
    1070311262     i*:windows32*:*)
    10704 @@ -790,12 +791,15 @@
     11263-       # uname -m includes "-pc" on this system.
     11264-       echo ${UNAME_MACHINE}-mingw32
     11265+       # uname -m includes "-pc" on this system.
     11266+       echo ${UNAME_MACHINE}-mingw32
     11267        exit ;;
    1070511268     i*:PW*:*)
    1070611269        echo ${UNAME_MACHINE}-pc-pw32
     
    1071311276-       exit ;;
    1071411277+    *:Interix*:[3456]*)
    10715 +       case ${UNAME_MACHINE} in
    10716 +           x86) 
     11278+       case ${UNAME_MACHINE} in
     11279+           x86)
    1071711280+               echo i586-pc-interix${UNAME_RELEASE}
    1071811281+               exit ;;
     
    1072011283+               echo x86_64-unknown-interix${UNAME_RELEASE}
    1072111284+               exit ;;
     11285+           IA64)
     11286+               echo ia64-unknown-interix${UNAME_RELEASE}
     11287+               exit ;;
    1072211288+       esac ;;
    1072311289     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    1072411290        echo i${UNAME_MACHINE}-pc-mks
    1072511291        exit ;;
    10726 @@ -950,6 +954,9 @@
     11292@@ -829,7 +836,13 @@
     11293        echo ${UNAME_MACHINE}-pc-minix
     11294        exit ;;
     11295     arm*:Linux:*:*)
     11296-       echo ${UNAME_MACHINE}-unknown-linux-gnu
     11297+       eval $set_cc_for_build
     11298+       if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null | grep -q __ARM_EABI__
     11299+       then
     11300+           echo ${UNAME_MACHINE}-unknown-linux-gnu
     11301+       else
     11302+           echo ${UNAME_MACHINE}-unknown-linux-gnueabi
     11303+       fi
     11304        exit ;;
     11305     avr32*:Linux:*:*)
     11306        echo ${UNAME_MACHINE}-unknown-linux-gnu
     11307@@ -841,7 +854,7 @@
     11308        echo crisv32-axis-linux-gnu
     11309        exit ;;
     11310     frv:Linux:*:*)
     11311-       echo frv-unknown-linux-gnu
     11312+       echo frv-unknown-linux-gnu
     11313        exit ;;
     11314     ia64:Linux:*:*)
     11315        echo ${UNAME_MACHINE}-unknown-linux-gnu
     11316@@ -869,10 +882,10 @@
     11317        #endif
     11318 EOF
     11319        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
     11320-           /^CPU/{
     11321-               s: ::g
     11322-               p
     11323-           }'`"
     11324+               /^CPU/{
     11325+                       s: ::g
     11326+                       p
     11327+               }'`"
     11328        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
     11329        ;;
     11330     mips64:Linux:*:*)
     11331@@ -892,15 +905,15 @@
     11332        #endif
     11333 EOF
     11334        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
     11335-           /^CPU/{
     11336-               s: ::g
     11337-               p
     11338-           }'`"
     11339+               /^CPU/{
     11340+                       s: ::g
     11341+                       p
     11342+               }'`"
     11343        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
     11344        ;;
     11345     or32:Linux:*:*)
     11346-       echo or32-unknown-linux-gnu
     11347-       exit ;;
     11348+       echo or32-unknown-linux-gnu
     11349+       exit ;;
     11350     ppc:Linux:*:*)
     11351        echo powerpc-unknown-linux-gnu
     11352        exit ;;
     11353@@ -916,7 +929,7 @@
     11354          EV6)   UNAME_MACHINE=alphaev6 ;;
     11355          EV67)  UNAME_MACHINE=alphaev67 ;;
     11356          EV68*) UNAME_MACHINE=alphaev68 ;;
     11357-        esac
     11358+       esac
     11359        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
     11360        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
     11361        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
     11362@@ -936,7 +949,7 @@
     11363        echo ${UNAME_MACHINE}-ibm-linux
     11364        exit ;;
     11365     sh64*:Linux:*:*)
     11366-       echo ${UNAME_MACHINE}-unknown-linux-gnu
     11367+       echo ${UNAME_MACHINE}-unknown-linux-gnu
     11368        exit ;;
     11369     sh*:Linux:*:*)
     11370        echo ${UNAME_MACHINE}-unknown-linux-gnu
     11371@@ -950,6 +963,9 @@
    1072711372     x86_64:Linux:*:*)
    1072811373        echo x86_64-unknown-linux-gnu
    1072911374        exit ;;
    10730 +    xtensa:Linux:*:*)
    10731 +       echo xtensa-unknown-linux-gnu
     11375+    xtensa*:Linux:*:*)
     11376+       echo ${UNAME_MACHINE}-unknown-linux-gnu
    1073211377+       exit ;;
    1073311378     i*86:Linux:*:*)
    1073411379        # The BFD linker knows what the default object file format is, so
    1073511380        # first see if it will tell us. cd to the root directory to prevent
    10736 @@ -1208,6 +1215,15 @@
     11381@@ -961,7 +977,7 @@
     11382                                    s/.*supported targets: *//
     11383                                    s/ .*//
     11384                                    p'`
     11385-        case "$ld_supported_targets" in
     11386+       case "$ld_supported_targets" in
     11387          elf32-i386)
     11388                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
     11389                ;;
     11390@@ -1003,10 +1019,10 @@
     11391        #endif
     11392 EOF
     11393        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
     11394-           /^LIBC/{
     11395-               s: ::g
     11396-               p
     11397-           }'`"
     11398+               /^LIBC/{
     11399+                       s: ::g
     11400+                       p
     11401+               }'`"
     11402        test x"${LIBC}" != x && {
     11403                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
     11404                exit
     11405@@ -1020,11 +1036,11 @@
     11406        echo i386-sequent-sysv4
     11407        exit ;;
     11408     i*86:UNIX_SV:4.2MP:2.*)
     11409-        # Unixware is an offshoot of SVR4, but it has its own version
     11410-        # number series starting with 2...
     11411-        # I am not positive that other SVR4 systems won't match this,
     11412+       # Unixware is an offshoot of SVR4, but it has its own version
     11413+       # number series starting with 2...
     11414+       # I am not positive that other SVR4 systems won't match this,
     11415        # I just have to hope.  -- rms.
     11416-        # Use sysv4.2uw... so that sysv4* matches it.
     11417+       # Use sysv4.2uw... so that sysv4* matches it.
     11418        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
     11419        exit ;;
     11420     i*86:OS/2:*:*)
     11421@@ -1056,7 +1072,7 @@
     11422        fi
     11423        exit ;;
     11424     i*86:*:5:[678]*)
     11425-       # UnixWare 7.x, OpenUNIX and OpenServer 6.
     11426+       # UnixWare 7.x, OpenUNIX and OpenServer 6.
     11427        case `/bin/uname -X | grep "^Machine"` in
     11428            *486*)           UNAME_MACHINE=i486 ;;
     11429            *Pentium)        UNAME_MACHINE=i586 ;;
     11430@@ -1084,10 +1100,10 @@
     11431        exit ;;
     11432     pc:*:*:*)
     11433        # Left here for compatibility:
     11434-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
     11435-        # the processor, so we play safe by assuming i386.
     11436+       # uname -m prints for DJGPP always 'pc', but it prints nothing about
     11437+       # the processor, so we play safe by assuming i386.
     11438        echo i386-pc-msdosdjgpp
     11439-        exit ;;
     11440+       exit ;;
     11441     Intel:Mach:3*:*)
     11442        echo i386-pc-mach3
     11443        exit ;;
     11444@@ -1122,8 +1138,8 @@
     11445        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
     11446          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
     11447     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
     11448-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
     11449-          && { echo i486-ncr-sysv4; exit; } ;;
     11450+       /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
     11451+          && { echo i486-ncr-sysv4; exit; } ;;
     11452     m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
     11453        echo m68k-unknown-lynxos${UNAME_RELEASE}
     11454        exit ;;
     11455@@ -1157,9 +1173,9 @@
     11456        fi
     11457        exit ;;
     11458     PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
     11459-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
     11460-        echo i586-unisys-sysv4
     11461-        exit ;;
     11462+                     # says <Richard.M.Bartel@ccMail.Census.GOV>
     11463+       echo i586-unisys-sysv4
     11464+       exit ;;
     11465     *:UNIX_System_V:4*:FTX*)
     11466        # From Gerald Hewes <hewes@openmarket.com>.
     11467        # How about differentiating between stratus architectures? -djm
     11468@@ -1189,7 +1205,7 @@
     11469        else
     11470                echo mips-unknown-sysv${UNAME_RELEASE}
     11471        fi
     11472-        exit ;;
     11473+       exit ;;
     11474     BeBox:BeOS:*:*)    # BeOS running on hardware made by Be, PPC only.
     11475        echo powerpc-be-beos
     11476        exit ;;
     11477@@ -1199,6 +1215,9 @@
     11478     BePC:BeOS:*:*)     # BeOS running on Intel PC compatible.
     11479        echo i586-pc-beos
     11480        exit ;;
     11481+    BePC:Haiku:*:*)    # Haiku running on Intel PC compatible.
     11482+       echo i586-pc-haiku
     11483+       exit ;;
     11484     SX-4:SUPER-UX:*:*)
     11485        echo sx4-nec-superux${UNAME_RELEASE}
     11486        exit ;;
     11487@@ -1208,6 +1227,15 @@
    1073711488     SX-6:SUPER-UX:*:*)
    1073811489        echo sx6-nec-superux${UNAME_RELEASE}
     
    1075011501        echo powerpc-apple-rhapsody${UNAME_RELEASE}
    1075111502        exit ;;
     11503@@ -1224,8 +1252,8 @@
     11504     *:procnto*:*:* | *:QNX:[0123456789]*:*)
     11505        UNAME_PROCESSOR=`uname -p`
     11506        if test "$UNAME_PROCESSOR" = "x86"; then
     11507-               UNAME_PROCESSOR=i386
     11508-               UNAME_MACHINE=pc
     11509+           UNAME_PROCESSOR=i386
     11510+           UNAME_MACHINE=pc
     11511        fi
     11512        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
     11513        exit ;;
     11514@@ -1277,13 +1305,13 @@
     11515        echo pdp10-unknown-its
     11516        exit ;;
     11517     SEI:*:*:SEIUX)
     11518-        echo mips-sei-seiux${UNAME_RELEASE}
     11519+       echo mips-sei-seiux${UNAME_RELEASE}
     11520        exit ;;
     11521     *:DragonFly:*:*)
     11522        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
     11523        exit ;;
     11524     *:*VMS:*:*)
     11525-       UNAME_MACHINE=`(uname -p) 2>/dev/null`
     11526+       UNAME_MACHINE=`(uname -p) 2>/dev/null`
     11527        case "${UNAME_MACHINE}" in
     11528            A*) echo alpha-dec-vms ; exit ;;
     11529            I*) echo ia64-dec-vms ; exit ;;
     11530@@ -1458,9 +1486,9 @@
     11531 the operating system you are using. It is advised that you
     11532 download the most up to date version of the config scripts from
     11533 
     11534-  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
     11535+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
     11536 and
     11537-  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
     11538+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
     11539 
     11540 If the version you run ($0) is already up to date, please
     11541 send the following data and any information you think might be
    1075211542diff -Naur ncurses-5.6.orig/config.sub ncurses-5.6/config.sub
    1075311543--- ncurses-5.6.orig/config.sub 2006-08-14 12:00:00.000000000 -0400
    10754 +++ ncurses-5.6/config.sub      2007-12-21 00:02:35.000000000 -0500
    10755 @@ -4,7 +4,7 @@
    10756  #   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
    10757  #   Inc.
     11544+++ ncurses-5.6/config.sub      2008-06-18 06:49:49.000000000 -0400
     11545@@ -1,10 +1,10 @@
     11546 #! /bin/sh
     11547 # Configuration validation subroutine script.
     11548 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     11549-#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
     11550-#   Inc.
     11551+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
     11552+#   Free Software Foundation, Inc.
    1075811553 
    1075911554-timestamp='2006-08-14'
    10760 +timestamp='2007-06-28'
     11555+timestamp='2008-03-08'
    1076111556 
    1076211557 # This file is (in principle) common to ALL GNU software.
    1076311558 # The presence of a machine in this file suggests that SOME GNU software
    10764 @@ -245,12 +245,12 @@
     11559@@ -72,8 +72,8 @@
     11560 version="\
     11561 GNU config.sub ($timestamp)
     11562 
     11563-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
     11564-Free Software Foundation, Inc.
     11565+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
     11566+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
     11567 
     11568 This is free software; see the source for copying conditions.  There is NO
     11569 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
     11570@@ -245,17 +245,19 @@
    1076511571        | bfin \
    1076611572        | c4x | clipper \
     
    1077711583        | mips16 \
    1077811584        | mips64 | mips64el \
    10779 @@ -276,6 +276,7 @@
     11585-       | mips64vr | mips64vrel \
     11586+       | mips64octeon | mips64octeonel \
     11587        | mips64orion | mips64orionel \
     11588+       | mips64r5900 | mips64r5900el \
     11589+       | mips64vr | mips64vrel \
     11590        | mips64vr4100 | mips64vr4100el \
     11591        | mips64vr4300 | mips64vr4300el \
     11592        | mips64vr5000 | mips64vr5000el \
     11593@@ -276,6 +278,7 @@
    1078011594        | pdp10 | pdp11 | pj | pjl \
    1078111595        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
     
    1078511599        | sh64 | sh64le \
    1078611600        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
    10787 @@ -323,7 +324,7 @@
     11601@@ -303,8 +306,8 @@
     11602        # because (1) that's what they normally are, and
     11603        # (2) the word "unknown" tends to confuse beginning users.
     11604        i*86 | x86_64)
     11605-         basic_machine=$basic_machine-pc
     11606-         ;;
     11607+               basic_machine=$basic_machine-pc
     11608+               ;;
     11609        # Object if more than one company name word.
     11610        *-*-*)
     11611                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
     11612@@ -323,19 +326,21 @@
    1078811613        | clipper-* | craynv-* | cydra-* \
    1078911614        | d10v-* | d30v-* | dlx-* \
     
    1079411619        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
    1079511620        | i*86-* | i860-* | i960-* | ia64-* \
    10796 @@ -474,8 +475,8 @@
     11621        | ip2k-* | iq2000-* \
     11622-       | m32c-* | m32r-* | m32rle-* \
     11623+       | m32c- | m32r-* | m32rle-* \
     11624        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
     11625        | m88110-* | m88k-* | maxq-* | mcore-* \
     11626        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
     11627        | mips16-* \
     11628        | mips64-* | mips64el-* \
     11629-       | mips64vr-* | mips64vrel-* \
     11630+       | mips64octeon-* | mips64octeonel-* \
     11631        | mips64orion-* | mips64orionel-* \
     11632+       | mips64r5900-* | mips64r5900el-* \
     11633+       | mips64vr-* | mips64vrel-* \
     11634        | mips64vr4100-* | mips64vr4100el-* \
     11635        | mips64vr4300-* | mips64vr4300el-* \
     11636        | mips64vr5000-* | mips64vr5000el-* \
     11637@@ -363,15 +368,19 @@
     11638        | sparclite-* \
     11639        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
     11640        | tahoe-* | thumb-* \
     11641-       | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
     11642+       | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
     11643        | tron-* \
     11644        | v850-* | v850e-* | vax-* \
     11645        | we32k-* \
     11646        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
     11647-       | xstormy16-* | xtensa-* \
     11648+       | xstormy16-* | xtensa*-* \
     11649        | ymp-* \
     11650        | z8k-*)
     11651                ;;
     11652+       # Recognize the basic CPU types without company name, with glob match.
     11653+       xtensa*)
     11654+               basic_machine=$basic_machine-unknown
     11655+               ;;
     11656        # Recognize the various machine names and aliases which stand
     11657        # for a CPU type and a company and sometimes even an OS.
     11658        386bsd)
     11659@@ -388,7 +397,7 @@
     11660                basic_machine=a29k-amd
     11661                os=-udi
     11662                ;;
     11663-       abacus)
     11664+       abacus)
     11665                basic_machine=abacus-unknown
     11666                ;;
     11667        adobe68k)
     11668@@ -442,6 +451,14 @@
     11669                basic_machine=ns32k-sequent
     11670                os=-dynix
     11671                ;;
     11672+       blackfin)
     11673+               basic_machine=bfin-unknown
     11674+               os=-linux
     11675+               ;;
     11676+       blackfin-*)
     11677+               basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
     11678+               os=-linux
     11679+               ;;
     11680        c90)
     11681                basic_machine=c90-cray
     11682                os=-unicos
     11683@@ -474,8 +491,8 @@
    1079711684                basic_machine=craynv-cray
    1079811685                os=-unicosmp
     
    1080511692                ;;
    1080611693        crds | unos)
    10807 @@ -682,6 +683,10 @@
     11694@@ -667,6 +684,14 @@
     11695                basic_machine=m68k-isi
     11696                os=-sysv
     11697                ;;
     11698+       m68knommu)
     11699+               basic_machine=m68k-unknown
     11700+               os=-linux
     11701+               ;;
     11702+       m68knommu-*)
     11703+               basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
     11704+               os=-linux
     11705+               ;;
     11706        m88k-omron*)
     11707                basic_machine=m88k-omron
     11708                ;;
     11709@@ -682,6 +707,10 @@
    1080811710                basic_machine=i386-pc
    1080911711                os=-mingw32
     
    1081611718                basic_machine=m68000-convergent
    1081711719                ;;
    10818 @@ -924,6 +929,9 @@
     11720@@ -808,6 +837,14 @@
     11721                basic_machine=i860-intel
     11722                os=-osf
     11723                ;;
     11724+       parisc)
     11725+               basic_machine=hppa-unknown
     11726+               os=-linux
     11727+               ;;
     11728+       parisc-*)
     11729+               basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
     11730+               os=-linux
     11731+               ;;
     11732        pbd)
     11733                basic_machine=sparc-tti
     11734                ;;
     11735@@ -924,6 +961,9 @@
    1081911736                basic_machine=sh-hitachi
    1082011737                os=-hms
     
    1082611743                basic_machine=sh64-unknown
    1082711744                ;;
    10828 @@ -1218,7 +1226,7 @@
     11745@@ -1013,6 +1053,10 @@
     11746                basic_machine=tic6x-unknown
     11747                os=-coff
     11748                ;;
     11749+       tile*)
     11750+               basic_machine=tile-unknown
     11751+               os=-linux-gnu
     11752+               ;;
     11753        tx39)
     11754                basic_machine=mipstx39-unknown
     11755                ;;
     11756@@ -1173,8 +1217,8 @@
     11757 if [ x"$os" != x"" ]
     11758 then
     11759 case $os in
     11760-        # First match some system type aliases
     11761-        # that might get confused with valid system types.
     11762+       # First match some system type aliases
     11763+       # that might get confused with valid system types.
     11764        # -solaris* is a basic system type, with this one exception.
     11765        -solaris1 | -solaris1.*)
     11766                os=`echo $os | sed -e 's|solaris1|sunos4|'`
     11767@@ -1218,7 +1262,7 @@
    1082911768              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
    1083011769              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
     
    1083511774                ;;
    1083611775        -qnx*)
    10837 @@ -1370,6 +1378,9 @@
     11776@@ -1257,7 +1301,7 @@
     11777        -opened*)
     11778                os=-openedition
     11779                ;;
     11780-        -os400*)
     11781+       -os400*)
     11782                os=-os400
     11783                ;;
     11784        -wince*)
     11785@@ -1306,7 +1350,7 @@
     11786        -sinix*)
     11787                os=-sysv4
     11788                ;;
     11789-        -tpf*)
     11790+       -tpf*)
     11791                os=-tpf
     11792                ;;
     11793        -triton*)
     11794@@ -1370,7 +1414,10 @@
    1083811795 # system, and we'll never get to this point.
    1083911796 
    1084011797 case $basic_machine in
    10841 +        score-*)
     11798-        spu-*)
     11799+       score-*)
    1084211800+               os=-elf
    1084311801+               ;;
    10844          spu-*)
     11802+       spu-*)
    1084511803                os=-elf
    1084611804                ;;
    10847 @@ -1410,6 +1421,9 @@
     11805        *-acorn)
     11806@@ -1382,8 +1429,8 @@
     11807        arm*-semi)
     11808                os=-aout
     11809                ;;
     11810-        c4x-* | tic4x-*)
     11811-               os=-coff
     11812+       c4x-* | tic4x-*)
     11813+               os=-coff
     11814                ;;
     11815        # This must come before the *-dec entry.
     11816        pdp10-*)
     11817@@ -1410,6 +1457,9 @@
    1084811818        m68*-cisco)
    1084911819                os=-aout
    1085011820                ;;
    10851 +        mep-*)
     11821+       mep-*)
    1085211822+               os=-elf
    1085311823+               ;;
     
    1085511825                os=-elf
    1085611826                ;;
     11827@@ -1434,7 +1484,7 @@
     11828        *-ibm)
     11829                os=-aix
     11830                ;;
     11831-       *-knuth)
     11832+       *-knuth)
     11833                os=-mmixware
     11834                ;;
     11835        *-wec)
    1085711836diff -Naur ncurses-5.6.orig/configure ncurses-5.6/configure
    1085811837--- ncurses-5.6.orig/configure  2006-12-17 11:33:38.000000000 -0500
    10859 +++ ncurses-5.6/configure       2007-12-21 00:02:35.000000000 -0500
    10860 @@ -1,5 +1,5 @@
     11838+++ ncurses-5.6/configure       2008-06-18 06:49:52.000000000 -0400
     11839@@ -1,7 +1,7 @@
    1086111840 #! /bin/sh
    1086211841-# From configure.in Revision: 1.383 .
    10863 +# From configure.in Revision: 1.429 .
     11842+# From configure.in Revision: 1.434 .
    1086411843 # Guess values for system-dependent variables and create Makefiles.
    10865  # Generated by Autoconf 2.52.20061216.
     11844-# Generated by Autoconf 2.52.20061216.
     11845+# Generated by Autoconf 2.52.20080325.
    1086611846 #
     11847 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     11848 # Free Software Foundation, Inc.
    1086711849@@ -699,6 +699,7 @@
    1086811850   --without-ada           suppress check for Ada95, don't build demo
     
    1089411876   --with-termpath=XXX     specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
    1089511877   --enable-getcap         fast termcap load, no xrefs to terminfo
    10896 @@ -759,7 +763,7 @@
     11878@@ -758,8 +762,10 @@
     11879 Extensions:
    1089711880   --disable-ext-funcs     disable function-extensions
    1089811881   --enable-const          compile with extra/non-standard const
     11882+  --enable-ext-colors     compile for 256-color support
     11883+  --enable-ext-mouse      compile for extended mouse-encoding
    1089911884   --enable-no-padding     compile with $NCURSES_NO_PADDING code
    1090011885-  --enable-signed-char    compile with SIGWINCH handler
     
    1090311888   --enable-tcap-names     compile with user-definable terminal capabilities
    1090411889 Development Code:
    10905 @@ -772,6 +776,7 @@
     11890@@ -770,8 +776,8 @@
     11891   --disable-assumed-color do not assume anything about default-colors
     11892   --disable-hashmap       compile without hashmap scrolling-optimization
    1090611893   --enable-colorfgbg      compile with $COLORFGBG code
    10907    --enable-ext-colors     compile for experimental 256-color support
    10908    --enable-ext-mouse      compile for experimental mouse-encoding
     11894-  --enable-ext-colors     compile for experimental 256-color support
     11895-  --enable-ext-mouse      compile for experimental mouse-encoding
     11896+  --with-pthread          use POSIX thread library
    1090911897+  --enable-reentrant      compile with experimental reentrant code
    1091011898   --enable-safe-sprintf   compile with experimental safe-sprintf code
    1091111899   --disable-scroll-hints  compile without scroll-hints code
    1091211900   --enable-wgetch-events  compile with experimental wgetch-events code
    10913 @@ -986,7 +991,7 @@
     11901@@ -862,7 +868,7 @@
     11902 running configure, to aid debugging if configure makes a mistake.
     11903 
     11904 It was created by $as_me, which was
     11905-generated by GNU Autoconf 2.52.20061216.  Invocation command line was
     11906+generated by GNU Autoconf 2.52.20080325.  Invocation command line was
     11907 
     11908   $ $0 $@
     11909 
     11910@@ -986,7 +992,7 @@
    1091411911 fi
    1091511912 for ac_site_file in $CONFIG_SITE; do
    1091611913   if test -r "$ac_site_file"; then
    1091711914-    { echo "$as_me:989: loading site script $ac_site_file" >&5
    10918 +    { echo "$as_me:994: loading site script $ac_site_file" >&5
     11915+    { echo "$as_me:995: loading site script $ac_site_file" >&5
    1091911916 echo "$as_me: loading site script $ac_site_file" >&6;}
    1092011917     cat "$ac_site_file" >&5
    1092111918     . "$ac_site_file"
    10922 @@ -997,7 +1002,7 @@
     11919@@ -997,7 +1003,7 @@
    1092311920   # Some versions of bash will fail to source /dev/null (special
    1092411921   # files actually), so we avoid doing that.
    1092511922   if test -f "$cache_file"; then
    1092611923-    { echo "$as_me:1000: loading cache $cache_file" >&5
    10927 +    { echo "$as_me:1005: loading cache $cache_file" >&5
     11924+    { echo "$as_me:1006: loading cache $cache_file" >&5
    1092811925 echo "$as_me: loading cache $cache_file" >&6;}
    1092911926     case $cache_file in
    1093011927       [\\/]* | ?:[\\/]* ) . $cache_file;;
    10931 @@ -1005,7 +1010,7 @@
     11928@@ -1005,7 +1011,7 @@
    1093211929     esac
    1093311930   fi
    1093411931 else
    1093511932-  { echo "$as_me:1008: creating cache $cache_file" >&5
    10936 +  { echo "$as_me:1013: creating cache $cache_file" >&5
     11933+  { echo "$as_me:1014: creating cache $cache_file" >&5
    1093711934 echo "$as_me: creating cache $cache_file" >&6;}
    1093811935   >$cache_file
    1093911936 fi
    10940 @@ -1021,21 +1026,21 @@
     11937@@ -1021,21 +1027,21 @@
    1094111938   eval ac_new_val="\$ac_env_${ac_var}_value"
    1094211939   case $ac_old_set,$ac_new_set in
    1094311940     set,)
    1094411941-      { echo "$as_me:1024: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    10945 +      { echo "$as_me:1029: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     11942+      { echo "$as_me:1030: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
    1094611943 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
    1094711944       ac_cache_corrupted=: ;;
    1094811945     ,set)
    1094911946-      { echo "$as_me:1028: error: \`$ac_var' was not set in the previous run" >&5
    10950 +      { echo "$as_me:1033: error: \`$ac_var' was not set in the previous run" >&5
     11947+      { echo "$as_me:1034: error: \`$ac_var' was not set in the previous run" >&5
    1095111948 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
    1095211949       ac_cache_corrupted=: ;;
     
    1095511952       if test "x$ac_old_val" != "x$ac_new_val"; then
    1095611953-        { echo "$as_me:1034: error: \`$ac_var' has changed since the previous run:" >&5
    10957 +        { echo "$as_me:1039: error: \`$ac_var' has changed since the previous run:" >&5
     11954+        { echo "$as_me:1040: error: \`$ac_var' has changed since the previous run:" >&5
    1095811955 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    1095911956-        { echo "$as_me:1036:   former value:  $ac_old_val" >&5
    10960 +        { echo "$as_me:1041:   former value:  $ac_old_val" >&5
     11957+        { echo "$as_me:1042:   former value:  $ac_old_val" >&5
    1096111958 echo "$as_me:   former value:  $ac_old_val" >&2;}
    1096211959-        { echo "$as_me:1038:   current value: $ac_new_val" >&5
    10963 +        { echo "$as_me:1043:   current value: $ac_new_val" >&5
     11960+        { echo "$as_me:1044:   current value: $ac_new_val" >&5
    1096411961 echo "$as_me:   current value: $ac_new_val" >&2;}
    1096511962         ac_cache_corrupted=:
    1096611963       fi;;
    10967 @@ -1054,9 +1059,9 @@
     11964@@ -1054,9 +1060,9 @@
    1096811965   fi
    1096911966 done
    1097011967 if $ac_cache_corrupted; then
    1097111968-  { echo "$as_me:1057: error: changes in the environment can compromise the build" >&5
    10972 +  { echo "$as_me:1062: error: changes in the environment can compromise the build" >&5
     11969+  { echo "$as_me:1063: error: changes in the environment can compromise the build" >&5
    1097311970 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    1097411971-  { { echo "$as_me:1059: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    10975 +  { { echo "$as_me:1064: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     11972+  { { echo "$as_me:1065: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
    1097611973 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
    1097711974    { (exit 1); exit 1; }; }
    1097811975 fi
    10979 @@ -1077,10 +1082,10 @@
     11976@@ -1077,10 +1083,10 @@
    1098011977 echo "#! $SHELL" >conftest.sh
    1098111978 echo  "exit 0"   >>conftest.sh
    1098211979 chmod +x conftest.sh
    1098311980-if { (echo "$as_me:1080: PATH=\".;.\"; conftest.sh") >&5
    10984 +if { (echo "$as_me:1085: PATH=\".;.\"; conftest.sh") >&5
     11981+if { (echo "$as_me:1086: PATH=\".;.\"; conftest.sh") >&5
    1098511982   (PATH=".;."; conftest.sh) 2>&5
    1098611983   ac_status=$?
    1098711984-  echo "$as_me:1083: \$? = $ac_status" >&5
    10988 +  echo "$as_me:1088: \$? = $ac_status" >&5
     11985+  echo "$as_me:1089: \$? = $ac_status" >&5
    1098911986   (exit $ac_status); }; then
    1099011987   ac_path_separator=';'
    1099111988 else
    10992 @@ -1093,7 +1098,7 @@
     11989@@ -1093,7 +1099,7 @@
    1099311990 
    1099411991 top_builddir=`pwd`
    1099511992 
    1099611993-echo "$as_me:1096: checking for egrep" >&5
    10997 +echo "$as_me:1101: checking for egrep" >&5
     11994+echo "$as_me:1102: checking for egrep" >&5
    1099811995 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    1099911996 if test "${ac_cv_prog_egrep+set}" = set; then
    1100011997   echo $ECHO_N "(cached) $ECHO_C" >&6
    11001 @@ -1103,11 +1108,11 @@
     11998@@ -1103,11 +1109,11 @@
    1100211999     else ac_cv_prog_egrep='egrep'
    1100312000     fi
    1100412001 fi
    1100512002-echo "$as_me:1106: result: $ac_cv_prog_egrep" >&5
    11006 +echo "$as_me:1111: result: $ac_cv_prog_egrep" >&5
     12003+echo "$as_me:1112: result: $ac_cv_prog_egrep" >&5
    1100712004 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    1100812005  EGREP=$ac_cv_prog_egrep
    1100912006 
    1101012007-test -z "$EGREP" && { { echo "$as_me:1110: error: No egrep program found" >&5
    11011 +test -z "$EGREP" && { { echo "$as_me:1115: error: No egrep program found" >&5
     12008+test -z "$EGREP" && { { echo "$as_me:1116: error: No egrep program found" >&5
    1101212009 echo "$as_me: error: No egrep program found" >&2;}
    1101312010    { (exit 1); exit 1; }; }
    1101412011 
    11015 @@ -1117,7 +1122,7 @@
     12012@@ -1117,7 +1123,7 @@
    1101612013 cf_cv_abi_version=${NCURSES_MAJOR}
    1101712014 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
    1101812015 cf_cv_timestamp=`date`
    1101912016-echo "$as_me:1120: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
    11020 +echo "$as_me:1125: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
     12017+echo "$as_me:1126: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
    1102112018 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
    1102212019 
    1102312020 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
    11024 @@ -1125,7 +1130,7 @@
     12021@@ -1125,7 +1131,7 @@
    1102512022 # Check whether --with-rel-version or --without-rel-version was given.
    1102612023 if test "${with_rel_version+set}" = set; then
    1102712024   withval="$with_rel_version"
    1102812025-  { echo "$as_me:1128: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
    11029 +  { echo "$as_me:1133: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
     12026+  { echo "$as_me:1134: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
    1103012027 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
    1103112028  cf_cv_rel_version=$withval
    1103212029 fi;
    11033 @@ -1138,13 +1143,13 @@
     12030@@ -1138,13 +1144,13 @@
    1103412031   [0-9]*) #(vi
    1103512032        ;;
    1103612033   *)
    1103712034-       { { echo "$as_me:1141: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
    11038 +       { { echo "$as_me:1146: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
     12035+       { { echo "$as_me:1147: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
    1103912036 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
    1104012037    { (exit 1); exit 1; }; }
     
    1104312040 else
    1104412041-  { { echo "$as_me:1147: error: Release major-version value is empty" >&5
    11045 +  { { echo "$as_me:1152: error: Release major-version value is empty" >&5
     12042+  { { echo "$as_me:1153: error: Release major-version value is empty" >&5
    1104612043 echo "$as_me: error: Release major-version value is empty" >&2;}
    1104712044    { (exit 1); exit 1; }; }
    1104812045 fi
    11049 @@ -1154,13 +1159,13 @@
     12046@@ -1154,13 +1160,13 @@
    1105012047   [0-9]*) #(vi
    1105112048        ;;
    1105212049   *)
    1105312050-       { { echo "$as_me:1157: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
    11054 +       { { echo "$as_me:1162: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
     12051+       { { echo "$as_me:1163: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
    1105512052 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
    1105612053    { (exit 1); exit 1; }; }
     
    1105912056 else
    1106012057-  { { echo "$as_me:1163: error: Release minor-version value is empty" >&5
    11061 +  { { echo "$as_me:1168: error: Release minor-version value is empty" >&5
     12058+  { { echo "$as_me:1169: error: Release minor-version value is empty" >&5
    1106212059 echo "$as_me: error: Release minor-version value is empty" >&2;}
    1106312060    { (exit 1); exit 1; }; }
    1106412061 fi
    11065 @@ -1170,7 +1175,7 @@
     12062@@ -1170,7 +1176,7 @@
    1106612063 # Check whether --with-abi-version or --without-abi-version was given.
    1106712064 if test "${with_abi_version+set}" = set; then
    1106812065   withval="$with_abi_version"
    1106912066-  { echo "$as_me:1173: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
    11070 +  { echo "$as_me:1178: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
     12067+  { echo "$as_me:1179: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
    1107112068 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
    1107212069  cf_cv_abi_version=$withval
    1107312070 fi;
    11074 @@ -1180,13 +1185,13 @@
     12071@@ -1180,13 +1186,13 @@
    1107512072   [0-9]*) #(vi
    1107612073        ;;
    1107712074   *)
    1107812075-       { { echo "$as_me:1183: error: ABI version is not a number: $cf_cv_abi_version" >&5
    11079 +       { { echo "$as_me:1188: error: ABI version is not a number: $cf_cv_abi_version" >&5
     12076+       { { echo "$as_me:1189: error: ABI version is not a number: $cf_cv_abi_version" >&5
    1108012077 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
    1108112078    { (exit 1); exit 1; }; }
     
    1108412081 else
    1108512082-  { { echo "$as_me:1189: error: ABI version value is empty" >&5
    11086 +  { { echo "$as_me:1194: error: ABI version value is empty" >&5
     12083+  { { echo "$as_me:1195: error: ABI version value is empty" >&5
    1108712084 echo "$as_me: error: ABI version value is empty" >&2;}
    1108812085    { (exit 1); exit 1; }; }
    1108912086 fi
    11090 @@ -1208,7 +1213,7 @@
     12087@@ -1208,7 +1214,7 @@
    1109112088   fi
    1109212089 done
    1109312090 if test -z "$ac_aux_dir"; then
    1109412091-  { { echo "$as_me:1211: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    11095 +  { { echo "$as_me:1216: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     12092+  { { echo "$as_me:1217: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    1109612093 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    1109712094    { (exit 1); exit 1; }; }
    1109812095 fi
    11099 @@ -1218,11 +1223,11 @@
     12096@@ -1218,11 +1224,11 @@
    1110012097 
    1110112098 # Make sure we can run config.sub.
    1110212099 $ac_config_sub sun4 >/dev/null 2>&1 ||
    1110312100-  { { echo "$as_me:1221: error: cannot run $ac_config_sub" >&5
    11104 +  { { echo "$as_me:1226: error: cannot run $ac_config_sub" >&5
     12101+  { { echo "$as_me:1227: error: cannot run $ac_config_sub" >&5
    1110512102 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    1110612103    { (exit 1); exit 1; }; }
    1110712104 
    1110812105-echo "$as_me:1225: checking build system type" >&5
    11109 +echo "$as_me:1230: checking build system type" >&5
     12106+echo "$as_me:1231: checking build system type" >&5
    1111012107 echo $ECHO_N "checking build system type... $ECHO_C" >&6
    1111112108 if test "${ac_cv_build+set}" = set; then
    1111212109   echo $ECHO_N "(cached) $ECHO_C" >&6
    11113 @@ -1231,23 +1236,23 @@
     12110@@ -1231,23 +1237,23 @@
    1111412111 test -z "$ac_cv_build_alias" &&
    1111512112   ac_cv_build_alias=`$ac_config_guess`
    1111612113 test -z "$ac_cv_build_alias" &&
    1111712114-  { { echo "$as_me:1234: error: cannot guess build type; you must specify one" >&5
    11118 +  { { echo "$as_me:1239: error: cannot guess build type; you must specify one" >&5
     12115+  { { echo "$as_me:1240: error: cannot guess build type; you must specify one" >&5
    1111912116 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    1112012117    { (exit 1); exit 1; }; }
    1112112118 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    1112212119-  { { echo "$as_me:1238: error: $ac_config_sub $ac_cv_build_alias failed." >&5
    11123 +  { { echo "$as_me:1243: error: $ac_config_sub $ac_cv_build_alias failed." >&5
     12120+  { { echo "$as_me:1244: error: $ac_config_sub $ac_cv_build_alias failed." >&5
    1112412121 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
    1112512122    { (exit 1); exit 1; }; }
     
    1112712124 fi
    1112812125-echo "$as_me:1243: result: $ac_cv_build" >&5
    11129 +echo "$as_me:1248: result: $ac_cv_build" >&5
     12126+echo "$as_me:1249: result: $ac_cv_build" >&5
    1113012127 echo "${ECHO_T}$ac_cv_build" >&6
    1113112128 build=$ac_cv_build
     
    1113512132 
    1113612133-echo "$as_me:1250: checking host system type" >&5
    11137 +echo "$as_me:1255: checking host system type" >&5
     12134+echo "$as_me:1256: checking host system type" >&5
    1113812135 echo $ECHO_N "checking host system type... $ECHO_C" >&6
    1113912136 if test "${ac_cv_host+set}" = set; then
    1114012137   echo $ECHO_N "(cached) $ECHO_C" >&6
    11141 @@ -1256,12 +1261,12 @@
     12138@@ -1256,12 +1262,12 @@
    1114212139 test -z "$ac_cv_host_alias" &&
    1114312140   ac_cv_host_alias=$ac_cv_build_alias
    1114412141 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
    1114512142-  { { echo "$as_me:1259: error: $ac_config_sub $ac_cv_host_alias failed" >&5
    11146 +  { { echo "$as_me:1264: error: $ac_config_sub $ac_cv_host_alias failed" >&5
     12143+  { { echo "$as_me:1265: error: $ac_config_sub $ac_cv_host_alias failed" >&5
    1114712144 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
    1114812145    { (exit 1); exit 1; }; }
     
    1115012147 fi
    1115112148-echo "$as_me:1264: result: $ac_cv_host" >&5
    11152 +echo "$as_me:1269: result: $ac_cv_host" >&5
     12149+echo "$as_me:1270: result: $ac_cv_host" >&5
    1115312150 echo "${ECHO_T}$ac_cv_host" >&6
    1115412151 host=$ac_cv_host
    1115512152 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    11156 @@ -1269,7 +1274,7 @@
     12153@@ -1269,7 +1275,7 @@
    1115712154 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1115812155 
    1115912156 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
    1116012157-       echo "$as_me:1272: checking target system type" >&5
    11161 +       echo "$as_me:1277: checking target system type" >&5
     12158+       echo "$as_me:1278: checking target system type" >&5
    1116212159 echo $ECHO_N "checking target system type... $ECHO_C" >&6
    1116312160 if test "${ac_cv_target+set}" = set; then
    1116412161   echo $ECHO_N "(cached) $ECHO_C" >&6
    11165 @@ -1278,12 +1283,12 @@
     12162@@ -1278,12 +1284,12 @@
    1116612163 test "x$ac_cv_target_alias" = "x" &&
    1116712164   ac_cv_target_alias=$ac_cv_host_alias
    1116812165 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
    1116912166-  { { echo "$as_me:1281: error: $ac_config_sub $ac_cv_target_alias failed" >&5
    11170 +  { { echo "$as_me:1286: error: $ac_config_sub $ac_cv_target_alias failed" >&5
     12167+  { { echo "$as_me:1287: error: $ac_config_sub $ac_cv_target_alias failed" >&5
    1117112168 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
    1117212169    { (exit 1); exit 1; }; }
     
    1117412171 fi
    1117512172-echo "$as_me:1286: result: $ac_cv_target" >&5
    11176 +echo "$as_me:1291: result: $ac_cv_target" >&5
     12173+echo "$as_me:1292: result: $ac_cv_target" >&5
    1117712174 echo "${ECHO_T}$ac_cv_target" >&6
    1117812175 target=$ac_cv_target
    1117912176 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    11180 @@ -1314,13 +1319,13 @@
     12177@@ -1314,13 +1320,13 @@
    1118112178 fi
    1118212179 
    1118312180 test -z "$system_name" && system_name="$cf_cv_system_name"
    1118412181-test -n "$cf_cv_system_name" && echo "$as_me:1317: result: Configuring for $cf_cv_system_name" >&5
    11185 +test -n "$cf_cv_system_name" && echo "$as_me:1322: result: Configuring for $cf_cv_system_name" >&5
     12182+test -n "$cf_cv_system_name" && echo "$as_me:1323: result: Configuring for $cf_cv_system_name" >&5
    1118612183 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
    1118712184 
    1118812185 if test ".$system_name" != ".$cf_cv_system_name" ; then
    1118912186-       echo "$as_me:1321: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
    11190 +       echo "$as_me:1326: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
     12187+       echo "$as_me:1327: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
    1119112188 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
    1119212189-       { { echo "$as_me:1323: error: \"Please remove config.cache and try again.\"" >&5
    11193 +       { { echo "$as_me:1328: error: \"Please remove config.cache and try again.\"" >&5
     12190+       { { echo "$as_me:1329: error: \"Please remove config.cache and try again.\"" >&5
    1119412191 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
    1119512192    { (exit 1); exit 1; }; }
    1119612193 fi
    11197 @@ -1328,7 +1333,7 @@
     12194@@ -1328,7 +1334,7 @@
    1119812195 # Check whether --with-system-type or --without-system-type was given.
    1119912196 if test "${with_system_type+set}" = set; then
    1120012197   withval="$with_system_type"
    1120112198-  { echo "$as_me:1331: WARNING: overriding system type to $withval" >&5
    11202 +  { echo "$as_me:1336: WARNING: overriding system type to $withval" >&5
     12199+  { echo "$as_me:1337: WARNING: overriding system type to $withval" >&5
    1120312200 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
    1120412201  cf_cv_system_name=$withval
    1120512202 fi;
    11206 @@ -1338,7 +1343,7 @@
     12203@@ -1338,7 +1344,7 @@
    1120712204 
    1120812205 ###    Default install-location
    1120912206 
    1121012207-echo "$as_me:1341: checking for prefix" >&5
    11211 +echo "$as_me:1346: checking for prefix" >&5
     12208+echo "$as_me:1347: checking for prefix" >&5
    1121212209 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
    1121312210 if test "x$prefix" = "xNONE" ; then
    1121412211        case "$cf_cv_system_name" in
    11215 @@ -1350,11 +1355,11 @@
     12212@@ -1350,11 +1356,11 @@
    1121612213                ;;
    1121712214        esac
    1121812215 fi
    1121912216-echo "$as_me:1353: result: $prefix" >&5
    11220 +echo "$as_me:1358: result: $prefix" >&5
     12217+echo "$as_me:1359: result: $prefix" >&5
    1122112218 echo "${ECHO_T}$prefix" >&6
    1122212219 
    1122312220 if test "x$prefix" = "xNONE" ; then
    1122412221-echo "$as_me:1357: checking for default include-directory" >&5
    11225 +echo "$as_me:1362: checking for default include-directory" >&5
     12222+echo "$as_me:1363: checking for default include-directory" >&5
    1122612223 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
    1122712224 test -n "$verbose" && echo 1>&6
    1122812225 for cf_symbol in \
    11229 @@ -1377,7 +1382,7 @@
     12226@@ -1377,7 +1383,7 @@
    1123012227        fi
    1123112228        test -n "$verbose"  && echo "   tested $cf_dir" 1>&6
    1123212229 done
    1123312230-echo "$as_me:1380: result: $includedir" >&5
    11234 +echo "$as_me:1385: result: $includedir" >&5
     12231+echo "$as_me:1386: result: $includedir" >&5
    1123512232 echo "${ECHO_T}$includedir" >&6
    1123612233 fi
    1123712234 
    11238 @@ -1391,7 +1396,7 @@
     12235@@ -1391,7 +1397,7 @@
    1123912236 if test -n "$ac_tool_prefix"; then
    1124012237   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    1124112238 set dummy ${ac_tool_prefix}gcc; ac_word=$2
    1124212239-echo "$as_me:1394: checking for $ac_word" >&5
    11243 +echo "$as_me:1399: checking for $ac_word" >&5
     12240+echo "$as_me:1400: checking for $ac_word" >&5
    1124412241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1124512242 if test "${ac_cv_prog_CC+set}" = set; then
    1124612243   echo $ECHO_N "(cached) $ECHO_C" >&6
    11247 @@ -1406,7 +1411,7 @@
     12244@@ -1406,7 +1412,7 @@
    1124812245   test -z "$ac_dir" && ac_dir=.
    1124912246   $as_executable_p "$ac_dir/$ac_word" || continue
    1125012247 ac_cv_prog_CC="${ac_tool_prefix}gcc"
    1125112248-echo "$as_me:1409: found $ac_dir/$ac_word" >&5
    11252 +echo "$as_me:1414: found $ac_dir/$ac_word" >&5
     12249+echo "$as_me:1415: found $ac_dir/$ac_word" >&5
    1125312250 break
    1125412251 done
    1125512252 
    11256 @@ -1414,10 +1419,10 @@
     12253@@ -1414,10 +1420,10 @@
    1125712254 fi
    1125812255 CC=$ac_cv_prog_CC
    1125912256 if test -n "$CC"; then
    1126012257-  echo "$as_me:1417: result: $CC" >&5
    11261 +  echo "$as_me:1422: result: $CC" >&5
     12258+  echo "$as_me:1423: result: $CC" >&5
    1126212259 echo "${ECHO_T}$CC" >&6
    1126312260 else
    1126412261-  echo "$as_me:1420: result: no" >&5
    11265 +  echo "$as_me:1425: result: no" >&5
     12262+  echo "$as_me:1426: result: no" >&5
    1126612263 echo "${ECHO_T}no" >&6
    1126712264 fi
    1126812265 
    11269 @@ -1426,7 +1431,7 @@
     12266@@ -1426,7 +1432,7 @@
    1127012267   ac_ct_CC=$CC
    1127112268   # Extract the first word of "gcc", so it can be a program name with args.
    1127212269 set dummy gcc; ac_word=$2
    1127312270-echo "$as_me:1429: checking for $ac_word" >&5
    11274 +echo "$as_me:1434: checking for $ac_word" >&5
     12271+echo "$as_me:1435: checking for $ac_word" >&5
    1127512272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1127612273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1127712274   echo $ECHO_N "(cached) $ECHO_C" >&6
    11278 @@ -1441,7 +1446,7 @@
     12275@@ -1441,7 +1447,7 @@
    1127912276   test -z "$ac_dir" && ac_dir=.
    1128012277   $as_executable_p "$ac_dir/$ac_word" || continue
    1128112278 ac_cv_prog_ac_ct_CC="gcc"
    1128212279-echo "$as_me:1444: found $ac_dir/$ac_word" >&5
    11283 +echo "$as_me:1449: found $ac_dir/$ac_word" >&5
     12280+echo "$as_me:1450: found $ac_dir/$ac_word" >&5
    1128412281 break
    1128512282 done
    1128612283 
    11287 @@ -1449,10 +1454,10 @@
     12284@@ -1449,10 +1455,10 @@
    1128812285 fi
    1128912286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1129012287 if test -n "$ac_ct_CC"; then
    1129112288-  echo "$as_me:1452: result: $ac_ct_CC" >&5
    11292 +  echo "$as_me:1457: result: $ac_ct_CC" >&5
     12289+  echo "$as_me:1458: result: $ac_ct_CC" >&5
    1129312290 echo "${ECHO_T}$ac_ct_CC" >&6
    1129412291 else
    1129512292-  echo "$as_me:1455: result: no" >&5
    11296 +  echo "$as_me:1460: result: no" >&5
     12293+  echo "$as_me:1461: result: no" >&5
    1129712294 echo "${ECHO_T}no" >&6
    1129812295 fi
    1129912296 
    11300 @@ -1465,7 +1470,7 @@
     12297@@ -1465,7 +1471,7 @@
    1130112298   if test -n "$ac_tool_prefix"; then
    1130212299   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    1130312300 set dummy ${ac_tool_prefix}cc; ac_word=$2
    1130412301-echo "$as_me:1468: checking for $ac_word" >&5
    11305 +echo "$as_me:1473: checking for $ac_word" >&5
     12302+echo "$as_me:1474: checking for $ac_word" >&5
    1130612303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1130712304 if test "${ac_cv_prog_CC+set}" = set; then
    1130812305   echo $ECHO_N "(cached) $ECHO_C" >&6
    11309 @@ -1480,7 +1485,7 @@
     12306@@ -1480,7 +1486,7 @@
    1131012307   test -z "$ac_dir" && ac_dir=.
    1131112308   $as_executable_p "$ac_dir/$ac_word" || continue
    1131212309 ac_cv_prog_CC="${ac_tool_prefix}cc"
    1131312310-echo "$as_me:1483: found $ac_dir/$ac_word" >&5
    11314 +echo "$as_me:1488: found $ac_dir/$ac_word" >&5
     12311+echo "$as_me:1489: found $ac_dir/$ac_word" >&5
    1131512312 break
    1131612313 done
    1131712314 
    11318 @@ -1488,10 +1493,10 @@
     12315@@ -1488,10 +1494,10 @@
    1131912316 fi
    1132012317 CC=$ac_cv_prog_CC
    1132112318 if test -n "$CC"; then
    1132212319-  echo "$as_me:1491: result: $CC" >&5
    11323 +  echo "$as_me:1496: result: $CC" >&5
     12320+  echo "$as_me:1497: result: $CC" >&5
    1132412321 echo "${ECHO_T}$CC" >&6
    1132512322 else
    1132612323-  echo "$as_me:1494: result: no" >&5
    11327 +  echo "$as_me:1499: result: no" >&5
     12324+  echo "$as_me:1500: result: no" >&5
    1132812325 echo "${ECHO_T}no" >&6
    1132912326 fi
    1133012327 
    11331 @@ -1500,7 +1505,7 @@
     12328@@ -1500,7 +1506,7 @@
    1133212329   ac_ct_CC=$CC
    1133312330   # Extract the first word of "cc", so it can be a program name with args.
    1133412331 set dummy cc; ac_word=$2
    1133512332-echo "$as_me:1503: checking for $ac_word" >&5
    11336 +echo "$as_me:1508: checking for $ac_word" >&5
     12333+echo "$as_me:1509: checking for $ac_word" >&5
    1133712334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1133812335 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1133912336   echo $ECHO_N "(cached) $ECHO_C" >&6
    11340 @@ -1515,7 +1520,7 @@
     12337@@ -1515,7 +1521,7 @@
    1134112338   test -z "$ac_dir" && ac_dir=.
    1134212339   $as_executable_p "$ac_dir/$ac_word" || continue
    1134312340 ac_cv_prog_ac_ct_CC="cc"
    1134412341-echo "$as_me:1518: found $ac_dir/$ac_word" >&5
    11345 +echo "$as_me:1523: found $ac_dir/$ac_word" >&5
     12342+echo "$as_me:1524: found $ac_dir/$ac_word" >&5
    1134612343 break
    1134712344 done
    1134812345 
    11349 @@ -1523,10 +1528,10 @@
     12346@@ -1523,10 +1529,10 @@
    1135012347 fi
    1135112348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1135212349 if test -n "$ac_ct_CC"; then
    1135312350-  echo "$as_me:1526: result: $ac_ct_CC" >&5
    11354 +  echo "$as_me:1531: result: $ac_ct_CC" >&5
     12351+  echo "$as_me:1532: result: $ac_ct_CC" >&5
    1135512352 echo "${ECHO_T}$ac_ct_CC" >&6
    1135612353 else
    1135712354-  echo "$as_me:1529: result: no" >&5
    11358 +  echo "$as_me:1534: result: no" >&5
     12355+  echo "$as_me:1535: result: no" >&5
    1135912356 echo "${ECHO_T}no" >&6
    1136012357 fi
    1136112358 
    11362 @@ -1539,7 +1544,7 @@
     12359@@ -1539,7 +1545,7 @@
    1136312360 if test -z "$CC"; then
    1136412361   # Extract the first word of "cc", so it can be a program name with args.
    1136512362 set dummy cc; ac_word=$2
    1136612363-echo "$as_me:1542: checking for $ac_word" >&5
    11367 +echo "$as_me:1547: checking for $ac_word" >&5
     12364+echo "$as_me:1548: checking for $ac_word" >&5
    1136812365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1136912366 if test "${ac_cv_prog_CC+set}" = set; then
    1137012367   echo $ECHO_N "(cached) $ECHO_C" >&6
    11371 @@ -1559,7 +1564,7 @@
     12368@@ -1559,7 +1565,7 @@
    1137212369   continue
    1137312370 fi
    1137412371 ac_cv_prog_CC="cc"
    1137512372-echo "$as_me:1562: found $ac_dir/$ac_word" >&5
    11376 +echo "$as_me:1567: found $ac_dir/$ac_word" >&5
     12373+echo "$as_me:1568: found $ac_dir/$ac_word" >&5
    1137712374 break
    1137812375 done
    1137912376 
    11380 @@ -1581,10 +1586,10 @@
     12377@@ -1581,10 +1587,10 @@
    1138112378 fi
    1138212379 CC=$ac_cv_prog_CC
    1138312380 if test -n "$CC"; then
    1138412381-  echo "$as_me:1584: result: $CC" >&5
    11385 +  echo "$as_me:1589: result: $CC" >&5
     12382+  echo "$as_me:1590: result: $CC" >&5
    1138612383 echo "${ECHO_T}$CC" >&6
    1138712384 else
    1138812385-  echo "$as_me:1587: result: no" >&5
    11389 +  echo "$as_me:1592: result: no" >&5
     12386+  echo "$as_me:1593: result: no" >&5
    1139012387 echo "${ECHO_T}no" >&6
    1139112388 fi
    1139212389 
    11393 @@ -1595,7 +1600,7 @@
     12390@@ -1595,7 +1601,7 @@
    1139412391   do
    1139512392     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    1139612393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1139712394-echo "$as_me:1598: checking for $ac_word" >&5
    11398 +echo "$as_me:1603: checking for $ac_word" >&5
     12395+echo "$as_me:1604: checking for $ac_word" >&5
    1139912396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1140012397 if test "${ac_cv_prog_CC+set}" = set; then
    1140112398   echo $ECHO_N "(cached) $ECHO_C" >&6
    11402 @@ -1610,7 +1615,7 @@
     12399@@ -1610,7 +1616,7 @@
    1140312400   test -z "$ac_dir" && ac_dir=.
    1140412401   $as_executable_p "$ac_dir/$ac_word" || continue
    1140512402 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    1140612403-echo "$as_me:1613: found $ac_dir/$ac_word" >&5
    11407 +echo "$as_me:1618: found $ac_dir/$ac_word" >&5
     12404+echo "$as_me:1619: found $ac_dir/$ac_word" >&5
    1140812405 break
    1140912406 done
    1141012407 
    11411 @@ -1618,10 +1623,10 @@
     12408@@ -1618,10 +1624,10 @@
    1141212409 fi
    1141312410 CC=$ac_cv_prog_CC
    1141412411 if test -n "$CC"; then
    1141512412-  echo "$as_me:1621: result: $CC" >&5
    11416 +  echo "$as_me:1626: result: $CC" >&5
     12413+  echo "$as_me:1627: result: $CC" >&5
    1141712414 echo "${ECHO_T}$CC" >&6
    1141812415 else
    1141912416-  echo "$as_me:1624: result: no" >&5
    11420 +  echo "$as_me:1629: result: no" >&5
     12417+  echo "$as_me:1630: result: no" >&5
    1142112418 echo "${ECHO_T}no" >&6
    1142212419 fi
    1142312420 
    11424 @@ -1634,7 +1639,7 @@
     12421@@ -1634,7 +1640,7 @@
    1142512422 do
    1142612423   # Extract the first word of "$ac_prog", so it can be a program name with args.
    1142712424 set dummy $ac_prog; ac_word=$2
    1142812425-echo "$as_me:1637: checking for $ac_word" >&5
    11429 +echo "$as_me:1642: checking for $ac_word" >&5
     12426+echo "$as_me:1643: checking for $ac_word" >&5
    1143012427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1143112428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    1143212429   echo $ECHO_N "(cached) $ECHO_C" >&6
    11433 @@ -1649,7 +1654,7 @@
     12430@@ -1649,7 +1655,7 @@
    1143412431   test -z "$ac_dir" && ac_dir=.
    1143512432   $as_executable_p "$ac_dir/$ac_word" || continue
    1143612433 ac_cv_prog_ac_ct_CC="$ac_prog"
    1143712434-echo "$as_me:1652: found $ac_dir/$ac_word" >&5
    11438 +echo "$as_me:1657: found $ac_dir/$ac_word" >&5
     12435+echo "$as_me:1658: found $ac_dir/$ac_word" >&5
    1143912436 break
    1144012437 done
    1144112438 
    11442 @@ -1657,10 +1662,10 @@
     12439@@ -1657,10 +1663,10 @@
    1144312440 fi
    1144412441 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    1144512442 if test -n "$ac_ct_CC"; then
    1144612443-  echo "$as_me:1660: result: $ac_ct_CC" >&5
    11447 +  echo "$as_me:1665: result: $ac_ct_CC" >&5
     12444+  echo "$as_me:1666: result: $ac_ct_CC" >&5
    1144812445 echo "${ECHO_T}$ac_ct_CC" >&6
    1144912446 else
    1145012447-  echo "$as_me:1663: result: no" >&5
    11451 +  echo "$as_me:1668: result: no" >&5
     12448+  echo "$as_me:1669: result: no" >&5
    1145212449 echo "${ECHO_T}no" >&6
    1145312450 fi
    1145412451 
    11455 @@ -1672,32 +1677,32 @@
     12452@@ -1672,32 +1678,32 @@
    1145612453 
    1145712454 fi
    1145812455 
    1145912456-test -z "$CC" && { { echo "$as_me:1675: error: no acceptable cc found in \$PATH" >&5
    11460 +test -z "$CC" && { { echo "$as_me:1680: error: no acceptable cc found in \$PATH" >&5
     12457+test -z "$CC" && { { echo "$as_me:1681: error: no acceptable cc found in \$PATH" >&5
    1146112458 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
    1146212459    { (exit 1); exit 1; }; }
     
    1146412461 # Provide some information about the compiler.
    1146512462-echo "$as_me:1680:" \
    11466 +echo "$as_me:1685:" \
     12463+echo "$as_me:1686:" \
    1146712464      "checking for C compiler version" >&5
    1146812465 ac_compiler=`set X $ac_compile; echo $2`
    1146912466-{ (eval echo "$as_me:1683: \"$ac_compiler --version </dev/null >&5\"") >&5
    11470 +{ (eval echo "$as_me:1688: \"$ac_compiler --version </dev/null >&5\"") >&5
     12467+{ (eval echo "$as_me:1689: \"$ac_compiler --version </dev/null >&5\"") >&5
    1147112468   (eval $ac_compiler --version </dev/null >&5) 2>&5
    1147212469   ac_status=$?
    1147312470-  echo "$as_me:1686: \$? = $ac_status" >&5
    11474 +  echo "$as_me:1691: \$? = $ac_status" >&5
     12471+  echo "$as_me:1692: \$? = $ac_status" >&5
    1147512472   (exit $ac_status); }
    1147612473-{ (eval echo "$as_me:1688: \"$ac_compiler -v </dev/null >&5\"") >&5
    11477 +{ (eval echo "$as_me:1693: \"$ac_compiler -v </dev/null >&5\"") >&5
     12474+{ (eval echo "$as_me:1694: \"$ac_compiler -v </dev/null >&5\"") >&5
    1147812475   (eval $ac_compiler -v </dev/null >&5) 2>&5
    1147912476   ac_status=$?
    1148012477-  echo "$as_me:1691: \$? = $ac_status" >&5
    11481 +  echo "$as_me:1696: \$? = $ac_status" >&5
     12478+  echo "$as_me:1697: \$? = $ac_status" >&5
    1148212479   (exit $ac_status); }
    1148312480-{ (eval echo "$as_me:1693: \"$ac_compiler -V </dev/null >&5\"") >&5
    11484 +{ (eval echo "$as_me:1698: \"$ac_compiler -V </dev/null >&5\"") >&5
     12481+{ (eval echo "$as_me:1699: \"$ac_compiler -V </dev/null >&5\"") >&5
    1148512482   (eval $ac_compiler -V </dev/null >&5) 2>&5
    1148612483   ac_status=$?
    1148712484-  echo "$as_me:1696: \$? = $ac_status" >&5
    11488 +  echo "$as_me:1701: \$? = $ac_status" >&5
     12485+  echo "$as_me:1702: \$? = $ac_status" >&5
    1148912486   (exit $ac_status); }
    1149012487 
    1149112488 cat >conftest.$ac_ext <<_ACEOF
    1149212489-#line 1700 "configure"
    11493 +#line 1705 "configure"
     12490+#line 1706 "configure"
    1149412491 #include "confdefs.h"
    1149512492 
    1149612493 int
    11497 @@ -1713,13 +1718,13 @@
     12494@@ -1713,13 +1719,13 @@
    1149812495 # Try to create an executable without -o first, disregard a.out.
    1149912496 # It will help us diagnose broken compilers, and finding out an intuition
    1150012497 # of exeext.
    1150112498-echo "$as_me:1716: checking for C compiler default output" >&5
    11502 +echo "$as_me:1721: checking for C compiler default output" >&5
     12499+echo "$as_me:1722: checking for C compiler default output" >&5
    1150312500 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
    1150412501 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    1150512502-if { (eval echo "$as_me:1719: \"$ac_link_default\"") >&5
    11506 +if { (eval echo "$as_me:1724: \"$ac_link_default\"") >&5
     12503+if { (eval echo "$as_me:1725: \"$ac_link_default\"") >&5
    1150712504   (eval $ac_link_default) 2>&5
    1150812505   ac_status=$?
    1150912506-  echo "$as_me:1722: \$? = $ac_status" >&5
    11510 +  echo "$as_me:1727: \$? = $ac_status" >&5
     12507+  echo "$as_me:1728: \$? = $ac_status" >&5
    1151112508   (exit $ac_status); }; then
    1151212509   # Find the output, starting from the most likely.  This scheme is
    1151312510 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
    11514 @@ -1742,34 +1747,34 @@
     12511@@ -1742,34 +1748,34 @@
    1151512512 else
    1151612513   echo "$as_me: failed program was:" >&5
    1151712514 cat conftest.$ac_ext >&5
    1151812515-{ { echo "$as_me:1745: error: C compiler cannot create executables" >&5
    11519 +{ { echo "$as_me:1750: error: C compiler cannot create executables" >&5
     12516+{ { echo "$as_me:1751: error: C compiler cannot create executables" >&5
    1152012517 echo "$as_me: error: C compiler cannot create executables" >&2;}
    1152112518    { (exit 77); exit 77; }; }
     
    1152412521 ac_exeext=$ac_cv_exeext
    1152512522-echo "$as_me:1751: result: $ac_file" >&5
    11526 +echo "$as_me:1756: result: $ac_file" >&5
     12523+echo "$as_me:1757: result: $ac_file" >&5
    1152712524 echo "${ECHO_T}$ac_file" >&6
    1152812525 
     
    1153012527 # the compiler is broken, or we cross compile.
    1153112528-echo "$as_me:1756: checking whether the C compiler works" >&5
    11532 +echo "$as_me:1761: checking whether the C compiler works" >&5
     12529+echo "$as_me:1762: checking whether the C compiler works" >&5
    1153312530 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
    1153412531 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     
    1153712534   if { ac_try='./$ac_file'
    1153812535-  { (eval echo "$as_me:1762: \"$ac_try\"") >&5
    11539 +  { (eval echo "$as_me:1767: \"$ac_try\"") >&5
     12536+  { (eval echo "$as_me:1768: \"$ac_try\"") >&5
    1154012537   (eval $ac_try) 2>&5
    1154112538   ac_status=$?
    1154212539-  echo "$as_me:1765: \$? = $ac_status" >&5
    11543 +  echo "$as_me:1770: \$? = $ac_status" >&5
     12540+  echo "$as_me:1771: \$? = $ac_status" >&5
    1154412541   (exit $ac_status); }; }; then
    1154512542     cross_compiling=no
     
    1154912546     else
    1155012547-       { { echo "$as_me:1772: error: cannot run C compiled programs.
    11551 +       { { echo "$as_me:1777: error: cannot run C compiled programs.
     12548+       { { echo "$as_me:1778: error: cannot run C compiled programs.
    1155212549 If you meant to cross compile, use \`--host'." >&5
    1155312550 echo "$as_me: error: cannot run C compiled programs.
    1155412551 If you meant to cross compile, use \`--host'." >&2;}
    11555 @@ -1777,24 +1782,24 @@
     12552@@ -1777,24 +1783,24 @@
    1155612553     fi
    1155712554   fi
    1155812555 fi
    1155912556-echo "$as_me:1780: result: yes" >&5
    11560 +echo "$as_me:1785: result: yes" >&5
     12557+echo "$as_me:1786: result: yes" >&5
    1156112558 echo "${ECHO_T}yes" >&6
    1156212559 
     
    1156612563 # the compiler is broken, or we cross compile.
    1156712564-echo "$as_me:1787: checking whether we are cross compiling" >&5
    11568 +echo "$as_me:1792: checking whether we are cross compiling" >&5
     12565+echo "$as_me:1793: checking whether we are cross compiling" >&5
    1156912566 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
    1157012567-echo "$as_me:1789: result: $cross_compiling" >&5
    11571 +echo "$as_me:1794: result: $cross_compiling" >&5
     12568+echo "$as_me:1795: result: $cross_compiling" >&5
    1157212569 echo "${ECHO_T}$cross_compiling" >&6
    1157312570 
    1157412571-echo "$as_me:1792: checking for executable suffix" >&5
    11575 +echo "$as_me:1797: checking for executable suffix" >&5
     12572+echo "$as_me:1798: checking for executable suffix" >&5
    1157612573 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
    1157712574-if { (eval echo "$as_me:1794: \"$ac_link\"") >&5
    11578 +if { (eval echo "$as_me:1799: \"$ac_link\"") >&5
     12575+if { (eval echo "$as_me:1800: \"$ac_link\"") >&5
    1157912576   (eval $ac_link) 2>&5
    1158012577   ac_status=$?
    1158112578-  echo "$as_me:1797: \$? = $ac_status" >&5
    11582 +  echo "$as_me:1802: \$? = $ac_status" >&5
     12579+  echo "$as_me:1803: \$? = $ac_status" >&5
    1158312580   (exit $ac_status); }; then
    1158412581   # If both `conftest.exe' and `conftest' are `present' (well, observable)
    1158512582 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
    11586 @@ -1810,25 +1815,25 @@
     12583@@ -1810,25 +1816,25 @@
    1158712584   esac
    1158812585 done
    1158912586 else
    1159012587-  { { echo "$as_me:1813: error: cannot compute EXEEXT: cannot compile and link" >&5
    11591 +  { { echo "$as_me:1818: error: cannot compute EXEEXT: cannot compile and link" >&5
     12588+  { { echo "$as_me:1819: error: cannot compute EXEEXT: cannot compile and link" >&5
    1159212589 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
    1159312590    { (exit 1); exit 1; }; }
     
    1159612593 rm -f conftest$ac_cv_exeext
    1159712594-echo "$as_me:1819: result: $ac_cv_exeext" >&5
    11598 +echo "$as_me:1824: result: $ac_cv_exeext" >&5
     12595+echo "$as_me:1825: result: $ac_cv_exeext" >&5
    1159912596 echo "${ECHO_T}$ac_cv_exeext" >&6
    1160012597 
     
    1160312600 ac_exeext=$EXEEXT
    1160412601-echo "$as_me:1825: checking for object suffix" >&5
    11605 +echo "$as_me:1830: checking for object suffix" >&5
     12602+echo "$as_me:1831: checking for object suffix" >&5
    1160612603 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
    1160712604 if test "${ac_cv_objext+set}" = set; then
     
    1161012607   cat >conftest.$ac_ext <<_ACEOF
    1161112608-#line 1831 "configure"
    11612 +#line 1836 "configure"
     12609+#line 1837 "configure"
    1161312610 #include "confdefs.h"
    1161412611 
    1161512612 int
    11616 @@ -1840,10 +1845,10 @@
     12613@@ -1840,10 +1846,10 @@
    1161712614 }
    1161812615 _ACEOF
    1161912616 rm -f conftest.o conftest.obj
    1162012617-if { (eval echo "$as_me:1843: \"$ac_compile\"") >&5
    11621 +if { (eval echo "$as_me:1848: \"$ac_compile\"") >&5
     12618+if { (eval echo "$as_me:1849: \"$ac_compile\"") >&5
    1162212619   (eval $ac_compile) 2>&5
    1162312620   ac_status=$?
    1162412621-  echo "$as_me:1846: \$? = $ac_status" >&5
    11625 +  echo "$as_me:1851: \$? = $ac_status" >&5
     12622+  echo "$as_me:1852: \$? = $ac_status" >&5
    1162612623   (exit $ac_status); }; then
    1162712624   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
    1162812625   case $ac_file in
    11629 @@ -1855,24 +1860,24 @@
     12626@@ -1855,24 +1861,24 @@
    1163012627 else
    1163112628   echo "$as_me: failed program was:" >&5
    1163212629 cat conftest.$ac_ext >&5
    1163312630-{ { echo "$as_me:1858: error: cannot compute OBJEXT: cannot compile" >&5
    11634 +{ { echo "$as_me:1863: error: cannot compute OBJEXT: cannot compile" >&5
     12631+{ { echo "$as_me:1864: error: cannot compute OBJEXT: cannot compile" >&5
    1163512632 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
    1163612633    { (exit 1); exit 1; }; }
     
    1164012637 fi
    1164112638-echo "$as_me:1865: result: $ac_cv_objext" >&5
    11642 +echo "$as_me:1870: result: $ac_cv_objext" >&5
     12639+echo "$as_me:1871: result: $ac_cv_objext" >&5
    1164312640 echo "${ECHO_T}$ac_cv_objext" >&6
    1164412641 OBJEXT=$ac_cv_objext
    1164512642 ac_objext=$OBJEXT
    1164612643-echo "$as_me:1869: checking whether we are using the GNU C compiler" >&5
    11647 +echo "$as_me:1874: checking whether we are using the GNU C compiler" >&5
     12644+echo "$as_me:1875: checking whether we are using the GNU C compiler" >&5
    1164812645 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
    1164912646 if test "${ac_cv_c_compiler_gnu+set}" = set; then
     
    1165212649   cat >conftest.$ac_ext <<_ACEOF
    1165312650-#line 1875 "configure"
    11654 +#line 1880 "configure"
     12651+#line 1881 "configure"
    1165512652 #include "confdefs.h"
    1165612653 
    1165712654 int
    11658 @@ -1887,16 +1892,16 @@
     12655@@ -1887,16 +1893,16 @@
    1165912656 }
    1166012657 _ACEOF
    1166112658 rm -f conftest.$ac_objext
    1166212659-if { (eval echo "$as_me:1890: \"$ac_compile\"") >&5
    11663 +if { (eval echo "$as_me:1895: \"$ac_compile\"") >&5
     12660+if { (eval echo "$as_me:1896: \"$ac_compile\"") >&5
    1166412661   (eval $ac_compile) 2>&5
    1166512662   ac_status=$?
    1166612663-  echo "$as_me:1893: \$? = $ac_status" >&5
    11667 +  echo "$as_me:1898: \$? = $ac_status" >&5
     12664+  echo "$as_me:1899: \$? = $ac_status" >&5
    1166812665   (exit $ac_status); } &&
    1166912666          { ac_try='test -s conftest.$ac_objext'
    1167012667-  { (eval echo "$as_me:1896: \"$ac_try\"") >&5
    11671 +  { (eval echo "$as_me:1901: \"$ac_try\"") >&5
     12668+  { (eval echo "$as_me:1902: \"$ac_try\"") >&5
    1167212669   (eval $ac_try) 2>&5
    1167312670   ac_status=$?
    1167412671-  echo "$as_me:1899: \$? = $ac_status" >&5
    11675 +  echo "$as_me:1904: \$? = $ac_status" >&5
     12672+  echo "$as_me:1905: \$? = $ac_status" >&5
    1167612673   (exit $ac_status); }; }; then
    1167712674   ac_compiler_gnu=yes
    1167812675 else
    11679 @@ -1908,19 +1913,19 @@
     12676@@ -1908,19 +1914,19 @@
    1168012677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
    1168112678 
    1168212679 fi
    1168312680-echo "$as_me:1911: result: $ac_cv_c_compiler_gnu" >&5
    11684 +echo "$as_me:1916: result: $ac_cv_c_compiler_gnu" >&5
     12681+echo "$as_me:1917: result: $ac_cv_c_compiler_gnu" >&5
    1168512682 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
    1168612683 GCC=`test $ac_compiler_gnu = yes && echo yes`
     
    1168912686 CFLAGS="-g"
    1169012687-echo "$as_me:1917: checking whether $CC accepts -g" >&5
    11691 +echo "$as_me:1922: checking whether $CC accepts -g" >&5
     12688+echo "$as_me:1923: checking whether $CC accepts -g" >&5
    1169212689 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
    1169312690 if test "${ac_cv_prog_cc_g+set}" = set; then
     
    1169612693   cat >conftest.$ac_ext <<_ACEOF
    1169712694-#line 1923 "configure"
    11698 +#line 1928 "configure"
     12695+#line 1929 "configure"
    1169912696 #include "confdefs.h"
    1170012697 
    1170112698 int
    11702 @@ -1932,16 +1937,16 @@
     12699@@ -1932,16 +1938,16 @@
    1170312700 }
    1170412701 _ACEOF
    1170512702 rm -f conftest.$ac_objext
    1170612703-if { (eval echo "$as_me:1935: \"$ac_compile\"") >&5
    11707 +if { (eval echo "$as_me:1940: \"$ac_compile\"") >&5
     12704+if { (eval echo "$as_me:1941: \"$ac_compile\"") >&5
    1170812705   (eval $ac_compile) 2>&5
    1170912706   ac_status=$?
    1171012707-  echo "$as_me:1938: \$? = $ac_status" >&5
    11711 +  echo "$as_me:1943: \$? = $ac_status" >&5
     12708+  echo "$as_me:1944: \$? = $ac_status" >&5
    1171212709   (exit $ac_status); } &&
    1171312710          { ac_try='test -s conftest.$ac_objext'
    1171412711-  { (eval echo "$as_me:1941: \"$ac_try\"") >&5
    11715 +  { (eval echo "$as_me:1946: \"$ac_try\"") >&5
     12712+  { (eval echo "$as_me:1947: \"$ac_try\"") >&5
    1171612713   (eval $ac_try) 2>&5
    1171712714   ac_status=$?
    1171812715-  echo "$as_me:1944: \$? = $ac_status" >&5
    11719 +  echo "$as_me:1949: \$? = $ac_status" >&5
     12716+  echo "$as_me:1950: \$? = $ac_status" >&5
    1172012717   (exit $ac_status); }; }; then
    1172112718   ac_cv_prog_cc_g=yes
    1172212719 else
    11723 @@ -1951,7 +1956,7 @@
     12720@@ -1951,7 +1957,7 @@
    1172412721 fi
    1172512722 rm -f conftest.$ac_objext conftest.$ac_ext
    1172612723 fi
    1172712724-echo "$as_me:1954: result: $ac_cv_prog_cc_g" >&5
    11728 +echo "$as_me:1959: result: $ac_cv_prog_cc_g" >&5
     12725+echo "$as_me:1960: result: $ac_cv_prog_cc_g" >&5
    1172912726 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
    1173012727 if test "$ac_test_CFLAGS" = set; then
    1173112728   CFLAGS=$ac_save_CFLAGS
    11732 @@ -1978,16 +1983,16 @@
     12729@@ -1978,16 +1984,16 @@
    1173312730 #endif
    1173412731 _ACEOF
    1173512732 rm -f conftest.$ac_objext
    1173612733-if { (eval echo "$as_me:1981: \"$ac_compile\"") >&5
    11737 +if { (eval echo "$as_me:1986: \"$ac_compile\"") >&5
     12734+if { (eval echo "$as_me:1987: \"$ac_compile\"") >&5
    1173812735   (eval $ac_compile) 2>&5
    1173912736   ac_status=$?
    1174012737-  echo "$as_me:1984: \$? = $ac_status" >&5
    11741 +  echo "$as_me:1989: \$? = $ac_status" >&5
     12738+  echo "$as_me:1990: \$? = $ac_status" >&5
    1174212739   (exit $ac_status); } &&
    1174312740          { ac_try='test -s conftest.$ac_objext'
    1174412741-  { (eval echo "$as_me:1987: \"$ac_try\"") >&5
    11745 +  { (eval echo "$as_me:1992: \"$ac_try\"") >&5
     12742+  { (eval echo "$as_me:1993: \"$ac_try\"") >&5
    1174612743   (eval $ac_try) 2>&5
    1174712744   ac_status=$?
    1174812745-  echo "$as_me:1990: \$? = $ac_status" >&5
    11749 +  echo "$as_me:1995: \$? = $ac_status" >&5
     12746+  echo "$as_me:1996: \$? = $ac_status" >&5
    1175012747   (exit $ac_status); }; }; then
    1175112748   for ac_declaration in \
    1175212749    ''\
    11753 @@ -1999,7 +2004,7 @@
     12750@@ -1999,7 +2005,7 @@
    1175412751    'void exit (int);'
    1175512752 do
    1175612753   cat >conftest.$ac_ext <<_ACEOF
    1175712754-#line 2002 "configure"
    11758 +#line 2007 "configure"
     12755+#line 2008 "configure"
    1175912756 #include "confdefs.h"
    1176012757 #include <stdlib.h>
    1176112758 $ac_declaration
    11762 @@ -2012,16 +2017,16 @@
     12759@@ -2012,16 +2018,16 @@
    1176312760 }
    1176412761 _ACEOF
    1176512762 rm -f conftest.$ac_objext
    1176612763-if { (eval echo "$as_me:2015: \"$ac_compile\"") >&5
    11767 +if { (eval echo "$as_me:2020: \"$ac_compile\"") >&5
     12764+if { (eval echo "$as_me:2021: \"$ac_compile\"") >&5
    1176812765   (eval $ac_compile) 2>&5
    1176912766   ac_status=$?
    1177012767-  echo "$as_me:2018: \$? = $ac_status" >&5
    11771 +  echo "$as_me:2023: \$? = $ac_status" >&5
     12768+  echo "$as_me:2024: \$? = $ac_status" >&5
    1177212769   (exit $ac_status); } &&
    1177312770          { ac_try='test -s conftest.$ac_objext'
    1177412771-  { (eval echo "$as_me:2021: \"$ac_try\"") >&5
    11775 +  { (eval echo "$as_me:2026: \"$ac_try\"") >&5
     12772+  { (eval echo "$as_me:2027: \"$ac_try\"") >&5
    1177612773   (eval $ac_try) 2>&5
    1177712774   ac_status=$?
    1177812775-  echo "$as_me:2024: \$? = $ac_status" >&5
    11779 +  echo "$as_me:2029: \$? = $ac_status" >&5
     12776+  echo "$as_me:2030: \$? = $ac_status" >&5
    1178012777   (exit $ac_status); }; }; then
    1178112778   :
    1178212779 else
    11783 @@ -2031,7 +2036,7 @@
     12780@@ -2031,7 +2037,7 @@
    1178412781 fi
    1178512782 rm -f conftest.$ac_objext conftest.$ac_ext
    1178612783   cat >conftest.$ac_ext <<_ACEOF
    1178712784-#line 2034 "configure"
    11788 +#line 2039 "configure"
     12785+#line 2040 "configure"
    1178912786 #include "confdefs.h"
    1179012787 $ac_declaration
    1179112788 int
    11792 @@ -2043,16 +2048,16 @@
     12789@@ -2043,16 +2049,16 @@
    1179312790 }
    1179412791 _ACEOF
    1179512792 rm -f conftest.$ac_objext
    1179612793-if { (eval echo "$as_me:2046: \"$ac_compile\"") >&5
    11797 +if { (eval echo "$as_me:2051: \"$ac_compile\"") >&5
     12794+if { (eval echo "$as_me:2052: \"$ac_compile\"") >&5
    1179812795   (eval $ac_compile) 2>&5
    1179912796   ac_status=$?
    1180012797-  echo "$as_me:2049: \$? = $ac_status" >&5
    11801 +  echo "$as_me:2054: \$? = $ac_status" >&5
     12798+  echo "$as_me:2055: \$? = $ac_status" >&5
    1180212799   (exit $ac_status); } &&
    1180312800          { ac_try='test -s conftest.$ac_objext'
    1180412801-  { (eval echo "$as_me:2052: \"$ac_try\"") >&5
    11805 +  { (eval echo "$as_me:2057: \"$ac_try\"") >&5
     12802+  { (eval echo "$as_me:2058: \"$ac_try\"") >&5
    1180612803   (eval $ac_try) 2>&5
    1180712804   ac_status=$?
    1180812805-  echo "$as_me:2055: \$? = $ac_status" >&5
    11809 +  echo "$as_me:2060: \$? = $ac_status" >&5
     12806+  echo "$as_me:2061: \$? = $ac_status" >&5
    1181012807   (exit $ac_status); }; }; then
    1181112808   break
    1181212809 else
    11813 @@ -2082,11 +2087,11 @@
     12810@@ -2082,11 +2088,11 @@
    1181412811 
    1181512812 GCC_VERSION=none
    1181612813 if test "$GCC" = yes ; then
    1181712814-       echo "$as_me:2085: checking version of $CC" >&5
    11818 +       echo "$as_me:2090: checking version of $CC" >&5
     12815+       echo "$as_me:2091: checking version of $CC" >&5
    1181912816 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
    1182012817        GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
    1182112818        test -z "$GCC_VERSION" && GCC_VERSION=unknown
    1182212819-       echo "$as_me:2089: result: $GCC_VERSION" >&5
    11823 +       echo "$as_me:2094: result: $GCC_VERSION" >&5
     12820+       echo "$as_me:2095: result: $GCC_VERSION" >&5
    1182412821 echo "${ECHO_T}$GCC_VERSION" >&6
    1182512822 fi
    1182612823 
    11827 @@ -2096,7 +2101,7 @@
     12824@@ -2096,7 +2102,7 @@
    1182812825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1182912826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1183012827 ac_main_return=return
    1183112828-echo "$as_me:2099: checking how to run the C preprocessor" >&5
    11832 +echo "$as_me:2104: checking how to run the C preprocessor" >&5
     12829+echo "$as_me:2105: checking how to run the C preprocessor" >&5
    1183312830 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    1183412831 # On Suns, sometimes $CPP names a directory.
    1183512832 if test -n "$CPP" && test -d "$CPP"; then
    11836 @@ -2117,18 +2122,18 @@
     12833@@ -2117,18 +2123,18 @@
    1183712834   # On the NeXT, cc -E runs the code through the compiler's parser,
    1183812835   # not just through cpp. "Syntax error" is here to catch this case.
    1183912836   cat >conftest.$ac_ext <<_ACEOF
    1184012837-#line 2120 "configure"
    11841 +#line 2125 "configure"
     12838+#line 2126 "configure"
    1184212839 #include "confdefs.h"
    1184312840 #include <assert.h>
     
    1184512842 _ACEOF
    1184612843-if { (eval echo "$as_me:2125: \"$ac_cpp conftest.$ac_ext\"") >&5
    11847 +if { (eval echo "$as_me:2130: \"$ac_cpp conftest.$ac_ext\"") >&5
     12844+if { (eval echo "$as_me:2131: \"$ac_cpp conftest.$ac_ext\"") >&5
    1184812845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    1184912846   ac_status=$?
     
    1185212849   cat conftest.err >&5
    1185312850-  echo "$as_me:2131: \$? = $ac_status" >&5
    11854 +  echo "$as_me:2136: \$? = $ac_status" >&5
     12851+  echo "$as_me:2137: \$? = $ac_status" >&5
    1185512852   (exit $ac_status); } >/dev/null; then
    1185612853   if test -s conftest.err; then
    1185712854     ac_cpp_err=$ac_c_preproc_warn_flag
    11858 @@ -2151,17 +2156,17 @@
     12855@@ -2151,17 +2157,17 @@
    1185912856   # OK, works on sane cases.  Now check whether non-existent headers
    1186012857   # can be detected and how.
    1186112858   cat >conftest.$ac_ext <<_ACEOF
    1186212859-#line 2154 "configure"
    11863 +#line 2159 "configure"
     12860+#line 2160 "configure"
    1186412861 #include "confdefs.h"
    1186512862 #include <ac_nonexistent.h>
    1186612863 _ACEOF
    1186712864-if { (eval echo "$as_me:2158: \"$ac_cpp conftest.$ac_ext\"") >&5
    11868 +if { (eval echo "$as_me:2163: \"$ac_cpp conftest.$ac_ext\"") >&5
     12865+if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
    1186912866   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    1187012867   ac_status=$?
     
    1187312870   cat conftest.err >&5
    1187412871-  echo "$as_me:2164: \$? = $ac_status" >&5
    11875 +  echo "$as_me:2169: \$? = $ac_status" >&5
     12872+  echo "$as_me:2170: \$? = $ac_status" >&5
    1187612873   (exit $ac_status); } >/dev/null; then
    1187712874   if test -s conftest.err; then
    1187812875     ac_cpp_err=$ac_c_preproc_warn_flag
    11879 @@ -2198,7 +2203,7 @@
     12876@@ -2198,7 +2204,7 @@
    1188012877 else
    1188112878   ac_cv_prog_CPP=$CPP
    1188212879 fi
    1188312880-echo "$as_me:2201: result: $CPP" >&5
    11884 +echo "$as_me:2206: result: $CPP" >&5
     12881+echo "$as_me:2207: result: $CPP" >&5
    1188512882 echo "${ECHO_T}$CPP" >&6
    1188612883 ac_preproc_ok=false
    1188712884 for ac_c_preproc_warn_flag in '' yes
    11888 @@ -2208,18 +2213,18 @@
     12885@@ -2208,18 +2214,18 @@
    1188912886   # On the NeXT, cc -E runs the code through the compiler's parser,
    1189012887   # not just through cpp. "Syntax error" is here to catch this case.
    1189112888   cat >conftest.$ac_ext <<_ACEOF
    1189212889-#line 2211 "configure"
    11893 +#line 2216 "configure"
     12890+#line 2217 "configure"
    1189412891 #include "confdefs.h"
    1189512892 #include <assert.h>
     
    1189712894 _ACEOF
    1189812895-if { (eval echo "$as_me:2216: \"$ac_cpp conftest.$ac_ext\"") >&5
    11899 +if { (eval echo "$as_me:2221: \"$ac_cpp conftest.$ac_ext\"") >&5
     12896+if { (eval echo "$as_me:2222: \"$ac_cpp conftest.$ac_ext\"") >&5
    1190012897   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    1190112898   ac_status=$?
     
    1190412901   cat conftest.err >&5
    1190512902-  echo "$as_me:2222: \$? = $ac_status" >&5
    11906 +  echo "$as_me:2227: \$? = $ac_status" >&5
     12903+  echo "$as_me:2228: \$? = $ac_status" >&5
    1190712904   (exit $ac_status); } >/dev/null; then
    1190812905   if test -s conftest.err; then
    1190912906     ac_cpp_err=$ac_c_preproc_warn_flag
    11910 @@ -2242,17 +2247,17 @@
     12907@@ -2242,17 +2248,17 @@
    1191112908   # OK, works on sane cases.  Now check whether non-existent headers
    1191212909   # can be detected and how.
    1191312910   cat >conftest.$ac_ext <<_ACEOF
    1191412911-#line 2245 "configure"
    11915 +#line 2250 "configure"
     12912+#line 2251 "configure"
    1191612913 #include "confdefs.h"
    1191712914 #include <ac_nonexistent.h>
    1191812915 _ACEOF
    1191912916-if { (eval echo "$as_me:2249: \"$ac_cpp conftest.$ac_ext\"") >&5
    11920 +if { (eval echo "$as_me:2254: \"$ac_cpp conftest.$ac_ext\"") >&5
     12917+if { (eval echo "$as_me:2255: \"$ac_cpp conftest.$ac_ext\"") >&5
    1192112918   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    1192212919   ac_status=$?
     
    1192512922   cat conftest.err >&5
    1192612923-  echo "$as_me:2255: \$? = $ac_status" >&5
    11927 +  echo "$as_me:2260: \$? = $ac_status" >&5
     12924+  echo "$as_me:2261: \$? = $ac_status" >&5
    1192812925   (exit $ac_status); } >/dev/null; then
    1192912926   if test -s conftest.err; then
    1193012927     ac_cpp_err=$ac_c_preproc_warn_flag
    11931 @@ -2280,7 +2285,7 @@
     12928@@ -2280,7 +2286,7 @@
    1193212929 if $ac_preproc_ok; then
    1193312930   :
    1193412931 else
    1193512932-  { { echo "$as_me:2283: error: C preprocessor \"$CPP\" fails sanity check" >&5
    11936 +  { { echo "$as_me:2288: error: C preprocessor \"$CPP\" fails sanity check" >&5
     12933+  { { echo "$as_me:2289: error: C preprocessor \"$CPP\" fails sanity check" >&5
    1193712934 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
    1193812935    { (exit 1); exit 1; }; }
    1193912936 fi
    11940 @@ -2293,14 +2298,14 @@
     12937@@ -2293,14 +2299,14 @@
    1194112938 ac_main_return=return
    1194212939 
    1194312940 if test $ac_cv_c_compiler_gnu = yes; then
    1194412941-    echo "$as_me:2296: checking whether $CC needs -traditional" >&5
    11945 +    echo "$as_me:2301: checking whether $CC needs -traditional" >&5
     12942+    echo "$as_me:2302: checking whether $CC needs -traditional" >&5
    1194612943 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
    1194712944 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
     
    1195112948   cat >conftest.$ac_ext <<_ACEOF
    1195212949-#line 2303 "configure"
    11953 +#line 2308 "configure"
     12950+#line 2309 "configure"
    1195412951 #include "confdefs.h"
    1195512952 #include <sgtty.h>
    1195612953 int Autoconf = TIOCGETP;
    11957 @@ -2315,7 +2320,7 @@
     12954@@ -2315,7 +2321,7 @@
    1195812955 
    1195912956   if test $ac_cv_prog_gcc_traditional = no; then
    1196012957     cat >conftest.$ac_ext <<_ACEOF
    1196112958-#line 2318 "configure"
    11962 +#line 2323 "configure"
     12959+#line 2324 "configure"
    1196312960 #include "confdefs.h"
    1196412961 #include <termio.h>
    1196512962 int Autoconf = TCGETA;
    11966 @@ -2328,14 +2333,14 @@
     12963@@ -2328,14 +2334,14 @@
    1196712964 
    1196812965   fi
    1196912966 fi
    1197012967-echo "$as_me:2331: result: $ac_cv_prog_gcc_traditional" >&5
    11971 +echo "$as_me:2336: result: $ac_cv_prog_gcc_traditional" >&5
     12968+echo "$as_me:2337: result: $ac_cv_prog_gcc_traditional" >&5
    1197212969 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
    1197312970   if test $ac_cv_prog_gcc_traditional = yes; then
     
    1197712974 
    1197812975-echo "$as_me:2338: checking whether $CC understands -c and -o together" >&5
    11979 +echo "$as_me:2343: checking whether $CC understands -c and -o together" >&5
     12976+echo "$as_me:2344: checking whether $CC understands -c and -o together" >&5
    1198012977 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
    1198112978 if test "${cf_cv_prog_CC_c_o+set}" = set; then
    1198212979   echo $ECHO_N "(cached) $ECHO_C" >&6
    11983 @@ -2351,15 +2356,15 @@
     12980@@ -2351,15 +2357,15 @@
    1198412981 # We do the test twice because some compilers refuse to overwrite an
    1198512982 # existing .o file with -o, though they will create one.
    1198612983 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
    1198712984-if { (eval echo "$as_me:2354: \"$ac_try\"") >&5
    11988 +if { (eval echo "$as_me:2359: \"$ac_try\"") >&5
     12985+if { (eval echo "$as_me:2360: \"$ac_try\"") >&5
    1198912986   (eval $ac_try) 2>&5
    1199012987   ac_status=$?
    1199112988-  echo "$as_me:2357: \$? = $ac_status" >&5
    11992 +  echo "$as_me:2362: \$? = $ac_status" >&5
     12989+  echo "$as_me:2363: \$? = $ac_status" >&5
    1199312990   (exit $ac_status); } &&
    1199412991-  test -f conftest2.$ac_objext && { (eval echo "$as_me:2359: \"$ac_try\"") >&5
    11995 +  test -f conftest2.$ac_objext && { (eval echo "$as_me:2364: \"$ac_try\"") >&5
     12992+  test -f conftest2.$ac_objext && { (eval echo "$as_me:2365: \"$ac_try\"") >&5
    1199612993   (eval $ac_try) 2>&5
    1199712994   ac_status=$?
    1199812995-  echo "$as_me:2362: \$? = $ac_status" >&5
    11999 +  echo "$as_me:2367: \$? = $ac_status" >&5
     12996+  echo "$as_me:2368: \$? = $ac_status" >&5
    1200012997   (exit $ac_status); };
    1200112998 then
    1200212999   eval cf_cv_prog_CC_c_o=yes
    12003 @@ -2370,19 +2375,19 @@
     13000@@ -2370,19 +2376,19 @@
    1200413001 
    1200513002 fi
    1200613003 if test $cf_cv_prog_CC_c_o = yes; then
    1200713004-  echo "$as_me:2373: result: yes" >&5
    12008 +  echo "$as_me:2378: result: yes" >&5
     13005+  echo "$as_me:2379: result: yes" >&5
    1200913006 echo "${ECHO_T}yes" >&6
    1201013007 else
    1201113008-  echo "$as_me:2376: result: no" >&5
    12012 +  echo "$as_me:2381: result: no" >&5
     13009+  echo "$as_me:2382: result: no" >&5
    1201313010 echo "${ECHO_T}no" >&6
    1201413011 fi
    1201513012 
    1201613013-echo "$as_me:2380: checking for POSIXized ISC" >&5
    12017 +echo "$as_me:2385: checking for POSIXized ISC" >&5
     13014+echo "$as_me:2386: checking for POSIXized ISC" >&5
    1201813015 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
    1201913016 if test -d /etc/conf/kconfig.d &&
     
    1202113018 then
    1202213019-  echo "$as_me:2385: result: yes" >&5
    12023 +  echo "$as_me:2390: result: yes" >&5
     13020+  echo "$as_me:2391: result: yes" >&5
    1202413021 echo "${ECHO_T}yes" >&6
    1202513022   ISC=yes # If later tests want to check for ISC.
    1202613023 
    12027 @@ -2396,12 +2401,12 @@
     13024@@ -2396,12 +2402,12 @@
    1202813025     CC="$CC -Xp"
    1202913026   fi
    1203013027 else
    1203113028-  echo "$as_me:2399: result: no" >&5
    12032 +  echo "$as_me:2404: result: no" >&5
     13029+  echo "$as_me:2405: result: no" >&5
    1203313030 echo "${ECHO_T}no" >&6
    1203413031   ISC=
     
    1203613033 
    1203713034-echo "$as_me:2404: checking for ${CC-cc} option to accept ANSI C" >&5
    12038 +echo "$as_me:2409: checking for ${CC-cc} option to accept ANSI C" >&5
     13035+echo "$as_me:2410: checking for ${CC-cc} option to accept ANSI C" >&5
    1203913036 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
    1204013037 if test "${cf_cv_ansi_cc+set}" = set; then
    1204113038   echo $ECHO_N "(cached) $ECHO_C" >&6
    12042 @@ -2495,7 +2500,7 @@
     13039@@ -2495,7 +2501,7 @@
    1204313040 fi
    1204413041 
    1204513042        cat >conftest.$ac_ext <<_ACEOF
    1204613043-#line 2498 "configure"
    12047 +#line 2503 "configure"
     13044+#line 2504 "configure"
    1204813045 #include "confdefs.h"
    1204913046 
    1205013047 #ifndef CC_HAS_PROTOS
    12051 @@ -2516,16 +2521,16 @@
     13048@@ -2516,16 +2522,16 @@
    1205213049 }
    1205313050 _ACEOF
    1205413051 rm -f conftest.$ac_objext
    1205513052-if { (eval echo "$as_me:2519: \"$ac_compile\"") >&5
    12056 +if { (eval echo "$as_me:2524: \"$ac_compile\"") >&5
     13053+if { (eval echo "$as_me:2525: \"$ac_compile\"") >&5
    1205713054   (eval $ac_compile) 2>&5
    1205813055   ac_status=$?
    1205913056-  echo "$as_me:2522: \$? = $ac_status" >&5
    12060 +  echo "$as_me:2527: \$? = $ac_status" >&5
     13057+  echo "$as_me:2528: \$? = $ac_status" >&5
    1206113058   (exit $ac_status); } &&
    1206213059          { ac_try='test -s conftest.$ac_objext'
    1206313060-  { (eval echo "$as_me:2525: \"$ac_try\"") >&5
    12064 +  { (eval echo "$as_me:2530: \"$ac_try\"") >&5
     13061+  { (eval echo "$as_me:2531: \"$ac_try\"") >&5
    1206513062   (eval $ac_try) 2>&5
    1206613063   ac_status=$?
    1206713064-  echo "$as_me:2528: \$? = $ac_status" >&5
    12068 +  echo "$as_me:2533: \$? = $ac_status" >&5
     13065+  echo "$as_me:2534: \$? = $ac_status" >&5
    1206913066   (exit $ac_status); }; }; then
    1207013067   cf_cv_ansi_cc="$cf_arg"; break
    1207113068 else
    12072 @@ -2538,7 +2543,7 @@
     13069@@ -2538,7 +2544,7 @@
    1207313070 CPPFLAGS="$cf_save_CPPFLAGS"
    1207413071 
    1207513072 fi
    1207613073-echo "$as_me:2541: result: $cf_cv_ansi_cc" >&5
    12077 +echo "$as_me:2546: result: $cf_cv_ansi_cc" >&5
     13074+echo "$as_me:2547: result: $cf_cv_ansi_cc" >&5
    1207813075 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
    1207913076 
    1208013077 if test "$cf_cv_ansi_cc" != "no"; then
    12081 @@ -2621,7 +2626,7 @@
     13078@@ -2621,7 +2627,7 @@
    1208213079 fi
    1208313080 
    1208413081 if test "$cf_cv_ansi_cc" = "no"; then
    1208513082-       { { echo "$as_me:2624: error: Your compiler does not appear to recognize prototypes.
    12086 +       { { echo "$as_me:2629: error: Your compiler does not appear to recognize prototypes.
     13083+       { { echo "$as_me:2630: error: Your compiler does not appear to recognize prototypes.
    1208713084 You have the following choices:
    1208813085        a. adjust your compiler options
    1208913086        b. get an up-to-date compiler
    12090 @@ -2661,7 +2666,7 @@
     13087@@ -2661,7 +2667,7 @@
    1209113088 *) LDPATH=$PATH:/sbin:/usr/sbin
    1209213089   # Extract the first word of "ldconfig", so it can be a program name with args.
    1209313090 set dummy ldconfig; ac_word=$2
    1209413091-echo "$as_me:2664: checking for $ac_word" >&5
    12095 +echo "$as_me:2669: checking for $ac_word" >&5
     13092+echo "$as_me:2670: checking for $ac_word" >&5
    1209613093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1209713094 if test "${ac_cv_path_LDCONFIG+set}" = set; then
    1209813095   echo $ECHO_N "(cached) $ECHO_C" >&6
    12099 @@ -2678,7 +2683,7 @@
     13096@@ -2678,7 +2684,7 @@
    1210013097   test -z "$ac_dir" && ac_dir=.
    1210113098   if $as_executable_p "$ac_dir/$ac_word"; then
    1210213099    ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
    1210313100-   echo "$as_me:2681: found $ac_dir/$ac_word" >&5
    12104 +   echo "$as_me:2686: found $ac_dir/$ac_word" >&5
     13101+   echo "$as_me:2687: found $ac_dir/$ac_word" >&5
    1210513102    break
    1210613103 fi
    1210713104 done
    12108 @@ -2689,10 +2694,10 @@
     13105@@ -2689,10 +2695,10 @@
    1210913106 LDCONFIG=$ac_cv_path_LDCONFIG
    1211013107 
    1211113108 if test -n "$LDCONFIG"; then
    1211213109-  echo "$as_me:2692: result: $LDCONFIG" >&5
    12113 +  echo "$as_me:2697: result: $LDCONFIG" >&5
     13110+  echo "$as_me:2698: result: $LDCONFIG" >&5
    1211413111 echo "${ECHO_T}$LDCONFIG" >&6
    1211513112 else
    1211613113-  echo "$as_me:2695: result: no" >&5
    12117 +  echo "$as_me:2700: result: no" >&5
     13114+  echo "$as_me:2701: result: no" >&5
    1211813115 echo "${ECHO_T}no" >&6
    1211913116 fi
    1212013117 
    12121 @@ -2700,7 +2705,7 @@
     13118@@ -2700,7 +2706,7 @@
    1212213119 esac
    1212313120 fi
    1212413121 
    1212513122-echo "$as_me:2703: checking if you want to ensure bool is consistent with C++" >&5
    12126 +echo "$as_me:2708: checking if you want to ensure bool is consistent with C++" >&5
     13123+echo "$as_me:2709: checking if you want to ensure bool is consistent with C++" >&5
    1212713124 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
    1212813125 
    1212913126 # Check whether --with-cxx or --without-cxx was given.
    12130 @@ -2710,7 +2715,7 @@
     13127@@ -2710,7 +2716,7 @@
    1213113128 else
    1213213129   cf_with_cxx=yes
    1213313130 fi;
    1213413131-echo "$as_me:2713: result: $cf_with_cxx" >&5
    12135 +echo "$as_me:2718: result: $cf_with_cxx" >&5
     13132+echo "$as_me:2719: result: $cf_with_cxx" >&5
    1213613133 echo "${ECHO_T}$cf_with_cxx" >&6
    1213713134 if test "X$cf_with_cxx" = Xno ; then
    1213813135        CXX=""
    12139 @@ -2728,7 +2733,7 @@
     13136@@ -2728,7 +2734,7 @@
    1214013137   do
    1214113138     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    1214213139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    1214313140-echo "$as_me:2731: checking for $ac_word" >&5
    12144 +echo "$as_me:2736: checking for $ac_word" >&5
     13141+echo "$as_me:2737: checking for $ac_word" >&5
    1214513142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1214613143 if test "${ac_cv_prog_CXX+set}" = set; then
    1214713144   echo $ECHO_N "(cached) $ECHO_C" >&6
    12148 @@ -2743,7 +2748,7 @@
     13145@@ -2743,7 +2749,7 @@
    1214913146   test -z "$ac_dir" && ac_dir=.
    1215013147   $as_executable_p "$ac_dir/$ac_word" || continue
    1215113148 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    1215213149-echo "$as_me:2746: found $ac_dir/$ac_word" >&5
    12153 +echo "$as_me:2751: found $ac_dir/$ac_word" >&5
     13150+echo "$as_me:2752: found $ac_dir/$ac_word" >&5
    1215413151 break
    1215513152 done
    1215613153 
    12157 @@ -2751,10 +2756,10 @@
     13154@@ -2751,10 +2757,10 @@
    1215813155 fi
    1215913156 CXX=$ac_cv_prog_CXX
    1216013157 if test -n "$CXX"; then
    1216113158-  echo "$as_me:2754: result: $CXX" >&5
    12162 +  echo "$as_me:2759: result: $CXX" >&5
     13159+  echo "$as_me:2760: result: $CXX" >&5
    1216313160 echo "${ECHO_T}$CXX" >&6
    1216413161 else
    1216513162-  echo "$as_me:2757: result: no" >&5
    12166 +  echo "$as_me:2762: result: no" >&5
     13163+  echo "$as_me:2763: result: no" >&5
    1216713164 echo "${ECHO_T}no" >&6
    1216813165 fi
    1216913166 
    12170 @@ -2767,7 +2772,7 @@
     13167@@ -2767,7 +2773,7 @@
    1217113168 do
    1217213169   # Extract the first word of "$ac_prog", so it can be a program name with args.
    1217313170 set dummy $ac_prog; ac_word=$2
    1217413171-echo "$as_me:2770: checking for $ac_word" >&5
    12175 +echo "$as_me:2775: checking for $ac_word" >&5
     13172+echo "$as_me:2776: checking for $ac_word" >&5
    1217613173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1217713174 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    1217813175   echo $ECHO_N "(cached) $ECHO_C" >&6
    12179 @@ -2782,7 +2787,7 @@
     13176@@ -2782,7 +2788,7 @@
    1218013177   test -z "$ac_dir" && ac_dir=.
    1218113178   $as_executable_p "$ac_dir/$ac_word" || continue
    1218213179 ac_cv_prog_ac_ct_CXX="$ac_prog"
    1218313180-echo "$as_me:2785: found $ac_dir/$ac_word" >&5
    12184 +echo "$as_me:2790: found $ac_dir/$ac_word" >&5
     13181+echo "$as_me:2791: found $ac_dir/$ac_word" >&5
    1218513182 break
    1218613183 done
    1218713184 
    12188 @@ -2790,10 +2795,10 @@
     13185@@ -2790,10 +2796,10 @@
    1218913186 fi
    1219013187 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    1219113188 if test -n "$ac_ct_CXX"; then
    1219213189-  echo "$as_me:2793: result: $ac_ct_CXX" >&5
    12193 +  echo "$as_me:2798: result: $ac_ct_CXX" >&5
     13190+  echo "$as_me:2799: result: $ac_ct_CXX" >&5
    1219413191 echo "${ECHO_T}$ac_ct_CXX" >&6
    1219513192 else
    1219613193-  echo "$as_me:2796: result: no" >&5
    12197 +  echo "$as_me:2801: result: no" >&5
     13194+  echo "$as_me:2802: result: no" >&5
    1219813195 echo "${ECHO_T}no" >&6
    1219913196 fi
    1220013197 
    12201 @@ -2805,32 +2810,32 @@
     13198@@ -2805,32 +2811,32 @@
    1220213199 fi
    1220313200 
    1220413201 # Provide some information about the compiler.
    1220513202-echo "$as_me:2808:" \
    12206 +echo "$as_me:2813:" \
     13203+echo "$as_me:2814:" \
    1220713204      "checking for C++ compiler version" >&5
    1220813205 ac_compiler=`set X $ac_compile; echo $2`
    1220913206-{ (eval echo "$as_me:2811: \"$ac_compiler --version </dev/null >&5\"") >&5
    12210 +{ (eval echo "$as_me:2816: \"$ac_compiler --version </dev/null >&5\"") >&5
     13207+{ (eval echo "$as_me:2817: \"$ac_compiler --version </dev/null >&5\"") >&5
    1221113208   (eval $ac_compiler --version </dev/null >&5) 2>&5
    1221213209   ac_status=$?
    1221313210-  echo "$as_me:2814: \$? = $ac_status" >&5
    12214 +  echo "$as_me:2819: \$? = $ac_status" >&5
     13211+  echo "$as_me:2820: \$? = $ac_status" >&5
    1221513212   (exit $ac_status); }
    1221613213-{ (eval echo "$as_me:2816: \"$ac_compiler -v </dev/null >&5\"") >&5
    12217 +{ (eval echo "$as_me:2821: \"$ac_compiler -v </dev/null >&5\"") >&5
     13214+{ (eval echo "$as_me:2822: \"$ac_compiler -v </dev/null >&5\"") >&5
    1221813215   (eval $ac_compiler -v </dev/null >&5) 2>&5
    1221913216   ac_status=$?
    1222013217-  echo "$as_me:2819: \$? = $ac_status" >&5
    12221 +  echo "$as_me:2824: \$? = $ac_status" >&5
     13218+  echo "$as_me:2825: \$? = $ac_status" >&5
    1222213219   (exit $ac_status); }
    1222313220-{ (eval echo "$as_me:2821: \"$ac_compiler -V </dev/null >&5\"") >&5
    12224 +{ (eval echo "$as_me:2826: \"$ac_compiler -V </dev/null >&5\"") >&5
     13221+{ (eval echo "$as_me:2827: \"$ac_compiler -V </dev/null >&5\"") >&5
    1222513222   (eval $ac_compiler -V </dev/null >&5) 2>&5
    1222613223   ac_status=$?
    1222713224-  echo "$as_me:2824: \$? = $ac_status" >&5
    12228 +  echo "$as_me:2829: \$? = $ac_status" >&5
     13225+  echo "$as_me:2830: \$? = $ac_status" >&5
    1222913226   (exit $ac_status); }
    1223013227 
    1223113228-echo "$as_me:2827: checking whether we are using the GNU C++ compiler" >&5
    12232 +echo "$as_me:2832: checking whether we are using the GNU C++ compiler" >&5
     13229+echo "$as_me:2833: checking whether we are using the GNU C++ compiler" >&5
    1223313230 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    1223413231 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     
    1223713234   cat >conftest.$ac_ext <<_ACEOF
    1223813235-#line 2833 "configure"
    12239 +#line 2838 "configure"
     13236+#line 2839 "configure"
    1224013237 #include "confdefs.h"
    1224113238 
    1224213239 int
    12243 @@ -2845,16 +2850,16 @@
     13240@@ -2845,16 +2851,16 @@
    1224413241 }
    1224513242 _ACEOF
    1224613243 rm -f conftest.$ac_objext
    1224713244-if { (eval echo "$as_me:2848: \"$ac_compile\"") >&5
    12248 +if { (eval echo "$as_me:2853: \"$ac_compile\"") >&5
     13245+if { (eval echo "$as_me:2854: \"$ac_compile\"") >&5
    1224913246   (eval $ac_compile) 2>&5
    1225013247   ac_status=$?
    1225113248-  echo "$as_me:2851: \$? = $ac_status" >&5
    12252 +  echo "$as_me:2856: \$? = $ac_status" >&5
     13249+  echo "$as_me:2857: \$? = $ac_status" >&5
    1225313250   (exit $ac_status); } &&
    1225413251          { ac_try='test -s conftest.$ac_objext'
    1225513252-  { (eval echo "$as_me:2854: \"$ac_try\"") >&5
    12256 +  { (eval echo "$as_me:2859: \"$ac_try\"") >&5
     13253+  { (eval echo "$as_me:2860: \"$ac_try\"") >&5
    1225713254   (eval $ac_try) 2>&5
    1225813255   ac_status=$?
    1225913256-  echo "$as_me:2857: \$? = $ac_status" >&5
    12260 +  echo "$as_me:2862: \$? = $ac_status" >&5
     13257+  echo "$as_me:2863: \$? = $ac_status" >&5
    1226113258   (exit $ac_status); }; }; then
    1226213259   ac_compiler_gnu=yes
    1226313260 else
    12264 @@ -2866,19 +2871,19 @@
     13261@@ -2866,19 +2872,19 @@
    1226513262 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    1226613263 
    1226713264 fi
    1226813265-echo "$as_me:2869: result: $ac_cv_cxx_compiler_gnu" >&5
    12269 +echo "$as_me:2874: result: $ac_cv_cxx_compiler_gnu" >&5
     13266+echo "$as_me:2875: result: $ac_cv_cxx_compiler_gnu" >&5
    1227013267 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    1227113268 GXX=`test $ac_compiler_gnu = yes && echo yes`
     
    1227413271 CXXFLAGS="-g"
    1227513272-echo "$as_me:2875: checking whether $CXX accepts -g" >&5
    12276 +echo "$as_me:2880: checking whether $CXX accepts -g" >&5
     13273+echo "$as_me:2881: checking whether $CXX accepts -g" >&5
    1227713274 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    1227813275 if test "${ac_cv_prog_cxx_g+set}" = set; then
     
    1228113278   cat >conftest.$ac_ext <<_ACEOF
    1228213279-#line 2881 "configure"
    12283 +#line 2886 "configure"
     13280+#line 2887 "configure"
    1228413281 #include "confdefs.h"
    1228513282 
    1228613283 int
    12287 @@ -2890,16 +2895,16 @@
     13284@@ -2890,16 +2896,16 @@
    1228813285 }
    1228913286 _ACEOF
    1229013287 rm -f conftest.$ac_objext
    1229113288-if { (eval echo "$as_me:2893: \"$ac_compile\"") >&5
    12292 +if { (eval echo "$as_me:2898: \"$ac_compile\"") >&5
     13289+if { (eval echo "$as_me:2899: \"$ac_compile\"") >&5
    1229313290   (eval $ac_compile) 2>&5
    1229413291   ac_status=$?
    1229513292-  echo "$as_me:2896: \$? = $ac_status" >&5
    12296 +  echo "$as_me:2901: \$? = $ac_status" >&5
     13293+  echo "$as_me:2902: \$? = $ac_status" >&5
    1229713294   (exit $ac_status); } &&
    1229813295          { ac_try='test -s conftest.$ac_objext'
    1229913296-  { (eval echo "$as_me:2899: \"$ac_try\"") >&5
    12300 +  { (eval echo "$as_me:2904: \"$ac_try\"") >&5
     13297+  { (eval echo "$as_me:2905: \"$ac_try\"") >&5
    1230113298   (eval $ac_try) 2>&5
    1230213299   ac_status=$?
    1230313300-  echo "$as_me:2902: \$? = $ac_status" >&5
    12304 +  echo "$as_me:2907: \$? = $ac_status" >&5
     13301+  echo "$as_me:2908: \$? = $ac_status" >&5
    1230513302   (exit $ac_status); }; }; then
    1230613303   ac_cv_prog_cxx_g=yes
    1230713304 else
    12308 @@ -2909,7 +2914,7 @@
     13305@@ -2909,7 +2915,7 @@
    1230913306 fi
    1231013307 rm -f conftest.$ac_objext conftest.$ac_ext
    1231113308 fi
    1231213309-echo "$as_me:2912: result: $ac_cv_prog_cxx_g" >&5
    12313 +echo "$as_me:2917: result: $ac_cv_prog_cxx_g" >&5
     13310+echo "$as_me:2918: result: $ac_cv_prog_cxx_g" >&5
    1231413311 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    1231513312 if test "$ac_test_CXXFLAGS" = set; then
    1231613313   CXXFLAGS=$ac_save_CXXFLAGS
    12317 @@ -2936,7 +2941,7 @@
     13314@@ -2936,7 +2942,7 @@
    1231813315    'void exit (int);'
    1231913316 do
    1232013317   cat >conftest.$ac_ext <<_ACEOF
    1232113318-#line 2939 "configure"
    12322 +#line 2944 "configure"
     13319+#line 2945 "configure"
    1232313320 #include "confdefs.h"
    1232413321 #include <stdlib.h>
    1232513322 $ac_declaration
    12326 @@ -2949,16 +2954,16 @@
     13323@@ -2949,16 +2955,16 @@
    1232713324 }
    1232813325 _ACEOF
    1232913326 rm -f conftest.$ac_objext
    1233013327-if { (eval echo "$as_me:2952: \"$ac_compile\"") >&5
    12331 +if { (eval echo "$as_me:2957: \"$ac_compile\"") >&5
     13328+if { (eval echo "$as_me:2958: \"$ac_compile\"") >&5
    1233213329   (eval $ac_compile) 2>&5
    1233313330   ac_status=$?
    1233413331-  echo "$as_me:2955: \$? = $ac_status" >&5
    12335 +  echo "$as_me:2960: \$? = $ac_status" >&5
     13332+  echo "$as_me:2961: \$? = $ac_status" >&5
    1233613333   (exit $ac_status); } &&
    1233713334          { ac_try='test -s conftest.$ac_objext'
    1233813335-  { (eval echo "$as_me:2958: \"$ac_try\"") >&5
    12339 +  { (eval echo "$as_me:2963: \"$ac_try\"") >&5
     13336+  { (eval echo "$as_me:2964: \"$ac_try\"") >&5
    1234013337   (eval $ac_try) 2>&5
    1234113338   ac_status=$?
    1234213339-  echo "$as_me:2961: \$? = $ac_status" >&5
    12343 +  echo "$as_me:2966: \$? = $ac_status" >&5
     13340+  echo "$as_me:2967: \$? = $ac_status" >&5
    1234413341   (exit $ac_status); }; }; then
    1234513342   :
    1234613343 else
    12347 @@ -2968,7 +2973,7 @@
     13344@@ -2968,7 +2974,7 @@
    1234813345 fi
    1234913346 rm -f conftest.$ac_objext conftest.$ac_ext
    1235013347   cat >conftest.$ac_ext <<_ACEOF
    1235113348-#line 2971 "configure"
    12352 +#line 2976 "configure"
     13349+#line 2977 "configure"
    1235313350 #include "confdefs.h"
    1235413351 $ac_declaration
    1235513352 int
    12356 @@ -2980,16 +2985,16 @@
     13353@@ -2980,16 +2986,16 @@
    1235713354 }
    1235813355 _ACEOF
    1235913356 rm -f conftest.$ac_objext
    1236013357-if { (eval echo "$as_me:2983: \"$ac_compile\"") >&5
    12361 +if { (eval echo "$as_me:2988: \"$ac_compile\"") >&5
     13358+if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
    1236213359   (eval $ac_compile) 2>&5
    1236313360   ac_status=$?
    1236413361-  echo "$as_me:2986: \$? = $ac_status" >&5
    12365 +  echo "$as_me:2991: \$? = $ac_status" >&5
     13362+  echo "$as_me:2992: \$? = $ac_status" >&5
    1236613363   (exit $ac_status); } &&
    1236713364          { ac_try='test -s conftest.$ac_objext'
    1236813365-  { (eval echo "$as_me:2989: \"$ac_try\"") >&5
    12369 +  { (eval echo "$as_me:2994: \"$ac_try\"") >&5
     13366+  { (eval echo "$as_me:2995: \"$ac_try\"") >&5
    1237013367   (eval $ac_try) 2>&5
    1237113368   ac_status=$?
    1237213369-  echo "$as_me:2992: \$? = $ac_status" >&5
    12373 +  echo "$as_me:2997: \$? = $ac_status" >&5
     13370+  echo "$as_me:2998: \$? = $ac_status" >&5
    1237413371   (exit $ac_status); }; }; then
    1237513372   break
    1237613373 else
    12377 @@ -3016,7 +3021,7 @@
     13374@@ -3016,7 +3022,7 @@
    1237813375        if test "$CXX" = "g++" ; then
    1237913376                # Extract the first word of "g++", so it can be a program name with args.
    1238013377 set dummy g++; ac_word=$2
    1238113378-echo "$as_me:3019: checking for $ac_word" >&5
    12382 +echo "$as_me:3024: checking for $ac_word" >&5
     13379+echo "$as_me:3025: checking for $ac_word" >&5
    1238313380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1238413381 if test "${ac_cv_path_CXX+set}" = set; then
    1238513382   echo $ECHO_N "(cached) $ECHO_C" >&6
    12386 @@ -3033,7 +3038,7 @@
     13383@@ -3033,7 +3039,7 @@
    1238713384   test -z "$ac_dir" && ac_dir=.
    1238813385   if $as_executable_p "$ac_dir/$ac_word"; then
    1238913386    ac_cv_path_CXX="$ac_dir/$ac_word"
    1239013387-   echo "$as_me:3036: found $ac_dir/$ac_word" >&5
    12391 +   echo "$as_me:3041: found $ac_dir/$ac_word" >&5
     13388+   echo "$as_me:3042: found $ac_dir/$ac_word" >&5
    1239213389    break
    1239313390 fi
    1239413391 done
    12395 @@ -3044,16 +3049,16 @@
     13392@@ -3044,16 +3050,16 @@
    1239613393 CXX=$ac_cv_path_CXX
    1239713394 
    1239813395 if test -n "$CXX"; then
    1239913396-  echo "$as_me:3047: result: $CXX" >&5
    12400 +  echo "$as_me:3052: result: $CXX" >&5
     13397+  echo "$as_me:3053: result: $CXX" >&5
    1240113398 echo "${ECHO_T}$CXX" >&6
    1240213399 else
    1240313400-  echo "$as_me:3050: result: no" >&5
    12404 +  echo "$as_me:3055: result: no" >&5
     13401+  echo "$as_me:3056: result: no" >&5
    1240513402 echo "${ECHO_T}no" >&6
    1240613403 fi
     
    1240913406        if test "$CXX" = "g++" ; then
    1241013407-               { echo "$as_me:3056: WARNING: ignoring hardcoded g++" >&5
    12411 +               { echo "$as_me:3061: WARNING: ignoring hardcoded g++" >&5
     13408+               { echo "$as_me:3062: WARNING: ignoring hardcoded g++" >&5
    1241213409 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
    1241313410                cf_with_cxx=no; CXX=""; GXX="";
    1241413411        fi
    12415 @@ -3061,11 +3066,11 @@
     13412@@ -3061,11 +3067,11 @@
    1241613413 
    1241713414 GXX_VERSION=none
    1241813415 if test "$GXX" = yes; then
    1241913416-       echo "$as_me:3064: checking version of g++" >&5
    12420 +       echo "$as_me:3069: checking version of g++" >&5
     13417+       echo "$as_me:3070: checking version of g++" >&5
    1242113418 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
    1242213419        GXX_VERSION="`${CXX-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
    1242313420        test -z "$GXX_VERSION" && GXX_VERSION=unknown
    1242413421-       echo "$as_me:3068: result: $GXX_VERSION" >&5
    12425 +       echo "$as_me:3073: result: $GXX_VERSION" >&5
     13422+       echo "$as_me:3074: result: $GXX_VERSION" >&5
    1242613423 echo "${ECHO_T}$GXX_VERSION" >&6
    1242713424 fi
    1242813425 
    12429 @@ -3073,12 +3078,12 @@
     13426@@ -3073,12 +3079,12 @@
    1243013427 1*|2.[0-6]*)
    1243113428        # GXX=""; CXX=""; ac_cv_prog_gxx=no
    1243213429        # cf_cxx_library=no
    1243313430-       { echo "$as_me:3076: WARNING: templates do not work" >&5
    12434 +       { echo "$as_me:3081: WARNING: templates do not work" >&5
     13431+       { echo "$as_me:3082: WARNING: templates do not work" >&5
    1243513432 echo "$as_me: WARNING: templates do not work" >&2;}
    1243613433        ;;
     
    1243813435 
    1243913436-echo "$as_me:3081: checking if you want to build C++ binding and demo" >&5
    12440 +echo "$as_me:3086: checking if you want to build C++ binding and demo" >&5
     13437+echo "$as_me:3087: checking if you want to build C++ binding and demo" >&5
    1244113438 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
    1244213439 
    1244313440 # Check whether --with-cxx-binding or --without-cxx-binding was given.
    12444 @@ -3088,10 +3093,10 @@
     13441@@ -3088,10 +3094,10 @@
    1244513442 else
    1244613443   cf_with_cxx_binding=$cf_with_cxx
    1244713444 fi;
    1244813445-echo "$as_me:3091: result: $cf_with_cxx_binding" >&5
    12449 +echo "$as_me:3096: result: $cf_with_cxx_binding" >&5
     13446+echo "$as_me:3097: result: $cf_with_cxx_binding" >&5
    1245013447 echo "${ECHO_T}$cf_with_cxx_binding" >&6
    1245113448 
    1245213449-echo "$as_me:3094: checking if you want to build with Ada95" >&5
    12453 +echo "$as_me:3099: checking if you want to build with Ada95" >&5
     13450+echo "$as_me:3100: checking if you want to build with Ada95" >&5
    1245413451 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
    1245513452 
    1245613453 # Check whether --with-ada or --without-ada was given.
    12457 @@ -3101,10 +3106,10 @@
     13454@@ -3101,10 +3107,10 @@
    1245813455 else
    1245913456   cf_with_ada=yes
    1246013457 fi;
    1246113458-echo "$as_me:3104: result: $cf_with_ada" >&5
    12462 +echo "$as_me:3109: result: $cf_with_ada" >&5
     13459+echo "$as_me:3110: result: $cf_with_ada" >&5
    1246313460 echo "${ECHO_T}$cf_with_ada" >&6
    1246413461 
    1246513462-echo "$as_me:3107: checking if you want to build programs such as tic" >&5
    12466 +echo "$as_me:3112: checking if you want to build programs such as tic" >&5
     13463+echo "$as_me:3113: checking if you want to build programs such as tic" >&5
    1246713464 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
    1246813465 
    1246913466 # Check whether --with-progs or --without-progs was given.
    12470 @@ -3114,10 +3119,10 @@
     13467@@ -3114,10 +3120,10 @@
    1247113468 else
    1247213469   cf_with_progs=yes
    1247313470 fi;
    1247413471-echo "$as_me:3117: result: $cf_with_progs" >&5
    12475 +echo "$as_me:3122: result: $cf_with_progs" >&5
     13472+echo "$as_me:3123: result: $cf_with_progs" >&5
    1247613473 echo "${ECHO_T}$cf_with_progs" >&6
    1247713474 
    1247813475-echo "$as_me:3120: checking if you wish to install curses.h" >&5
    12479 +echo "$as_me:3125: checking if you wish to install curses.h" >&5
     13476+echo "$as_me:3126: checking if you wish to install curses.h" >&5
    1248013477 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
    1248113478 
    1248213479 # Check whether --with-curses-h or --without-curses-h was given.
    12483 @@ -3127,7 +3132,7 @@
     13480@@ -3127,7 +3133,7 @@
    1248413481 else
    1248513482   with_curses_h=yes
    1248613483 fi;
    1248713484-echo "$as_me:3130: result: $with_curses_h" >&5
    12488 +echo "$as_me:3135: result: $with_curses_h" >&5
     13485+echo "$as_me:3136: result: $with_curses_h" >&5
    1248913486 echo "${ECHO_T}$with_curses_h" >&6
    1249013487 
    1249113488 modules_to_build="ncurses"
    12492 @@ -3153,7 +3158,7 @@
     13489@@ -3153,7 +3159,7 @@
    1249313490 do
    1249413491   # Extract the first word of "$ac_prog", so it can be a program name with args.
    1249513492 set dummy $ac_prog; ac_word=$2
    1249613493-echo "$as_me:3156: checking for $ac_word" >&5
    12497 +echo "$as_me:3161: checking for $ac_word" >&5
     13494+echo "$as_me:3162: checking for $ac_word" >&5
    1249813495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1249913496 if test "${ac_cv_prog_AWK+set}" = set; then
    1250013497   echo $ECHO_N "(cached) $ECHO_C" >&6
    12501 @@ -3168,7 +3173,7 @@
     13498@@ -3168,7 +3174,7 @@
    1250213499   test -z "$ac_dir" && ac_dir=.
    1250313500   $as_executable_p "$ac_dir/$ac_word" || continue
    1250413501 ac_cv_prog_AWK="$ac_prog"
    1250513502-echo "$as_me:3171: found $ac_dir/$ac_word" >&5
    12506 +echo "$as_me:3176: found $ac_dir/$ac_word" >&5
     13503+echo "$as_me:3177: found $ac_dir/$ac_word" >&5
    1250713504 break
    1250813505 done
    1250913506 
    12510 @@ -3176,21 +3181,21 @@
     13507@@ -3176,21 +3182,21 @@
    1251113508 fi
    1251213509 AWK=$ac_cv_prog_AWK
    1251313510 if test -n "$AWK"; then
    1251413511-  echo "$as_me:3179: result: $AWK" >&5
    12515 +  echo "$as_me:3184: result: $AWK" >&5
     13512+  echo "$as_me:3185: result: $AWK" >&5
    1251613513 echo "${ECHO_T}$AWK" >&6
    1251713514 else
    1251813515-  echo "$as_me:3182: result: no" >&5
    12519 +  echo "$as_me:3187: result: no" >&5
     13516+  echo "$as_me:3188: result: no" >&5
    1252013517 echo "${ECHO_T}no" >&6
    1252113518 fi
     
    1252513522 
    1252613523-test -z "$AWK" && { { echo "$as_me:3189: error: No awk program found" >&5
    12527 +test -z "$AWK" && { { echo "$as_me:3194: error: No awk program found" >&5
     13524+test -z "$AWK" && { { echo "$as_me:3195: error: No awk program found" >&5
    1252813525 echo "$as_me: error: No awk program found" >&2;}
    1252913526    { (exit 1); exit 1; }; }
    1253013527 
    1253113528-echo "$as_me:3193: checking for egrep" >&5
    12532 +echo "$as_me:3198: checking for egrep" >&5
     13529+echo "$as_me:3199: checking for egrep" >&5
    1253313530 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    1253413531 if test "${ac_cv_prog_egrep+set}" = set; then
    1253513532   echo $ECHO_N "(cached) $ECHO_C" >&6
    12536 @@ -3200,11 +3205,11 @@
     13533@@ -3200,11 +3206,11 @@
    1253713534     else ac_cv_prog_egrep='egrep'
    1253813535     fi
    1253913536 fi
    1254013537-echo "$as_me:3203: result: $ac_cv_prog_egrep" >&5
    12541 +echo "$as_me:3208: result: $ac_cv_prog_egrep" >&5
     13538+echo "$as_me:3209: result: $ac_cv_prog_egrep" >&5
    1254213539 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    1254313540  EGREP=$ac_cv_prog_egrep
    1254413541 
    1254513542-test -z "$EGREP" && { { echo "$as_me:3207: error: No egrep program found" >&5
    12546 +test -z "$EGREP" && { { echo "$as_me:3212: error: No egrep program found" >&5
     13543+test -z "$EGREP" && { { echo "$as_me:3213: error: No egrep program found" >&5
    1254713544 echo "$as_me: error: No egrep program found" >&2;}
    1254813545    { (exit 1); exit 1; }; }
    1254913546 
    12550 @@ -3220,7 +3225,7 @@
     13547@@ -3220,7 +3226,7 @@
    1255113548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
    1255213549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    1255313550 # ./install, which can be erroneously created by make from ./install.sh.
    1255413551-echo "$as_me:3223: checking for a BSD compatible install" >&5
    12555 +echo "$as_me:3228: checking for a BSD compatible install" >&5
     13552+echo "$as_me:3229: checking for a BSD compatible install" >&5
    1255613553 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
    1255713554 if test -z "$INSTALL"; then
    1255813555 if test "${ac_cv_path_install+set}" = set; then
    12559 @@ -3269,7 +3274,7 @@
     13556@@ -3269,7 +3275,7 @@
    1256013557     INSTALL=$ac_install_sh
    1256113558   fi
    1256213559 fi
    1256313560-echo "$as_me:3272: result: $INSTALL" >&5
    12564 +echo "$as_me:3277: result: $INSTALL" >&5
     13561+echo "$as_me:3278: result: $INSTALL" >&5
    1256513562 echo "${ECHO_T}$INSTALL" >&6
    1256613563 
    1256713564 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
    12568 @@ -3294,7 +3299,7 @@
     13565@@ -3294,7 +3300,7 @@
    1256913566 do
    1257013567   # Extract the first word of "$ac_prog", so it can be a program name with args.
    1257113568 set dummy $ac_prog; ac_word=$2
    1257213569-echo "$as_me:3297: checking for $ac_word" >&5
    12573 +echo "$as_me:3302: checking for $ac_word" >&5
     13570+echo "$as_me:3303: checking for $ac_word" >&5
    1257413571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1257513572 if test "${ac_cv_prog_LINT+set}" = set; then
    1257613573   echo $ECHO_N "(cached) $ECHO_C" >&6
    12577 @@ -3309,7 +3314,7 @@
     13574@@ -3309,7 +3315,7 @@
    1257813575   test -z "$ac_dir" && ac_dir=.
    1257913576   $as_executable_p "$ac_dir/$ac_word" || continue
    1258013577 ac_cv_prog_LINT="$ac_prog"
    1258113578-echo "$as_me:3312: found $ac_dir/$ac_word" >&5
    12582 +echo "$as_me:3317: found $ac_dir/$ac_word" >&5
     13579+echo "$as_me:3318: found $ac_dir/$ac_word" >&5
    1258313580 break
    1258413581 done
    1258513582 
    12586 @@ -3317,57 +3322,91 @@
     13583@@ -3317,57 +3323,91 @@
    1258713584 fi
    1258813585 LINT=$ac_cv_prog_LINT
    1258913586 if test -n "$LINT"; then
    1259013587-  echo "$as_me:3320: result: $LINT" >&5
    12591 +  echo "$as_me:3325: result: $LINT" >&5
     13588+  echo "$as_me:3326: result: $LINT" >&5
    1259213589 echo "${ECHO_T}$LINT" >&6
    1259313590 else
    1259413591-  echo "$as_me:3323: result: no" >&5
    12595 +  echo "$as_me:3328: result: no" >&5
     13592+  echo "$as_me:3329: result: no" >&5
    1259613593 echo "${ECHO_T}no" >&6
    1259713594 fi
     
    1260113598 
    1260213599-echo "$as_me:3330: checking whether ln -s works" >&5
    12603 +echo "$as_me:3335: checking whether ln -s works" >&5
     13600+echo "$as_me:3336: checking whether ln -s works" >&5
    1260413601 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    1260513602 LN_S=$as_ln_s
    1260613603 if test "$LN_S" = "ln -s"; then
    1260713604-  echo "$as_me:3334: result: yes" >&5
    12608 +  echo "$as_me:3339: result: yes" >&5
     13605+  echo "$as_me:3340: result: yes" >&5
    1260913606 echo "${ECHO_T}yes" >&6
    1261013607 else
    1261113608-  echo "$as_me:3337: result: no, using $LN_S" >&5
    12612 +  echo "$as_me:3342: result: no, using $LN_S" >&5
     13609+  echo "$as_me:3343: result: no, using $LN_S" >&5
    1261313610 echo "${ECHO_T}no, using $LN_S" >&6
    1261413611 fi
     
    1261813615-set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
    1261913616-if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    12620 +echo "$as_me:3346: checking for long file names" >&5
     13617+echo "$as_me:3347: checking for long file names" >&5
    1262113618+echo $ECHO_N "checking for long file names... $ECHO_C" >&6
    1262213619+if test "${ac_cv_sys_long_file_names+set}" = set; then
     
    1267513672-echo "${ECHO_T}no" >&6
    1267613673-  SET_MAKE="MAKE=${MAKE-make}"
    12677 +echo "$as_me:3385: result: $ac_cv_sys_long_file_names" >&5
     13674+echo "$as_me:3386: result: $ac_cv_sys_long_file_names" >&5
    1267813675+echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
    1267913676+if test $ac_cv_sys_long_file_names = yes; then
     
    1268613683 
    1268713684-echo "$as_me:3370: checking if filesystem supports mixed-case filenames" >&5
    12688 +echo "$as_me:3395: checking if we should assume mixed-case filenames" >&5
     13685+echo "$as_me:3396: checking if we should assume mixed-case filenames" >&5
    1268913686+echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
    1269013687+
     
    1269613693+  enable_mixedcase=auto
    1269713694+fi;
    12698 +echo "$as_me:3405: result: $enable_mixedcase" >&5
     13695+echo "$as_me:3406: result: $enable_mixedcase" >&5
    1269913696+echo "${ECHO_T}$enable_mixedcase" >&6
    1270013697+if test "$enable_mixedcase" = "auto" ; then
    1270113698+
    12702 +echo "$as_me:3409: checking if filesystem supports mixed-case filenames" >&5
     13699+echo "$as_me:3410: checking if filesystem supports mixed-case filenames" >&5
    1270313700 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
    1270413701 if test "${cf_cv_mixedcase+set}" = set; then
    1270513702   echo $ECHO_N "(cached) $ECHO_C" >&6
    12706 @@ -3394,15 +3433,55 @@
     13703@@ -3394,15 +3434,55 @@
    1270713704 fi
    1270813705 
    1270913706 fi
    1271013707-echo "$as_me:3397: result: $cf_cv_mixedcase" >&5
    12711 +echo "$as_me:3436: result: $cf_cv_mixedcase" >&5
     13708+echo "$as_me:3437: result: $cf_cv_mixedcase" >&5
    1271213709 echo "${ECHO_T}$cf_cv_mixedcase" >&6
    1271313710 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
     
    1272613723+
    1272713724+# do this after mixed-case option (tags/TAGS is not as important as tic).
    12728 +echo "$as_me:3453: checking whether ${MAKE-make} sets \${MAKE}" >&5
     13725+echo "$as_me:3454: checking whether ${MAKE-make} sets \${MAKE}" >&5
    1272913726+echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
    1273013727+set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
     
    1274613743+fi
    1274713744+if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    12748 +  echo "$as_me:3473: result: yes" >&5
     13745+  echo "$as_me:3474: result: yes" >&5
    1274913746+echo "${ECHO_T}yes" >&6
    1275013747+  SET_MAKE=
    1275113748+else
    12752 +  echo "$as_me:3477: result: no" >&5
     13749+  echo "$as_me:3478: result: no" >&5
    1275313750+echo "${ECHO_T}no" >&6
    1275413751+  SET_MAKE="MAKE=${MAKE-make}"
     
    1275813755 set dummy ctags; ac_word=$2
    1275913756-echo "$as_me:3405: checking for $ac_word" >&5
    12760 +echo "$as_me:3484: checking for $ac_word" >&5
     13757+echo "$as_me:3485: checking for $ac_word" >&5
    1276113758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1276213759 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
    1276313760   echo $ECHO_N "(cached) $ECHO_C" >&6
    12764 @@ -3417,7 +3496,7 @@
     13761@@ -3417,7 +3497,7 @@
    1276513762   test -z "$ac_dir" && ac_dir=.
    1276613763   $as_executable_p "$ac_dir/$ac_word" || continue
    1276713764 ac_cv_prog_MAKE_LOWER_TAGS="yes"
    1276813765-echo "$as_me:3420: found $ac_dir/$ac_word" >&5
    12769 +echo "$as_me:3499: found $ac_dir/$ac_word" >&5
     13766+echo "$as_me:3500: found $ac_dir/$ac_word" >&5
    1277013767 break
    1277113768 done
    1277213769 
    12773 @@ -3426,17 +3505,17 @@
     13770@@ -3426,17 +3506,17 @@
    1277413771 fi
    1277513772 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
    1277613773 if test -n "$MAKE_LOWER_TAGS"; then
    1277713774-  echo "$as_me:3429: result: $MAKE_LOWER_TAGS" >&5
    12778 +  echo "$as_me:3508: result: $MAKE_LOWER_TAGS" >&5
     13775+  echo "$as_me:3509: result: $MAKE_LOWER_TAGS" >&5
    1277913776 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
    1278013777 else
    1278113778-  echo "$as_me:3432: result: no" >&5
    12782 +  echo "$as_me:3511: result: no" >&5
     13779+  echo "$as_me:3512: result: no" >&5
    1278313780 echo "${ECHO_T}no" >&6
    1278413781 fi
     
    1278813785 set dummy etags; ac_word=$2
    1278913786-echo "$as_me:3439: checking for $ac_word" >&5
    12790 +echo "$as_me:3518: checking for $ac_word" >&5
     13787+echo "$as_me:3519: checking for $ac_word" >&5
    1279113788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1279213789 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
    1279313790   echo $ECHO_N "(cached) $ECHO_C" >&6
    12794 @@ -3451,7 +3530,7 @@
     13791@@ -3451,7 +3531,7 @@
    1279513792   test -z "$ac_dir" && ac_dir=.
    1279613793   $as_executable_p "$ac_dir/$ac_word" || continue
    1279713794 ac_cv_prog_MAKE_UPPER_TAGS="yes"
    1279813795-echo "$as_me:3454: found $ac_dir/$ac_word" >&5
    12799 +echo "$as_me:3533: found $ac_dir/$ac_word" >&5
     13796+echo "$as_me:3534: found $ac_dir/$ac_word" >&5
    1280013797 break
    1280113798 done
    1280213799 
    12803 @@ -3460,10 +3539,10 @@
     13800@@ -3460,10 +3540,10 @@
    1280413801 fi
    1280513802 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
    1280613803 if test -n "$MAKE_UPPER_TAGS"; then
    1280713804-  echo "$as_me:3463: result: $MAKE_UPPER_TAGS" >&5
    12808 +  echo "$as_me:3542: result: $MAKE_UPPER_TAGS" >&5
     13805+  echo "$as_me:3543: result: $MAKE_UPPER_TAGS" >&5
    1280913806 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
    1281013807 else
    1281113808-  echo "$as_me:3466: result: no" >&5
    12812 +  echo "$as_me:3545: result: no" >&5
     13809+  echo "$as_me:3546: result: no" >&5
    1281313810 echo "${ECHO_T}no" >&6
    1281413811 fi
    1281513812 
    12816 @@ -3483,7 +3562,7 @@
     13813@@ -3483,7 +3563,7 @@
    1281713814        MAKE_LOWER_TAGS="#"
    1281813815 fi
    1281913816 
    1282013817-echo "$as_me:3486: checking for makeflags variable" >&5
    12821 +echo "$as_me:3565: checking for makeflags variable" >&5
     13818+echo "$as_me:3566: checking for makeflags variable" >&5
    1282213819 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
    1282313820 if test "${cf_cv_makeflags+set}" = set; then
    1282413821   echo $ECHO_N "(cached) $ECHO_C" >&6
    12825 @@ -3517,95 +3596,13 @@
     13822@@ -3517,95 +3597,13 @@
    1282613823        rm -f cf_makeflags.tmp
    1282713824 
    1282813825 fi
    1282913826-echo "$as_me:3520: result: $cf_cv_makeflags" >&5
    12830 +echo "$as_me:3599: result: $cf_cv_makeflags" >&5
     13827+echo "$as_me:3600: result: $cf_cv_makeflags" >&5
    1283113828 echo "${ECHO_T}$cf_cv_makeflags" >&6
    1283213829 
     
    1291713914 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    1291813915-echo "$as_me:3608: checking for $ac_word" >&5
    12919 +echo "$as_me:3605: checking for $ac_word" >&5
     13916+echo "$as_me:3606: checking for $ac_word" >&5
    1292013917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1292113918 if test "${ac_cv_prog_RANLIB+set}" = set; then
    1292213919   echo $ECHO_N "(cached) $ECHO_C" >&6
    12923 @@ -3620,7 +3617,7 @@
     13920@@ -3620,7 +3618,7 @@
    1292413921   test -z "$ac_dir" && ac_dir=.
    1292513922   $as_executable_p "$ac_dir/$ac_word" || continue
    1292613923 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    1292713924-echo "$as_me:3623: found $ac_dir/$ac_word" >&5
    12928 +echo "$as_me:3620: found $ac_dir/$ac_word" >&5
     13925+echo "$as_me:3621: found $ac_dir/$ac_word" >&5
    1292913926 break
    1293013927 done
    1293113928 
    12932 @@ -3628,10 +3625,10 @@
     13929@@ -3628,10 +3626,10 @@
    1293313930 fi
    1293413931 RANLIB=$ac_cv_prog_RANLIB
    1293513932 if test -n "$RANLIB"; then
    1293613933-  echo "$as_me:3631: result: $RANLIB" >&5
    12937 +  echo "$as_me:3628: result: $RANLIB" >&5
     13934+  echo "$as_me:3629: result: $RANLIB" >&5
    1293813935 echo "${ECHO_T}$RANLIB" >&6
    1293913936 else
    1294013937-  echo "$as_me:3634: result: no" >&5
    12941 +  echo "$as_me:3631: result: no" >&5
     13938+  echo "$as_me:3632: result: no" >&5
    1294213939 echo "${ECHO_T}no" >&6
    1294313940 fi
    1294413941 
    12945 @@ -3640,7 +3637,7 @@
     13942@@ -3640,7 +3638,7 @@
    1294613943   ac_ct_RANLIB=$RANLIB
    1294713944   # Extract the first word of "ranlib", so it can be a program name with args.
    1294813945 set dummy ranlib; ac_word=$2
    1294913946-echo "$as_me:3643: checking for $ac_word" >&5
    12950 +echo "$as_me:3640: checking for $ac_word" >&5
     13947+echo "$as_me:3641: checking for $ac_word" >&5
    1295113948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1295213949 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
    1295313950   echo $ECHO_N "(cached) $ECHO_C" >&6
    12954 @@ -3655,7 +3652,7 @@
     13951@@ -3655,7 +3653,7 @@
    1295513952   test -z "$ac_dir" && ac_dir=.
    1295613953   $as_executable_p "$ac_dir/$ac_word" || continue
    1295713954 ac_cv_prog_ac_ct_RANLIB="ranlib"
    1295813955-echo "$as_me:3658: found $ac_dir/$ac_word" >&5
    12959 +echo "$as_me:3655: found $ac_dir/$ac_word" >&5
     13956+echo "$as_me:3656: found $ac_dir/$ac_word" >&5
    1296013957 break
    1296113958 done
    1296213959 
    12963 @@ -3664,10 +3661,10 @@
     13960@@ -3664,10 +3662,10 @@
    1296413961 fi
    1296513962 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    1296613963 if test -n "$ac_ct_RANLIB"; then
    1296713964-  echo "$as_me:3667: result: $ac_ct_RANLIB" >&5
    12968 +  echo "$as_me:3664: result: $ac_ct_RANLIB" >&5
     13965+  echo "$as_me:3665: result: $ac_ct_RANLIB" >&5
    1296913966 echo "${ECHO_T}$ac_ct_RANLIB" >&6
    1297013967 else
    1297113968-  echo "$as_me:3670: result: no" >&5
    12972 +  echo "$as_me:3667: result: no" >&5
     13969+  echo "$as_me:3668: result: no" >&5
    1297313970 echo "${ECHO_T}no" >&6
    1297413971 fi
    1297513972 
    12976 @@ -3679,7 +3676,7 @@
     13973@@ -3679,7 +3677,7 @@
    1297713974 if test -n "$ac_tool_prefix"; then
    1297813975   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
    1297913976 set dummy ${ac_tool_prefix}ld; ac_word=$2
    1298013977-echo "$as_me:3682: checking for $ac_word" >&5
    12981 +echo "$as_me:3679: checking for $ac_word" >&5
     13978+echo "$as_me:3680: checking for $ac_word" >&5
    1298213979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1298313980 if test "${ac_cv_prog_LD+set}" = set; then
    1298413981   echo $ECHO_N "(cached) $ECHO_C" >&6
    12985 @@ -3694,7 +3691,7 @@
     13982@@ -3694,7 +3692,7 @@
    1298613983   test -z "$ac_dir" && ac_dir=.
    1298713984   $as_executable_p "$ac_dir/$ac_word" || continue
    1298813985 ac_cv_prog_LD="${ac_tool_prefix}ld"
    1298913986-echo "$as_me:3697: found $ac_dir/$ac_word" >&5
    12990 +echo "$as_me:3694: found $ac_dir/$ac_word" >&5
     13987+echo "$as_me:3695: found $ac_dir/$ac_word" >&5
    1299113988 break
    1299213989 done
    1299313990 
    12994 @@ -3702,10 +3699,10 @@
     13991@@ -3702,10 +3700,10 @@
    1299513992 fi
    1299613993 LD=$ac_cv_prog_LD
    1299713994 if test -n "$LD"; then
    1299813995-  echo "$as_me:3705: result: $LD" >&5
    12999 +  echo "$as_me:3702: result: $LD" >&5
     13996+  echo "$as_me:3703: result: $LD" >&5
    1300013997 echo "${ECHO_T}$LD" >&6
    1300113998 else
    1300213999-  echo "$as_me:3708: result: no" >&5
    13003 +  echo "$as_me:3705: result: no" >&5
     14000+  echo "$as_me:3706: result: no" >&5
    1300414001 echo "${ECHO_T}no" >&6
    1300514002 fi
    1300614003 
    13007 @@ -3714,7 +3711,7 @@
     14004@@ -3714,7 +3712,7 @@
    1300814005   ac_ct_LD=$LD
    1300914006   # Extract the first word of "ld", so it can be a program name with args.
    1301014007 set dummy ld; ac_word=$2
    1301114008-echo "$as_me:3717: checking for $ac_word" >&5
    13012 +echo "$as_me:3714: checking for $ac_word" >&5
     14009+echo "$as_me:3715: checking for $ac_word" >&5
    1301314010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1301414011 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
    1301514012   echo $ECHO_N "(cached) $ECHO_C" >&6
    13016 @@ -3729,7 +3726,7 @@
     14013@@ -3729,7 +3727,7 @@
    1301714014   test -z "$ac_dir" && ac_dir=.
    1301814015   $as_executable_p "$ac_dir/$ac_word" || continue
    1301914016 ac_cv_prog_ac_ct_LD="ld"
    1302014017-echo "$as_me:3732: found $ac_dir/$ac_word" >&5
    13021 +echo "$as_me:3729: found $ac_dir/$ac_word" >&5
     14018+echo "$as_me:3730: found $ac_dir/$ac_word" >&5
    1302214019 break
    1302314020 done
    1302414021 
    13025 @@ -3738,10 +3735,10 @@
     14022@@ -3738,10 +3736,10 @@
    1302614023 fi
    1302714024 ac_ct_LD=$ac_cv_prog_ac_ct_LD
    1302814025 if test -n "$ac_ct_LD"; then
    1302914026-  echo "$as_me:3741: result: $ac_ct_LD" >&5
    13030 +  echo "$as_me:3738: result: $ac_ct_LD" >&5
     14027+  echo "$as_me:3739: result: $ac_ct_LD" >&5
    1303114028 echo "${ECHO_T}$ac_ct_LD" >&6
    1303214029 else
    1303314030-  echo "$as_me:3744: result: no" >&5
    13034 +  echo "$as_me:3741: result: no" >&5
     14031+  echo "$as_me:3742: result: no" >&5
    1303514032 echo "${ECHO_T}no" >&6
    1303614033 fi
    1303714034 
    13038 @@ -3753,7 +3750,7 @@
     14035@@ -3753,7 +3751,7 @@
    1303914036 if test -n "$ac_tool_prefix"; then
    1304014037   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
    1304114038 set dummy ${ac_tool_prefix}ar; ac_word=$2
    1304214039-echo "$as_me:3756: checking for $ac_word" >&5
    13043 +echo "$as_me:3753: checking for $ac_word" >&5
     14040+echo "$as_me:3754: checking for $ac_word" >&5
    1304414041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1304514042 if test "${ac_cv_prog_AR+set}" = set; then
    1304614043   echo $ECHO_N "(cached) $ECHO_C" >&6
    13047 @@ -3768,7 +3765,7 @@
     14044@@ -3768,7 +3766,7 @@
    1304814045   test -z "$ac_dir" && ac_dir=.
    1304914046   $as_executable_p "$ac_dir/$ac_word" || continue
    1305014047 ac_cv_prog_AR="${ac_tool_prefix}ar"
    1305114048-echo "$as_me:3771: found $ac_dir/$ac_word" >&5
    13052 +echo "$as_me:3768: found $ac_dir/$ac_word" >&5
     14049+echo "$as_me:3769: found $ac_dir/$ac_word" >&5
    1305314050 break
    1305414051 done
    1305514052 
    13056 @@ -3776,10 +3773,10 @@
     14053@@ -3776,10 +3774,10 @@
    1305714054 fi
    1305814055 AR=$ac_cv_prog_AR
    1305914056 if test -n "$AR"; then
    1306014057-  echo "$as_me:3779: result: $AR" >&5
    13061 +  echo "$as_me:3776: result: $AR" >&5
     14058+  echo "$as_me:3777: result: $AR" >&5
    1306214059 echo "${ECHO_T}$AR" >&6
    1306314060 else
    1306414061-  echo "$as_me:3782: result: no" >&5
    13065 +  echo "$as_me:3779: result: no" >&5
     14062+  echo "$as_me:3780: result: no" >&5
    1306614063 echo "${ECHO_T}no" >&6
    1306714064 fi
    1306814065 
    13069 @@ -3788,7 +3785,7 @@
     14066@@ -3788,7 +3786,7 @@
    1307014067   ac_ct_AR=$AR
    1307114068   # Extract the first word of "ar", so it can be a program name with args.
    1307214069 set dummy ar; ac_word=$2
    1307314070-echo "$as_me:3791: checking for $ac_word" >&5
    13074 +echo "$as_me:3788: checking for $ac_word" >&5
     14071+echo "$as_me:3789: checking for $ac_word" >&5
    1307514072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1307614073 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
    1307714074   echo $ECHO_N "(cached) $ECHO_C" >&6
    13078 @@ -3803,7 +3800,7 @@
     14075@@ -3803,7 +3801,7 @@
    1307914076   test -z "$ac_dir" && ac_dir=.
    1308014077   $as_executable_p "$ac_dir/$ac_word" || continue
    1308114078 ac_cv_prog_ac_ct_AR="ar"
    1308214079-echo "$as_me:3806: found $ac_dir/$ac_word" >&5
    13083 +echo "$as_me:3803: found $ac_dir/$ac_word" >&5
     14080+echo "$as_me:3804: found $ac_dir/$ac_word" >&5
    1308414081 break
    1308514082 done
    1308614083 
    13087 @@ -3812,10 +3809,10 @@
     14084@@ -3812,10 +3810,10 @@
    1308814085 fi
    1308914086 ac_ct_AR=$ac_cv_prog_ac_ct_AR
    1309014087 if test -n "$ac_ct_AR"; then
    1309114088-  echo "$as_me:3815: result: $ac_ct_AR" >&5
    13092 +  echo "$as_me:3812: result: $ac_ct_AR" >&5
     14089+  echo "$as_me:3813: result: $ac_ct_AR" >&5
    1309314090 echo "${ECHO_T}$ac_ct_AR" >&6
    1309414091 else
    1309514092-  echo "$as_me:3818: result: no" >&5
    13096 +  echo "$as_me:3815: result: no" >&5
     14093+  echo "$as_me:3816: result: no" >&5
    1309714094 echo "${ECHO_T}no" >&6
    1309814095 fi
    1309914096 
    13100 @@ -3828,7 +3825,7 @@
     14097@@ -3828,7 +3826,7 @@
    1310114098   echo $ECHO_N "(cached) $ECHO_C" >&6
    1310214099 else
    1310314100 
    1310414101-echo "$as_me:3831: checking for archiver options (symbol AR_OPTS)" >&5
    13105 +echo "$as_me:3828: checking for archiver options (symbol AR_OPTS)" >&5
     14102+echo "$as_me:3829: checking for archiver options (symbol AR_OPTS)" >&5
    1310614103 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
    1310714104 
    1310814105 if test -z "$AR_OPTS" ; then
    13109 @@ -3837,12 +3834,12 @@
     14106@@ -3837,12 +3835,12 @@
    1311014107 fi
    1311114108 
    1311214109 cf_cv_subst_AR_OPTS=$AR_OPTS
    1311314110-echo "$as_me:3840: result: $AR_OPTS" >&5
    13114 +echo "$as_me:3837: result: $AR_OPTS" >&5
     14111+echo "$as_me:3838: result: $AR_OPTS" >&5
    1311514112 echo "${ECHO_T}$AR_OPTS" >&6
    1311614113 
     
    1311814115 
    1311914116-echo "$as_me:3845: checking if you have specified an install-prefix" >&5
    13120 +echo "$as_me:3842: checking if you have specified an install-prefix" >&5
     14117+echo "$as_me:3843: checking if you have specified an install-prefix" >&5
    1312114118 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
    1312214119 
    1312314120 # Check whether --with-install-prefix or --without-install-prefix was given.
    13124 @@ -3855,7 +3852,7 @@
     14121@@ -3855,7 +3853,7 @@
    1312514122                ;;
    1312614123        esac
    1312714124 fi;
    1312814125-echo "$as_me:3858: result: $DESTDIR" >&5
    13129 +echo "$as_me:3855: result: $DESTDIR" >&5
     14126+echo "$as_me:3856: result: $DESTDIR" >&5
    1313014127 echo "${ECHO_T}$DESTDIR" >&6
    1313114128 
    1313214129 ###############################################################################
    13133 @@ -3883,7 +3880,7 @@
     14130@@ -3883,7 +3881,7 @@
    1313414131 do
    1313514132   # Extract the first word of "$ac_prog", so it can be a program name with args.
    1313614133 set dummy $ac_prog; ac_word=$2
    1313714134-echo "$as_me:3886: checking for $ac_word" >&5
    13138 +echo "$as_me:3883: checking for $ac_word" >&5
     14135+echo "$as_me:3884: checking for $ac_word" >&5
    1313914136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1314014137 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
    1314114138   echo $ECHO_N "(cached) $ECHO_C" >&6
    13142 @@ -3898,7 +3895,7 @@
     14139@@ -3898,7 +3896,7 @@
    1314314140   test -z "$ac_dir" && ac_dir=.
    1314414141   $as_executable_p "$ac_dir/$ac_word" || continue
    1314514142 ac_cv_prog_BUILD_CC="$ac_prog"
    1314614143-echo "$as_me:3901: found $ac_dir/$ac_word" >&5
    13147 +echo "$as_me:3898: found $ac_dir/$ac_word" >&5
     14144+echo "$as_me:3899: found $ac_dir/$ac_word" >&5
    1314814145 break
    1314914146 done
    1315014147 
    13151 @@ -3906,10 +3903,10 @@
     14148@@ -3906,10 +3904,10 @@
    1315214149 fi
    1315314150 BUILD_CC=$ac_cv_prog_BUILD_CC
    1315414151 if test -n "$BUILD_CC"; then
    1315514152-  echo "$as_me:3909: result: $BUILD_CC" >&5
    13156 +  echo "$as_me:3906: result: $BUILD_CC" >&5
     14153+  echo "$as_me:3907: result: $BUILD_CC" >&5
    1315714154 echo "${ECHO_T}$BUILD_CC" >&6
    1315814155 else
    1315914156-  echo "$as_me:3912: result: no" >&5
    13160 +  echo "$as_me:3909: result: no" >&5
     14157+  echo "$as_me:3910: result: no" >&5
    1316114158 echo "${ECHO_T}no" >&6
    1316214159 fi
    1316314160 
    13164 @@ -3917,12 +3914,12 @@
     14161@@ -3917,12 +3915,12 @@
    1316514162 done
    1316614163 
    1316714164 fi;
    1316814165-       echo "$as_me:3920: checking for native build C compiler" >&5
    13169 +       echo "$as_me:3917: checking for native build C compiler" >&5
     14166+       echo "$as_me:3918: checking for native build C compiler" >&5
    1317014167 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
    1317114168-       echo "$as_me:3922: result: $BUILD_CC" >&5
    13172 +       echo "$as_me:3919: result: $BUILD_CC" >&5
     14169+       echo "$as_me:3920: result: $BUILD_CC" >&5
    1317314170 echo "${ECHO_T}$BUILD_CC" >&6
    1317414171 
    1317514172-       echo "$as_me:3925: checking for native build C preprocessor" >&5
    13176 +       echo "$as_me:3922: checking for native build C preprocessor" >&5
     14173+       echo "$as_me:3923: checking for native build C preprocessor" >&5
    1317714174 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
    1317814175 
    1317914176 # Check whether --with-build-cpp or --without-build-cpp was given.
    13180 @@ -3932,10 +3929,10 @@
     14177@@ -3932,10 +3930,10 @@
    1318114178 else
    1318214179   BUILD_CPP='${BUILD_CC} -E'
    1318314180 fi;
    1318414181-       echo "$as_me:3935: result: $BUILD_CPP" >&5
    13185 +       echo "$as_me:3932: result: $BUILD_CPP" >&5
     14182+       echo "$as_me:3933: result: $BUILD_CPP" >&5
    1318614183 echo "${ECHO_T}$BUILD_CPP" >&6
    1318714184 
    1318814185-       echo "$as_me:3938: checking for native build C flags" >&5
    13189 +       echo "$as_me:3935: checking for native build C flags" >&5
     14186+       echo "$as_me:3936: checking for native build C flags" >&5
    1319014187 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
    1319114188 
    1319214189 # Check whether --with-build-cflags or --without-build-cflags was given.
    13193 @@ -3943,10 +3940,10 @@
     14190@@ -3943,10 +3941,10 @@
    1319414191   withval="$with_build_cflags"
    1319514192   BUILD_CFLAGS="$withval"
    1319614193 fi;
    1319714194-       echo "$as_me:3946: result: $BUILD_CFLAGS" >&5
    13198 +       echo "$as_me:3943: result: $BUILD_CFLAGS" >&5
     14195+       echo "$as_me:3944: result: $BUILD_CFLAGS" >&5
    1319914196 echo "${ECHO_T}$BUILD_CFLAGS" >&6
    1320014197 
    1320114198-       echo "$as_me:3949: checking for native build C preprocessor-flags" >&5
    13202 +       echo "$as_me:3946: checking for native build C preprocessor-flags" >&5
     14199+       echo "$as_me:3947: checking for native build C preprocessor-flags" >&5
    1320314200 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
    1320414201 
    1320514202 # Check whether --with-build-cppflags or --without-build-cppflags was given.
    13206 @@ -3954,10 +3951,10 @@
     14203@@ -3954,10 +3952,10 @@
    1320714204   withval="$with_build_cppflags"
    1320814205   BUILD_CPPFLAGS="$withval"
    1320914206 fi;
    1321014207-       echo "$as_me:3957: result: $BUILD_CPPFLAGS" >&5
    13211 +       echo "$as_me:3954: result: $BUILD_CPPFLAGS" >&5
     14208+       echo "$as_me:3955: result: $BUILD_CPPFLAGS" >&5
    1321214209 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
    1321314210 
    1321414211-       echo "$as_me:3960: checking for native build linker-flags" >&5
    13215 +       echo "$as_me:3957: checking for native build linker-flags" >&5
     14212+       echo "$as_me:3958: checking for native build linker-flags" >&5
    1321614213 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
    1321714214 
    1321814215 # Check whether --with-build-ldflags or --without-build-ldflags was given.
    13219 @@ -3965,10 +3962,10 @@
     14216@@ -3965,10 +3963,10 @@
    1322014217   withval="$with_build_ldflags"
    1322114218   BUILD_LDFLAGS="$withval"
    1322214219 fi;
    1322314220-       echo "$as_me:3968: result: $BUILD_LDFLAGS" >&5
    13224 +       echo "$as_me:3965: result: $BUILD_LDFLAGS" >&5
     14221+       echo "$as_me:3966: result: $BUILD_LDFLAGS" >&5
    1322514222 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
    1322614223 
    1322714224-       echo "$as_me:3971: checking for native build linker-libraries" >&5
    13228 +       echo "$as_me:3968: checking for native build linker-libraries" >&5
     14225+       echo "$as_me:3969: checking for native build linker-libraries" >&5
    1322914226 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
    1323014227 
    1323114228 # Check whether --with-build-libs or --without-build-libs was given.
    13232 @@ -3976,7 +3973,7 @@
     14229@@ -3976,7 +3974,7 @@
    1323314230   withval="$with_build_libs"
    1323414231   BUILD_LIBS="$withval"
    1323514232 fi;
    1323614233-       echo "$as_me:3979: result: $BUILD_LIBS" >&5
    13237 +       echo "$as_me:3976: result: $BUILD_LIBS" >&5
     14234+       echo "$as_me:3977: result: $BUILD_LIBS" >&5
    1323814235 echo "${ECHO_T}$BUILD_LIBS" >&6
    1323914236 
    1324014237        # this assumes we're on Unix.
    13241 @@ -3986,7 +3983,7 @@
     14238@@ -3986,7 +3984,7 @@
    1324214239        : ${BUILD_CC:='${CC}'}
    1324314240 
    1324414241        if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
    1324514242-               { { echo "$as_me:3989: error: Cross-build requires two compilers.
    13246 +               { { echo "$as_me:3986: error: Cross-build requires two compilers.
     14243+               { { echo "$as_me:3987: error: Cross-build requires two compilers.
    1324714244 Use --with-build-cc to specify the native compiler." >&5
    1324814245 echo "$as_me: error: Cross-build requires two compilers.
    1324914246 Use --with-build-cc to specify the native compiler." >&2;}
    13250 @@ -4023,11 +4020,11 @@
     14247@@ -4023,11 +4021,11 @@
    1325114248 # doing:
    1325214249 LIB_CLEAN=
     
    1325814255 
    1325914256-echo "$as_me:4030: checking if you want to build libraries with libtool" >&5
    13260 +echo "$as_me:4027: checking if you want to build libraries with libtool" >&5
     14257+echo "$as_me:4028: checking if you want to build libraries with libtool" >&5
    1326114258 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
    1326214259 
    1326314260 # Check whether --with-libtool or --without-libtool was given.
    13264 @@ -4037,7 +4034,7 @@
     14261@@ -4037,7 +4035,7 @@
    1326514262 else
    1326614263   with_libtool=no
    1326714264 fi;
    1326814265-echo "$as_me:4040: result: $with_libtool" >&5
    13269 +echo "$as_me:4037: result: $with_libtool" >&5
     14266+echo "$as_me:4038: result: $with_libtool" >&5
    1327014267 echo "${ECHO_T}$with_libtool" >&6
    1327114268 if test "$with_libtool" != "no"; then
    1327214269 
    13273 @@ -4068,7 +4065,7 @@
     14270@@ -4068,7 +4066,7 @@
    1327414271   with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
    1327514272   ;;
    1327614273 *)
    1327714274-  { { echo "$as_me:4071: error: expected a pathname, not \"$with_libtool\"" >&5
    13278 +  { { echo "$as_me:4068: error: expected a pathname, not \"$with_libtool\"" >&5
     14275+  { { echo "$as_me:4069: error: expected a pathname, not \"$with_libtool\"" >&5
    1327914276 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
    1328014277    { (exit 1); exit 1; }; }
    1328114278   ;;
    13282 @@ -4078,7 +4075,7 @@
     14279@@ -4078,7 +4076,7 @@
    1328314280        else
    1328414281                # Extract the first word of "libtool", so it can be a program name with args.
    1328514282 set dummy libtool; ac_word=$2
    1328614283-echo "$as_me:4081: checking for $ac_word" >&5
    13287 +echo "$as_me:4078: checking for $ac_word" >&5
     14284+echo "$as_me:4079: checking for $ac_word" >&5
    1328814285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1328914286 if test "${ac_cv_path_LIBTOOL+set}" = set; then
    1329014287   echo $ECHO_N "(cached) $ECHO_C" >&6
    13291 @@ -4095,7 +4092,7 @@
     14288@@ -4095,7 +4093,7 @@
    1329214289   test -z "$ac_dir" && ac_dir=.
    1329314290   if $as_executable_p "$ac_dir/$ac_word"; then
    1329414291    ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
    1329514292-   echo "$as_me:4098: found $ac_dir/$ac_word" >&5
    13296 +   echo "$as_me:4095: found $ac_dir/$ac_word" >&5
     14293+   echo "$as_me:4096: found $ac_dir/$ac_word" >&5
    1329714294    break
    1329814295 fi
    1329914296 done
    13300 @@ -4106,42 +4103,42 @@
     14297@@ -4106,42 +4104,42 @@
    1330114298 LIBTOOL=$ac_cv_path_LIBTOOL
    1330214299 
    1330314300 if test -n "$LIBTOOL"; then
    1330414301-  echo "$as_me:4109: result: $LIBTOOL" >&5
    13305 +  echo "$as_me:4106: result: $LIBTOOL" >&5
     14302+  echo "$as_me:4107: result: $LIBTOOL" >&5
    1330614303 echo "${ECHO_T}$LIBTOOL" >&6
    1330714304 else
    1330814305-  echo "$as_me:4112: result: no" >&5
    13309 +  echo "$as_me:4109: result: no" >&5
     14306+  echo "$as_me:4110: result: no" >&5
    1331014307 echo "${ECHO_T}no" >&6
    1331114308 fi
     
    1331414311        if test -z "$LIBTOOL" ; then
    1331514312-               { { echo "$as_me:4118: error: Cannot find libtool" >&5
    13316 +               { { echo "$as_me:4115: error: Cannot find libtool" >&5
     14313+               { { echo "$as_me:4116: error: Cannot find libtool" >&5
    1331714314 echo "$as_me: error: Cannot find libtool" >&2;}
    1331814315    { (exit 1); exit 1; }; }
     
    1333314330        # Show the version of libtool
    1333414331-       echo "$as_me:4133: checking version of libtool" >&5
    13335 +       echo "$as_me:4130: checking version of libtool" >&5
     14332+       echo "$as_me:4131: checking version of libtool" >&5
    1333614333 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
    1333714334 
     
    1334214339-       echo "$as_me:4140: result: $cf_cv_libtool_version" >&5
    1334314340+       cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
    13344 +       echo "$as_me:4137: result: $cf_cv_libtool_version" >&5
     14341+       echo "$as_me:4138: result: $cf_cv_libtool_version" >&5
    1334514342 echo "${ECHO_T}$cf_cv_libtool_version" >&6
    1334614343        if test -z "$cf_cv_libtool_version" ; then
    1334714344-               { { echo "$as_me:4143: error: This is not libtool" >&5
    1334814345-echo "$as_me: error: This is not libtool" >&2;}
    13349 +               { { echo "$as_me:4140: error: This is not GNU libtool" >&5
     14346+               { { echo "$as_me:4141: error: This is not GNU libtool" >&5
    1335014347+echo "$as_me: error: This is not GNU libtool" >&2;}
    1335114348    { (exit 1); exit 1; }; }
    1335214349        fi
    1335314350 
    13354 @@ -4167,7 +4164,7 @@
     14351@@ -4149,6 +4147,7 @@
     14352        case $cf_cv_libtool_version in
     14353        1.[5-9]*|[2-9]*)
     14354                LIBTOOL_CXX="$LIBTOOL --tag=CXX"
     14355+               LIBTOOL="$LIBTOOL --tag=CC"
     14356                ;;
     14357        *)
     14358                LIBTOOL_CXX="$LIBTOOL"
     14359@@ -4167,7 +4166,7 @@
    1335514360 
    1335614361 else
    1335714362 
    1335814363-echo "$as_me:4170: checking if you want to build shared libraries" >&5
    13359 +echo "$as_me:4167: checking if you want to build shared libraries" >&5
     14364+echo "$as_me:4169: checking if you want to build shared libraries" >&5
    1336014365 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
    1336114366 
    1336214367 # Check whether --with-shared or --without-shared was given.
    13363 @@ -4177,11 +4174,11 @@
     14368@@ -4177,11 +4176,11 @@
    1336414369 else
    1336514370   with_shared=no
    1336614371 fi;
    1336714372-echo "$as_me:4180: result: $with_shared" >&5
    13368 +echo "$as_me:4177: result: $with_shared" >&5
     14373+echo "$as_me:4179: result: $with_shared" >&5
    1336914374 echo "${ECHO_T}$with_shared" >&6
    1337014375 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
    1337114376 
    1337214377-echo "$as_me:4184: checking if you want to build static libraries" >&5
    13373 +echo "$as_me:4181: checking if you want to build static libraries" >&5
     14378+echo "$as_me:4183: checking if you want to build static libraries" >&5
    1337414379 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
    1337514380 
    1337614381 # Check whether --with-normal or --without-normal was given.
    13377 @@ -4191,11 +4188,11 @@
     14382@@ -4191,11 +4190,11 @@
    1337814383 else
    1337914384   with_normal=yes
    1338014385 fi;
    1338114386-echo "$as_me:4194: result: $with_normal" >&5
    13382 +echo "$as_me:4191: result: $with_normal" >&5
     14387+echo "$as_me:4193: result: $with_normal" >&5
    1338314388 echo "${ECHO_T}$with_normal" >&6
    1338414389 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
    1338514390 
    1338614391-echo "$as_me:4198: checking if you want to build debug libraries" >&5
    13387 +echo "$as_me:4195: checking if you want to build debug libraries" >&5
     14392+echo "$as_me:4197: checking if you want to build debug libraries" >&5
    1338814393 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
    1338914394 
    1339014395 # Check whether --with-debug or --without-debug was given.
    13391 @@ -4205,11 +4202,11 @@
     14396@@ -4205,11 +4204,11 @@
    1339214397 else
    1339314398   with_debug=yes
    1339414399 fi;
    1339514400-echo "$as_me:4208: result: $with_debug" >&5
    13396 +echo "$as_me:4205: result: $with_debug" >&5
     14401+echo "$as_me:4207: result: $with_debug" >&5
    1339714402 echo "${ECHO_T}$with_debug" >&6
    1339814403 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
    1339914404 
    1340014405-echo "$as_me:4212: checking if you want to build profiling libraries" >&5
    13401 +echo "$as_me:4209: checking if you want to build profiling libraries" >&5
     14406+echo "$as_me:4211: checking if you want to build profiling libraries" >&5
    1340214407 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
    1340314408 
    1340414409 # Check whether --with-profile or --without-profile was given.
    13405 @@ -4219,7 +4216,7 @@
     14410@@ -4219,7 +4218,7 @@
    1340614411 else
    1340714412   with_profile=no
    1340814413 fi;
    1340914414-echo "$as_me:4222: result: $with_profile" >&5
    13410 +echo "$as_me:4219: result: $with_profile" >&5
     14415+echo "$as_me:4221: result: $with_profile" >&5
    1341114416 echo "${ECHO_T}$with_profile" >&6
    1341214417 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
    1341314418 
    13414 @@ -4227,23 +4224,25 @@
     14419@@ -4227,23 +4226,25 @@
    1341514420 
    1341614421 ###############################################################################
    1341714422 
    1341814423-echo "$as_me:4230: checking for specified models" >&5
    13419 +echo "$as_me:4227: checking for specified models" >&5
     14424+echo "$as_me:4229: checking for specified models" >&5
    1342014425 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
    1342114426 test -z "$cf_list_models" && cf_list_models=normal
    1342214427 test "$with_libtool" != "no" && cf_list_models=libtool
    1342314428-echo "$as_me:4234: result: $cf_list_models" >&5
    13424 +echo "$as_me:4231: result: $cf_list_models" >&5
     14429+echo "$as_me:4233: result: $cf_list_models" >&5
    1342514430 echo "${ECHO_T}$cf_list_models" >&6
    1342614431 
     
    1342814433 ### up test-applications.
    1342914434-echo "$as_me:4239: checking for default model" >&5
    13430 +echo "$as_me:4236: checking for default model" >&5
     14435+echo "$as_me:4238: checking for default model" >&5
    1343114436 echo $ECHO_N "checking for default model... $ECHO_C" >&6
    1343214437 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
    1343314438-echo "$as_me:4242: result: $DFT_LWR_MODEL" >&5
    13434 +echo "$as_me:4239: result: $DFT_LWR_MODEL" >&5
     14439+echo "$as_me:4241: result: $DFT_LWR_MODEL" >&5
    1343514440 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
    1343614441 
     
    1344214447 
    1344314448 LIB_NAME=ncurses
    13444 @@ -4264,7 +4263,7 @@
     14449@@ -4264,7 +4265,7 @@
    1344514450 
    1344614451 ###############################################################################
    1344714452 
    1344814453-echo "$as_me:4267: checking if you want to build a separate terminfo library" >&5
    13449 +echo "$as_me:4266: checking if you want to build a separate terminfo library" >&5
     14454+echo "$as_me:4268: checking if you want to build a separate terminfo library" >&5
    1345014455 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
    1345114456 
    1345214457 # Check whether --with-termlib or --without-termlib was given.
    13453 @@ -4274,13 +4273,26 @@
     14458@@ -4274,13 +4275,26 @@
    1345414459 else
    1345514460   with_termlib=no
    1345614461 fi;
    1345714462-echo "$as_me:4277: result: $with_termlib" >&5
    13458 +echo "$as_me:4276: result: $with_termlib" >&5
     14463+echo "$as_me:4278: result: $with_termlib" >&5
    1345914464 echo "${ECHO_T}$with_termlib" >&6
    1346014465 
    13461 +echo "$as_me:4279: checking if you want to build a separate tic library" >&5
     14466+echo "$as_me:4281: checking if you want to build a separate tic library" >&5
    1346214467+echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
    1346314468+
     
    1346914474+  with_ticlib=no
    1347014475+fi;
    13471 +echo "$as_me:4289: result: $with_ticlib" >&5
     14476+echo "$as_me:4291: result: $with_ticlib" >&5
    1347214477+echo "${ECHO_T}$with_ticlib" >&6
    1347314478+
     
    1347614481 
    1347714482-echo "$as_me:4283: checking if you want to link with the GPM mouse library" >&5
    13478 +echo "$as_me:4295: checking if you want to link with the GPM mouse library" >&5
     14483+echo "$as_me:4297: checking if you want to link with the GPM mouse library" >&5
    1347914484 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
    1348014485 
    1348114486 # Check whether --with-gpm or --without-gpm was given.
    13482 @@ -4290,27 +4302,27 @@
     14487@@ -4290,27 +4304,27 @@
    1348314488 else
    1348414489   with_gpm=maybe
    1348514490 fi;
    1348614491-echo "$as_me:4293: result: $with_gpm" >&5
    13487 +echo "$as_me:4305: result: $with_gpm" >&5
     14492+echo "$as_me:4307: result: $with_gpm" >&5
    1348814493 echo "${ECHO_T}$with_gpm" >&6
    1348914494 
    1349014495 if test "$with_gpm" != no ; then
    1349114496-       echo "$as_me:4297: checking for gpm.h" >&5
    13492 +       echo "$as_me:4309: checking for gpm.h" >&5
     14497+       echo "$as_me:4311: checking for gpm.h" >&5
    1349314498 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
    1349414499 if test "${ac_cv_header_gpm_h+set}" = set; then
     
    1349714502   cat >conftest.$ac_ext <<_ACEOF
    1349814503-#line 4303 "configure"
    13499 +#line 4315 "configure"
     14504+#line 4317 "configure"
    1350014505 #include "confdefs.h"
    1350114506 #include <gpm.h>
    1350214507 _ACEOF
    1350314508-if { (eval echo "$as_me:4307: \"$ac_cpp conftest.$ac_ext\"") >&5
    13504 +if { (eval echo "$as_me:4319: \"$ac_cpp conftest.$ac_ext\"") >&5
     14509+if { (eval echo "$as_me:4321: \"$ac_cpp conftest.$ac_ext\"") >&5
    1350514510   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    1350614511   ac_status=$?
     
    1350914514   cat conftest.err >&5
    1351014515-  echo "$as_me:4313: \$? = $ac_status" >&5
    13511 +  echo "$as_me:4325: \$? = $ac_status" >&5
     14516+  echo "$as_me:4327: \$? = $ac_status" >&5
    1351214517   (exit $ac_status); } >/dev/null; then
    1351314518   if test -s conftest.err; then
    1351414519     ac_cpp_err=$ac_c_preproc_warn_flag
    13515 @@ -4329,7 +4341,7 @@
     14520@@ -4329,7 +4343,7 @@
    1351614521 fi
    1351714522 rm -f conftest.err conftest.$ac_ext
    1351814523 fi
    1351914524-echo "$as_me:4332: result: $ac_cv_header_gpm_h" >&5
    13520 +echo "$as_me:4344: result: $ac_cv_header_gpm_h" >&5
     14525+echo "$as_me:4346: result: $ac_cv_header_gpm_h" >&5
    1352114526 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
    1352214527 if test $ac_cv_header_gpm_h = yes; then
    1352314528 
    13524 @@ -4340,12 +4352,14 @@
     14529@@ -4340,12 +4354,14 @@
    1352514530                if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
    1352614531                        test -n "$verbose" && echo "    assuming we really have GPM library" 1>&6
    1352714532 
    13528 +echo "${as_me-configure}:4355: testing assuming we really have GPM library ..." 1>&5
     14533+echo "${as_me-configure}:4357: testing assuming we really have GPM library ..." 1>&5
    1352914534+
    1353014535                        cat >>confdefs.h <<\EOF
     
    1353414539                else
    1353514540-                       echo "$as_me:4348: checking for Gpm_Open in -lgpm" >&5
    13536 +                       echo "$as_me:4362: checking for Gpm_Open in -lgpm" >&5
     14541+                       echo "$as_me:4364: checking for Gpm_Open in -lgpm" >&5
    1353714542 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
    1353814543 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
    1353914544   echo $ECHO_N "(cached) $ECHO_C" >&6
    13540 @@ -4353,7 +4367,7 @@
     14545@@ -4353,7 +4369,7 @@
    1354114546   ac_check_lib_save_LIBS=$LIBS
    1354214547 LIBS="-lgpm  $LIBS"
    1354314548 cat >conftest.$ac_ext <<_ACEOF
    1354414549-#line 4356 "configure"
    13545 +#line 4370 "configure"
     14550+#line 4372 "configure"
    1354614551 #include "confdefs.h"
    1354714552 
    1354814553 /* Override any gcc2 internal prototype to avoid an error.  */
    13549 @@ -4372,16 +4386,16 @@
     14554@@ -4372,16 +4388,16 @@
    1355014555 }
    1355114556 _ACEOF
    1355214557 rm -f conftest.$ac_objext conftest$ac_exeext
    1355314558-if { (eval echo "$as_me:4375: \"$ac_link\"") >&5
    13554 +if { (eval echo "$as_me:4389: \"$ac_link\"") >&5
     14559+if { (eval echo "$as_me:4391: \"$ac_link\"") >&5
    1355514560   (eval $ac_link) 2>&5
    1355614561   ac_status=$?
    1355714562-  echo "$as_me:4378: \$? = $ac_status" >&5
    13558 +  echo "$as_me:4392: \$? = $ac_status" >&5
     14563+  echo "$as_me:4394: \$? = $ac_status" >&5
    1355914564   (exit $ac_status); } &&
    1356014565          { ac_try='test -s conftest$ac_exeext'
    1356114566-  { (eval echo "$as_me:4381: \"$ac_try\"") >&5
    13562 +  { (eval echo "$as_me:4395: \"$ac_try\"") >&5
     14567+  { (eval echo "$as_me:4397: \"$ac_try\"") >&5
    1356314568   (eval $ac_try) 2>&5
    1356414569   ac_status=$?
    1356514570-  echo "$as_me:4384: \$? = $ac_status" >&5
    13566 +  echo "$as_me:4398: \$? = $ac_status" >&5
     14571+  echo "$as_me:4400: \$? = $ac_status" >&5
    1356714572   (exit $ac_status); }; }; then
    1356814573   ac_cv_lib_gpm_Gpm_Open=yes
    1356914574 else
    13570 @@ -4392,13 +4406,13 @@
     14575@@ -4392,13 +4408,13 @@
    1357114576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1357214577 LIBS=$ac_check_lib_save_LIBS
    1357314578 fi
    1357414579-echo "$as_me:4395: result: $ac_cv_lib_gpm_Gpm_Open" >&5
    13575 +echo "$as_me:4409: result: $ac_cv_lib_gpm_Gpm_Open" >&5
     14580+echo "$as_me:4411: result: $ac_cv_lib_gpm_Gpm_Open" >&5
    1357614581 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
    1357714582 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
     
    1358014585 
    1358114586-                               { { echo "$as_me:4401: error: Cannot link with GPM library" >&5
    13582 +                               { { echo "$as_me:4415: error: Cannot link with GPM library" >&5
     14587+                               { { echo "$as_me:4417: error: Cannot link with GPM library" >&5
    1358314588 echo "$as_me: error: Cannot link with GPM library" >&2;}
    1358414589    { (exit 1); exit 1; }; }
    1358514590                fi
    13586 @@ -4408,7 +4422,7 @@
     14591@@ -4408,7 +4424,7 @@
    1358714592 
    1358814593 else
    1358914594 
    1359014595-               test "$with_gpm" != maybe && { echo "$as_me:4411: WARNING: Cannot find GPM header" >&5
    13591 +               test "$with_gpm" != maybe && { echo "$as_me:4425: WARNING: Cannot find GPM header" >&5
     14596+               test "$with_gpm" != maybe && { echo "$as_me:4427: WARNING: Cannot find GPM header" >&5
    1359214597 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
    1359314598                with_gpm=no
    1359414599 
    13595 @@ -4417,7 +4431,7 @@
     14600@@ -4417,7 +4433,7 @@
    1359614601 fi
    1359714602 
    1359814603 if test "$with_gpm" != no ; then
    1359914604-       echo "$as_me:4420: checking if you want to load GPM dynamically" >&5
    13600 +       echo "$as_me:4434: checking if you want to load GPM dynamically" >&5
     14605+       echo "$as_me:4436: checking if you want to load GPM dynamically" >&5
    1360114606 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
    1360214607 
    1360314608 # Check whether --with-dlsym or --without-dlsym was given.
    13604 @@ -4427,18 +4441,18 @@
     14609@@ -4427,18 +4443,18 @@
    1360514610 else
    1360614611   with_dlsym=yes
    1360714612 fi;
    1360814613-       echo "$as_me:4430: result: $with_dlsym" >&5
    13609 +       echo "$as_me:4444: result: $with_dlsym" >&5
     14614+       echo "$as_me:4446: result: $with_dlsym" >&5
    1361014615 echo "${ECHO_T}$with_dlsym" >&6
    1361114616        if test "$with_dlsym" = yes ; then
     
    1361314618 cf_have_dlsym=no
    1361414619-echo "$as_me:4435: checking for dlsym" >&5
    13615 +echo "$as_me:4449: checking for dlsym" >&5
     14620+echo "$as_me:4451: checking for dlsym" >&5
    1361614621 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
    1361714622 if test "${ac_cv_func_dlsym+set}" = set; then
     
    1362014625   cat >conftest.$ac_ext <<_ACEOF
    1362114626-#line 4441 "configure"
    13622 +#line 4455 "configure"
     14627+#line 4457 "configure"
    1362314628 #include "confdefs.h"
    1362414629 /* System header to define __stub macros and hopefully few prototypes,
    1362514630     which can conflict with char dlsym (); below.  */
    13626 @@ -4469,16 +4483,16 @@
     14631@@ -4469,16 +4485,16 @@
    1362714632 }
    1362814633 _ACEOF
    1362914634 rm -f conftest.$ac_objext conftest$ac_exeext
    1363014635-if { (eval echo "$as_me:4472: \"$ac_link\"") >&5
    13631 +if { (eval echo "$as_me:4486: \"$ac_link\"") >&5
     14636+if { (eval echo "$as_me:4488: \"$ac_link\"") >&5
    1363214637   (eval $ac_link) 2>&5
    1363314638   ac_status=$?
    1363414639-  echo "$as_me:4475: \$? = $ac_status" >&5
    13635 +  echo "$as_me:4489: \$? = $ac_status" >&5
     14640+  echo "$as_me:4491: \$? = $ac_status" >&5
    1363614641   (exit $ac_status); } &&
    1363714642          { ac_try='test -s conftest$ac_exeext'
    1363814643-  { (eval echo "$as_me:4478: \"$ac_try\"") >&5
    13639 +  { (eval echo "$as_me:4492: \"$ac_try\"") >&5
     14644+  { (eval echo "$as_me:4494: \"$ac_try\"") >&5
    1364014645   (eval $ac_try) 2>&5
    1364114646   ac_status=$?
    1364214647-  echo "$as_me:4481: \$? = $ac_status" >&5
    13643 +  echo "$as_me:4495: \$? = $ac_status" >&5
     14648+  echo "$as_me:4497: \$? = $ac_status" >&5
    1364414649   (exit $ac_status); }; }; then
    1364514650   ac_cv_func_dlsym=yes
    1364614651 else
    13647 @@ -4488,14 +4502,14 @@
     14652@@ -4488,14 +4504,14 @@
    1364814653 fi
    1364914654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1365014655 fi
    1365114656-echo "$as_me:4491: result: $ac_cv_func_dlsym" >&5
    13652 +echo "$as_me:4505: result: $ac_cv_func_dlsym" >&5
     14657+echo "$as_me:4507: result: $ac_cv_func_dlsym" >&5
    1365314658 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
    1365414659 if test $ac_cv_func_dlsym = yes; then
     
    1365814663 cf_have_libdl=no
    1365914664-echo "$as_me:4498: checking for dlsym in -ldl" >&5
    13660 +echo "$as_me:4512: checking for dlsym in -ldl" >&5
     14665+echo "$as_me:4514: checking for dlsym in -ldl" >&5
    1366114666 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
    1366214667 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
    1366314668   echo $ECHO_N "(cached) $ECHO_C" >&6
    13664 @@ -4503,7 +4517,7 @@
     14669@@ -4503,7 +4519,7 @@
    1366514670   ac_check_lib_save_LIBS=$LIBS
    1366614671 LIBS="-ldl  $LIBS"
    1366714672 cat >conftest.$ac_ext <<_ACEOF
    1366814673-#line 4506 "configure"
    13669 +#line 4520 "configure"
     14674+#line 4522 "configure"
    1367014675 #include "confdefs.h"
    1367114676 
    1367214677 /* Override any gcc2 internal prototype to avoid an error.  */
    13673 @@ -4522,16 +4536,16 @@
     14678@@ -4522,16 +4538,16 @@
    1367414679 }
    1367514680 _ACEOF
    1367614681 rm -f conftest.$ac_objext conftest$ac_exeext
    1367714682-if { (eval echo "$as_me:4525: \"$ac_link\"") >&5
    13678 +if { (eval echo "$as_me:4539: \"$ac_link\"") >&5
     14683+if { (eval echo "$as_me:4541: \"$ac_link\"") >&5
    1367914684   (eval $ac_link) 2>&5
    1368014685   ac_status=$?
    1368114686-  echo "$as_me:4528: \$? = $ac_status" >&5
    13682 +  echo "$as_me:4542: \$? = $ac_status" >&5
     14687+  echo "$as_me:4544: \$? = $ac_status" >&5
    1368314688   (exit $ac_status); } &&
    1368414689          { ac_try='test -s conftest$ac_exeext'
    1368514690-  { (eval echo "$as_me:4531: \"$ac_try\"") >&5
    13686 +  { (eval echo "$as_me:4545: \"$ac_try\"") >&5
     14691+  { (eval echo "$as_me:4547: \"$ac_try\"") >&5
    1368714692   (eval $ac_try) 2>&5
    1368814693   ac_status=$?
    1368914694-  echo "$as_me:4534: \$? = $ac_status" >&5
    13690 +  echo "$as_me:4548: \$? = $ac_status" >&5
     14695+  echo "$as_me:4550: \$? = $ac_status" >&5
    1369114696   (exit $ac_status); }; }; then
    1369214697   ac_cv_lib_dl_dlsym=yes
    1369314698 else
    13694 @@ -4542,7 +4556,7 @@
     14699@@ -4542,7 +4558,7 @@
    1369514700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1369614701 LIBS=$ac_check_lib_save_LIBS
    1369714702 fi
    1369814703-echo "$as_me:4545: result: $ac_cv_lib_dl_dlsym" >&5
    13699 +echo "$as_me:4559: result: $ac_cv_lib_dl_dlsym" >&5
     14704+echo "$as_me:4561: result: $ac_cv_lib_dl_dlsym" >&5
    1370014705 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
    1370114706 if test $ac_cv_lib_dl_dlsym = yes; then
    1370214707 
    13703 @@ -4555,10 +4569,10 @@
     14708@@ -4555,10 +4571,10 @@
    1370414709 if test "$cf_have_dlsym" = yes ; then
    1370514710        test "$cf_have_libdl" = yes && LIBS="-ldl $LIBS"
    1370614711 
    1370714712-       echo "$as_me:4558: checking whether able to link to dl*() functions" >&5
    13708 +       echo "$as_me:4572: checking whether able to link to dl*() functions" >&5
     14713+       echo "$as_me:4574: checking whether able to link to dl*() functions" >&5
    1370914714 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
    1371014715        cat >conftest.$ac_ext <<_ACEOF
    1371114716-#line 4561 "configure"
    13712 +#line 4575 "configure"
     14717+#line 4577 "configure"
    1371314718 #include "confdefs.h"
    1371414719 #include <dlfcn.h>
    1371514720 int
    13716 @@ -4576,16 +4590,16 @@
     14721@@ -4576,16 +4592,16 @@
    1371714722 }
    1371814723 _ACEOF
    1371914724 rm -f conftest.$ac_objext conftest$ac_exeext
    1372014725-if { (eval echo "$as_me:4579: \"$ac_link\"") >&5
    13721 +if { (eval echo "$as_me:4593: \"$ac_link\"") >&5
     14726+if { (eval echo "$as_me:4595: \"$ac_link\"") >&5
    1372214727   (eval $ac_link) 2>&5
    1372314728   ac_status=$?
    1372414729-  echo "$as_me:4582: \$? = $ac_status" >&5
    13725 +  echo "$as_me:4596: \$? = $ac_status" >&5
     14730+  echo "$as_me:4598: \$? = $ac_status" >&5
    1372614731   (exit $ac_status); } &&
    1372714732          { ac_try='test -s conftest$ac_exeext'
    1372814733-  { (eval echo "$as_me:4585: \"$ac_try\"") >&5
    13729 +  { (eval echo "$as_me:4599: \"$ac_try\"") >&5
     14734+  { (eval echo "$as_me:4601: \"$ac_try\"") >&5
    1373014735   (eval $ac_try) 2>&5
    1373114736   ac_status=$?
    1373214737-  echo "$as_me:4588: \$? = $ac_status" >&5
    13733 +  echo "$as_me:4602: \$? = $ac_status" >&5
     14738+  echo "$as_me:4604: \$? = $ac_status" >&5
    1373414739   (exit $ac_status); }; }; then
    1373514740 
    1373614741                cat >>confdefs.h <<\EOF
    13737 @@ -4596,15 +4610,15 @@
     14742@@ -4596,15 +4612,15 @@
    1373814743   echo "$as_me: failed program was:" >&5
    1373914744 cat conftest.$ac_ext >&5
    1374014745 
    1374114746-               { { echo "$as_me:4599: error: Cannot link test program for libdl" >&5
    13742 +               { { echo "$as_me:4613: error: Cannot link test program for libdl" >&5
     14747+               { { echo "$as_me:4615: error: Cannot link test program for libdl" >&5
    1374314748 echo "$as_me: error: Cannot link test program for libdl" >&2;}
    1374414749    { (exit 1); exit 1; }; }
     
    1374614751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1374714752-       echo "$as_me:4604: result: ok" >&5
    13748 +       echo "$as_me:4618: result: ok" >&5
     14753+       echo "$as_me:4620: result: ok" >&5
    1374914754 echo "${ECHO_T}ok" >&6
    1375014755 else
    1375114756-       { { echo "$as_me:4607: error: Cannot find dlsym function" >&5
    13752 +       { { echo "$as_me:4621: error: Cannot find dlsym function" >&5
     14757+       { { echo "$as_me:4623: error: Cannot find dlsym function" >&5
    1375314758 echo "$as_me: error: Cannot find dlsym function" >&2;}
    1375414759    { (exit 1); exit 1; }; }
    1375514760 fi
    13756 @@ -4612,10 +4626,12 @@
     14761@@ -4612,10 +4628,12 @@
    1375714762                if test "$with_gpm" != yes ; then
    1375814763                        test -n "$verbose" && echo "    assuming soname for gpm is $with_gpm" 1>&6
    1375914764 
    13760 +echo "${as_me-configure}:4629: testing assuming soname for gpm is $with_gpm ..." 1>&5
     14765+echo "${as_me-configure}:4631: testing assuming soname for gpm is $with_gpm ..." 1>&5
    1376114766+
    1376214767                        cf_cv_gpm_soname="$with_gpm"
     
    1376414769 
    1376514770-echo "$as_me:4618: checking for soname of gpm library" >&5
    13766 +echo "$as_me:4634: checking for soname of gpm library" >&5
     14771+echo "$as_me:4636: checking for soname of gpm library" >&5
    1376714772 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
    1376814773 if test "${cf_cv_gpm_soname+set}" = set; then
    1376914774   echo $ECHO_N "(cached) $ECHO_C" >&6
    13770 @@ -4633,15 +4649,15 @@
     14775@@ -4633,15 +4651,15 @@
    1377114776 CF_EOF
    1377214777 cf_save_LIBS="$LIBS"
    1377314778        LIBS="-lgpm $LIBS"
    1377414779-       if { (eval echo "$as_me:4636: \"$ac_compile\"") >&5
    13775 +       if { (eval echo "$as_me:4652: \"$ac_compile\"") >&5
     14780+       if { (eval echo "$as_me:4654: \"$ac_compile\"") >&5
    1377614781   (eval $ac_compile) 2>&5
    1377714782   ac_status=$?
    1377814783-  echo "$as_me:4639: \$? = $ac_status" >&5
    13779 +  echo "$as_me:4655: \$? = $ac_status" >&5
     14784+  echo "$as_me:4657: \$? = $ac_status" >&5
    1378014785   (exit $ac_status); } ; then
    1378114786-               if { (eval echo "$as_me:4641: \"$ac_link\"") >&5
    13782 +               if { (eval echo "$as_me:4657: \"$ac_link\"") >&5
     14787+               if { (eval echo "$as_me:4659: \"$ac_link\"") >&5
    1378314788   (eval $ac_link) 2>&5
    1378414789   ac_status=$?
    1378514790-  echo "$as_me:4644: \$? = $ac_status" >&5
    13786 +  echo "$as_me:4660: \$? = $ac_status" >&5
     14791+  echo "$as_me:4662: \$? = $ac_status" >&5
    1378714792   (exit $ac_status); } ; then
    1378814793                        cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
    1378914794                        test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
    13790 @@ -4652,7 +4668,7 @@
     14795@@ -4652,7 +4670,7 @@
    1379114796 fi
    1379214797 
    1379314798 fi
    1379414799-echo "$as_me:4655: result: $cf_cv_gpm_soname" >&5
    13795 +echo "$as_me:4671: result: $cf_cv_gpm_soname" >&5
     14800+echo "$as_me:4673: result: $cf_cv_gpm_soname" >&5
    1379614801 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
    1379714802 
    1379814803                fi
    13799 @@ -4668,7 +4684,7 @@
     14804@@ -4668,7 +4686,7 @@
    1380014805 #define HAVE_LIBGPM 1
    1380114806 EOF
    1380214807 
    1380314808-       echo "$as_me:4671: checking for Gpm_Wgetch in -lgpm" >&5
    13804 +echo "$as_me:4687: checking for Gpm_Wgetch in -lgpm" >&5
     14809+echo "$as_me:4689: checking for Gpm_Wgetch in -lgpm" >&5
    1380514810 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
    1380614811 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
    1380714812   echo $ECHO_N "(cached) $ECHO_C" >&6
    13808 @@ -4676,7 +4692,7 @@
     14813@@ -4676,7 +4694,7 @@
    1380914814   ac_check_lib_save_LIBS=$LIBS
    1381014815 LIBS="-lgpm  $LIBS"
    1381114816 cat >conftest.$ac_ext <<_ACEOF
    1381214817-#line 4679 "configure"
    13813 +#line 4695 "configure"
     14818+#line 4697 "configure"
    1381414819 #include "confdefs.h"
    1381514820 
    1381614821 /* Override any gcc2 internal prototype to avoid an error.  */
    13817 @@ -4695,16 +4711,16 @@
     14822@@ -4695,16 +4713,16 @@
    1381814823 }
    1381914824 _ACEOF
    1382014825 rm -f conftest.$ac_objext conftest$ac_exeext
    1382114826-if { (eval echo "$as_me:4698: \"$ac_link\"") >&5
    13822 +if { (eval echo "$as_me:4714: \"$ac_link\"") >&5
     14827+if { (eval echo "$as_me:4716: \"$ac_link\"") >&5
    1382314828   (eval $ac_link) 2>&5
    1382414829   ac_status=$?
    1382514830-  echo "$as_me:4701: \$? = $ac_status" >&5
    13826 +  echo "$as_me:4717: \$? = $ac_status" >&5
     14831+  echo "$as_me:4719: \$? = $ac_status" >&5
    1382714832   (exit $ac_status); } &&
    1382814833          { ac_try='test -s conftest$ac_exeext'
    1382914834-  { (eval echo "$as_me:4704: \"$ac_try\"") >&5
    13830 +  { (eval echo "$as_me:4720: \"$ac_try\"") >&5
     14835+  { (eval echo "$as_me:4722: \"$ac_try\"") >&5
    1383114836   (eval $ac_try) 2>&5
    1383214837   ac_status=$?
    1383314838-  echo "$as_me:4707: \$? = $ac_status" >&5
    13834 +  echo "$as_me:4723: \$? = $ac_status" >&5
     14839+  echo "$as_me:4725: \$? = $ac_status" >&5
    1383514840   (exit $ac_status); }; }; then
    1383614841   ac_cv_lib_gpm_Gpm_Wgetch=yes
    1383714842 else
    13838 @@ -4715,12 +4731,61 @@
     14843@@ -4715,12 +4733,61 @@
    1383914844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1384014845 LIBS=$ac_check_lib_save_LIBS
    1384114846 fi
    1384214847-echo "$as_me:4718: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
    13843 +echo "$as_me:4734: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
     14848+echo "$as_me:4736: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
    1384414849 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
    1384514850 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
    1384614851 
    1384714852-               { echo "$as_me:4722: WARNING: GPM library is already linked with curses - read the FAQ" >&5
    13848 +echo "$as_me:4738: checking if GPM is weakly bound to curses library" >&5
     14853+echo "$as_me:4740: checking if GPM is weakly bound to curses library" >&5
    1384914854+echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
    1385014855+if test "${cf_cv_check_gpm_wgetch+set}" = set; then
     
    1387014875+       # include it.
    1387114876+       LIBS="-static -lgpm -dynamic $LIBS"
    13872 +       if { (eval echo "$as_me:4762: \"$ac_compile\"") >&5
     14877+       if { (eval echo "$as_me:4764: \"$ac_compile\"") >&5
    1387314878+  (eval $ac_compile) 2>&5
    1387414879+  ac_status=$?
    13875 +  echo "$as_me:4765: \$? = $ac_status" >&5
     14880+  echo "$as_me:4767: \$? = $ac_status" >&5
    1387614881+  (exit $ac_status); } ; then
    13877 +               if { (eval echo "$as_me:4767: \"$ac_link\"") >&5
     14882+               if { (eval echo "$as_me:4769: \"$ac_link\"") >&5
    1387814883+  (eval $ac_link) 2>&5
    1387914884+  ac_status=$?
    13880 +  echo "$as_me:4770: \$? = $ac_status" >&5
     14885+  echo "$as_me:4772: \$? = $ac_status" >&5
    1388114886+  (exit $ac_status); } ; then
    1388214887+                       cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
     
    1389014895+
    1389114896+fi
    13892 +echo "$as_me:4782: result: $cf_cv_check_gpm_wgetch" >&5
     14897+echo "$as_me:4784: result: $cf_cv_check_gpm_wgetch" >&5
    1389314898+echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
    1389414899+
    1389514900+if test "$cf_cv_check_gpm_wgetch" != yes ; then
    13896 +       { echo "$as_me:4786: WARNING: GPM library is already linked with curses - read the FAQ" >&5
     14901+       { echo "$as_me:4788: WARNING: GPM library is already linked with curses - read the FAQ" >&5
    1389714902 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
    1389814903+fi
     
    1390014905 fi
    1390114906 
    13902 @@ -4728,7 +4793,7 @@
     14907@@ -4728,7 +4795,7 @@
    1390314908 
    1390414909 # not everyone has "test -c"
    1390514910 if test -c /dev/sysmouse 2>/dev/null ; then
    1390614911-echo "$as_me:4731: checking if you want to use sysmouse" >&5
    13907 +echo "$as_me:4796: checking if you want to use sysmouse" >&5
     14912+echo "$as_me:4798: checking if you want to use sysmouse" >&5
    1390814913 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
    1390914914 
    1391014915 # Check whether --with-sysmouse or --without-sysmouse was given.
    13911 @@ -4740,7 +4805,7 @@
     14916@@ -4740,7 +4807,7 @@
    1391214917 fi;
    1391314918        if test "$cf_with_sysmouse" != no ; then
    1391414919        cat >conftest.$ac_ext <<_ACEOF
    1391514920-#line 4743 "configure"
    13916 +#line 4808 "configure"
     14921+#line 4810 "configure"
    1391714922 #include "confdefs.h"
    1391814923 
    1391914924 #include <osreldate.h>
    13920 @@ -4763,16 +4828,16 @@
     14925@@ -4763,16 +4830,16 @@
    1392114926 }
    1392214927 _ACEOF
    1392314928 rm -f conftest.$ac_objext
    1392414929-if { (eval echo "$as_me:4766: \"$ac_compile\"") >&5
    13925 +if { (eval echo "$as_me:4831: \"$ac_compile\"") >&5
     14930+if { (eval echo "$as_me:4833: \"$ac_compile\"") >&5
    1392614931   (eval $ac_compile) 2>&5
    1392714932   ac_status=$?
    1392814933-  echo "$as_me:4769: \$? = $ac_status" >&5
    13929 +  echo "$as_me:4834: \$? = $ac_status" >&5
     14934+  echo "$as_me:4836: \$? = $ac_status" >&5
    1393014935   (exit $ac_status); } &&
    1393114936          { ac_try='test -s conftest.$ac_objext'
    1393214937-  { (eval echo "$as_me:4772: \"$ac_try\"") >&5
    13933 +  { (eval echo "$as_me:4837: \"$ac_try\"") >&5
     14938+  { (eval echo "$as_me:4839: \"$ac_try\"") >&5
    1393414939   (eval $ac_try) 2>&5
    1393514940   ac_status=$?
    1393614941-  echo "$as_me:4775: \$? = $ac_status" >&5
    13937 +  echo "$as_me:4840: \$? = $ac_status" >&5
     14942+  echo "$as_me:4842: \$? = $ac_status" >&5
    1393814943   (exit $ac_status); }; }; then
    1393914944   cf_with_sysmouse=yes
    1394014945 else
    13941 @@ -4782,7 +4847,7 @@
     14946@@ -4782,7 +4849,7 @@
    1394214947 fi
    1394314948 rm -f conftest.$ac_objext conftest.$ac_ext
    1394414949        fi
    1394514950-echo "$as_me:4785: result: $cf_with_sysmouse" >&5
    13946 +echo "$as_me:4850: result: $cf_with_sysmouse" >&5
     14951+echo "$as_me:4852: result: $cf_with_sysmouse" >&5
    1394714952 echo "${ECHO_T}$cf_with_sysmouse" >&6
    1394814953 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
    1394914954 #define USE_SYSMOUSE 1
    13950 @@ -4800,7 +4865,7 @@
     14955@@ -4800,7 +4867,7 @@
    1395114956        test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
    1395214957 fi
    1395314958 
    1395414959-echo "$as_me:4803: checking for default loader flags" >&5
    13955 +echo "$as_me:4868: checking for default loader flags" >&5
     14960+echo "$as_me:4870: checking for default loader flags" >&5
    1395614961 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
    1395714962 case $DFT_LWR_MODEL in
    1395814963 libtool) LD_MODEL=''   ;;
    13959 @@ -4809,10 +4874,12 @@
     14964@@ -4809,10 +4876,12 @@
    1396014965 profile) LD_MODEL='-pg';;
    1396114966 shared)  LD_MODEL=''   ;;
    1396214967 esac
    1396314968-echo "$as_me:4812: result: $LD_MODEL" >&5
    13964 +echo "$as_me:4877: result: $LD_MODEL" >&5
     14969+echo "$as_me:4879: result: $LD_MODEL" >&5
    1396514970 echo "${ECHO_T}$LD_MODEL" >&6
    1396614971 
     
    1396814973+case $DFT_LWR_MODEL in
    1396914974+shared)
    13970 +echo "$as_me:4882: checking if rpath option should be used" >&5
     14975+echo "$as_me:4884: checking if rpath option should be used" >&5
    1397114976 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
    1397214977 
    1397314978 # Check whether --enable-rpath or --disable-rpath was given.
    13974 @@ -4822,8 +4889,22 @@
     14979@@ -4822,8 +4891,22 @@
    1397514980 else
    1397614981   cf_cv_ld_rpath=no
    1397714982 fi;
    1397814983-echo "$as_me:4825: result: $cf_cv_ld_rpath" >&5
    13979 +echo "$as_me:4892: result: $cf_cv_ld_rpath" >&5
     14984+echo "$as_me:4894: result: $cf_cv_ld_rpath" >&5
    1398014985 echo "${ECHO_T}$cf_cv_ld_rpath" >&6
    13981 +echo "$as_me:4894: checking if shared libraries should be relinked during install" >&5
     14986+echo "$as_me:4896: checking if shared libraries should be relinked during install" >&5
    1398214987+echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
    1398314988+
     
    1398914994+  cf_cv_do_relink=yes
    1399014995+fi;
    13991 +echo "$as_me:4904: result: $cf_cv_do_relink" >&5
     14996+echo "$as_me:4906: result: $cf_cv_do_relink" >&5
    1399214997+echo "${ECHO_T}$cf_cv_do_relink" >&6
    1399314998+       ;;
     
    1399615001        LOCAL_LDFLAGS=
    1399715002        LOCAL_LDFLAGS2=
    13998 @@ -4832,7 +4913,7 @@
     15003@@ -4832,7 +4915,7 @@
    1399915004 
    1400015005        cf_cv_do_symlinks=no
    1400115006 
    1400215007-       echo "$as_me:4835: checking if release/abi version should be used for shared libs" >&5
    14003 +       echo "$as_me:4916: checking if release/abi version should be used for shared libs" >&5
     15008+       echo "$as_me:4918: checking if release/abi version should be used for shared libs" >&5
    1400415009 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
    1400515010 
    1400615011 # Check whether --with-shlib-version or --without-shlib-version was given.
    14007 @@ -4847,7 +4928,7 @@
     15012@@ -4847,7 +4930,7 @@
    1400815013                cf_cv_shlib_version=$withval
    1400915014                ;;
    1401015015        *)
    1401115016-               { { echo "$as_me:4850: error: option value must be one of: rel, abi, auto or no" >&5
    14012 +               { { echo "$as_me:4931: error: option value must be one of: rel, abi, auto or no" >&5
     15017+               { { echo "$as_me:4933: error: option value must be one of: rel, abi, auto or no" >&5
    1401315018 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
    1401415019    { (exit 1); exit 1; }; }
    1401515020                ;;
    14016 @@ -4856,7 +4937,7 @@
     15021@@ -4856,7 +4939,7 @@
    1401715022 else
    1401815023   cf_cv_shlib_version=auto
    1401915024 fi;
    1402015025-       echo "$as_me:4859: result: $cf_cv_shlib_version" >&5
    14021 +       echo "$as_me:4940: result: $cf_cv_shlib_version" >&5
     15026+       echo "$as_me:4942: result: $cf_cv_shlib_version" >&5
    1402215027 echo "${ECHO_T}$cf_cv_shlib_version" >&6
    1402315028 
    1402415029        cf_cv_rm_so_locs=no
    14025 @@ -4865,14 +4946,14 @@
     15030@@ -4865,14 +4948,14 @@
    1402615031        CC_SHARED_OPTS=
    1402715032        if test "$GCC" = yes
    1402815033        then
    1402915034-               echo "$as_me:4868: checking which $CC option to use" >&5
    14030 +               echo "$as_me:4949: checking which $CC option to use" >&5
     15035+               echo "$as_me:4951: checking which $CC option to use" >&5
    1403115036 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
    1403215037                cf_save_CFLAGS="$CFLAGS"
     
    1403615041                        cat >conftest.$ac_ext <<_ACEOF
    1403715042-#line 4875 "configure"
    14038 +#line 4956 "configure"
     15043+#line 4958 "configure"
    1403915044 #include "confdefs.h"
    1404015045 #include <stdio.h>
    1404115046 int
    14042 @@ -4884,16 +4965,16 @@
     15047@@ -4884,16 +4967,16 @@
    1404315048 }
    1404415049 _ACEOF
    1404515050 rm -f conftest.$ac_objext
    1404615051-if { (eval echo "$as_me:4887: \"$ac_compile\"") >&5
    14047 +if { (eval echo "$as_me:4968: \"$ac_compile\"") >&5
     15052+if { (eval echo "$as_me:4970: \"$ac_compile\"") >&5
    1404815053   (eval $ac_compile) 2>&5
    1404915054   ac_status=$?
    1405015055-  echo "$as_me:4890: \$? = $ac_status" >&5
    14051 +  echo "$as_me:4971: \$? = $ac_status" >&5
     15056+  echo "$as_me:4973: \$? = $ac_status" >&5
    1405215057   (exit $ac_status); } &&
    1405315058          { ac_try='test -s conftest.$ac_objext'
    1405415059-  { (eval echo "$as_me:4893: \"$ac_try\"") >&5
    14055 +  { (eval echo "$as_me:4974: \"$ac_try\"") >&5
     15060+  { (eval echo "$as_me:4976: \"$ac_try\"") >&5
    1405615061   (eval $ac_try) 2>&5
    1405715062   ac_status=$?
    1405815063-  echo "$as_me:4896: \$? = $ac_status" >&5
    14059 +  echo "$as_me:4977: \$? = $ac_status" >&5
     15064+  echo "$as_me:4979: \$? = $ac_status" >&5
    1406015065   (exit $ac_status); }; }; then
    1406115066   break
    1406215067 else
    14063 @@ -4902,7 +4983,7 @@
     15068@@ -4902,7 +4985,7 @@
    1406415069 fi
    1406515070 rm -f conftest.$ac_objext conftest.$ac_ext
    1406615071                done
    1406715072-               echo "$as_me:4905: result: $CC_SHARED_OPTS" >&5
    14068 +               echo "$as_me:4986: result: $CC_SHARED_OPTS" >&5
     15073+               echo "$as_me:4988: result: $CC_SHARED_OPTS" >&5
    1406915074 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
    1407015075                CFLAGS="$cf_save_CFLAGS"
    1407115076        fi
    14072 @@ -4915,17 +4996,30 @@
     15077@@ -4915,17 +4998,30 @@
    1407315078                ;;
    1407415079        cygwin*)
     
    1410015105                cf_cv_shlib_version_infix=yes
    1410115106-               echo "$as_me:4928: checking if ld -search_paths_first works" >&5
    14102 +               echo "$as_me:5022: checking if ld -search_paths_first works" >&5
     15107+               echo "$as_me:5024: checking if ld -search_paths_first works" >&5
    1410315108 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
    1410415109 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
    1410515110   echo $ECHO_N "(cached) $ECHO_C" >&6
    14106 @@ -4934,7 +5028,7 @@
     15111@@ -4934,7 +5030,7 @@
    1410715112                        cf_save_LDFLAGS=$LDFLAGS
    1410815113                        LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
    1410915114                        cat >conftest.$ac_ext <<_ACEOF
    1411015115-#line 4937 "configure"
    14111 +#line 5031 "configure"
     15116+#line 5033 "configure"
    1411215117 #include "confdefs.h"
    1411315118 
    1411415119 int
    14115 @@ -4946,16 +5040,16 @@
     15120@@ -4946,16 +5042,16 @@
    1411615121 }
    1411715122 _ACEOF
    1411815123 rm -f conftest.$ac_objext conftest$ac_exeext
    1411915124-if { (eval echo "$as_me:4949: \"$ac_link\"") >&5
    14120 +if { (eval echo "$as_me:5043: \"$ac_link\"") >&5
     15125+if { (eval echo "$as_me:5045: \"$ac_link\"") >&5
    1412115126   (eval $ac_link) 2>&5
    1412215127   ac_status=$?
    1412315128-  echo "$as_me:4952: \$? = $ac_status" >&5
    14124 +  echo "$as_me:5046: \$? = $ac_status" >&5
     15129+  echo "$as_me:5048: \$? = $ac_status" >&5
    1412515130   (exit $ac_status); } &&
    1412615131          { ac_try='test -s conftest$ac_exeext'
    1412715132-  { (eval echo "$as_me:4955: \"$ac_try\"") >&5
    14128 +  { (eval echo "$as_me:5049: \"$ac_try\"") >&5
     15133+  { (eval echo "$as_me:5051: \"$ac_try\"") >&5
    1412915134   (eval $ac_try) 2>&5
    1413015135   ac_status=$?
    1413115136-  echo "$as_me:4958: \$? = $ac_status" >&5
    14132 +  echo "$as_me:5052: \$? = $ac_status" >&5
     15137+  echo "$as_me:5054: \$? = $ac_status" >&5
    1413315138   (exit $ac_status); }; }; then
    1413415139   cf_cv_ldflags_search_paths_first=yes
    1413515140 else
    14136 @@ -4966,7 +5060,7 @@
     15141@@ -4966,7 +5062,7 @@
    1413715142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1413815143                                LDFLAGS=$cf_save_LDFLAGS
    1413915144 fi
    1414015145-echo "$as_me:4969: result: $cf_cv_ldflags_search_paths_first" >&5
    14141 +echo "$as_me:5063: result: $cf_cv_ldflags_search_paths_first" >&5
     15146+echo "$as_me:5065: result: $cf_cv_ldflags_search_paths_first" >&5
    1414215147 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
    1414315148                if test $cf_cv_ldflags_search_paths_first = yes; then
    1414415149                        LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
    14145 @@ -5021,11 +5115,11 @@
     15150@@ -5021,11 +5117,11 @@
    1414615151 
    1414715152                MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_shared_soname',-stats,-lc -o $@'
     
    1415715162                MK_SHARED_LIB='${LD} -Bshareable -o $@'
    1415815163                test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
    14159 @@ -5162,7 +5256,7 @@
     15164@@ -5120,9 +5216,7 @@
     15165                ;;
     15166        solaris2*)
     15167                # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
     15168-               if test "$GCC" != yes; then
     15169-                       CC_SHARED_OPTS='-KPIC'
     15170-               fi
     15171+               # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
     15172                if test "$DFT_LWR_MODEL" = "shared" ; then
     15173                        LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
     15174                        LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
     15175@@ -5139,7 +5233,12 @@
     15176                cf_shared_soname='`basename $@`'
     15177        fi
     15178 
     15179-               MK_SHARED_LIB='${CC} -dy -G -h '$cf_shared_soname' -o $@'
     15180+               if test "$GCC" != yes; then
     15181+                       CC_SHARED_OPTS='-xcode=pic32'
     15182+                       MK_SHARED_LIB='${CC} -dy -G -h '$cf_shared_soname' -o $@'
     15183+               else
     15184+                       MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_shared_soname' -o $@'
     15185+               fi
     15186                ;;
     15187        sysv5uw7*|unix_sv*)
     15188                # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
     15189@@ -5162,7 +5261,7 @@
    1416015190                        test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
    1416115191                        ;;
    1416215192                *)
    1416315193-                       { echo "$as_me:5165: WARNING: ignored --with-shlib-version" >&5
    14164 +                       { echo "$as_me:5259: WARNING: ignored --with-shlib-version" >&5
     15194+                       { echo "$as_me:5264: WARNING: ignored --with-shlib-version" >&5
    1416515195 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
    1416615196                        ;;
    1416715197                esac
    14168 @@ -5170,12 +5264,12 @@
     15198@@ -5170,12 +5269,12 @@
    1416915199        esac
    1417015200 
    1417115201        if test -n "$cf_ld_rpath_opt" ; then
    1417215202-               echo "$as_me:5173: checking if we need a space after rpath option" >&5
    14173 +               echo "$as_me:5267: checking if we need a space after rpath option" >&5
     15203+               echo "$as_me:5272: checking if we need a space after rpath option" >&5
    1417415204 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
    1417515205                cf_save_LIBS="$LIBS"
     
    1417715207                cat >conftest.$ac_ext <<_ACEOF
    1417815208-#line 5178 "configure"
    14179 +#line 5272 "configure"
     15209+#line 5277 "configure"
    1418015210 #include "confdefs.h"
    1418115211 
    1418215212 int
    14183 @@ -5187,16 +5281,16 @@
     15213@@ -5187,16 +5286,16 @@
    1418415214 }
    1418515215 _ACEOF
    1418615216 rm -f conftest.$ac_objext conftest$ac_exeext
    1418715217-if { (eval echo "$as_me:5190: \"$ac_link\"") >&5
    14188 +if { (eval echo "$as_me:5284: \"$ac_link\"") >&5
     15218+if { (eval echo "$as_me:5289: \"$ac_link\"") >&5
    1418915219   (eval $ac_link) 2>&5
    1419015220   ac_status=$?
    1419115221-  echo "$as_me:5193: \$? = $ac_status" >&5
    14192 +  echo "$as_me:5287: \$? = $ac_status" >&5
     15222+  echo "$as_me:5292: \$? = $ac_status" >&5
    1419315223   (exit $ac_status); } &&
    1419415224          { ac_try='test -s conftest$ac_exeext'
    1419515225-  { (eval echo "$as_me:5196: \"$ac_try\"") >&5
    14196 +  { (eval echo "$as_me:5290: \"$ac_try\"") >&5
     15226+  { (eval echo "$as_me:5295: \"$ac_try\"") >&5
    1419715227   (eval $ac_try) 2>&5
    1419815228   ac_status=$?
    1419915229-  echo "$as_me:5199: \$? = $ac_status" >&5
    14200 +  echo "$as_me:5293: \$? = $ac_status" >&5
     15230+  echo "$as_me:5298: \$? = $ac_status" >&5
    1420115231   (exit $ac_status); }; }; then
    1420215232   cf_rpath_space=no
    1420315233 else
    14204 @@ -5206,7 +5300,7 @@
     15234@@ -5206,7 +5305,7 @@
    1420515235 fi
    1420615236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1420715237                LIBS="$cf_save_LIBS"
    1420815238-               echo "$as_me:5209: result: $cf_rpath_space" >&5
    14209 +               echo "$as_me:5303: result: $cf_rpath_space" >&5
     15239+               echo "$as_me:5308: result: $cf_rpath_space" >&5
    1421015240 echo "${ECHO_T}$cf_rpath_space" >&6
    1421115241                test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
    1421215242                MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${libdir}"
    14213 @@ -5215,7 +5309,7 @@
     15243@@ -5215,7 +5314,7 @@
    1421415244 if test "$CC_SHARED_OPTS" = "unknown"; then
    1421515245        for model in $cf_list_models; do
    1421615246                if test "$model" = "shared"; then
    1421715247-                       { { echo "$as_me:5218: error: Shared libraries are not supported in this version" >&5
    14218 +                       { { echo "$as_me:5312: error: Shared libraries are not supported in this version" >&5
     15248+                       { { echo "$as_me:5317: error: Shared libraries are not supported in this version" >&5
    1421915249 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
    1422015250    { (exit 1); exit 1; }; }
    1422115251                fi
    14222 @@ -5225,7 +5319,7 @@
     15252@@ -5225,7 +5324,7 @@
    1422315253 ###############################################################################
    1422415254 
    1422515255 ###    use option --disable-overwrite to leave out the link to -lcurses
    1422615256-echo "$as_me:5228: checking if you wish to install ncurses overwriting curses" >&5
    14227 +echo "$as_me:5322: checking if you wish to install ncurses overwriting curses" >&5
     15257+echo "$as_me:5327: checking if you wish to install ncurses overwriting curses" >&5
    1422815258 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
    1422915259 
    1423015260 # Check whether --enable-overwrite or --disable-overwrite was given.
    14231 @@ -5235,10 +5329,10 @@
     15261@@ -5235,10 +5334,10 @@
    1423215262 else
    1423315263   if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
    1423415264 fi;
    1423515265-echo "$as_me:5238: result: $with_overwrite" >&5
    14236 +echo "$as_me:5332: result: $with_overwrite" >&5
     15266+echo "$as_me:5337: result: $with_overwrite" >&5
    1423715267 echo "${ECHO_T}$with_overwrite" >&6
    1423815268 
    1423915269-echo "$as_me:5241: checking if external terminfo-database is used" >&5
    14240 +echo "$as_me:5335: checking if external terminfo-database is used" >&5
     15270+echo "$as_me:5340: checking if external terminfo-database is used" >&5
    1424115271 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
    1424215272 
    1424315273 # Check whether --enable-database or --disable-database was given.
    14244 @@ -5248,7 +5342,7 @@
     15274@@ -5248,7 +5347,7 @@
    1424515275 else
    1424615276   use_database=yes
    1424715277 fi;
    1424815278-echo "$as_me:5251: result: $use_database" >&5
    14249 +echo "$as_me:5345: result: $use_database" >&5
     15279+echo "$as_me:5350: result: $use_database" >&5
    1425015280 echo "${ECHO_T}$use_database" >&6
    1425115281 
    1425215282 case $host_os in #(vi
    14253 @@ -5270,7 +5364,7 @@
     15283@@ -5270,7 +5369,7 @@
    1425415284 #define USE_DATABASE 1
    1425515285 EOF
    1425615286 
    1425715287-       echo "$as_me:5273: checking which terminfo source-file will be installed" >&5
    14258 +       echo "$as_me:5367: checking which terminfo source-file will be installed" >&5
     15288+       echo "$as_me:5372: checking which terminfo source-file will be installed" >&5
    1425915289 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
    1426015290 
    1426115291 # Check whether --enable-database or --disable-database was given.
    14262 @@ -5278,10 +5372,10 @@
     15292@@ -5278,10 +5377,10 @@
    1426315293   enableval="$enable_database"
    1426415294   TERMINFO_SRC=$withval
    1426515295 fi;
    1426615296-       echo "$as_me:5281: result: $TERMINFO_SRC" >&5
    14267 +       echo "$as_me:5375: result: $TERMINFO_SRC" >&5
     15297+       echo "$as_me:5380: result: $TERMINFO_SRC" >&5
    1426815298 echo "${ECHO_T}$TERMINFO_SRC" >&6
    1426915299 
    1427015300-       echo "$as_me:5284: checking whether to use hashed database instead of directory/tree" >&5
    14271 +       echo "$as_me:5378: checking whether to use hashed database instead of directory/tree" >&5
     15301+       echo "$as_me:5383: checking whether to use hashed database instead of directory/tree" >&5
    1427215302 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
    1427315303 
    1427415304 # Check whether --with-hashed-db or --without-hashed-db was given.
    14275 @@ -5291,11 +5385,11 @@
     15305@@ -5291,11 +5390,11 @@
    1427615306 else
    1427715307   with_hashed_db=no
    1427815308 fi;
    1427915309-       echo "$as_me:5294: result: $with_hashed_db" >&5
    14280 +       echo "$as_me:5388: result: $with_hashed_db" >&5
     15310+       echo "$as_me:5393: result: $with_hashed_db" >&5
    1428115311 echo "${ECHO_T}$with_hashed_db" >&6
    1428215312 fi
    1428315313 
    1428415314-echo "$as_me:5298: checking for list of fallback descriptions" >&5
    14285 +echo "$as_me:5392: checking for list of fallback descriptions" >&5
     15315+echo "$as_me:5397: checking for list of fallback descriptions" >&5
    1428615316 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
    1428715317 
    1428815318 # Check whether --with-fallbacks or --without-fallbacks was given.
    14289 @@ -5305,11 +5399,11 @@
     15319@@ -5305,11 +5404,11 @@
    1429015320 else
    1429115321   with_fallback=
    1429215322 fi;
    1429315323-echo "$as_me:5308: result: $with_fallback" >&5
    14294 +echo "$as_me:5402: result: $with_fallback" >&5
     15324+echo "$as_me:5407: result: $with_fallback" >&5
    1429515325 echo "${ECHO_T}$with_fallback" >&6
    1429615326 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
    1429715327 
    1429815328-echo "$as_me:5312: checking if you want modern xterm or antique" >&5
    14299 +echo "$as_me:5406: checking if you want modern xterm or antique" >&5
     15329+echo "$as_me:5411: checking if you want modern xterm or antique" >&5
    1430015330 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
    1430115331 
    1430215332 # Check whether --with-xterm-new or --without-xterm-new was given.
    14303 @@ -5323,7 +5417,7 @@
     15333@@ -5323,7 +5422,7 @@
    1430415334 no)    with_xterm_new=xterm-old;;
    1430515335 *)     with_xterm_new=xterm-new;;
    1430615336 esac
    1430715337-echo "$as_me:5326: result: $with_xterm_new" >&5
    14308 +echo "$as_me:5420: result: $with_xterm_new" >&5
     15338+echo "$as_me:5425: result: $with_xterm_new" >&5
    1430915339 echo "${ECHO_T}$with_xterm_new" >&6
    1431015340 WHICH_XTERM=$with_xterm_new
    1431115341 
    14312 @@ -5333,7 +5427,7 @@
     15342@@ -5333,7 +5432,7 @@
    1431315343        MAKE_TERMINFO="#"
    1431415344 else
    1431515345 
    1431615346-echo "$as_me:5336: checking for list of terminfo directories" >&5
    14317 +echo "$as_me:5430: checking for list of terminfo directories" >&5
     15347+echo "$as_me:5435: checking for list of terminfo directories" >&5
    1431815348 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
    1431915349 
    1432015350 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
    14321 @@ -5373,7 +5467,7 @@
     15351@@ -5373,7 +5472,7 @@
    1432215352   cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
    1432315353   ;;
    1432415354 *)
    1432515355-  { { echo "$as_me:5376: error: expected a pathname, not \"$cf_src_path\"" >&5
    14326 +  { { echo "$as_me:5470: error: expected a pathname, not \"$cf_src_path\"" >&5
     15356+  { { echo "$as_me:5475: error: expected a pathname, not \"$cf_src_path\"" >&5
    1432715357 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
    1432815358    { (exit 1); exit 1; }; }
    1432915359   ;;
    14330 @@ -5386,13 +5480,13 @@
     15360@@ -5386,13 +5485,13 @@
    1433115361 
    1433215362 eval 'TERMINFO_DIRS="$cf_dst_path"'
    1433315363 
    1433415364-echo "$as_me:5389: result: $TERMINFO_DIRS" >&5
    14335 +echo "$as_me:5483: result: $TERMINFO_DIRS" >&5
     15365+echo "$as_me:5488: result: $TERMINFO_DIRS" >&5
    1433615366 echo "${ECHO_T}$TERMINFO_DIRS" >&6
    1433715367 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
     
    1434015370 
    1434115371-echo "$as_me:5395: checking for default terminfo directory" >&5
    14342 +echo "$as_me:5489: checking for default terminfo directory" >&5
     15372+echo "$as_me:5494: checking for default terminfo directory" >&5
    1434315373 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
    1434415374 
    1434515375 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
    14346 @@ -5401,7 +5495,8 @@
     15376@@ -5401,7 +5500,8 @@
    1434715377 
    1434815378 else
     
    1435415384   cf_path_syntax="$prefix"
    1435515385 else
    14356 @@ -5427,15 +5522,16 @@
     15386@@ -5427,15 +5527,16 @@
    1435715387   withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
    1435815388   ;;
    1435915389 *)
    1436015390-  { { echo "$as_me:5430: error: expected a pathname, not \"$withval\"" >&5
    14361 +  { { echo "$as_me:5525: error: expected a pathname, not \"$withval\"" >&5
     15391+  { { echo "$as_me:5530: error: expected a pathname, not \"$withval\"" >&5
    1436215392 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
    1436315393    { (exit 1); exit 1; }; }
     
    1436915399 
    1437015400-echo "$as_me:5438: result: $TERMINFO" >&5
    14371 +echo "$as_me:5534: result: $TERMINFO" >&5
     15401+echo "$as_me:5539: result: $TERMINFO" >&5
    1437215402 echo "${ECHO_T}$TERMINFO" >&6
    1437315403 cat >>confdefs.h <<EOF
    1437415404 #define TERMINFO "$TERMINFO"
    14375 @@ -5445,7 +5541,7 @@
     15405@@ -5445,7 +5546,7 @@
    1437615406 
    1437715407 ###    use option --disable-big-core to make tic run on small machines
    1437815408 ###    We need 4Mb, check if we can allocate 50% more than that.
    1437915409-echo "$as_me:5448: checking if big-core option selected" >&5
    14380 +echo "$as_me:5544: checking if big-core option selected" >&5
     15410+echo "$as_me:5549: checking if big-core option selected" >&5
    1438115411 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
    1438215412 
    1438315413 # Check whether --enable-big-core or --disable-big-core was given.
    14384 @@ -5457,7 +5553,7 @@
     15414@@ -5457,7 +5558,7 @@
    1438515415   with_big_core=no
    1438615416 else
    1438715417   cat >conftest.$ac_ext <<_ACEOF
    1438815418-#line 5460 "configure"
    14389 +#line 5556 "configure"
     15419+#line 5561 "configure"
    1439015420 #include "confdefs.h"
    1439115421 
    1439215422 #include <stdlib.h>
    14393 @@ -5471,15 +5567,15 @@
     15423@@ -5471,15 +5572,15 @@
    1439415424 }
    1439515425 _ACEOF
    1439615426 rm -f conftest$ac_exeext
    1439715427-if { (eval echo "$as_me:5474: \"$ac_link\"") >&5
    14398 +if { (eval echo "$as_me:5570: \"$ac_link\"") >&5
     15428+if { (eval echo "$as_me:5575: \"$ac_link\"") >&5
    1439915429   (eval $ac_link) 2>&5
    1440015430   ac_status=$?
    1440115431-  echo "$as_me:5477: \$? = $ac_status" >&5
    14402 +  echo "$as_me:5573: \$? = $ac_status" >&5
     15432+  echo "$as_me:5578: \$? = $ac_status" >&5
    1440315433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    1440415434-  { (eval echo "$as_me:5479: \"$ac_try\"") >&5
    14405 +  { (eval echo "$as_me:5575: \"$ac_try\"") >&5
     15435+  { (eval echo "$as_me:5580: \"$ac_try\"") >&5
    1440615436   (eval $ac_try) 2>&5
    1440715437   ac_status=$?
    1440815438-  echo "$as_me:5482: \$? = $ac_status" >&5
    14409 +  echo "$as_me:5578: \$? = $ac_status" >&5
     15439+  echo "$as_me:5583: \$? = $ac_status" >&5
    1441015440   (exit $ac_status); }; }; then
    1441115441   with_big_core=yes
    1441215442 else
    14413 @@ -5491,14 +5587,32 @@
     15443@@ -5491,14 +5592,32 @@
    1441415444 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    1441515445 fi
    1441615446 fi;
    1441715447-echo "$as_me:5494: result: $with_big_core" >&5
    14418 +echo "$as_me:5590: result: $with_big_core" >&5
     15448+echo "$as_me:5595: result: $with_big_core" >&5
    1441915449 echo "${ECHO_T}$with_big_core" >&6
    1442015450 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
     
    1442415454+### ISO C only guarantees 512-char strings, we have tables which load faster
    1442515455+### when constructed using "big" strings.
    14426 +echo "$as_me:5598: checking if big-strings option selected" >&5
     15456+echo "$as_me:5603: checking if big-strings option selected" >&5
    1442715457+echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
    1442815458+
     
    1443415464+  with_big_strings=yes
    1443515465+fi;
    14436 +echo "$as_me:5608: result: $with_big_strings" >&5
     15466+echo "$as_me:5613: result: $with_big_strings" >&5
    1443715467+echo "${ECHO_T}$with_big_strings" >&6
    1443815468+
     
    1444215472 ###    use option --enable-termcap to compile in the termcap fallback support
    1444315473-echo "$as_me:5501: checking if you want termcap-fallback support" >&5
    14444 +echo "$as_me:5615: checking if you want termcap-fallback support" >&5
     15474+echo "$as_me:5620: checking if you want termcap-fallback support" >&5
    1444515475 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
    1444615476 
    1444715477 # Check whether --enable-termcap or --disable-termcap was given.
    14448 @@ -5508,13 +5622,13 @@
     15478@@ -5508,13 +5627,13 @@
    1444915479 else
    1445015480   with_termcap=no
    1445115481 fi;
    1445215482-echo "$as_me:5511: result: $with_termcap" >&5
    14453 +echo "$as_me:5625: result: $with_termcap" >&5
     15483+echo "$as_me:5630: result: $with_termcap" >&5
    1445415484 echo "${ECHO_T}$with_termcap" >&6
    1445515485 
     
    1445815488                if test -z "$with_fallback" ; then
    1445915489-                       { { echo "$as_me:5517: error: You have disabled the database w/o specifying fallbacks" >&5
    14460 +                       { { echo "$as_me:5631: error: You have disabled the database w/o specifying fallbacks" >&5
     15490+                       { { echo "$as_me:5636: error: You have disabled the database w/o specifying fallbacks" >&5
    1446115491 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
    1446215492    { (exit 1); exit 1; }; }
    1446315493                fi
    14464 @@ -5525,11 +5639,17 @@
     15494@@ -5525,11 +5644,17 @@
    1446515495 
    1446615496 else
    1446715497 
    1446815498+if test "$with_ticlib" != no ; then
    14469 +       { { echo "$as_me:5643: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
     15499+       { { echo "$as_me:5648: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
    1447015500+echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
    1447115501+   { (exit 1); exit 1; }; }
     
    1447715507 
    1447815508-echo "$as_me:5532: checking for list of termcap files" >&5
    14479 +echo "$as_me:5652: checking for list of termcap files" >&5
     15509+echo "$as_me:5657: checking for list of termcap files" >&5
    1448015510 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
    1448115511 
    1448215512 # Check whether --with-termpath or --without-termpath was given.
    14483 @@ -5569,7 +5689,7 @@
     15513@@ -5569,7 +5694,7 @@
    1448415514   cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
    1448515515   ;;
    1448615516 *)
    1448715517-  { { echo "$as_me:5572: error: expected a pathname, not \"$cf_src_path\"" >&5
    14488 +  { { echo "$as_me:5692: error: expected a pathname, not \"$cf_src_path\"" >&5
     15518+  { { echo "$as_me:5697: error: expected a pathname, not \"$cf_src_path\"" >&5
    1448915519 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
    1449015520    { (exit 1); exit 1; }; }
    1449115521   ;;
    14492 @@ -5582,14 +5702,14 @@
     15522@@ -5582,14 +5707,14 @@
    1449315523 
    1449415524 eval 'TERMPATH="$cf_dst_path"'
    1449515525 
    1449615526-echo "$as_me:5585: result: $TERMPATH" >&5
    14497 +echo "$as_me:5705: result: $TERMPATH" >&5
     15527+echo "$as_me:5710: result: $TERMPATH" >&5
    1449815528 echo "${ECHO_T}$TERMPATH" >&6
    1449915529 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
     
    1450315533 ###    use option --enable-getcap to use a hacked getcap for reading termcaps
    1450415534-echo "$as_me:5592: checking if fast termcap-loader is needed" >&5
    14505 +echo "$as_me:5712: checking if fast termcap-loader is needed" >&5
     15535+echo "$as_me:5717: checking if fast termcap-loader is needed" >&5
    1450615536 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
    1450715537 
    1450815538 # Check whether --enable-getcap or --disable-getcap was given.
    14509 @@ -5599,13 +5719,13 @@
     15539@@ -5599,13 +5724,13 @@
    1451015540 else
    1451115541   with_getcap=no
    1451215542 fi;
    1451315543-echo "$as_me:5602: result: $with_getcap" >&5
    14514 +echo "$as_me:5722: result: $with_getcap" >&5
     15544+echo "$as_me:5727: result: $with_getcap" >&5
    1451515545 echo "${ECHO_T}$with_getcap" >&6
    1451615546 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
     
    1451915549 
    1452015550-echo "$as_me:5608: checking if translated termcaps will be cached in ~/.terminfo" >&5
    14521 +echo "$as_me:5728: checking if translated termcaps will be cached in ~/.terminfo" >&5
     15551+echo "$as_me:5733: checking if translated termcaps will be cached in ~/.terminfo" >&5
    1452215552 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
    1452315553 
    1452415554 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
    14525 @@ -5615,7 +5735,7 @@
     15555@@ -5615,7 +5740,7 @@
    1452615556 else
    1452715557   with_getcap_cache=no
    1452815558 fi;
    1452915559-echo "$as_me:5618: result: $with_getcap_cache" >&5
    14530 +echo "$as_me:5738: result: $with_getcap_cache" >&5
     15560+echo "$as_me:5743: result: $with_getcap_cache" >&5
    1453115561 echo "${ECHO_T}$with_getcap_cache" >&6
    1453215562 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
    1453315563 #define USE_GETCAP_CACHE 1
    14534 @@ -5624,7 +5744,7 @@
     15564@@ -5624,7 +5749,7 @@
    1453515565 fi
    1453615566 
    1453715567 ###   Use option --disable-home-terminfo to completely remove ~/.terminfo
    1453815568-echo "$as_me:5627: checking if ~/.terminfo is wanted" >&5
    14539 +echo "$as_me:5747: checking if ~/.terminfo is wanted" >&5
     15569+echo "$as_me:5752: checking if ~/.terminfo is wanted" >&5
    1454015570 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
    1454115571 
    1454215572 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
    14543 @@ -5634,13 +5754,13 @@
     15573@@ -5634,13 +5759,13 @@
    1454415574 else
    1454515575   with_home_terminfo=yes
    1454615576 fi;
    1454715577-echo "$as_me:5637: result: $with_home_terminfo" >&5
    14548 +echo "$as_me:5757: result: $with_home_terminfo" >&5
     15578+echo "$as_me:5762: result: $with_home_terminfo" >&5
    1454915579 echo "${ECHO_T}$with_home_terminfo" >&6
    1455015580 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
     
    1455315583 
    1455415584-echo "$as_me:5643: checking if you want to use restricted environment when running as root" >&5
    14555 +echo "$as_me:5763: checking if you want to use restricted environment when running as root" >&5
     15585+echo "$as_me:5768: checking if you want to use restricted environment when running as root" >&5
    1455615586 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
    1455715587 
    1455815588 # Check whether --enable-root-environ or --disable-root-environ was given.
    14559 @@ -5650,7 +5770,7 @@
     15589@@ -5650,7 +5775,7 @@
    1456015590 else
    1456115591   with_root_environ=yes
    1456215592 fi;
    1456315593-echo "$as_me:5653: result: $with_root_environ" >&5
    14564 +echo "$as_me:5773: result: $with_root_environ" >&5
     15594+echo "$as_me:5778: result: $with_root_environ" >&5
    1456515595 echo "${ECHO_T}$with_root_environ" >&6
    1456615596 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
    1456715597 #define USE_ROOT_ENVIRON 1
    14568 @@ -5664,13 +5784,13 @@
     15598@@ -5664,13 +5789,13 @@
    1456915599        unlink
    1457015600 do
    1457115601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    1457215602-echo "$as_me:5667: checking for $ac_func" >&5
    14573 +echo "$as_me:5787: checking for $ac_func" >&5
     15603+echo "$as_me:5792: checking for $ac_func" >&5
    1457415604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    1457515605 if eval "test \"\${$as_ac_var+set}\" = set"; then
     
    1457815608   cat >conftest.$ac_ext <<_ACEOF
    1457915609-#line 5673 "configure"
    14580 +#line 5793 "configure"
     15610+#line 5798 "configure"
    1458115611 #include "confdefs.h"
    1458215612 /* System header to define __stub macros and hopefully few prototypes,
    1458315613     which can conflict with char $ac_func (); below.  */
    14584 @@ -5701,16 +5821,16 @@
     15614@@ -5701,16 +5826,16 @@
    1458515615 }
    1458615616 _ACEOF
    1458715617 rm -f conftest.$ac_objext conftest$ac_exeext
    1458815618-if { (eval echo "$as_me:5704: \"$ac_link\"") >&5
    14589 +if { (eval echo "$as_me:5824: \"$ac_link\"") >&5
     15619+if { (eval echo "$as_me:5829: \"$ac_link\"") >&5
    1459015620   (eval $ac_link) 2>&5
    1459115621   ac_status=$?
    1459215622-  echo "$as_me:5707: \$? = $ac_status" >&5
    14593 +  echo "$as_me:5827: \$? = $ac_status" >&5
     15623+  echo "$as_me:5832: \$? = $ac_status" >&5
    1459415624   (exit $ac_status); } &&
    1459515625          { ac_try='test -s conftest$ac_exeext'
    1459615626-  { (eval echo "$as_me:5710: \"$ac_try\"") >&5
    14597 +  { (eval echo "$as_me:5830: \"$ac_try\"") >&5
     15627+  { (eval echo "$as_me:5835: \"$ac_try\"") >&5
    1459815628   (eval $ac_try) 2>&5
    1459915629   ac_status=$?
    1460015630-  echo "$as_me:5713: \$? = $ac_status" >&5
    14601 +  echo "$as_me:5833: \$? = $ac_status" >&5
     15631+  echo "$as_me:5838: \$? = $ac_status" >&5
    1460215632   (exit $ac_status); }; }; then
    1460315633   eval "$as_ac_var=yes"
    1460415634 else
    14605 @@ -5720,7 +5840,7 @@
     15635@@ -5720,7 +5845,7 @@
    1460615636 fi
    1460715637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1460815638 fi
    1460915639-echo "$as_me:5723: result: `eval echo '${'$as_ac_var'}'`" >&5
    14610 +echo "$as_me:5843: result: `eval echo '${'$as_ac_var'}'`" >&5
     15640+echo "$as_me:5848: result: `eval echo '${'$as_ac_var'}'`" >&5
    1461115641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    1461215642 if test `eval echo '${'$as_ac_var'}'` = yes; then
    1461315643   cat >>confdefs.h <<EOF
    14614 @@ -5737,13 +5857,13 @@
     15644@@ -5737,13 +5862,13 @@
    1461515645                symlink
    1461615646 do
    1461715647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    1461815648-echo "$as_me:5740: checking for $ac_func" >&5
    14619 +echo "$as_me:5860: checking for $ac_func" >&5
     15649+echo "$as_me:5865: checking for $ac_func" >&5
    1462015650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    1462115651 if eval "test \"\${$as_ac_var+set}\" = set"; then
     
    1462415654   cat >conftest.$ac_ext <<_ACEOF
    1462515655-#line 5746 "configure"
    14626 +#line 5866 "configure"
     15656+#line 5871 "configure"
    1462715657 #include "confdefs.h"
    1462815658 /* System header to define __stub macros and hopefully few prototypes,
    1462915659     which can conflict with char $ac_func (); below.  */
    14630 @@ -5774,16 +5894,16 @@
     15660@@ -5774,16 +5899,16 @@
    1463115661 }
    1463215662 _ACEOF
    1463315663 rm -f conftest.$ac_objext conftest$ac_exeext
    1463415664-if { (eval echo "$as_me:5777: \"$ac_link\"") >&5
    14635 +if { (eval echo "$as_me:5897: \"$ac_link\"") >&5
     15665+if { (eval echo "$as_me:5902: \"$ac_link\"") >&5
    1463615666   (eval $ac_link) 2>&5
    1463715667   ac_status=$?
    1463815668-  echo "$as_me:5780: \$? = $ac_status" >&5
    14639 +  echo "$as_me:5900: \$? = $ac_status" >&5
     15669+  echo "$as_me:5905: \$? = $ac_status" >&5
    1464015670   (exit $ac_status); } &&
    1464115671          { ac_try='test -s conftest$ac_exeext'
    1464215672-  { (eval echo "$as_me:5783: \"$ac_try\"") >&5
    14643 +  { (eval echo "$as_me:5903: \"$ac_try\"") >&5
     15673+  { (eval echo "$as_me:5908: \"$ac_try\"") >&5
    1464415674   (eval $ac_try) 2>&5
    1464515675   ac_status=$?
    1464615676-  echo "$as_me:5786: \$? = $ac_status" >&5
    14647 +  echo "$as_me:5906: \$? = $ac_status" >&5
     15677+  echo "$as_me:5911: \$? = $ac_status" >&5
    1464815678   (exit $ac_status); }; }; then
    1464915679   eval "$as_ac_var=yes"
    1465015680 else
    14651 @@ -5793,7 +5913,7 @@
     15681@@ -5793,7 +5918,7 @@
    1465215682 fi
    1465315683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1465415684 fi
    1465515685-echo "$as_me:5796: result: `eval echo '${'$as_ac_var'}'`" >&5
    14656 +echo "$as_me:5916: result: `eval echo '${'$as_ac_var'}'`" >&5
     15686+echo "$as_me:5921: result: `eval echo '${'$as_ac_var'}'`" >&5
    1465715687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    1465815688 if test `eval echo '${'$as_ac_var'}'` = yes; then
    1465915689   cat >>confdefs.h <<EOF
    14660 @@ -5804,7 +5924,7 @@
     15690@@ -5804,7 +5929,7 @@
    1466115691 done
    1466215692 
    1466315693 else
    1466415694-       echo "$as_me:5807: checking if link/symlink functions work" >&5
    14665 +       echo "$as_me:5927: checking if link/symlink functions work" >&5
     15695+       echo "$as_me:5932: checking if link/symlink functions work" >&5
    1466615696 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
    1466715697 if test "${cf_cv_link_funcs+set}" = set; then
    1466815698   echo $ECHO_N "(cached) $ECHO_C" >&6
    14669 @@ -5817,7 +5937,7 @@
     15699@@ -5817,7 +5942,7 @@
    1467015700                        eval 'ac_cv_func_'$cf_func'=error'
    1467115701 else
    1467215702   cat >conftest.$ac_ext <<_ACEOF
    1467315703-#line 5820 "configure"
    14674 +#line 5940 "configure"
     15704+#line 5945 "configure"
    1467515705 #include "confdefs.h"
    1467615706 
    1467715707 #include <sys/types.h>
    14678 @@ -5847,15 +5967,15 @@
     15708@@ -5847,15 +5972,15 @@
    1467915709 
    1468015710 _ACEOF
    1468115711 rm -f conftest$ac_exeext
    1468215712-if { (eval echo "$as_me:5850: \"$ac_link\"") >&5
    14683 +if { (eval echo "$as_me:5970: \"$ac_link\"") >&5
     15713+if { (eval echo "$as_me:5975: \"$ac_link\"") >&5
    1468415714   (eval $ac_link) 2>&5
    1468515715   ac_status=$?
    1468615716-  echo "$as_me:5853: \$? = $ac_status" >&5
    14687 +  echo "$as_me:5973: \$? = $ac_status" >&5
     15717+  echo "$as_me:5978: \$? = $ac_status" >&5
    1468815718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    1468915719-  { (eval echo "$as_me:5855: \"$ac_try\"") >&5
    14690 +  { (eval echo "$as_me:5975: \"$ac_try\"") >&5
     15720+  { (eval echo "$as_me:5980: \"$ac_try\"") >&5
    1469115721   (eval $ac_try) 2>&5
    1469215722   ac_status=$?
    1469315723-  echo "$as_me:5858: \$? = $ac_status" >&5
    14694 +  echo "$as_me:5978: \$? = $ac_status" >&5
     15724+  echo "$as_me:5983: \$? = $ac_status" >&5
    1469515725   (exit $ac_status); }; }; then
    1469615726 
    1469715727                        cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
    14698 @@ -5873,7 +5993,7 @@
     15728@@ -5873,7 +5998,7 @@
    1469915729                test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
    1470015730 
    1470115731 fi
    1470215732-echo "$as_me:5876: result: $cf_cv_link_funcs" >&5
    14703 +echo "$as_me:5996: result: $cf_cv_link_funcs" >&5
     15733+echo "$as_me:6001: result: $cf_cv_link_funcs" >&5
    1470415734 echo "${ECHO_T}$cf_cv_link_funcs" >&6
    1470515735        test "$ac_cv_func_link"    = yes && cat >>confdefs.h <<\EOF
    1470615736 #define HAVE_LINK 1
    14707 @@ -5891,7 +6011,7 @@
     15737@@ -5891,7 +6016,7 @@
    1470815738 # soft links (symbolic links) are useful for some systems where hard links do
    1470915739 # not work, or to make it simpler to copy terminfo trees around.
    1471015740 if test "$ac_cv_func_symlink" = yes ; then
    1471115741-    echo "$as_me:5894: checking if tic should use symbolic links" >&5
    14712 +    echo "$as_me:6014: checking if tic should use symbolic links" >&5
     15742+    echo "$as_me:6019: checking if tic should use symbolic links" >&5
    1471315743 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
    1471415744 
    1471515745 # Check whether --enable-symlinks or --disable-symlinks was given.
    14716 @@ -5901,21 +6021,21 @@
     15746@@ -5901,21 +6026,21 @@
    1471715747 else
    1471815748   with_symlinks=no
    1471915749 fi;
    1472015750-    echo "$as_me:5904: result: $with_symlinks" >&5
    14721 +    echo "$as_me:6024: result: $with_symlinks" >&5
     15751+    echo "$as_me:6029: result: $with_symlinks" >&5
    1472215752 echo "${ECHO_T}$with_symlinks" >&6
    1472315753 fi
     
    1472715757 if test "$with_symlinks" = no ; then
    1472815758-    echo "$as_me:5911: checking if tic should use hard links" >&5
    14729 +    echo "$as_me:6031: checking if tic should use hard links" >&5
     15759+    echo "$as_me:6036: checking if tic should use hard links" >&5
    1473015760 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
    1473115761     if test "$ac_cv_func_link" = yes ; then
     
    1473515765     fi
    1473615766-    echo "$as_me:5918: result: $with_links" >&5
    14737 +    echo "$as_me:6038: result: $with_links" >&5
     15767+    echo "$as_me:6043: result: $with_links" >&5
    1473815768 echo "${ECHO_T}$with_links" >&6
    1473915769 fi
    1474015770 
    14741 @@ -5928,7 +6048,7 @@
     15771@@ -5928,7 +6053,7 @@
    1474215772 EOF
    1474315773 
    1474415774 ###   use option --enable-broken-linker to force on use of broken-linker support
    1474515775-echo "$as_me:5931: checking if you want broken-linker support code" >&5
    14746 +echo "$as_me:6051: checking if you want broken-linker support code" >&5
     15776+echo "$as_me:6056: checking if you want broken-linker support code" >&5
    1474715777 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
    1474815778 
    1474915779 # Check whether --enable-broken_linker or --disable-broken_linker was given.
    14750 @@ -5938,7 +6058,7 @@
     15780@@ -5938,7 +6063,7 @@
    1475115781 else
    1475215782   with_broken_linker=${BROKEN_LINKER-no}
    1475315783 fi;
    1475415784-echo "$as_me:5941: result: $with_broken_linker" >&5
    14755 +echo "$as_me:6061: result: $with_broken_linker" >&5
     15785+echo "$as_me:6066: result: $with_broken_linker" >&5
    1475615786 echo "${ECHO_T}$with_broken_linker" >&6
    1475715787 
    1475815788 BROKEN_LINKER=0
    14759 @@ -5958,12 +6078,14 @@
     15789@@ -5958,12 +6083,14 @@
    1476015790                BROKEN_LINKER=1
    1476115791                test -n "$verbose" && echo "    cygwin linker is broken anyway" 1>&6
    1476215792 
    14763 +echo "${as_me-configure}:6081: testing cygwin linker is broken anyway ..." 1>&5
     15793+echo "${as_me-configure}:6086: testing cygwin linker is broken anyway ..." 1>&5
    1476415794+
    1476515795                ;;
     
    1476915799 ###   use option --enable-bsdpad to have tputs process BSD-style prefix padding
    1477015800-echo "$as_me:5966: checking if tputs should process BSD-style prefix padding" >&5
    14771 +echo "$as_me:6088: checking if tputs should process BSD-style prefix padding" >&5
     15801+echo "$as_me:6093: checking if tputs should process BSD-style prefix padding" >&5
    1477215802 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
    1477315803 
    1477415804 # Check whether --enable-bsdpad or --disable-bsdpad was given.
    14775 @@ -5973,7 +6095,7 @@
     15805@@ -5973,7 +6100,7 @@
    1477615806 else
    1477715807   with_bsdpad=no
    1477815808 fi;
    1477915809-echo "$as_me:5976: result: $with_bsdpad" >&5
    14780 +echo "$as_me:6098: result: $with_bsdpad" >&5
     15810+echo "$as_me:6103: result: $with_bsdpad" >&5
    1478115811 echo "${ECHO_T}$with_bsdpad" >&6
    1478215812 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
    1478315813 #define BSD_TPUTS 1
    14784 @@ -5990,7 +6112,7 @@
     15814@@ -5990,7 +6117,7 @@
    1478515815 
    1478615816 # Check to define _XOPEN_SOURCE "automatically"
    1478715817 
    1478815818-echo "$as_me:5993: checking if $CC -U and -D options work together" >&5
    14789 +echo "$as_me:6115: checking if $CC -U and -D options work together" >&5
     15819+echo "$as_me:6120: checking if $CC -U and -D options work together" >&5
    1479015820 echo $ECHO_N "checking if $CC -U and -D options work together... $ECHO_C" >&6
    1479115821 if test "${cf_cv_cc_u_d_options+set}" = set; then
    1479215822   echo $ECHO_N "(cached) $ECHO_C" >&6
    14793 @@ -5999,7 +6121,7 @@
     15823@@ -5999,7 +6126,7 @@
    1479415824        cf_save_CPPFLAGS="$CPPFLAGS"
    1479515825        CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
    1479615826        cat >conftest.$ac_ext <<_ACEOF
    1479715827-#line 6002 "configure"
    14798 +#line 6124 "configure"
     15828+#line 6129 "configure"
    1479915829 #include "confdefs.h"
    1480015830 
    1480115831 int
    14802 @@ -6018,16 +6140,16 @@
     15832@@ -6018,16 +6145,16 @@
    1480315833 }
    1480415834 _ACEOF
    1480515835 rm -f conftest.$ac_objext
    1480615836-if { (eval echo "$as_me:6021: \"$ac_compile\"") >&5
    14807 +if { (eval echo "$as_me:6143: \"$ac_compile\"") >&5
     15837+if { (eval echo "$as_me:6148: \"$ac_compile\"") >&5
    1480815838   (eval $ac_compile) 2>&5
    1480915839   ac_status=$?
    1481015840-  echo "$as_me:6024: \$? = $ac_status" >&5
    14811 +  echo "$as_me:6146: \$? = $ac_status" >&5
     15841+  echo "$as_me:6151: \$? = $ac_status" >&5
    1481215842   (exit $ac_status); } &&
    1481315843          { ac_try='test -s conftest.$ac_objext'
    1481415844-  { (eval echo "$as_me:6027: \"$ac_try\"") >&5
    14815 +  { (eval echo "$as_me:6149: \"$ac_try\"") >&5
     15845+  { (eval echo "$as_me:6154: \"$ac_try\"") >&5
    1481615846   (eval $ac_try) 2>&5
    1481715847   ac_status=$?
    1481815848-  echo "$as_me:6030: \$? = $ac_status" >&5
    14819 +  echo "$as_me:6152: \$? = $ac_status" >&5
     15849+  echo "$as_me:6157: \$? = $ac_status" >&5
    1482015850   (exit $ac_status); }; }; then
    1482115851 
    1482215852        cf_cv_cc_u_d_options=yes
    14823 @@ -6041,7 +6163,7 @@
     15853@@ -6041,7 +6168,7 @@
    1482415854        CPPFLAGS="$cf_save_CPPFLAGS"
    1482515855 
    1482615856 fi
    1482715857-echo "$as_me:6044: result: $cf_cv_cc_u_d_options" >&5
    14828 +echo "$as_me:6166: result: $cf_cv_cc_u_d_options" >&5
     15858+echo "$as_me:6171: result: $cf_cv_cc_u_d_options" >&5
    1482915859 echo "${ECHO_T}$cf_cv_cc_u_d_options" >&6
    1483015860 
    1483115861 cf_XOPEN_SOURCE=500
    14832 @@ -6065,16 +6187,16 @@
     15862@@ -6065,16 +6192,16 @@
    1483315863 irix[56].*) #(vi
    1483415864        CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
     
    1483815868 
    1483915869-echo "$as_me:6070: checking if we must define _GNU_SOURCE" >&5
    14840 +echo "$as_me:6192: checking if we must define _GNU_SOURCE" >&5
     15870+echo "$as_me:6197: checking if we must define _GNU_SOURCE" >&5
    1484115871 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
    1484215872 if test "${cf_cv_gnu_source+set}" = set; then
     
    1484615876 cat >conftest.$ac_ext <<_ACEOF
    1484715877-#line 6077 "configure"
    14848 +#line 6199 "configure"
     15878+#line 6204 "configure"
    1484915879 #include "confdefs.h"
    1485015880 #include <sys/types.h>
    1485115881 int
    14852 @@ -6089,16 +6211,16 @@
     15882@@ -6089,16 +6216,16 @@
    1485315883 }
    1485415884 _ACEOF
    1485515885 rm -f conftest.$ac_objext
    1485615886-if { (eval echo "$as_me:6092: \"$ac_compile\"") >&5
    14857 +if { (eval echo "$as_me:6214: \"$ac_compile\"") >&5
     15887+if { (eval echo "$as_me:6219: \"$ac_compile\"") >&5
    1485815888   (eval $ac_compile) 2>&5
    1485915889   ac_status=$?
    1486015890-  echo "$as_me:6095: \$? = $ac_status" >&5
    14861 +  echo "$as_me:6217: \$? = $ac_status" >&5
     15891+  echo "$as_me:6222: \$? = $ac_status" >&5
    1486215892   (exit $ac_status); } &&
    1486315893          { ac_try='test -s conftest.$ac_objext'
    1486415894-  { (eval echo "$as_me:6098: \"$ac_try\"") >&5
    14865 +  { (eval echo "$as_me:6220: \"$ac_try\"") >&5
     15895+  { (eval echo "$as_me:6225: \"$ac_try\"") >&5
    1486615896   (eval $ac_try) 2>&5
    1486715897   ac_status=$?
    1486815898-  echo "$as_me:6101: \$? = $ac_status" >&5
    14869 +  echo "$as_me:6223: \$? = $ac_status" >&5
     15899+  echo "$as_me:6228: \$? = $ac_status" >&5
    1487015900   (exit $ac_status); }; }; then
    1487115901   cf_cv_gnu_source=no
    1487215902 else
    14873 @@ -6107,7 +6229,7 @@
     15903@@ -6107,7 +6234,7 @@
    1487415904 cf_save="$CPPFLAGS"
    1487515905         CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
    1487615906         cat >conftest.$ac_ext <<_ACEOF
    1487715907-#line 6110 "configure"
    14878 +#line 6232 "configure"
     15908+#line 6237 "configure"
    1487915909 #include "confdefs.h"
    1488015910 #include <sys/types.h>
    1488115911 int
    14882 @@ -6122,16 +6244,16 @@
     15912@@ -6122,16 +6249,16 @@
    1488315913 }
    1488415914 _ACEOF
    1488515915 rm -f conftest.$ac_objext
    1488615916-if { (eval echo "$as_me:6125: \"$ac_compile\"") >&5
    14887 +if { (eval echo "$as_me:6247: \"$ac_compile\"") >&5
     15917+if { (eval echo "$as_me:6252: \"$ac_compile\"") >&5
    1488815918   (eval $ac_compile) 2>&5
    1488915919   ac_status=$?
    1489015920-  echo "$as_me:6128: \$? = $ac_status" >&5
    14891 +  echo "$as_me:6250: \$? = $ac_status" >&5
     15921+  echo "$as_me:6255: \$? = $ac_status" >&5
    1489215922   (exit $ac_status); } &&
    1489315923          { ac_try='test -s conftest.$ac_objext'
    1489415924-  { (eval echo "$as_me:6131: \"$ac_try\"") >&5
    14895 +  { (eval echo "$as_me:6253: \"$ac_try\"") >&5
     15925+  { (eval echo "$as_me:6258: \"$ac_try\"") >&5
    1489615926   (eval $ac_try) 2>&5
    1489715927   ac_status=$?
    1489815928-  echo "$as_me:6134: \$? = $ac_status" >&5
    14899 +  echo "$as_me:6256: \$? = $ac_status" >&5
     15929+  echo "$as_me:6261: \$? = $ac_status" >&5
    1490015930   (exit $ac_status); }; }; then
    1490115931   cf_cv_gnu_source=no
    1490215932 else
    14903 @@ -6146,7 +6268,7 @@
     15933@@ -6146,7 +6273,7 @@
    1490415934 rm -f conftest.$ac_objext conftest.$ac_ext
    1490515935 
    1490615936 fi
    1490715937-echo "$as_me:6149: result: $cf_cv_gnu_source" >&5
    14908 +echo "$as_me:6271: result: $cf_cv_gnu_source" >&5
     15938+echo "$as_me:6276: result: $cf_cv_gnu_source" >&5
    1490915939 echo "${ECHO_T}$cf_cv_gnu_source" >&6
    1491015940 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
    1491115941 
    14912 @@ -6173,14 +6295,14 @@
     15942@@ -6173,14 +6300,14 @@
    1491315943        CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
    1491415944        ;;
    1491515945 *)
    1491615946-       echo "$as_me:6176: checking if we should define _XOPEN_SOURCE" >&5
    14917 +       echo "$as_me:6298: checking if we should define _XOPEN_SOURCE" >&5
     15947+       echo "$as_me:6303: checking if we should define _XOPEN_SOURCE" >&5
    1491815948 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
    1491915949 if test "${cf_cv_xopen_source+set}" = set; then
     
    1492315953        cat >conftest.$ac_ext <<_ACEOF
    1492415954-#line 6183 "configure"
    14925 +#line 6305 "configure"
     15955+#line 6310 "configure"
    1492615956 #include "confdefs.h"
    1492715957 #include <sys/types.h>
    1492815958 int
    14929 @@ -6195,16 +6317,16 @@
     15959@@ -6195,16 +6322,16 @@
    1493015960 }
    1493115961 _ACEOF
    1493215962 rm -f conftest.$ac_objext
    1493315963-if { (eval echo "$as_me:6198: \"$ac_compile\"") >&5
    14934 +if { (eval echo "$as_me:6320: \"$ac_compile\"") >&5
     15964+if { (eval echo "$as_me:6325: \"$ac_compile\"") >&5
    1493515965   (eval $ac_compile) 2>&5
    1493615966   ac_status=$?
    1493715967-  echo "$as_me:6201: \$? = $ac_status" >&5
    14938 +  echo "$as_me:6323: \$? = $ac_status" >&5
     15968+  echo "$as_me:6328: \$? = $ac_status" >&5
    1493915969   (exit $ac_status); } &&
    1494015970          { ac_try='test -s conftest.$ac_objext'
    1494115971-  { (eval echo "$as_me:6204: \"$ac_try\"") >&5
    14942 +  { (eval echo "$as_me:6326: \"$ac_try\"") >&5
     15972+  { (eval echo "$as_me:6331: \"$ac_try\"") >&5
    1494315973   (eval $ac_try) 2>&5
    1494415974   ac_status=$?
    1494515975-  echo "$as_me:6207: \$? = $ac_status" >&5
    14946 +  echo "$as_me:6329: \$? = $ac_status" >&5
     15976+  echo "$as_me:6334: \$? = $ac_status" >&5
    1494715977   (exit $ac_status); }; }; then
    1494815978   cf_cv_xopen_source=no
    1494915979 else
    14950 @@ -6213,7 +6335,7 @@
     15980@@ -6213,7 +6340,7 @@
    1495115981 cf_save="$CPPFLAGS"
    1495215982         CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
    1495315983         cat >conftest.$ac_ext <<_ACEOF
    1495415984-#line 6216 "configure"
    14955 +#line 6338 "configure"
     15985+#line 6343 "configure"
    1495615986 #include "confdefs.h"
    1495715987 #include <sys/types.h>
    1495815988 int
    14959 @@ -6228,16 +6350,16 @@
     15989@@ -6228,16 +6355,16 @@
    1496015990 }
    1496115991 _ACEOF
    1496215992 rm -f conftest.$ac_objext
    1496315993-if { (eval echo "$as_me:6231: \"$ac_compile\"") >&5
    14964 +if { (eval echo "$as_me:6353: \"$ac_compile\"") >&5
     15994+if { (eval echo "$as_me:6358: \"$ac_compile\"") >&5
    1496515995   (eval $ac_compile) 2>&5
    1496615996   ac_status=$?
    1496715997-  echo "$as_me:6234: \$? = $ac_status" >&5
    14968 +  echo "$as_me:6356: \$? = $ac_status" >&5
     15998+  echo "$as_me:6361: \$? = $ac_status" >&5
    1496915999   (exit $ac_status); } &&
    1497016000          { ac_try='test -s conftest.$ac_objext'
    1497116001-  { (eval echo "$as_me:6237: \"$ac_try\"") >&5
    14972 +  { (eval echo "$as_me:6359: \"$ac_try\"") >&5
     16002+  { (eval echo "$as_me:6364: \"$ac_try\"") >&5
    1497316003   (eval $ac_try) 2>&5
    1497416004   ac_status=$?
    1497516005-  echo "$as_me:6240: \$? = $ac_status" >&5
    14976 +  echo "$as_me:6362: \$? = $ac_status" >&5
     16006+  echo "$as_me:6367: \$? = $ac_status" >&5
    1497716007   (exit $ac_status); }; }; then
    1497816008   cf_cv_xopen_source=no
    1497916009 else
    14980 @@ -6252,7 +6374,7 @@
     16010@@ -6252,7 +6379,7 @@
    1498116011 rm -f conftest.$ac_objext conftest.$ac_ext
    1498216012 
    1498316013 fi
    1498416014-echo "$as_me:6255: result: $cf_cv_xopen_source" >&5
    14985 +echo "$as_me:6377: result: $cf_cv_xopen_source" >&5
     16015+echo "$as_me:6382: result: $cf_cv_xopen_source" >&5
    1498616016 echo "${ECHO_T}$cf_cv_xopen_source" >&6
    1498716017        if test "$cf_cv_xopen_source" != no ; then
    1498816018 
    14989 @@ -6286,16 +6408,16 @@
     16019@@ -6286,16 +6413,16 @@
    1499016020        sed     -e 's/-[UD]_POSIX_C_SOURCE\(=[^         ]*\)\?[         ]/ /g' \
    1499116021                -e 's/-[UD]_POSIX_C_SOURCE\(=[^         ]*\)\?$//g'`
    1499216022 
    1499316023-echo "$as_me:6289: checking if we should define _POSIX_C_SOURCE" >&5
    14994 +echo "$as_me:6411: checking if we should define _POSIX_C_SOURCE" >&5
     16024+echo "$as_me:6416: checking if we should define _POSIX_C_SOURCE" >&5
    1499516025 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
    1499616026 if test "${cf_cv_posix_c_source+set}" = set; then
     
    1499916029 
    1500016030-echo "(line 6295) testing if the symbol is already defined go no further ..." 1>&5
    15001 +echo "${as_me-configure}:6417: testing if the symbol is already defined go no further ..." 1>&5
     16031+echo "${as_me-configure}:6422: testing if the symbol is already defined go no further ..." 1>&5
    1500216032 
    1500316033        cat >conftest.$ac_ext <<_ACEOF
    1500416034-#line 6298 "configure"
    15005 +#line 6420 "configure"
     16035+#line 6425 "configure"
    1500616036 #include "confdefs.h"
    1500716037 #include <sys/types.h>
    1500816038 int
    15009 @@ -6310,16 +6432,16 @@
     16039@@ -6310,16 +6437,16 @@
    1501016040 }
    1501116041 _ACEOF
    1501216042 rm -f conftest.$ac_objext
    1501316043-if { (eval echo "$as_me:6313: \"$ac_compile\"") >&5
    15014 +if { (eval echo "$as_me:6435: \"$ac_compile\"") >&5
     16044+if { (eval echo "$as_me:6440: \"$ac_compile\"") >&5
    1501516045   (eval $ac_compile) 2>&5
    1501616046   ac_status=$?
    1501716047-  echo "$as_me:6316: \$? = $ac_status" >&5
    15018 +  echo "$as_me:6438: \$? = $ac_status" >&5
     16048+  echo "$as_me:6443: \$? = $ac_status" >&5
    1501916049   (exit $ac_status); } &&
    1502016050          { ac_try='test -s conftest.$ac_objext'
    1502116051-  { (eval echo "$as_me:6319: \"$ac_try\"") >&5
    15022 +  { (eval echo "$as_me:6441: \"$ac_try\"") >&5
     16052+  { (eval echo "$as_me:6446: \"$ac_try\"") >&5
    1502316053   (eval $ac_try) 2>&5
    1502416054   ac_status=$?
    1502516055-  echo "$as_me:6322: \$? = $ac_status" >&5
    15026 +  echo "$as_me:6444: \$? = $ac_status" >&5
     16056+  echo "$as_me:6449: \$? = $ac_status" >&5
    1502716057   (exit $ac_status); }; }; then
    1502816058   cf_cv_posix_c_source=no
    1502916059 else
    15030 @@ -6340,7 +6462,7 @@
     16060@@ -6340,7 +6467,7 @@
    1503116061         esac
    1503216062         if test "$cf_want_posix_source" = yes ; then
    1503316063                cat >conftest.$ac_ext <<_ACEOF
    1503416064-#line 6343 "configure"
    15035 +#line 6465 "configure"
     16065+#line 6470 "configure"
    1503616066 #include "confdefs.h"
    1503716067 #include <sys/types.h>
    1503816068 int
    15039 @@ -6355,16 +6477,16 @@
     16069@@ -6355,16 +6482,16 @@
    1504016070 }
    1504116071 _ACEOF
    1504216072 rm -f conftest.$ac_objext
    1504316073-if { (eval echo "$as_me:6358: \"$ac_compile\"") >&5
    15044 +if { (eval echo "$as_me:6480: \"$ac_compile\"") >&5
     16074+if { (eval echo "$as_me:6485: \"$ac_compile\"") >&5
    1504516075   (eval $ac_compile) 2>&5
    1504616076   ac_status=$?
    1504716077-  echo "$as_me:6361: \$? = $ac_status" >&5
    15048 +  echo "$as_me:6483: \$? = $ac_status" >&5
     16078+  echo "$as_me:6488: \$? = $ac_status" >&5
    1504916079   (exit $ac_status); } &&
    1505016080          { ac_try='test -s conftest.$ac_objext'
    1505116081-  { (eval echo "$as_me:6364: \"$ac_try\"") >&5
    15052 +  { (eval echo "$as_me:6486: \"$ac_try\"") >&5
     16082+  { (eval echo "$as_me:6491: \"$ac_try\"") >&5
    1505316083   (eval $ac_try) 2>&5
    1505416084   ac_status=$?
    1505516085-  echo "$as_me:6367: \$? = $ac_status" >&5
    15056 +  echo "$as_me:6489: \$? = $ac_status" >&5
     16086+  echo "$as_me:6494: \$? = $ac_status" >&5
    1505716087   (exit $ac_status); }; }; then
    1505816088   :
    1505916089 else
    15060 @@ -6375,15 +6497,15 @@
     16090@@ -6375,15 +6502,15 @@
    1506116091 rm -f conftest.$ac_objext conftest.$ac_ext
    1506216092         fi
    1506316093 
    1506416094-echo "(line 6378) testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
    15065 +echo "${as_me-configure}:6500: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
     16095+echo "${as_me-configure}:6505: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
    1506616096 
    1506716097         CFLAGS="$cf_trim_CFLAGS"
     
    1506916099 
    1507016100-echo "(line 6383) testing if the second compile does not leave our definition intact error ..." 1>&5
    15071 +echo "${as_me-configure}:6505: testing if the second compile does not leave our definition intact error ..." 1>&5
     16101+echo "${as_me-configure}:6510: testing if the second compile does not leave our definition intact error ..." 1>&5
    1507216102 
    1507316103         cat >conftest.$ac_ext <<_ACEOF
    1507416104-#line 6386 "configure"
    15075 +#line 6508 "configure"
     16105+#line 6513 "configure"
    1507616106 #include "confdefs.h"
    1507716107 #include <sys/types.h>
    1507816108 int
    15079 @@ -6398,16 +6520,16 @@
     16109@@ -6398,16 +6525,16 @@
    1508016110 }
    1508116111 _ACEOF
    1508216112 rm -f conftest.$ac_objext
    1508316113-if { (eval echo "$as_me:6401: \"$ac_compile\"") >&5
    15084 +if { (eval echo "$as_me:6523: \"$ac_compile\"") >&5
     16114+if { (eval echo "$as_me:6528: \"$ac_compile\"") >&5
    1508516115   (eval $ac_compile) 2>&5
    1508616116   ac_status=$?
    1508716117-  echo "$as_me:6404: \$? = $ac_status" >&5
    15088 +  echo "$as_me:6526: \$? = $ac_status" >&5
     16118+  echo "$as_me:6531: \$? = $ac_status" >&5
    1508916119   (exit $ac_status); } &&
    1509016120          { ac_try='test -s conftest.$ac_objext'
    1509116121-  { (eval echo "$as_me:6407: \"$ac_try\"") >&5
    15092 +  { (eval echo "$as_me:6529: \"$ac_try\"") >&5
     16122+  { (eval echo "$as_me:6534: \"$ac_try\"") >&5
    1509316123   (eval $ac_try) 2>&5
    1509416124   ac_status=$?
    1509516125-  echo "$as_me:6410: \$? = $ac_status" >&5
    15096 +  echo "$as_me:6532: \$? = $ac_status" >&5
     16126+  echo "$as_me:6537: \$? = $ac_status" >&5
    1509716127   (exit $ac_status); }; }; then
    1509816128   :
    1509916129 else
    15100 @@ -6423,7 +6545,7 @@
     16130@@ -6423,7 +6550,7 @@
    1510116131 rm -f conftest.$ac_objext conftest.$ac_ext
    1510216132 
    1510316133 fi
    1510416134-echo "$as_me:6426: result: $cf_cv_posix_c_source" >&5
    15105 +echo "$as_me:6548: result: $cf_cv_posix_c_source" >&5
     16135+echo "$as_me:6553: result: $cf_cv_posix_c_source" >&5
    1510616136 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
    1510716137 
    1510816138 if test "$cf_cv_posix_c_source" != no ; then
    15109 @@ -6442,14 +6564,14 @@
     16139@@ -6442,14 +6569,14 @@
    1511016140 
    1511116141 # Work around breakage on OS X
    1511216142 
    1511316143-echo "$as_me:6445: checking if SIGWINCH is defined" >&5
    15114 +echo "$as_me:6567: checking if SIGWINCH is defined" >&5
     16144+echo "$as_me:6572: checking if SIGWINCH is defined" >&5
    1511516145 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
    1511616146 if test "${cf_cv_define_sigwinch+set}" = set; then
     
    1512016150        cat >conftest.$ac_ext <<_ACEOF
    1512116151-#line 6452 "configure"
    15122 +#line 6574 "configure"
     16152+#line 6579 "configure"
    1512316153 #include "confdefs.h"
    1512416154 
    1512516155 #include <sys/types.h>
    15126 @@ -6464,23 +6586,23 @@
     16156@@ -6464,23 +6591,23 @@
    1512716157 }
    1512816158 _ACEOF
    1512916159 rm -f conftest.$ac_objext
    1513016160-if { (eval echo "$as_me:6467: \"$ac_compile\"") >&5
    15131 +if { (eval echo "$as_me:6589: \"$ac_compile\"") >&5
     16161+if { (eval echo "$as_me:6594: \"$ac_compile\"") >&5
    1513216162   (eval $ac_compile) 2>&5
    1513316163   ac_status=$?
    1513416164-  echo "$as_me:6470: \$? = $ac_status" >&5
    15135 +  echo "$as_me:6592: \$? = $ac_status" >&5
     16165+  echo "$as_me:6597: \$? = $ac_status" >&5
    1513616166   (exit $ac_status); } &&
    1513716167          { ac_try='test -s conftest.$ac_objext'
    1513816168-  { (eval echo "$as_me:6473: \"$ac_try\"") >&5
    15139 +  { (eval echo "$as_me:6595: \"$ac_try\"") >&5
     16169+  { (eval echo "$as_me:6600: \"$ac_try\"") >&5
    1514016170   (eval $ac_try) 2>&5
    1514116171   ac_status=$?
    1514216172-  echo "$as_me:6476: \$? = $ac_status" >&5
    15143 +  echo "$as_me:6598: \$? = $ac_status" >&5
     16173+  echo "$as_me:6603: \$? = $ac_status" >&5
    1514416174   (exit $ac_status); }; }; then
    1514516175   cf_cv_define_sigwinch=yes
     
    1514916179 cat >conftest.$ac_ext <<_ACEOF
    1515016180-#line 6483 "configure"
    15151 +#line 6605 "configure"
     16181+#line 6610 "configure"
    1515216182 #include "confdefs.h"
    1515316183 
    1515416184 #undef _XOPEN_SOURCE
    15155 @@ -6498,16 +6620,16 @@
     16185@@ -6498,16 +6625,16 @@
    1515616186 }
    1515716187 _ACEOF
    1515816188 rm -f conftest.$ac_objext
    1515916189-if { (eval echo "$as_me:6501: \"$ac_compile\"") >&5
    15160 +if { (eval echo "$as_me:6623: \"$ac_compile\"") >&5
     16190+if { (eval echo "$as_me:6628: \"$ac_compile\"") >&5
    1516116191   (eval $ac_compile) 2>&5
    1516216192   ac_status=$?
    1516316193-  echo "$as_me:6504: \$? = $ac_status" >&5
    15164 +  echo "$as_me:6626: \$? = $ac_status" >&5
     16194+  echo "$as_me:6631: \$? = $ac_status" >&5
    1516516195   (exit $ac_status); } &&
    1516616196          { ac_try='test -s conftest.$ac_objext'
    1516716197-  { (eval echo "$as_me:6507: \"$ac_try\"") >&5
    15168 +  { (eval echo "$as_me:6629: \"$ac_try\"") >&5
     16198+  { (eval echo "$as_me:6634: \"$ac_try\"") >&5
    1516916199   (eval $ac_try) 2>&5
    1517016200   ac_status=$?
    1517116201-  echo "$as_me:6510: \$? = $ac_status" >&5
    15172 +  echo "$as_me:6632: \$? = $ac_status" >&5
     16202+  echo "$as_me:6637: \$? = $ac_status" >&5
    1517316203   (exit $ac_status); }; }; then
    1517416204   cf_cv_define_sigwinch=maybe
    1517516205 else
    15176 @@ -6521,11 +6643,11 @@
     16206@@ -6521,11 +6648,11 @@
    1517716207 rm -f conftest.$ac_objext conftest.$ac_ext
    1517816208 
    1517916209 fi
    1518016210-echo "$as_me:6524: result: $cf_cv_define_sigwinch" >&5
    15181 +echo "$as_me:6646: result: $cf_cv_define_sigwinch" >&5
     16211+echo "$as_me:6651: result: $cf_cv_define_sigwinch" >&5
    1518216212 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
    1518316213 
    1518416214 if test "$cf_cv_define_sigwinch" = maybe ; then
    1518516215-echo "$as_me:6528: checking for actual SIGWINCH definition" >&5
    15186 +echo "$as_me:6650: checking for actual SIGWINCH definition" >&5
     16216+echo "$as_me:6655: checking for actual SIGWINCH definition" >&5
    1518716217 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
    1518816218 if test "${cf_cv_fixup_sigwinch+set}" = set; then
    1518916219   echo $ECHO_N "(cached) $ECHO_C" >&6
    15190 @@ -6536,7 +6658,7 @@
     16220@@ -6536,7 +6663,7 @@
    1519116221 while test $cf_sigwinch != 1
    1519216222 do
    1519316223        cat >conftest.$ac_ext <<_ACEOF
    1519416224-#line 6539 "configure"
    15195 +#line 6661 "configure"
     16225+#line 6666 "configure"
    1519616226 #include "confdefs.h"
    1519716227 
    1519816228 #undef _XOPEN_SOURCE
    15199 @@ -6558,16 +6680,16 @@
     16229@@ -6558,16 +6685,16 @@
    1520016230 }
    1520116231 _ACEOF
    1520216232 rm -f conftest.$ac_objext
    1520316233-if { (eval echo "$as_me:6561: \"$ac_compile\"") >&5
    15204 +if { (eval echo "$as_me:6683: \"$ac_compile\"") >&5
     16234+if { (eval echo "$as_me:6688: \"$ac_compile\"") >&5
    1520516235   (eval $ac_compile) 2>&5
    1520616236   ac_status=$?
    1520716237-  echo "$as_me:6564: \$? = $ac_status" >&5
    15208 +  echo "$as_me:6686: \$? = $ac_status" >&5
     16238+  echo "$as_me:6691: \$? = $ac_status" >&5
    1520916239   (exit $ac_status); } &&
    1521016240          { ac_try='test -s conftest.$ac_objext'
    1521116241-  { (eval echo "$as_me:6567: \"$ac_try\"") >&5
    15212 +  { (eval echo "$as_me:6689: \"$ac_try\"") >&5
     16242+  { (eval echo "$as_me:6694: \"$ac_try\"") >&5
    1521316243   (eval $ac_try) 2>&5
    1521416244   ac_status=$?
    1521516245-  echo "$as_me:6570: \$? = $ac_status" >&5
    15216 +  echo "$as_me:6692: \$? = $ac_status" >&5
     16246+  echo "$as_me:6697: \$? = $ac_status" >&5
    1521716247   (exit $ac_status); }; }; then
    1521816248   cf_cv_fixup_sigwinch=$cf_sigwinch
    1521916249         break
    15220 @@ -6581,7 +6703,7 @@
     16250@@ -6581,7 +6708,7 @@
    1522116251 done
    1522216252 
    1522316253 fi
    1522416254-echo "$as_me:6584: result: $cf_cv_fixup_sigwinch" >&5
    15225 +echo "$as_me:6706: result: $cf_cv_fixup_sigwinch" >&5
     16255+echo "$as_me:6711: result: $cf_cv_fixup_sigwinch" >&5
    1522616256 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
    1522716257 
    1522816258        if test "$cf_cv_fixup_sigwinch" != unknown ; then
    15229 @@ -6591,13 +6713,13 @@
     16259@@ -6591,13 +6718,13 @@
    1523016260 
    1523116261 # Checks for CODESET support.
    1523216262 
    1523316263-  echo "$as_me:6594: checking for nl_langinfo and CODESET" >&5
    15234 +  echo "$as_me:6716: checking for nl_langinfo and CODESET" >&5
     16264+  echo "$as_me:6721: checking for nl_langinfo and CODESET" >&5
    1523516265 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
    1523616266 if test "${am_cv_langinfo_codeset+set}" = set; then
     
    1523916269   cat >conftest.$ac_ext <<_ACEOF
    1524016270-#line 6600 "configure"
    15241 +#line 6722 "configure"
     16271+#line 6727 "configure"
    1524216272 #include "confdefs.h"
    1524316273 #include <langinfo.h>
    1524416274 int
    15245 @@ -6609,16 +6731,16 @@
     16275@@ -6609,16 +6736,16 @@
    1524616276 }
    1524716277 _ACEOF
    1524816278 rm -f conftest.$ac_objext conftest$ac_exeext
    1524916279-if { (eval echo "$as_me:6612: \"$ac_link\"") >&5
    15250 +if { (eval echo "$as_me:6734: \"$ac_link\"") >&5
     16280+if { (eval echo "$as_me:6739: \"$ac_link\"") >&5
    1525116281   (eval $ac_link) 2>&5
    1525216282   ac_status=$?
    1525316283-  echo "$as_me:6615: \$? = $ac_status" >&5
    15254 +  echo "$as_me:6737: \$? = $ac_status" >&5
     16284+  echo "$as_me:6742: \$? = $ac_status" >&5
    1525516285   (exit $ac_status); } &&
    1525616286          { ac_try='test -s conftest$ac_exeext'
    1525716287-  { (eval echo "$as_me:6618: \"$ac_try\"") >&5
    15258 +  { (eval echo "$as_me:6740: \"$ac_try\"") >&5
     16288+  { (eval echo "$as_me:6745: \"$ac_try\"") >&5
    1525916289   (eval $ac_try) 2>&5
    1526016290   ac_status=$?
    1526116291-  echo "$as_me:6621: \$? = $ac_status" >&5
    15262 +  echo "$as_me:6743: \$? = $ac_status" >&5
     16292+  echo "$as_me:6748: \$? = $ac_status" >&5
    1526316293   (exit $ac_status); }; }; then
    1526416294   am_cv_langinfo_codeset=yes
    1526516295 else
    15266 @@ -6629,7 +6751,7 @@
     16296@@ -6629,7 +6756,7 @@
    1526716297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1526816298 
    1526916299 fi
    1527016300-echo "$as_me:6632: result: $am_cv_langinfo_codeset" >&5
    15271 +echo "$as_me:6754: result: $am_cv_langinfo_codeset" >&5
     16301+echo "$as_me:6759: result: $am_cv_langinfo_codeset" >&5
    1527216302 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
    1527316303   if test $am_cv_langinfo_codeset = yes; then
    1527416304 
    15275 @@ -6643,7 +6765,7 @@
     16305@@ -6643,7 +6770,7 @@
    1527616306 NCURSES_OK_WCHAR_T=
    1527716307 NCURSES_OK_WINT_T=
    1527816308 
    1527916309-echo "$as_me:6646: checking if you want wide-character code" >&5
    15280 +echo "$as_me:6768: checking if you want wide-character code" >&5
     16310+echo "$as_me:6773: checking if you want wide-character code" >&5
    1528116311 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
    1528216312 
    1528316313 # Check whether --enable-widec or --disable-widec was given.
    15284 @@ -6653,7 +6775,7 @@
     16314@@ -6653,7 +6780,7 @@
    1528516315 else
    1528616316   with_widec=no
    1528716317 fi;
    1528816318-echo "$as_me:6656: result: $with_widec" >&5
    15289 +echo "$as_me:6778: result: $with_widec" >&5
     16319+echo "$as_me:6783: result: $with_widec" >&5
    1529016320 echo "${ECHO_T}$with_widec" >&6
    1529116321 if test "$with_widec" = yes ; then
    1529216322        LIB_SUFFIX="w${LIB_SUFFIX}"
    15293 @@ -6661,10 +6783,10 @@
     16323@@ -6661,10 +6788,10 @@
    1529416324 #define USE_WIDEC_SUPPORT 1
    1529516325 EOF
    1529616326 
    1529716327-echo "$as_me:6664: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
    15298 +echo "$as_me:6786: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
     16328+echo "$as_me:6791: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
    1529916329 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
    1530016330 cat >conftest.$ac_ext <<_ACEOF
    1530116331-#line 6667 "configure"
    15302 +#line 6789 "configure"
     16332+#line 6794 "configure"
    1530316333 #include "confdefs.h"
    1530416334 #include <sys/types.h>
    1530516335 
    15306 @@ -6680,16 +6802,16 @@
     16336@@ -6680,16 +6807,16 @@
    1530716337 }
    1530816338 _ACEOF
    1530916339 rm -f conftest.$ac_objext
    1531016340-if { (eval echo "$as_me:6683: \"$ac_compile\"") >&5
    15311 +if { (eval echo "$as_me:6805: \"$ac_compile\"") >&5
     16341+if { (eval echo "$as_me:6810: \"$ac_compile\"") >&5
    1531216342   (eval $ac_compile) 2>&5
    1531316343   ac_status=$?
    1531416344-  echo "$as_me:6686: \$? = $ac_status" >&5
    15315 +  echo "$as_me:6808: \$? = $ac_status" >&5
     16345+  echo "$as_me:6813: \$? = $ac_status" >&5
    1531616346   (exit $ac_status); } &&
    1531716347          { ac_try='test -s conftest.$ac_objext'
    1531816348-  { (eval echo "$as_me:6689: \"$ac_try\"") >&5
    15319 +  { (eval echo "$as_me:6811: \"$ac_try\"") >&5
     16349+  { (eval echo "$as_me:6816: \"$ac_try\"") >&5
    1532016350   (eval $ac_try) 2>&5
    1532116351   ac_status=$?
    1532216352-  echo "$as_me:6692: \$? = $ac_status" >&5
    15323 +  echo "$as_me:6814: \$? = $ac_status" >&5
     16353+  echo "$as_me:6819: \$? = $ac_status" >&5
    1532416354   (exit $ac_status); }; }; then
    1532516355   cf_result=no
    1532616356 else
    15327 @@ -6698,16 +6820,16 @@
     16357@@ -6698,16 +6825,16 @@
    1532816358 cf_result=yes
    1532916359 fi
    1533016360 rm -f conftest.$ac_objext conftest.$ac_ext
    1533116361-echo "$as_me:6701: result: $cf_result" >&5
    15332 +echo "$as_me:6823: result: $cf_result" >&5
     16362+echo "$as_me:6828: result: $cf_result" >&5
    1533316363 echo "${ECHO_T}$cf_result" >&6
    1533416364 
     
    1533716367 elif test "x" != "x" ; then
    1533816368-       echo "$as_me:6707: checking checking for compatible value versus " >&5
    15339 +       echo "$as_me:6829: checking checking for compatible value versus " >&5
     16369+       echo "$as_me:6834: checking checking for compatible value versus " >&5
    1534016370 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
    1534116371        cat >conftest.$ac_ext <<_ACEOF
    1534216372-#line 6710 "configure"
    15343 +#line 6832 "configure"
     16373+#line 6837 "configure"
    1534416374 #include "confdefs.h"
    1534516375 #include <sys/types.h>
    1534616376 
    15347 @@ -6723,16 +6845,16 @@
     16377@@ -6723,16 +6850,16 @@
    1534816378 }
    1534916379 _ACEOF
    1535016380 rm -f conftest.$ac_objext
    1535116381-if { (eval echo "$as_me:6726: \"$ac_compile\"") >&5
    15352 +if { (eval echo "$as_me:6848: \"$ac_compile\"") >&5
     16382+if { (eval echo "$as_me:6853: \"$ac_compile\"") >&5
    1535316383   (eval $ac_compile) 2>&5
    1535416384   ac_status=$?
    1535516385-  echo "$as_me:6729: \$? = $ac_status" >&5
    15356 +  echo "$as_me:6851: \$? = $ac_status" >&5
     16386+  echo "$as_me:6856: \$? = $ac_status" >&5
    1535716387   (exit $ac_status); } &&
    1535816388          { ac_try='test -s conftest.$ac_objext'
    1535916389-  { (eval echo "$as_me:6732: \"$ac_try\"") >&5
    15360 +  { (eval echo "$as_me:6854: \"$ac_try\"") >&5
     16390+  { (eval echo "$as_me:6859: \"$ac_try\"") >&5
    1536116391   (eval $ac_try) 2>&5
    1536216392   ac_status=$?
    1536316393-  echo "$as_me:6735: \$? = $ac_status" >&5
    15364 +  echo "$as_me:6857: \$? = $ac_status" >&5
     16394+  echo "$as_me:6862: \$? = $ac_status" >&5
    1536516395   (exit $ac_status); }; }; then
    1536616396   cf_result=yes
    1536716397 else
    15368 @@ -6741,7 +6863,7 @@
     16398@@ -6741,7 +6868,7 @@
    1536916399 cf_result=no
    1537016400 fi
    1537116401 rm -f conftest.$ac_objext conftest.$ac_ext
    1537216402-       echo "$as_me:6744: result: $cf_result" >&5
    15373 +       echo "$as_me:6866: result: $cf_result" >&5
     16403+       echo "$as_me:6871: result: $cf_result" >&5
    1537416404 echo "${ECHO_T}$cf_result" >&6
    1537516405        if test "$cf_result" = no ; then
    1537616406                # perhaps we can override it - try...
    15377 @@ -6755,13 +6877,13 @@
     16407@@ -6755,13 +6882,13 @@
    1537816408 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc
    1537916409 do
    1538016410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    1538116411-echo "$as_me:6758: checking for $ac_func" >&5
    15382 +echo "$as_me:6880: checking for $ac_func" >&5
     16412+echo "$as_me:6885: checking for $ac_func" >&5
    1538316413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    1538416414 if eval "test \"\${$as_ac_var+set}\" = set"; then
     
    1538716417   cat >conftest.$ac_ext <<_ACEOF
    1538816418-#line 6764 "configure"
    15389 +#line 6886 "configure"
     16419+#line 6891 "configure"
    1539016420 #include "confdefs.h"
    1539116421 /* System header to define __stub macros and hopefully few prototypes,
    1539216422     which can conflict with char $ac_func (); below.  */
    15393 @@ -6792,16 +6914,16 @@
     16423@@ -6792,16 +6919,16 @@
    1539416424 }
    1539516425 _ACEOF
    1539616426 rm -f conftest.$ac_objext conftest$ac_exeext
    1539716427-if { (eval echo "$as_me:6795: \"$ac_link\"") >&5
    15398 +if { (eval echo "$as_me:6917: \"$ac_link\"") >&5
     16428+if { (eval echo "$as_me:6922: \"$ac_link\"") >&5
    1539916429   (eval $ac_link) 2>&5
    1540016430   ac_status=$?
    1540116431-  echo "$as_me:6798: \$? = $ac_status" >&5
    15402 +  echo "$as_me:6920: \$? = $ac_status" >&5
     16432+  echo "$as_me:6925: \$? = $ac_status" >&5
    1540316433   (exit $ac_status); } &&
    1540416434          { ac_try='test -s conftest$ac_exeext'
    1540516435-  { (eval echo "$as_me:6801: \"$ac_try\"") >&5
    15406 +  { (eval echo "$as_me:6923: \"$ac_try\"") >&5
     16436+  { (eval echo "$as_me:6928: \"$ac_try\"") >&5
    1540716437   (eval $ac_try) 2>&5
    1540816438   ac_status=$?
    1540916439-  echo "$as_me:6804: \$? = $ac_status" >&5
    15410 +  echo "$as_me:6926: \$? = $ac_status" >&5
     16440+  echo "$as_me:6931: \$? = $ac_status" >&5
    1541116441   (exit $ac_status); }; }; then
    1541216442   eval "$as_ac_var=yes"
    1541316443 else
    15414 @@ -6811,7 +6933,7 @@
     16444@@ -6811,7 +6938,7 @@
    1541516445 fi
    1541616446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1541716447 fi
    1541816448-echo "$as_me:6814: result: `eval echo '${'$as_ac_var'}'`" >&5
    15419 +echo "$as_me:6936: result: `eval echo '${'$as_ac_var'}'`" >&5
     16449+echo "$as_me:6941: result: `eval echo '${'$as_ac_var'}'`" >&5
    1542016450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    1542116451 if test `eval echo '${'$as_ac_var'}'` = yes; then
    1542216452   cat >>confdefs.h <<EOF
    15423 @@ -6823,7 +6945,7 @@
     16453@@ -6823,7 +6950,7 @@
    1542416454 
    1542516455        if test "$ac_cv_func_putwc" != yes ; then
    1542616456 
    1542716457-echo "$as_me:6826: checking for putwc in libutf8" >&5
    15428 +echo "$as_me:6948: checking for putwc in libutf8" >&5
     16458+echo "$as_me:6953: checking for putwc in libutf8" >&5
    1542916459 echo $ECHO_N "checking for putwc in libutf8... $ECHO_C" >&6
    1543016460 if test "${cf_cv_libutf8+set}" = set; then
    1543116461   echo $ECHO_N "(cached) $ECHO_C" >&6
    15432 @@ -6832,7 +6954,7 @@
     16462@@ -6832,7 +6959,7 @@
    1543316463        cf_save_LIBS="$LIBS"
    1543416464        LIBS="-lutf8 $LIBS"
    1543516465 cat >conftest.$ac_ext <<_ACEOF
    1543616466-#line 6835 "configure"
    15437 +#line 6957 "configure"
     16467+#line 6962 "configure"
    1543816468 #include "confdefs.h"
    1543916469 
    1544016470 #include <libutf8.h>
    15441 @@ -6845,16 +6967,16 @@
     16471@@ -6845,16 +6972,16 @@
    1544216472 }
    1544316473 _ACEOF
    1544416474 rm -f conftest.$ac_objext conftest$ac_exeext
    1544516475-if { (eval echo "$as_me:6848: \"$ac_link\"") >&5
    15446 +if { (eval echo "$as_me:6970: \"$ac_link\"") >&5
     16476+if { (eval echo "$as_me:6975: \"$ac_link\"") >&5
    1544716477   (eval $ac_link) 2>&5
    1544816478   ac_status=$?
    1544916479-  echo "$as_me:6851: \$? = $ac_status" >&5
    15450 +  echo "$as_me:6973: \$? = $ac_status" >&5
     16480+  echo "$as_me:6978: \$? = $ac_status" >&5
    1545116481   (exit $ac_status); } &&
    1545216482          { ac_try='test -s conftest$ac_exeext'
    1545316483-  { (eval echo "$as_me:6854: \"$ac_try\"") >&5
    15454 +  { (eval echo "$as_me:6976: \"$ac_try\"") >&5
     16484+  { (eval echo "$as_me:6981: \"$ac_try\"") >&5
    1545516485   (eval $ac_try) 2>&5
    1545616486   ac_status=$?
    1545716487-  echo "$as_me:6857: \$? = $ac_status" >&5
    15458 +  echo "$as_me:6979: \$? = $ac_status" >&5
     16488+  echo "$as_me:6984: \$? = $ac_status" >&5
    1545916489   (exit $ac_status); }; }; then
    1546016490   cf_cv_libutf8=yes
    1546116491 else
    15462 @@ -6866,7 +6988,7 @@
     16492@@ -6866,7 +6993,7 @@
    1546316493        LIBS="$cf_save_LIBS"
    1546416494 
    1546516495 fi
    1546616496-echo "$as_me:6869: result: $cf_cv_libutf8" >&5
    15467 +echo "$as_me:6991: result: $cf_cv_libutf8" >&5
     16497+echo "$as_me:6996: result: $cf_cv_libutf8" >&5
    1546816498 echo "${ECHO_T}$cf_cv_libutf8" >&6
    1546916499 
    1547016500 if test "$cf_cv_libutf8" = yes ; then
    15471 @@ -6883,14 +7005,14 @@
     16501@@ -6883,14 +7010,14 @@
    1547216502        fi
    1547316503 
    1547416504 # This is needed on Tru64 5.0 to declare mbstate_t
    1547516505-echo "$as_me:6886: checking if we must include wchar.h to declare mbstate_t" >&5
    15476 +echo "$as_me:7008: checking if we must include wchar.h to declare mbstate_t" >&5
     16506+echo "$as_me:7013: checking if we must include wchar.h to declare mbstate_t" >&5
    1547716507 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
    1547816508 if test "${cf_cv_mbstate_t+set}" = set; then
     
    1548216512 cat >conftest.$ac_ext <<_ACEOF
    1548316513-#line 6893 "configure"
    15484 +#line 7015 "configure"
     16514+#line 7020 "configure"
    1548516515 #include "confdefs.h"
    1548616516 
    1548716517 #include <stdlib.h>
    15488 @@ -6908,23 +7030,23 @@
     16518@@ -6908,23 +7035,23 @@
    1548916519 }
    1549016520 _ACEOF
    1549116521 rm -f conftest.$ac_objext
    1549216522-if { (eval echo "$as_me:6911: \"$ac_compile\"") >&5
    15493 +if { (eval echo "$as_me:7033: \"$ac_compile\"") >&5
     16523+if { (eval echo "$as_me:7038: \"$ac_compile\"") >&5
    1549416524   (eval $ac_compile) 2>&5
    1549516525   ac_status=$?
    1549616526-  echo "$as_me:6914: \$? = $ac_status" >&5
    15497 +  echo "$as_me:7036: \$? = $ac_status" >&5
     16527+  echo "$as_me:7041: \$? = $ac_status" >&5
    1549816528   (exit $ac_status); } &&
    1549916529          { ac_try='test -s conftest.$ac_objext'
    1550016530-  { (eval echo "$as_me:6917: \"$ac_try\"") >&5
    15501 +  { (eval echo "$as_me:7039: \"$ac_try\"") >&5
     16531+  { (eval echo "$as_me:7044: \"$ac_try\"") >&5
    1550216532   (eval $ac_try) 2>&5
    1550316533   ac_status=$?
    1550416534-  echo "$as_me:6920: \$? = $ac_status" >&5
    15505 +  echo "$as_me:7042: \$? = $ac_status" >&5
     16535+  echo "$as_me:7047: \$? = $ac_status" >&5
    1550616536   (exit $ac_status); }; }; then
    1550716537   cf_cv_mbstate_t=no
     
    1551116541 cat >conftest.$ac_ext <<_ACEOF
    1551216542-#line 6927 "configure"
    15513 +#line 7049 "configure"
     16543+#line 7054 "configure"
    1551416544 #include "confdefs.h"
    1551516545 
    1551616546 #include <stdlib.h>
    15517 @@ -6943,16 +7065,16 @@
     16547@@ -6943,16 +7070,16 @@
    1551816548 }
    1551916549 _ACEOF
    1552016550 rm -f conftest.$ac_objext
    1552116551-if { (eval echo "$as_me:6946: \"$ac_compile\"") >&5
    15522 +if { (eval echo "$as_me:7068: \"$ac_compile\"") >&5
     16552+if { (eval echo "$as_me:7073: \"$ac_compile\"") >&5
    1552316553   (eval $ac_compile) 2>&5
    1552416554   ac_status=$?
    1552516555-  echo "$as_me:6949: \$? = $ac_status" >&5
    15526 +  echo "$as_me:7071: \$? = $ac_status" >&5
     16556+  echo "$as_me:7076: \$? = $ac_status" >&5
    1552716557   (exit $ac_status); } &&
    1552816558          { ac_try='test -s conftest.$ac_objext'
    1552916559-  { (eval echo "$as_me:6952: \"$ac_try\"") >&5
    15530 +  { (eval echo "$as_me:7074: \"$ac_try\"") >&5
     16560+  { (eval echo "$as_me:7079: \"$ac_try\"") >&5
    1553116561   (eval $ac_try) 2>&5
    1553216562   ac_status=$?
    1553316563-  echo "$as_me:6955: \$? = $ac_status" >&5
    15534 +  echo "$as_me:7077: \$? = $ac_status" >&5
     16564+  echo "$as_me:7082: \$? = $ac_status" >&5
    1553516565   (exit $ac_status); }; }; then
    1553616566   cf_cv_mbstate_t=yes
    1553716567 else
    15538 @@ -6964,7 +7086,7 @@
     16568@@ -6964,7 +7091,7 @@
    1553916569 fi
    1554016570 rm -f conftest.$ac_objext conftest.$ac_ext
    1554116571 fi
    1554216572-echo "$as_me:6967: result: $cf_cv_mbstate_t" >&5
    15543 +echo "$as_me:7089: result: $cf_cv_mbstate_t" >&5
     16573+echo "$as_me:7094: result: $cf_cv_mbstate_t" >&5
    1554416574 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
    1554516575 
    1554616576 if test "$cf_cv_mbstate_t" = yes ; then
    15547 @@ -6981,14 +7103,14 @@
     16577@@ -6981,14 +7108,14 @@
    1554816578 fi
    1554916579 
    1555016580 # This is needed on Tru64 5.0 to declare wchar_t
    1555116581-echo "$as_me:6984: checking if we must include wchar.h to declare wchar_t" >&5
    15552 +echo "$as_me:7106: checking if we must include wchar.h to declare wchar_t" >&5
     16582+echo "$as_me:7111: checking if we must include wchar.h to declare wchar_t" >&5
    1555316583 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
    1555416584 if test "${cf_cv_wchar_t+set}" = set; then
     
    1555816588 cat >conftest.$ac_ext <<_ACEOF
    1555916589-#line 6991 "configure"
    15560 +#line 7113 "configure"
     16590+#line 7118 "configure"
    1556116591 #include "confdefs.h"
    1556216592 
    1556316593 #include <stdlib.h>
    15564 @@ -7006,23 +7128,23 @@
     16594@@ -7006,23 +7133,23 @@
    1556516595 }
    1556616596 _ACEOF
    1556716597 rm -f conftest.$ac_objext
    1556816598-if { (eval echo "$as_me:7009: \"$ac_compile\"") >&5
    15569 +if { (eval echo "$as_me:7131: \"$ac_compile\"") >&5
     16599+if { (eval echo "$as_me:7136: \"$ac_compile\"") >&5
    1557016600   (eval $ac_compile) 2>&5
    1557116601   ac_status=$?
    1557216602-  echo "$as_me:7012: \$? = $ac_status" >&5
    15573 +  echo "$as_me:7134: \$? = $ac_status" >&5
     16603+  echo "$as_me:7139: \$? = $ac_status" >&5
    1557416604   (exit $ac_status); } &&
    1557516605          { ac_try='test -s conftest.$ac_objext'
    1557616606-  { (eval echo "$as_me:7015: \"$ac_try\"") >&5
    15577 +  { (eval echo "$as_me:7137: \"$ac_try\"") >&5
     16607+  { (eval echo "$as_me:7142: \"$ac_try\"") >&5
    1557816608   (eval $ac_try) 2>&5
    1557916609   ac_status=$?
    1558016610-  echo "$as_me:7018: \$? = $ac_status" >&5
    15581 +  echo "$as_me:7140: \$? = $ac_status" >&5
     16611+  echo "$as_me:7145: \$? = $ac_status" >&5
    1558216612   (exit $ac_status); }; }; then
    1558316613   cf_cv_wchar_t=no
     
    1558716617 cat >conftest.$ac_ext <<_ACEOF
    1558816618-#line 7025 "configure"
    15589 +#line 7147 "configure"
     16619+#line 7152 "configure"
    1559016620 #include "confdefs.h"
    1559116621 
    1559216622 #include <stdlib.h>
    15593 @@ -7041,16 +7163,16 @@
     16623@@ -7041,16 +7168,16 @@
    1559416624 }
    1559516625 _ACEOF
    1559616626 rm -f conftest.$ac_objext
    1559716627-if { (eval echo "$as_me:7044: \"$ac_compile\"") >&5
    15598 +if { (eval echo "$as_me:7166: \"$ac_compile\"") >&5
     16628+if { (eval echo "$as_me:7171: \"$ac_compile\"") >&5
    1559916629   (eval $ac_compile) 2>&5
    1560016630   ac_status=$?
    1560116631-  echo "$as_me:7047: \$? = $ac_status" >&5
    15602 +  echo "$as_me:7169: \$? = $ac_status" >&5
     16632+  echo "$as_me:7174: \$? = $ac_status" >&5
    1560316633   (exit $ac_status); } &&
    1560416634          { ac_try='test -s conftest.$ac_objext'
    1560516635-  { (eval echo "$as_me:7050: \"$ac_try\"") >&5
    15606 +  { (eval echo "$as_me:7172: \"$ac_try\"") >&5
     16636+  { (eval echo "$as_me:7177: \"$ac_try\"") >&5
    1560716637   (eval $ac_try) 2>&5
    1560816638   ac_status=$?
    1560916639-  echo "$as_me:7053: \$? = $ac_status" >&5
    15610 +  echo "$as_me:7175: \$? = $ac_status" >&5
     16640+  echo "$as_me:7180: \$? = $ac_status" >&5
    1561116641   (exit $ac_status); }; }; then
    1561216642   cf_cv_wchar_t=yes
    1561316643 else
    15614 @@ -7062,7 +7184,7 @@
     16644@@ -7062,7 +7189,7 @@
    1561516645 fi
    1561616646 rm -f conftest.$ac_objext conftest.$ac_ext
    1561716647 fi
    1561816648-echo "$as_me:7065: result: $cf_cv_wchar_t" >&5
    15619 +echo "$as_me:7187: result: $cf_cv_wchar_t" >&5
     16649+echo "$as_me:7192: result: $cf_cv_wchar_t" >&5
    1562016650 echo "${ECHO_T}$cf_cv_wchar_t" >&6
    1562116651 
    1562216652 if test "$cf_cv_wchar_t" = yes ; then
    15623 @@ -7084,14 +7206,14 @@
     16653@@ -7084,14 +7211,14 @@
    1562416654 fi
    1562516655 
    1562616656 # This is needed on Tru64 5.0 to declare wint_t
    1562716657-echo "$as_me:7087: checking if we must include wchar.h to declare wint_t" >&5
    15628 +echo "$as_me:7209: checking if we must include wchar.h to declare wint_t" >&5
     16658+echo "$as_me:7214: checking if we must include wchar.h to declare wint_t" >&5
    1562916659 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
    1563016660 if test "${cf_cv_wint_t+set}" = set; then
     
    1563416664 cat >conftest.$ac_ext <<_ACEOF
    1563516665-#line 7094 "configure"
    15636 +#line 7216 "configure"
     16666+#line 7221 "configure"
    1563716667 #include "confdefs.h"
    1563816668 
    1563916669 #include <stdlib.h>
    15640 @@ -7109,23 +7231,23 @@
     16670@@ -7109,23 +7236,23 @@
    1564116671 }
    1564216672 _ACEOF
    1564316673 rm -f conftest.$ac_objext
    1564416674-if { (eval echo "$as_me:7112: \"$ac_compile\"") >&5
    15645 +if { (eval echo "$as_me:7234: \"$ac_compile\"") >&5
     16675+if { (eval echo "$as_me:7239: \"$ac_compile\"") >&5
    1564616676   (eval $ac_compile) 2>&5
    1564716677   ac_status=$?
    1564816678-  echo "$as_me:7115: \$? = $ac_status" >&5
    15649 +  echo "$as_me:7237: \$? = $ac_status" >&5
     16679+  echo "$as_me:7242: \$? = $ac_status" >&5
    1565016680   (exit $ac_status); } &&
    1565116681          { ac_try='test -s conftest.$ac_objext'
    1565216682-  { (eval echo "$as_me:7118: \"$ac_try\"") >&5
    15653 +  { (eval echo "$as_me:7240: \"$ac_try\"") >&5
     16683+  { (eval echo "$as_me:7245: \"$ac_try\"") >&5
    1565416684   (eval $ac_try) 2>&5
    1565516685   ac_status=$?
    1565616686-  echo "$as_me:7121: \$? = $ac_status" >&5
    15657 +  echo "$as_me:7243: \$? = $ac_status" >&5
     16687+  echo "$as_me:7248: \$? = $ac_status" >&5
    1565816688   (exit $ac_status); }; }; then
    1565916689   cf_cv_wint_t=no
     
    1566316693 cat >conftest.$ac_ext <<_ACEOF
    1566416694-#line 7128 "configure"
    15665 +#line 7250 "configure"
     16695+#line 7255 "configure"
    1566616696 #include "confdefs.h"
    1566716697 
    1566816698 #include <stdlib.h>
    15669 @@ -7144,16 +7266,16 @@
     16699@@ -7144,16 +7271,16 @@
    1567016700 }
    1567116701 _ACEOF
    1567216702 rm -f conftest.$ac_objext
    1567316703-if { (eval echo "$as_me:7147: \"$ac_compile\"") >&5
    15674 +if { (eval echo "$as_me:7269: \"$ac_compile\"") >&5
     16704+if { (eval echo "$as_me:7274: \"$ac_compile\"") >&5
    1567516705   (eval $ac_compile) 2>&5
    1567616706   ac_status=$?
    1567716707-  echo "$as_me:7150: \$? = $ac_status" >&5
    15678 +  echo "$as_me:7272: \$? = $ac_status" >&5
     16708+  echo "$as_me:7277: \$? = $ac_status" >&5
    1567916709   (exit $ac_status); } &&
    1568016710          { ac_try='test -s conftest.$ac_objext'
    1568116711-  { (eval echo "$as_me:7153: \"$ac_try\"") >&5
    15682 +  { (eval echo "$as_me:7275: \"$ac_try\"") >&5
     16712+  { (eval echo "$as_me:7280: \"$ac_try\"") >&5
    1568316713   (eval $ac_try) 2>&5
    1568416714   ac_status=$?
    1568516715-  echo "$as_me:7156: \$? = $ac_status" >&5
    15686 +  echo "$as_me:7278: \$? = $ac_status" >&5
     16716+  echo "$as_me:7283: \$? = $ac_status" >&5
    1568716717   (exit $ac_status); }; }; then
    1568816718   cf_cv_wint_t=yes
    1568916719 else
    15690 @@ -7165,7 +7287,7 @@
     16720@@ -7165,7 +7292,7 @@
    1569116721 fi
    1569216722 rm -f conftest.$ac_objext conftest.$ac_ext
    1569316723 fi
    1569416724-echo "$as_me:7168: result: $cf_cv_wint_t" >&5
    15695 +echo "$as_me:7290: result: $cf_cv_wint_t" >&5
     16725+echo "$as_me:7295: result: $cf_cv_wint_t" >&5
    1569616726 echo "${ECHO_T}$cf_cv_wint_t" >&6
    1569716727 
    1569816728 if test "$cf_cv_wint_t" = yes ; then
    15699 @@ -7204,7 +7326,7 @@
     16729@@ -7204,7 +7331,7 @@
    1570016730        ;;
    1570116731 esac
    1570216732 
    1570316733-echo "$as_me:7207: checking whether to enable _LP64 definition in curses.h" >&5
    15704 +echo "$as_me:7329: checking whether to enable _LP64 definition in curses.h" >&5
     16734+echo "$as_me:7334: checking whether to enable _LP64 definition in curses.h" >&5
    1570516735 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
    1570616736 
    1570716737 # Check whether --enable-lp64 or --disable-lp64 was given.
    15708 @@ -7214,7 +7336,7 @@
     16738@@ -7214,7 +7341,7 @@
    1570916739 else
    1571016740   with_lp64=$default_with_lp64
    1571116741 fi;
    1571216742-echo "$as_me:7217: result: $with_lp64" >&5
    15713 +echo "$as_me:7339: result: $with_lp64" >&5
     16743+echo "$as_me:7344: result: $with_lp64" >&5
    1571416744 echo "${ECHO_T}$with_lp64" >&6
    1571516745 
    1571616746 if test "$with_lp64" = yes ; then
    15717 @@ -7230,7 +7352,7 @@
     16747@@ -7230,7 +7357,7 @@
    1571816748 fi;
    1571916749 if test "$enable_largefile" != no; then
    1572016750 
    1572116751-  echo "$as_me:7233: checking for special C compiler options needed for large files" >&5
    15722 +  echo "$as_me:7355: checking for special C compiler options needed for large files" >&5
     16752+  echo "$as_me:7360: checking for special C compiler options needed for large files" >&5
    1572316753 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
    1572416754 if test "${ac_cv_sys_largefile_CC+set}" = set; then
    1572516755   echo $ECHO_N "(cached) $ECHO_C" >&6
    15726 @@ -7242,7 +7364,7 @@
     16756@@ -7242,7 +7369,7 @@
    1572716757         # IRIX 6.2 and later do not support large files by default,
    1572816758         # so use the C compiler's -n32 option if that helps.
    1572916759          cat >conftest.$ac_ext <<_ACEOF
    1573016760-#line 7245 "configure"
    15731 +#line 7367 "configure"
     16761+#line 7372 "configure"
    1573216762 #include "confdefs.h"
    1573316763 #include <sys/types.h>
    1573416764  /* Check that off_t can represent 2**63 - 1 correctly.
    15735 @@ -7262,16 +7384,16 @@
     16765@@ -7262,16 +7389,16 @@
    1573616766 }
    1573716767 _ACEOF
    1573816768         rm -f conftest.$ac_objext
    1573916769-if { (eval echo "$as_me:7265: \"$ac_compile\"") >&5
    15740 +if { (eval echo "$as_me:7387: \"$ac_compile\"") >&5
     16770+if { (eval echo "$as_me:7392: \"$ac_compile\"") >&5
    1574116771   (eval $ac_compile) 2>&5
    1574216772   ac_status=$?
    1574316773-  echo "$as_me:7268: \$? = $ac_status" >&5
    15744 +  echo "$as_me:7390: \$? = $ac_status" >&5
     16774+  echo "$as_me:7395: \$? = $ac_status" >&5
    1574516775   (exit $ac_status); } &&
    1574616776          { ac_try='test -s conftest.$ac_objext'
    1574716777-  { (eval echo "$as_me:7271: \"$ac_try\"") >&5
    15748 +  { (eval echo "$as_me:7393: \"$ac_try\"") >&5
     16778+  { (eval echo "$as_me:7398: \"$ac_try\"") >&5
    1574916779   (eval $ac_try) 2>&5
    1575016780   ac_status=$?
    1575116781-  echo "$as_me:7274: \$? = $ac_status" >&5
    15752 +  echo "$as_me:7396: \$? = $ac_status" >&5
     16782+  echo "$as_me:7401: \$? = $ac_status" >&5
    1575316783   (exit $ac_status); }; }; then
    1575416784   break
    1575516785 else
    15756 @@ -7281,16 +7403,16 @@
     16786@@ -7281,16 +7408,16 @@
    1575716787 rm -f conftest.$ac_objext
    1575816788         CC="$CC -n32"
    1575916789         rm -f conftest.$ac_objext
    1576016790-if { (eval echo "$as_me:7284: \"$ac_compile\"") >&5
    15761 +if { (eval echo "$as_me:7406: \"$ac_compile\"") >&5
     16791+if { (eval echo "$as_me:7411: \"$ac_compile\"") >&5
    1576216792   (eval $ac_compile) 2>&5
    1576316793   ac_status=$?
    1576416794-  echo "$as_me:7287: \$? = $ac_status" >&5
    15765 +  echo "$as_me:7409: \$? = $ac_status" >&5
     16795+  echo "$as_me:7414: \$? = $ac_status" >&5
    1576616796   (exit $ac_status); } &&
    1576716797          { ac_try='test -s conftest.$ac_objext'
    1576816798-  { (eval echo "$as_me:7290: \"$ac_try\"") >&5
    15769 +  { (eval echo "$as_me:7412: \"$ac_try\"") >&5
     16799+  { (eval echo "$as_me:7417: \"$ac_try\"") >&5
    1577016800   (eval $ac_try) 2>&5
    1577116801   ac_status=$?
    1577216802-  echo "$as_me:7293: \$? = $ac_status" >&5
    15773 +  echo "$as_me:7415: \$? = $ac_status" >&5
     16803+  echo "$as_me:7420: \$? = $ac_status" >&5
    1577416804   (exit $ac_status); }; }; then
    1577516805   ac_cv_sys_largefile_CC=' -n32'; break
    1577616806 else
    15777 @@ -7304,13 +7426,13 @@
     16807@@ -7304,13 +7431,13 @@
    1577816808        rm -f conftest.$ac_ext
    1577916809     fi
    1578016810 fi
    1578116811-echo "$as_me:7307: result: $ac_cv_sys_largefile_CC" >&5
    15782 +echo "$as_me:7429: result: $ac_cv_sys_largefile_CC" >&5
     16812+echo "$as_me:7434: result: $ac_cv_sys_largefile_CC" >&5
    1578316813 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
    1578416814   if test "$ac_cv_sys_largefile_CC" != no; then
     
    1578716817 
    1578816818-  echo "$as_me:7313: checking for _FILE_OFFSET_BITS value needed for large files" >&5
    15789 +  echo "$as_me:7435: checking for _FILE_OFFSET_BITS value needed for large files" >&5
     16819+  echo "$as_me:7440: checking for _FILE_OFFSET_BITS value needed for large files" >&5
    1579016820 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
    1579116821 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
    1579216822   echo $ECHO_N "(cached) $ECHO_C" >&6
    15793 @@ -7318,7 +7440,7 @@
     16823@@ -7318,7 +7445,7 @@
    1579416824   while :; do
    1579516825   ac_cv_sys_file_offset_bits=no
    1579616826   cat >conftest.$ac_ext <<_ACEOF
    1579716827-#line 7321 "configure"
    15798 +#line 7443 "configure"
     16828+#line 7448 "configure"
    1579916829 #include "confdefs.h"
    1580016830 #include <sys/types.h>
    1580116831  /* Check that off_t can represent 2**63 - 1 correctly.
    15802 @@ -7338,16 +7460,16 @@
     16832@@ -7338,16 +7465,16 @@
    1580316833 }
    1580416834 _ACEOF
    1580516835 rm -f conftest.$ac_objext
    1580616836-if { (eval echo "$as_me:7341: \"$ac_compile\"") >&5
    15807 +if { (eval echo "$as_me:7463: \"$ac_compile\"") >&5
     16837+if { (eval echo "$as_me:7468: \"$ac_compile\"") >&5
    1580816838   (eval $ac_compile) 2>&5
    1580916839   ac_status=$?
    1581016840-  echo "$as_me:7344: \$? = $ac_status" >&5
    15811 +  echo "$as_me:7466: \$? = $ac_status" >&5
     16841+  echo "$as_me:7471: \$? = $ac_status" >&5
    1581216842   (exit $ac_status); } &&
    1581316843          { ac_try='test -s conftest.$ac_objext'
    1581416844-  { (eval echo "$as_me:7347: \"$ac_try\"") >&5
    15815 +  { (eval echo "$as_me:7469: \"$ac_try\"") >&5
     16845+  { (eval echo "$as_me:7474: \"$ac_try\"") >&5
    1581616846   (eval $ac_try) 2>&5
    1581716847   ac_status=$?
    1581816848-  echo "$as_me:7350: \$? = $ac_status" >&5
    15819 +  echo "$as_me:7472: \$? = $ac_status" >&5
     16849+  echo "$as_me:7477: \$? = $ac_status" >&5
    1582016850   (exit $ac_status); }; }; then
    1582116851   break
    1582216852 else
    15823 @@ -7356,7 +7478,7 @@
     16853@@ -7356,7 +7483,7 @@
    1582416854 fi
    1582516855 rm -f conftest.$ac_objext conftest.$ac_ext
    1582616856   cat >conftest.$ac_ext <<_ACEOF
    1582716857-#line 7359 "configure"
    15828 +#line 7481 "configure"
     16858+#line 7486 "configure"
    1582916859 #include "confdefs.h"
    1583016860 #define _FILE_OFFSET_BITS 64
    1583116861 #include <sys/types.h>
    15832 @@ -7377,16 +7499,16 @@
     16862@@ -7377,16 +7504,16 @@
    1583316863 }
    1583416864 _ACEOF
    1583516865 rm -f conftest.$ac_objext
    1583616866-if { (eval echo "$as_me:7380: \"$ac_compile\"") >&5
    15837 +if { (eval echo "$as_me:7502: \"$ac_compile\"") >&5
     16867+if { (eval echo "$as_me:7507: \"$ac_compile\"") >&5
    1583816868   (eval $ac_compile) 2>&5
    1583916869   ac_status=$?
    1584016870-  echo "$as_me:7383: \$? = $ac_status" >&5
    15841 +  echo "$as_me:7505: \$? = $ac_status" >&5
     16871+  echo "$as_me:7510: \$? = $ac_status" >&5
    1584216872   (exit $ac_status); } &&
    1584316873          { ac_try='test -s conftest.$ac_objext'
    1584416874-  { (eval echo "$as_me:7386: \"$ac_try\"") >&5
    15845 +  { (eval echo "$as_me:7508: \"$ac_try\"") >&5
     16875+  { (eval echo "$as_me:7513: \"$ac_try\"") >&5
    1584616876   (eval $ac_try) 2>&5
    1584716877   ac_status=$?
    1584816878-  echo "$as_me:7389: \$? = $ac_status" >&5
    15849 +  echo "$as_me:7511: \$? = $ac_status" >&5
     16879+  echo "$as_me:7516: \$? = $ac_status" >&5
    1585016880   (exit $ac_status); }; }; then
    1585116881   ac_cv_sys_file_offset_bits=64; break
    1585216882 else
    15853 @@ -7397,7 +7519,7 @@
     16883@@ -7397,7 +7524,7 @@
    1585416884   break
    1585516885 done
    1585616886 fi
    1585716887-echo "$as_me:7400: result: $ac_cv_sys_file_offset_bits" >&5
    15858 +echo "$as_me:7522: result: $ac_cv_sys_file_offset_bits" >&5
     16888+echo "$as_me:7527: result: $ac_cv_sys_file_offset_bits" >&5
    1585916889 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
    1586016890 if test "$ac_cv_sys_file_offset_bits" != no; then
    1586116891 
    15862 @@ -7407,7 +7529,7 @@
     16892@@ -7407,7 +7534,7 @@
    1586316893 
    1586416894 fi
    1586516895 rm -f conftest*
    1586616896-  echo "$as_me:7410: checking for _LARGE_FILES value needed for large files" >&5
    15867 +  echo "$as_me:7532: checking for _LARGE_FILES value needed for large files" >&5
     16897+  echo "$as_me:7537: checking for _LARGE_FILES value needed for large files" >&5
    1586816898 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
    1586916899 if test "${ac_cv_sys_large_files+set}" = set; then
    1587016900   echo $ECHO_N "(cached) $ECHO_C" >&6
    15871 @@ -7415,7 +7537,7 @@
     16901@@ -7415,7 +7542,7 @@
    1587216902   while :; do
    1587316903   ac_cv_sys_large_files=no
    1587416904   cat >conftest.$ac_ext <<_ACEOF
    1587516905-#line 7418 "configure"
    15876 +#line 7540 "configure"
     16906+#line 7545 "configure"
    1587716907 #include "confdefs.h"
    1587816908 #include <sys/types.h>
    1587916909  /* Check that off_t can represent 2**63 - 1 correctly.
    15880 @@ -7435,16 +7557,16 @@
     16910@@ -7435,16 +7562,16 @@
    1588116911 }
    1588216912 _ACEOF
    1588316913 rm -f conftest.$ac_objext
    1588416914-if { (eval echo "$as_me:7438: \"$ac_compile\"") >&5
    15885 +if { (eval echo "$as_me:7560: \"$ac_compile\"") >&5
     16915+if { (eval echo "$as_me:7565: \"$ac_compile\"") >&5
    1588616916   (eval $ac_compile) 2>&5
    1588716917   ac_status=$?
    1588816918-  echo "$as_me:7441: \$? = $ac_status" >&5
    15889 +  echo "$as_me:7563: \$? = $ac_status" >&5
     16919+  echo "$as_me:7568: \$? = $ac_status" >&5
    1589016920   (exit $ac_status); } &&
    1589116921          { ac_try='test -s conftest.$ac_objext'
    1589216922-  { (eval echo "$as_me:7444: \"$ac_try\"") >&5
    15893 +  { (eval echo "$as_me:7566: \"$ac_try\"") >&5
     16923+  { (eval echo "$as_me:7571: \"$ac_try\"") >&5
    1589416924   (eval $ac_try) 2>&5
    1589516925   ac_status=$?
    1589616926-  echo "$as_me:7447: \$? = $ac_status" >&5
    15897 +  echo "$as_me:7569: \$? = $ac_status" >&5
     16927+  echo "$as_me:7574: \$? = $ac_status" >&5
    1589816928   (exit $ac_status); }; }; then
    1589916929   break
    1590016930 else
    15901 @@ -7453,7 +7575,7 @@
     16931@@ -7453,7 +7580,7 @@
    1590216932 fi
    1590316933 rm -f conftest.$ac_objext conftest.$ac_ext
    1590416934   cat >conftest.$ac_ext <<_ACEOF
    1590516935-#line 7456 "configure"
    15906 +#line 7578 "configure"
     16936+#line 7583 "configure"
    1590716937 #include "confdefs.h"
    1590816938 #define _LARGE_FILES 1
    1590916939 #include <sys/types.h>
    15910 @@ -7474,16 +7596,16 @@
     16940@@ -7474,16 +7601,16 @@
    1591116941 }
    1591216942 _ACEOF
    1591316943 rm -f conftest.$ac_objext
    1591416944-if { (eval echo "$as_me:7477: \"$ac_compile\"") >&5
    15915 +if { (eval echo "$as_me:7599: \"$ac_compile\"") >&5
     16945+if { (eval echo "$as_me:7604: \"$ac_compile\"") >&5
    1591616946   (eval $ac_compile) 2>&5
    1591716947   ac_status=$?
    1591816948-  echo "$as_me:7480: \$? = $ac_status" >&5
    15919 +  echo "$as_me:7602: \$? = $ac_status" >&5
     16949+  echo "$as_me:7607: \$? = $ac_status" >&5
    1592016950   (exit $ac_status); } &&
    1592116951          { ac_try='test -s conftest.$ac_objext'
    1592216952-  { (eval echo "$as_me:7483: \"$ac_try\"") >&5
    15923 +  { (eval echo "$as_me:7605: \"$ac_try\"") >&5
     16953+  { (eval echo "$as_me:7610: \"$ac_try\"") >&5
    1592416954   (eval $ac_try) 2>&5
    1592516955   ac_status=$?
    1592616956-  echo "$as_me:7486: \$? = $ac_status" >&5
    15927 +  echo "$as_me:7608: \$? = $ac_status" >&5
     16957+  echo "$as_me:7613: \$? = $ac_status" >&5
    1592816958   (exit $ac_status); }; }; then
    1592916959   ac_cv_sys_large_files=1; break
    1593016960 else
    15931 @@ -7494,7 +7616,7 @@
     16961@@ -7494,7 +7621,7 @@
    1593216962   break
    1593316963 done
    1593416964 fi
    1593516965-echo "$as_me:7497: result: $ac_cv_sys_large_files" >&5
    15936 +echo "$as_me:7619: result: $ac_cv_sys_large_files" >&5
     16966+echo "$as_me:7624: result: $ac_cv_sys_large_files" >&5
    1593716967 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
    1593816968 if test "$ac_cv_sys_large_files" != no; then
    1593916969 
    15940 @@ -7507,7 +7629,7 @@
     16970@@ -7507,7 +7634,7 @@
    1594116971 fi
    1594216972 
    1594316973     if test "$enable_largefile" != no ; then
    1594416974-       echo "$as_me:7510: checking for _LARGEFILE_SOURCE value needed for large files" >&5
    15945 +       echo "$as_me:7632: checking for _LARGEFILE_SOURCE value needed for large files" >&5
     16975+       echo "$as_me:7637: checking for _LARGEFILE_SOURCE value needed for large files" >&5
    1594616976 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
    1594716977 if test "${ac_cv_sys_largefile_source+set}" = set; then
    1594816978   echo $ECHO_N "(cached) $ECHO_C" >&6
    15949 @@ -7515,7 +7637,7 @@
     16979@@ -7515,7 +7642,7 @@
    1595016980   while :; do
    1595116981   ac_cv_sys_largefile_source=no
    1595216982   cat >conftest.$ac_ext <<_ACEOF
    1595316983-#line 7518 "configure"
    15954 +#line 7640 "configure"
     16984+#line 7645 "configure"
    1595516985 #include "confdefs.h"
    1595616986 #include <stdio.h>
    1595716987 int
    15958 @@ -7527,16 +7649,16 @@
     16988@@ -7527,16 +7654,16 @@
    1595916989 }
    1596016990 _ACEOF
    1596116991 rm -f conftest.$ac_objext
    1596216992-if { (eval echo "$as_me:7530: \"$ac_compile\"") >&5
    15963 +if { (eval echo "$as_me:7652: \"$ac_compile\"") >&5
     16993+if { (eval echo "$as_me:7657: \"$ac_compile\"") >&5
    1596416994   (eval $ac_compile) 2>&5
    1596516995   ac_status=$?
    1596616996-  echo "$as_me:7533: \$? = $ac_status" >&5
    15967 +  echo "$as_me:7655: \$? = $ac_status" >&5
     16997+  echo "$as_me:7660: \$? = $ac_status" >&5
    1596816998   (exit $ac_status); } &&
    1596916999          { ac_try='test -s conftest.$ac_objext'
    1597017000-  { (eval echo "$as_me:7536: \"$ac_try\"") >&5
    15971 +  { (eval echo "$as_me:7658: \"$ac_try\"") >&5
     17001+  { (eval echo "$as_me:7663: \"$ac_try\"") >&5
    1597217002   (eval $ac_try) 2>&5
    1597317003   ac_status=$?
    1597417004-  echo "$as_me:7539: \$? = $ac_status" >&5
    15975 +  echo "$as_me:7661: \$? = $ac_status" >&5
     17005+  echo "$as_me:7666: \$? = $ac_status" >&5
    1597617006   (exit $ac_status); }; }; then
    1597717007   break
    1597817008 else
    15979 @@ -7545,7 +7667,7 @@
     17009@@ -7545,7 +7672,7 @@
    1598017010 fi
    1598117011 rm -f conftest.$ac_objext conftest.$ac_ext
    1598217012   cat >conftest.$ac_ext <<_ACEOF
    1598317013-#line 7548 "configure"
    15984 +#line 7670 "configure"
     17014+#line 7675 "configure"
    1598517015 #include "confdefs.h"
    1598617016 #define _LARGEFILE_SOURCE 1
    1598717017 #include <stdio.h>
    15988 @@ -7558,16 +7680,16 @@
     17018@@ -7558,16 +7685,16 @@
    1598917019 }
    1599017020 _ACEOF
    1599117021 rm -f conftest.$ac_objext
    1599217022-if { (eval echo "$as_me:7561: \"$ac_compile\"") >&5
    15993 +if { (eval echo "$as_me:7683: \"$ac_compile\"") >&5
     17023+if { (eval echo "$as_me:7688: \"$ac_compile\"") >&5
    1599417024   (eval $ac_compile) 2>&5
    1599517025   ac_status=$?
    1599617026-  echo "$as_me:7564: \$? = $ac_status" >&5
    15997 +  echo "$as_me:7686: \$? = $ac_status" >&5
     17027+  echo "$as_me:7691: \$? = $ac_status" >&5
    1599817028   (exit $ac_status); } &&
    1599917029          { ac_try='test -s conftest.$ac_objext'
    1600017030-  { (eval echo "$as_me:7567: \"$ac_try\"") >&5
    16001 +  { (eval echo "$as_me:7689: \"$ac_try\"") >&5
     17031+  { (eval echo "$as_me:7694: \"$ac_try\"") >&5
    1600217032   (eval $ac_try) 2>&5
    1600317033   ac_status=$?
    1600417034-  echo "$as_me:7570: \$? = $ac_status" >&5
    16005 +  echo "$as_me:7692: \$? = $ac_status" >&5
     17035+  echo "$as_me:7697: \$? = $ac_status" >&5
    1600617036   (exit $ac_status); }; }; then
    1600717037   ac_cv_sys_largefile_source=1; break
    1600817038 else
    16009 @@ -7578,7 +7700,7 @@
     17039@@ -7578,7 +7705,7 @@
    1601017040   break
    1601117041 done
    1601217042 fi
    1601317043-echo "$as_me:7581: result: $ac_cv_sys_largefile_source" >&5
    16014 +echo "$as_me:7703: result: $ac_cv_sys_largefile_source" >&5
     17044+echo "$as_me:7708: result: $ac_cv_sys_largefile_source" >&5
    1601517045 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
    1601617046 if test "$ac_cv_sys_largefile_source" != no; then
    1601717047 
    16018 @@ -7592,13 +7714,13 @@
     17048@@ -7592,13 +7719,13 @@
    1601917049 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
    1602017050 # in glibc 2.1.3, but that breaks too many other things.
    1602117051 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
    1602217052-echo "$as_me:7595: checking for fseeko" >&5
    16023 +echo "$as_me:7717: checking for fseeko" >&5
     17053+echo "$as_me:7722: checking for fseeko" >&5
    1602417054 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
    1602517055 if test "${ac_cv_func_fseeko+set}" = set; then
     
    1602817058   cat >conftest.$ac_ext <<_ACEOF
    1602917059-#line 7601 "configure"
    16030 +#line 7723 "configure"
     17060+#line 7728 "configure"
    1603117061 #include "confdefs.h"
    1603217062 #include <stdio.h>
    1603317063 int
    16034 @@ -7610,16 +7732,16 @@
     17064@@ -7610,16 +7737,16 @@
    1603517065 }
    1603617066 _ACEOF
    1603717067 rm -f conftest.$ac_objext conftest$ac_exeext
    1603817068-if { (eval echo "$as_me:7613: \"$ac_link\"") >&5
    16039 +if { (eval echo "$as_me:7735: \"$ac_link\"") >&5
     17069+if { (eval echo "$as_me:7740: \"$ac_link\"") >&5
    1604017070   (eval $ac_link) 2>&5
    1604117071   ac_status=$?
    1604217072-  echo "$as_me:7616: \$? = $ac_status" >&5
    16043 +  echo "$as_me:7738: \$? = $ac_status" >&5
     17073+  echo "$as_me:7743: \$? = $ac_status" >&5
    1604417074   (exit $ac_status); } &&
    1604517075          { ac_try='test -s conftest$ac_exeext'
    1604617076-  { (eval echo "$as_me:7619: \"$ac_try\"") >&5
    16047 +  { (eval echo "$as_me:7741: \"$ac_try\"") >&5
     17077+  { (eval echo "$as_me:7746: \"$ac_try\"") >&5
    1604817078   (eval $ac_try) 2>&5
    1604917079   ac_status=$?
    1605017080-  echo "$as_me:7622: \$? = $ac_status" >&5
    16051 +  echo "$as_me:7744: \$? = $ac_status" >&5
     17081+  echo "$as_me:7749: \$? = $ac_status" >&5
    1605217082   (exit $ac_status); }; }; then
    1605317083   ac_cv_func_fseeko=yes
    1605417084 else
    16055 @@ -7629,7 +7751,7 @@
     17085@@ -7629,7 +7756,7 @@
    1605617086 fi
    1605717087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1605817088 fi
    1605917089-echo "$as_me:7632: result: $ac_cv_func_fseeko" >&5
    16060 +echo "$as_me:7754: result: $ac_cv_func_fseeko" >&5
     17090+echo "$as_me:7759: result: $ac_cv_func_fseeko" >&5
    1606117091 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
    1606217092 if test $ac_cv_func_fseeko = yes; then
    1606317093 
    16064 @@ -7648,15 +7770,16 @@
     17094@@ -7648,15 +7775,16 @@
    1606517095        # the config.h
    1606617096        test "$ac_cv_sys_large_files"      != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
     
    1606917099 
    1607017100-       echo "$as_me:7652: checking whether to use struct dirent64" >&5
    16071 +       echo "$as_me:7775: checking whether to use struct dirent64" >&5
     17101+       echo "$as_me:7780: checking whether to use struct dirent64" >&5
    1607217102 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
    1607317103 if test "${cf_cv_struct_dirent64+set}" = set; then
     
    1607717107                cat >conftest.$ac_ext <<_ACEOF
    1607817108-#line 7659 "configure"
    16079 +#line 7782 "configure"
     17109+#line 7787 "configure"
    1608017110 #include "confdefs.h"
    1608117111 
    1608217112 #include <sys/types.h>
    16083 @@ -7677,16 +7800,16 @@
     17113@@ -7677,16 +7805,16 @@
    1608417114 }
    1608517115 _ACEOF
    1608617116 rm -f conftest.$ac_objext
    1608717117-if { (eval echo "$as_me:7680: \"$ac_compile\"") >&5
    16088 +if { (eval echo "$as_me:7803: \"$ac_compile\"") >&5
     17118+if { (eval echo "$as_me:7808: \"$ac_compile\"") >&5
    1608917119   (eval $ac_compile) 2>&5
    1609017120   ac_status=$?
    1609117121-  echo "$as_me:7683: \$? = $ac_status" >&5
    16092 +  echo "$as_me:7806: \$? = $ac_status" >&5
     17122+  echo "$as_me:7811: \$? = $ac_status" >&5
    1609317123   (exit $ac_status); } &&
    1609417124          { ac_try='test -s conftest.$ac_objext'
    1609517125-  { (eval echo "$as_me:7686: \"$ac_try\"") >&5
    16096 +  { (eval echo "$as_me:7809: \"$ac_try\"") >&5
     17126+  { (eval echo "$as_me:7814: \"$ac_try\"") >&5
    1609717127   (eval $ac_try) 2>&5
    1609817128   ac_status=$?
    1609917129-  echo "$as_me:7689: \$? = $ac_status" >&5
    16100 +  echo "$as_me:7812: \$? = $ac_status" >&5
     17130+  echo "$as_me:7817: \$? = $ac_status" >&5
    1610117131   (exit $ac_status); }; }; then
    1610217132   cf_cv_struct_dirent64=yes
    1610317133 else
    16104 @@ -7697,7 +7820,7 @@
     17134@@ -7697,7 +7825,7 @@
    1610517135 rm -f conftest.$ac_objext conftest.$ac_ext
    1610617136 
    1610717137 fi
    1610817138-echo "$as_me:7700: result: $cf_cv_struct_dirent64" >&5
    16109 +echo "$as_me:7823: result: $cf_cv_struct_dirent64" >&5
     17139+echo "$as_me:7828: result: $cf_cv_struct_dirent64" >&5
    1611017140 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
    1611117141        test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
    1611217142 #define HAVE_STRUCT_DIRENT64 1
    16113 @@ -7706,7 +7829,7 @@
     17143@@ -7706,7 +7834,7 @@
    1611417144     fi
    1611517145 
    1611617146 ###   use option --disable-tparm-varargs to make tparm() conform to X/Open
    1611717147-echo "$as_me:7709: checking if you want tparm not to use X/Open fixed-parameter list" >&5
    16118 +echo "$as_me:7832: checking if you want tparm not to use X/Open fixed-parameter list" >&5
     17148+echo "$as_me:7837: checking if you want tparm not to use X/Open fixed-parameter list" >&5
    1611917149 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
    1612017150 
    1612117151 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
    16122 @@ -7716,13 +7839,13 @@
     17152@@ -7716,13 +7844,13 @@
    1612317153 else
    1612417154   with_tparm_varargs=yes
    1612517155 fi;
    1612617156-echo "$as_me:7719: result: $with_tparm_varargs" >&5
    16127 +echo "$as_me:7842: result: $with_tparm_varargs" >&5
     17157+echo "$as_me:7847: result: $with_tparm_varargs" >&5
    1612817158 echo "${ECHO_T}$with_tparm_varargs" >&6
    1612917159 NCURSES_TPARM_VARARGS=0
     
    1613217162 ###   use option --with-bool to override bool's type
    1613317163-echo "$as_me:7725: checking for type of bool" >&5
    16134 +echo "$as_me:7848: checking for type of bool" >&5
     17164+echo "$as_me:7853: checking for type of bool" >&5
    1613517165 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
    1613617166 
    1613717167 # Check whether --with-bool or --without-bool was given.
    16138 @@ -7732,10 +7855,10 @@
     17168@@ -7732,10 +7860,10 @@
    1613917169 else
    1614017170   NCURSES_BOOL=auto
    1614117171 fi;
    1614217172-echo "$as_me:7735: result: $NCURSES_BOOL" >&5
    16143 +echo "$as_me:7858: result: $NCURSES_BOOL" >&5
     17173+echo "$as_me:7863: result: $NCURSES_BOOL" >&5
    1614417174 echo "${ECHO_T}$NCURSES_BOOL" >&6
    1614517175 
    1614617176-echo "$as_me:7738: checking for alternate terminal capabilities file" >&5
    16147 +echo "$as_me:7861: checking for alternate terminal capabilities file" >&5
     17177+echo "$as_me:7866: checking for alternate terminal capabilities file" >&5
    1614817178 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
    1614917179 
    1615017180 # Check whether --with-caps or --without-caps was given.
    16151 @@ -7746,11 +7869,11 @@
     17181@@ -7746,11 +7874,11 @@
    1615217182   TERMINFO_CAPS=Caps
    1615317183 fi;
    1615417184 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
    1615517185-echo "$as_me:7749: result: $TERMINFO_CAPS" >&5
    16156 +echo "$as_me:7872: result: $TERMINFO_CAPS" >&5
     17186+echo "$as_me:7877: result: $TERMINFO_CAPS" >&5
    1615717187 echo "${ECHO_T}$TERMINFO_CAPS" >&6
    1615817188 
    1615917189 ###   use option --with-chtype to override chtype's type
    1616017190-echo "$as_me:7753: checking for type of chtype" >&5
    16161 +echo "$as_me:7876: checking for type of chtype" >&5
     17191+echo "$as_me:7881: checking for type of chtype" >&5
    1616217192 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
    1616317193 
    1616417194 # Check whether --with-chtype or --without-chtype was given.
    16165 @@ -7760,11 +7883,11 @@
     17195@@ -7760,11 +7888,11 @@
    1616617196 else
    1616717197   NCURSES_CHTYPE=auto
    1616817198 fi;
    1616917199-echo "$as_me:7763: result: $NCURSES_CHTYPE" >&5
    16170 +echo "$as_me:7886: result: $NCURSES_CHTYPE" >&5
     17200+echo "$as_me:7891: result: $NCURSES_CHTYPE" >&5
    1617117201 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
    1617217202 
    1617317203 ###   use option --with-ospeed to override ospeed's type
    1617417204-echo "$as_me:7767: checking for type of ospeed" >&5
    16175 +echo "$as_me:7890: checking for type of ospeed" >&5
     17205+echo "$as_me:7895: checking for type of ospeed" >&5
    1617617206 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
    1617717207 
    1617817208 # Check whether --with-ospeed or --without-ospeed was given.
    16179 @@ -7774,11 +7897,11 @@
     17209@@ -7774,11 +7902,11 @@
    1618017210 else
    1618117211   NCURSES_OSPEED=short
    1618217212 fi;
    1618317213-echo "$as_me:7777: result: $NCURSES_OSPEED" >&5
    16184 +echo "$as_me:7900: result: $NCURSES_OSPEED" >&5
     17214+echo "$as_me:7905: result: $NCURSES_OSPEED" >&5
    1618517215 echo "${ECHO_T}$NCURSES_OSPEED" >&6
    1618617216 
    1618717217 ###   use option --with-mmask-t to override mmask_t's type
    1618817218-echo "$as_me:7781: checking for type of mmask_t" >&5
    16189 +echo "$as_me:7904: checking for type of mmask_t" >&5
     17219+echo "$as_me:7909: checking for type of mmask_t" >&5
    1619017220 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
    1619117221 
    1619217222 # Check whether --with-mmask-t or --without-mmask-t was given.
    16193 @@ -7788,11 +7911,11 @@
     17223@@ -7788,11 +7916,11 @@
    1619417224 else
    1619517225   NCURSES_MMASK_T=auto
    1619617226 fi;
    1619717227-echo "$as_me:7791: result: $NCURSES_MMASK_T" >&5
    16198 +echo "$as_me:7914: result: $NCURSES_MMASK_T" >&5
     17228+echo "$as_me:7919: result: $NCURSES_MMASK_T" >&5
    1619917229 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
    1620017230 
    1620117231 ### Enable compiling-in rcs id's
    1620217232-echo "$as_me:7795: checking if RCS identifiers should be compiled-in" >&5
    16203 +echo "$as_me:7918: checking if RCS identifiers should be compiled-in" >&5
     17233+echo "$as_me:7923: checking if RCS identifiers should be compiled-in" >&5
    1620417234 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
    1620517235 
    1620617236 # Check whether --with-rcs-ids or --without-rcs-ids was given.
    16207 @@ -7802,7 +7925,7 @@
     17237@@ -7802,7 +7930,7 @@
    1620817238 else
    1620917239   with_rcs_ids=no
    1621017240 fi;
    1621117241-echo "$as_me:7805: result: $with_rcs_ids" >&5
    16212 +echo "$as_me:7928: result: $with_rcs_ids" >&5
     17242+echo "$as_me:7933: result: $with_rcs_ids" >&5
    1621317243 echo "${ECHO_T}$with_rcs_ids" >&6
    1621417244 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
    1621517245 #define USE_RCS_IDS 1
    16216 @@ -7810,7 +7933,7 @@
     17246@@ -7810,7 +7938,7 @@
    1621717247 
    1621817248 ###############################################################################
    1621917249 
    1622017250-echo "$as_me:7813: checking format of man-pages" >&5
    16221 +echo "$as_me:7936: checking format of man-pages" >&5
     17251+echo "$as_me:7941: checking format of man-pages" >&5
    1622217252 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
    1622317253 
    1622417254 # Check whether --with-manpage-format or --without-manpage-format was given.
    16225 @@ -7899,14 +8022,14 @@
     17255@@ -7899,14 +8027,14 @@
    1622617256   ;;
    1622717257 esac
    1622817258 
    1622917259-echo "$as_me:7902: result: $MANPAGE_FORMAT" >&5
    16230 +echo "$as_me:8025: result: $MANPAGE_FORMAT" >&5
     17260+echo "$as_me:8030: result: $MANPAGE_FORMAT" >&5
    1623117261 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
    1623217262 if test -n "$cf_unknown" ; then
    1623317263-  { echo "$as_me:7905: WARNING: Unexpected manpage-format $cf_unknown" >&5
    16234 +  { echo "$as_me:8028: WARNING: Unexpected manpage-format $cf_unknown" >&5
     17264+  { echo "$as_me:8033: WARNING: Unexpected manpage-format $cf_unknown" >&5
    1623517265 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
    1623617266 fi
    1623717267 
    1623817268-echo "$as_me:7909: checking for manpage renaming" >&5
    16239 +echo "$as_me:8032: checking for manpage renaming" >&5
     17269+echo "$as_me:8037: checking for manpage renaming" >&5
    1624017270 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
    1624117271 
    1624217272 # Check whether --with-manpage-renames or --without-manpage-renames was given.
    16243 @@ -7934,7 +8057,7 @@
     17273@@ -7934,7 +8062,7 @@
    1624417274   if test -f $srcdir/man/$MANPAGE_RENAMES ; then
    1624517275     MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
    1624617276   elif test ! -f $MANPAGE_RENAMES ; then
    1624717277-    { { echo "$as_me:7937: error: not a filename: $MANPAGE_RENAMES" >&5
    16248 +    { { echo "$as_me:8060: error: not a filename: $MANPAGE_RENAMES" >&5
     17278+    { { echo "$as_me:8065: error: not a filename: $MANPAGE_RENAMES" >&5
    1624917279 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
    1625017280    { (exit 1); exit 1; }; }
    1625117281   fi
    16252 @@ -7948,10 +8071,10 @@
     17282@@ -7948,10 +8076,10 @@
    1625317283   fi
    1625417284 fi
    1625517285 
    1625617286-echo "$as_me:7951: result: $MANPAGE_RENAMES" >&5
    16257 +echo "$as_me:8074: result: $MANPAGE_RENAMES" >&5
     17287+echo "$as_me:8079: result: $MANPAGE_RENAMES" >&5
    1625817288 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
    1625917289 
    1626017290-echo "$as_me:7954: checking if manpage aliases will be installed" >&5
    16261 +echo "$as_me:8077: checking if manpage aliases will be installed" >&5
     17291+echo "$as_me:8082: checking if manpage aliases will be installed" >&5
    1626217292 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
    1626317293 
    1626417294 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
    16265 @@ -7962,7 +8085,7 @@
     17295@@ -7962,7 +8090,7 @@
    1626617296   MANPAGE_ALIASES=yes
    1626717297 fi;
    1626817298 
    1626917299-echo "$as_me:7965: result: $MANPAGE_ALIASES" >&5
    16270 +echo "$as_me:8088: result: $MANPAGE_ALIASES" >&5
     17300+echo "$as_me:8093: result: $MANPAGE_ALIASES" >&5
    1627117301 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
    1627217302 
    1627317303 if test "$LN_S" = "ln -s"; then
    16274 @@ -7973,7 +8096,7 @@
     17304@@ -7973,7 +8101,7 @@
    1627517305 
    1627617306 MANPAGE_SYMLINKS=no
    1627717307 if test "$MANPAGE_ALIASES" = yes ; then
    1627817308-echo "$as_me:7976: checking if manpage symlinks should be used" >&5
    16279 +echo "$as_me:8099: checking if manpage symlinks should be used" >&5
     17309+echo "$as_me:8104: checking if manpage symlinks should be used" >&5
    1628017310 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
    1628117311 
    1628217312 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
    16283 @@ -7986,17 +8109,17 @@
     17313@@ -7986,17 +8114,17 @@
    1628417314 
    1628517315 if test "$$cf_use_symlinks" = no; then
    1628617316 if test "$MANPAGE_SYMLINKS" = yes ; then
    1628717317-       { echo "$as_me:7989: WARNING: cannot make symlinks" >&5
    16288 +       { echo "$as_me:8112: WARNING: cannot make symlinks" >&5
     17318+       { echo "$as_me:8117: WARNING: cannot make symlinks" >&5
    1628917319 echo "$as_me: WARNING: cannot make symlinks" >&2;}
    1629017320        MANPAGE_SYMLINKS=no
     
    1629317323 
    1629417324-echo "$as_me:7995: result: $MANPAGE_SYMLINKS" >&5
    16295 +echo "$as_me:8118: result: $MANPAGE_SYMLINKS" >&5
     17325+echo "$as_me:8123: result: $MANPAGE_SYMLINKS" >&5
    1629617326 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
    1629717327 fi
    1629817328 
    1629917329-echo "$as_me:7999: checking for manpage tbl" >&5
    16300 +echo "$as_me:8122: checking for manpage tbl" >&5
     17330+echo "$as_me:8127: checking for manpage tbl" >&5
    1630117331 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
    1630217332 
    1630317333 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
    16304 @@ -8007,7 +8130,7 @@
     17334@@ -8007,7 +8135,7 @@
    1630517335   MANPAGE_TBL=no
    1630617336 fi;
    1630717337 
    1630817338-echo "$as_me:8010: result: $MANPAGE_TBL" >&5
    16309 +echo "$as_me:8133: result: $MANPAGE_TBL" >&5
     17339+echo "$as_me:8138: result: $MANPAGE_TBL" >&5
    1631017340 echo "${ECHO_T}$MANPAGE_TBL" >&6
    1631117341 
    1631217342   if test "$prefix" = "NONE" ; then
    16313 @@ -8047,6 +8170,7 @@
     17343@@ -8047,6 +8175,7 @@
    1631417344 esac
    1631517345 
     
    1631917349 cat >$cf_edit_man <<CF_EOF
    1632017350 #! /bin/sh
    16321 @@ -8062,7 +8186,7 @@
     17351@@ -8062,7 +8191,7 @@
    1632217352 NCURSES_OSPEED="$NCURSES_OSPEED"
    1632317353 TERMINFO="$TERMINFO"
     
    1632817358 INSTALL="$INSTALL"
    1632917359 INSTALL_DATA="$INSTALL_DATA"
    16330 @@ -8110,8 +8234,34 @@
     17360@@ -8110,6 +8239,32 @@
    1633117361                \$MKDIRS \$cf_subdir\$section
    1633217362        fi
    1633317363        fi
    16334 -       aliases=
    16335 -       cf_source=\`basename \$i\`
    1633617364+
    1633717365+       # replace variables in man page
     
    1636017388+       fi
    1636117389+
    16362 +       aliases=
    16363 +       cf_source=\`basename \$i\`
     17390        aliases=
     17391        cf_source=\`basename \$i\`
    1636417392        inalias=\$cf_source
    16365         test ! -f \$inalias && inalias="\$srcdir/\$inalias"
    16366         if test ! -f \$inalias ; then
    16367 @@ -8122,7 +8272,7 @@
     17393@@ -8122,7 +8277,7 @@
    1636817394 
    1636917395 if test "$MANPAGE_ALIASES" != no ; then
     
    1637417400 fi
    1637517401 
    16376 @@ -8143,34 +8293,13 @@
     17402@@ -8143,34 +8298,13 @@
    1637717403                cf_target="\$cf_source"
    1637817404        fi
     
    1638217408-
    1638317409-       # replace variables in man page
    16384  
     17410-
    1638517411-       for cf_name in  captoinfo clear infocmp infotocap tic toe tput
    1638617412-       do
     
    1638917415-CF_EOF
    1639017416-       done
    16391 -
     17417 
    1639217418-cat >>$cf_edit_man <<CF_EOF
    1639317419-       sed     -e "s,@DATADIR@,\$datadir," \\
     
    1641117437 if test -f $MANPAGE_RENAMES ; then
    1641217438 cat >>$cf_edit_man <<CF_EOF
    16413 @@ -8231,6 +8360,7 @@
     17439@@ -8231,6 +8365,7 @@
    1641417440        if test \$verb = installing ; then
    1641517441                echo \$verb \$cf_target
     
    1641917445                        cd \$cf_subdir\${section} && (
    1642017446                                cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
    16421 @@ -8272,8 +8402,11 @@
     17447@@ -8272,8 +8407,11 @@
    1642217448                        )
    1642317449                )
     
    1643317459                        cd \$cf_subdir\${section} && (
    1643417460                                for cf_alias in \$aliases
    16435 @@ -8308,7 +8441,7 @@
     17461@@ -8308,7 +8446,7 @@
    1643617462 ###############################################################################
    1643717463 
    1643817464 ### Note that some functions (such as const) are normally disabled anyway.
    1643917465-echo "$as_me:8311: checking if you want to build with function extensions" >&5
    16440 +echo "$as_me:8444: checking if you want to build with function extensions" >&5
     17466+echo "$as_me:8449: checking if you want to build with function extensions" >&5
    1644117467 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
    1644217468 
    1644317469 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
    16444 @@ -8318,7 +8451,7 @@
     17470@@ -8318,7 +8456,7 @@
    1644517471 else
    1644617472   with_ext_funcs=yes
    1644717473 fi;
    1644817474-echo "$as_me:8321: result: $with_ext_funcs" >&5
    16449 +echo "$as_me:8454: result: $with_ext_funcs" >&5
     17475+echo "$as_me:8459: result: $with_ext_funcs" >&5
    1645017476 echo "${ECHO_T}$with_ext_funcs" >&6
    1645117477 if test "$with_ext_funcs" = yes ; then
    1645217478        NCURSES_EXT_FUNCS=1
    16453 @@ -8355,7 +8488,7 @@
     17479@@ -8355,7 +8493,7 @@
    1645417480 fi
    1645517481 
    1645617482 ###   use option --enable-const to turn on use of const beyond that in XSI.
    1645717483-echo "$as_me:8358: checking for extended use of const keyword" >&5
    16458 +echo "$as_me:8491: checking for extended use of const keyword" >&5
     17484+echo "$as_me:8496: checking for extended use of const keyword" >&5
    1645917485 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
    1646017486 
    1646117487 # Check whether --enable-const or --disable-const was given.
    16462 @@ -8365,14 +8498,14 @@
     17488@@ -8365,14 +8503,85 @@
    1646317489 else
    1646417490   with_ext_const=no
    1646517491 fi;
    1646617492-echo "$as_me:8368: result: $with_ext_const" >&5
    16467 +echo "$as_me:8501: result: $with_ext_const" >&5
     17493+echo "$as_me:8506: result: $with_ext_const" >&5
    1646817494 echo "${ECHO_T}$with_ext_const" >&6
    1646917495 NCURSES_CONST='/*nothing*/'
     
    1647317499 
    1647417500-echo "$as_me:8375: checking if you want \$NCURSES_NO_PADDING code" >&5
    16475 +echo "$as_me:8508: checking if you want \$NCURSES_NO_PADDING code" >&5
     17501+###   use option --enable-ext-colors to turn on use of colors beyond 16.
     17502+echo "$as_me:8514: checking if you want to use extended colors" >&5
     17503+echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
     17504+
     17505+# Check whether --enable-ext-colors or --disable-ext-colors was given.
     17506+if test "${enable_ext_colors+set}" = set; then
     17507+  enableval="$enable_ext_colors"
     17508+  with_ext_colors=$enableval
     17509+else
     17510+  with_ext_colors=no
     17511+fi;
     17512+echo "$as_me:8524: result: $with_ext_colors" >&5
     17513+echo "${ECHO_T}$with_ext_colors" >&6
     17514+NCURSES_EXT_COLORS=0
     17515+if test "$with_ext_colors" = yes ; then
     17516+       if test "$with_widec" != yes ; then
     17517+               { { echo "$as_me:8529: error: This option applies only to wide-character library" >&5
     17518+echo "$as_me: error: This option applies only to wide-character library" >&2;}
     17519+   { (exit 1); exit 1; }; }
     17520+       else
     17521+               # cannot be ABI 5 since it changes sizeof(cchar_t)
     17522+
     17523+if test "${with_abi_version+set}" != set; then
     17524+       case $cf_cv_rel_version in
     17525+       5.*)
     17526+               cf_cv_rel_version=6.0
     17527+               cf_cv_abi_version=6
     17528+               { echo "$as_me:8540: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
     17529+echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
     17530+               ;;
     17531+       esac
     17532+fi
     17533+
     17534+       fi
     17535+       NCURSES_EXT_COLORS=1
     17536+       cat >>confdefs.h <<\EOF
     17537+#define NCURSES_EXT_COLORS 1
     17538+EOF
     17539+
     17540+fi
     17541+
     17542+###   use option --enable-ext-mouse to modify coding to support 5-button mice
     17543+echo "$as_me:8555: checking if you want to use extended mouse encoding" >&5
     17544+echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
     17545+
     17546+# Check whether --enable-ext-mouse or --disable-ext-mouse was given.
     17547+if test "${enable_ext_mouse+set}" = set; then
     17548+  enableval="$enable_ext_mouse"
     17549+  with_ext_mouse=$enableval
     17550+else
     17551+  with_ext_mouse=no
     17552+fi;
     17553+echo "$as_me:8565: result: $with_ext_mouse" >&5
     17554+echo "${ECHO_T}$with_ext_mouse" >&6
     17555+NCURSES_MOUSE_VERSION=1
     17556+if test "$with_ext_mouse" = yes ; then
     17557+       NCURSES_MOUSE_VERSION=2
     17558+
     17559+if test "${with_abi_version+set}" != set; then
     17560+       case $cf_cv_rel_version in
     17561+       5.*)
     17562+               cf_cv_rel_version=6.0
     17563+               cf_cv_abi_version=6
     17564+               { echo "$as_me:8576: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
     17565+echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
     17566+               ;;
     17567+       esac
     17568+fi
     17569+
     17570+fi
     17571+
     17572+echo "$as_me:8584: checking if you want \$NCURSES_NO_PADDING code" >&5
    1647617573 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
    1647717574 
    1647817575 # Check whether --enable-no-padding or --disable-no-padding was given.
    16479 @@ -8382,19 +8515,19 @@
     17576@@ -8382,19 +8591,19 @@
    1648017577 else
    1648117578   with_no_padding=$with_ext_funcs
    1648217579 fi;
    1648317580-echo "$as_me:8385: result: $with_no_padding" >&5
    16484 +echo "$as_me:8518: result: $with_no_padding" >&5
     17581+echo "$as_me:8594: result: $with_no_padding" >&5
    1648517582 echo "${ECHO_T}$with_no_padding" >&6
    1648617583 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
     
    1648917586 
    1649017587-echo "$as_me:8391: checking for ANSI C header files" >&5
    16491 +echo "$as_me:8524: checking for ANSI C header files" >&5
     17588+echo "$as_me:8600: checking for ANSI C header files" >&5
    1649217589 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    1649317590 if test "${ac_cv_header_stdc+set}" = set; then
     
    1649617593   cat >conftest.$ac_ext <<_ACEOF
    1649717594-#line 8397 "configure"
    16498 +#line 8530 "configure"
     17595+#line 8606 "configure"
    1649917596 #include "confdefs.h"
    1650017597 #include <stdlib.h>
    1650117598 #include <stdarg.h>
    16502 @@ -8402,13 +8535,13 @@
     17599@@ -8402,13 +8611,13 @@
    1650317600 #include <float.h>
    1650417601 
    1650517602 _ACEOF
    1650617603-if { (eval echo "$as_me:8405: \"$ac_cpp conftest.$ac_ext\"") >&5
    16507 +if { (eval echo "$as_me:8538: \"$ac_cpp conftest.$ac_ext\"") >&5
     17604+if { (eval echo "$as_me:8614: \"$ac_cpp conftest.$ac_ext\"") >&5
    1650817605   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    1650917606   ac_status=$?
     
    1651217609   cat conftest.err >&5
    1651317610-  echo "$as_me:8411: \$? = $ac_status" >&5
    16514 +  echo "$as_me:8544: \$? = $ac_status" >&5
     17611+  echo "$as_me:8620: \$? = $ac_status" >&5
    1651517612   (exit $ac_status); } >/dev/null; then
    1651617613   if test -s conftest.err; then
    1651717614     ac_cpp_err=$ac_c_preproc_warn_flag
    16518 @@ -8430,7 +8563,7 @@
     17615@@ -8430,7 +8639,7 @@
    1651917616 if test $ac_cv_header_stdc = yes; then
    1652017617   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1652117618   cat >conftest.$ac_ext <<_ACEOF
    1652217619-#line 8433 "configure"
    16523 +#line 8566 "configure"
     17620+#line 8642 "configure"
    1652417621 #include "confdefs.h"
    1652517622 #include <string.h>
    1652617623 
    16527 @@ -8448,7 +8581,7 @@
     17624@@ -8448,7 +8657,7 @@
    1652817625 if test $ac_cv_header_stdc = yes; then
    1652917626   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1653017627   cat >conftest.$ac_ext <<_ACEOF
    1653117628-#line 8451 "configure"
    16532 +#line 8584 "configure"
     17629+#line 8660 "configure"
    1653317630 #include "confdefs.h"
    1653417631 #include <stdlib.h>
    1653517632 
    16536 @@ -8469,7 +8602,7 @@
     17633@@ -8469,7 +8678,7 @@
    1653717634   :
    1653817635 else
    1653917636   cat >conftest.$ac_ext <<_ACEOF
    1654017637-#line 8472 "configure"
    16541 +#line 8605 "configure"
     17638+#line 8681 "configure"
    1654217639 #include "confdefs.h"
    1654317640 #include <ctype.h>
    1654417641 #if ((' ' & 0x0FF) == 0x020)
    16545 @@ -8495,15 +8628,15 @@
     17642@@ -8495,15 +8704,15 @@
    1654617643 }
    1654717644 _ACEOF
    1654817645 rm -f conftest$ac_exeext
    1654917646-if { (eval echo "$as_me:8498: \"$ac_link\"") >&5
    16550 +if { (eval echo "$as_me:8631: \"$ac_link\"") >&5
     17647+if { (eval echo "$as_me:8707: \"$ac_link\"") >&5
    1655117648   (eval $ac_link) 2>&5
    1655217649   ac_status=$?
    1655317650-  echo "$as_me:8501: \$? = $ac_status" >&5
    16554 +  echo "$as_me:8634: \$? = $ac_status" >&5
     17651+  echo "$as_me:8710: \$? = $ac_status" >&5
    1655517652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    1655617653-  { (eval echo "$as_me:8503: \"$ac_try\"") >&5
    16557 +  { (eval echo "$as_me:8636: \"$ac_try\"") >&5
     17654+  { (eval echo "$as_me:8712: \"$ac_try\"") >&5
    1655817655   (eval $ac_try) 2>&5
    1655917656   ac_status=$?
    1656017657-  echo "$as_me:8506: \$? = $ac_status" >&5
    16561 +  echo "$as_me:8639: \$? = $ac_status" >&5
     17658+  echo "$as_me:8715: \$? = $ac_status" >&5
    1656217659   (exit $ac_status); }; }; then
    1656317660   :
    1656417661 else
    16565 @@ -8516,7 +8649,7 @@
     17662@@ -8516,7 +8725,7 @@
    1656617663 fi
    1656717664 fi
    1656817665 fi
    1656917666-echo "$as_me:8519: result: $ac_cv_header_stdc" >&5
    16570 +echo "$as_me:8652: result: $ac_cv_header_stdc" >&5
     17667+echo "$as_me:8728: result: $ac_cv_header_stdc" >&5
    1657117668 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    1657217669 if test $ac_cv_header_stdc = yes; then
    1657317670 
    16574 @@ -8532,28 +8665,28 @@
     17671@@ -8532,28 +8741,28 @@
    1657517672                   inttypes.h stdint.h unistd.h
    1657617673 do
    1657717674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    1657817675-echo "$as_me:8535: checking for $ac_header" >&5
    16579 +echo "$as_me:8668: checking for $ac_header" >&5
     17676+echo "$as_me:8744: checking for $ac_header" >&5
    1658017677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    1658117678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
     
    1658417681   cat >conftest.$ac_ext <<_ACEOF
    1658517682-#line 8541 "configure"
    16586 +#line 8674 "configure"
     17683+#line 8750 "configure"
    1658717684 #include "confdefs.h"
    1658817685 $ac_includes_default
     
    1659117688 rm -f conftest.$ac_objext
    1659217689-if { (eval echo "$as_me:8547: \"$ac_compile\"") >&5
    16593 +if { (eval echo "$as_me:8680: \"$ac_compile\"") >&5
     17690+if { (eval echo "$as_me:8756: \"$ac_compile\"") >&5
    1659417691   (eval $ac_compile) 2>&5
    1659517692   ac_status=$?
    1659617693-  echo "$as_me:8550: \$? = $ac_status" >&5
    16597 +  echo "$as_me:8683: \$? = $ac_status" >&5
     17694+  echo "$as_me:8759: \$? = $ac_status" >&5
    1659817695   (exit $ac_status); } &&
    1659917696          { ac_try='test -s conftest.$ac_objext'
    1660017697-  { (eval echo "$as_me:8553: \"$ac_try\"") >&5
    16601 +  { (eval echo "$as_me:8686: \"$ac_try\"") >&5
     17698+  { (eval echo "$as_me:8762: \"$ac_try\"") >&5
    1660217699   (eval $ac_try) 2>&5
    1660317700   ac_status=$?
    1660417701-  echo "$as_me:8556: \$? = $ac_status" >&5
    16605 +  echo "$as_me:8689: \$? = $ac_status" >&5
     17702+  echo "$as_me:8765: \$? = $ac_status" >&5
    1660617703   (exit $ac_status); }; }; then
    1660717704   eval "$as_ac_Header=yes"
    1660817705 else
    16609 @@ -8563,7 +8696,7 @@
     17706@@ -8563,7 +8772,7 @@
    1661017707 fi
    1661117708 rm -f conftest.$ac_objext conftest.$ac_ext
    1661217709 fi
    1661317710-echo "$as_me:8566: result: `eval echo '${'$as_ac_Header'}'`" >&5
    16614 +echo "$as_me:8699: result: `eval echo '${'$as_ac_Header'}'`" >&5
     17711+echo "$as_me:8775: result: `eval echo '${'$as_ac_Header'}'`" >&5
    1661517712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    1661617713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    1661717714   cat >>confdefs.h <<EOF
    16618 @@ -8573,13 +8706,13 @@
     17715@@ -8573,13 +8782,13 @@
    1661917716 fi
    1662017717 done
    1662117718 
    1662217719-echo "$as_me:8576: checking for signed char" >&5
    16623 +echo "$as_me:8709: checking for signed char" >&5
     17720+echo "$as_me:8785: checking for signed char" >&5
    1662417721 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
    1662517722 if test "${ac_cv_type_signed_char+set}" = set; then
     
    1662817725   cat >conftest.$ac_ext <<_ACEOF
    1662917726-#line 8582 "configure"
    16630 +#line 8715 "configure"
     17727+#line 8791 "configure"
    1663117728 #include "confdefs.h"
    1663217729 $ac_includes_default
    1663317730 int
    16634 @@ -8594,16 +8727,16 @@
     17731@@ -8594,16 +8803,16 @@
    1663517732 }
    1663617733 _ACEOF
    1663717734 rm -f conftest.$ac_objext
    1663817735-if { (eval echo "$as_me:8597: \"$ac_compile\"") >&5
    16639 +if { (eval echo "$as_me:8730: \"$ac_compile\"") >&5
     17736+if { (eval echo "$as_me:8806: \"$ac_compile\"") >&5
    1664017737   (eval $ac_compile) 2>&5
    1664117738   ac_status=$?
    1664217739-  echo "$as_me:8600: \$? = $ac_status" >&5
    16643 +  echo "$as_me:8733: \$? = $ac_status" >&5
     17740+  echo "$as_me:8809: \$? = $ac_status" >&5
    1664417741   (exit $ac_status); } &&
    1664517742          { ac_try='test -s conftest.$ac_objext'
    1664617743-  { (eval echo "$as_me:8603: \"$ac_try\"") >&5
    16647 +  { (eval echo "$as_me:8736: \"$ac_try\"") >&5
     17744+  { (eval echo "$as_me:8812: \"$ac_try\"") >&5
    1664817745   (eval $ac_try) 2>&5
    1664917746   ac_status=$?
    1665017747-  echo "$as_me:8606: \$? = $ac_status" >&5
    16651 +  echo "$as_me:8739: \$? = $ac_status" >&5
     17748+  echo "$as_me:8815: \$? = $ac_status" >&5
    1665217749   (exit $ac_status); }; }; then
    1665317750   ac_cv_type_signed_char=yes
    1665417751 else
    16655 @@ -8613,10 +8746,10 @@
     17752@@ -8613,10 +8822,10 @@
    1665617753 fi
    1665717754 rm -f conftest.$ac_objext conftest.$ac_ext
    1665817755 fi
    1665917756-echo "$as_me:8616: result: $ac_cv_type_signed_char" >&5
    16660 +echo "$as_me:8749: result: $ac_cv_type_signed_char" >&5
     17757+echo "$as_me:8825: result: $ac_cv_type_signed_char" >&5
    1666117758 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
    1666217759 
    1666317760-echo "$as_me:8619: checking size of signed char" >&5
    16664 +echo "$as_me:8752: checking size of signed char" >&5
     17761+echo "$as_me:8828: checking size of signed char" >&5
    1666517762 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
    1666617763 if test "${ac_cv_sizeof_signed_char+set}" = set; then
    1666717764   echo $ECHO_N "(cached) $ECHO_C" >&6
    16668 @@ -8625,7 +8758,7 @@
     17765@@ -8625,7 +8834,7 @@
    1666917766   if test "$cross_compiling" = yes; then
    1667017767   # Depending upon the size, compute the lo and hi bounds.
    1667117768 cat >conftest.$ac_ext <<_ACEOF
    1667217769-#line 8628 "configure"
    16673 +#line 8761 "configure"
     17770+#line 8837 "configure"
    1667417771 #include "confdefs.h"
    1667517772 $ac_includes_default
    1667617773 int
    16677 @@ -8637,21 +8770,21 @@
     17774@@ -8637,21 +8846,21 @@
    1667817775 }
    1667917776 _ACEOF
    1668017777 rm -f conftest.$ac_objext
    1668117778-if { (eval echo "$as_me:8640: \"$ac_compile\"") >&5
    16682 +if { (eval echo "$as_me:8773: \"$ac_compile\"") >&5
     17779+if { (eval echo "$as_me:8849: \"$ac_compile\"") >&5
    1668317780   (eval $ac_compile) 2>&5
    1668417781   ac_status=$?
    1668517782-  echo "$as_me:8643: \$? = $ac_status" >&5
    16686 +  echo "$as_me:8776: \$? = $ac_status" >&5
     17783+  echo "$as_me:8852: \$? = $ac_status" >&5
    1668717784   (exit $ac_status); } &&
    1668817785          { ac_try='test -s conftest.$ac_objext'
    1668917786-  { (eval echo "$as_me:8646: \"$ac_try\"") >&5
    16690 +  { (eval echo "$as_me:8779: \"$ac_try\"") >&5
     17787+  { (eval echo "$as_me:8855: \"$ac_try\"") >&5
    1669117788   (eval $ac_try) 2>&5
    1669217789   ac_status=$?
    1669317790-  echo "$as_me:8649: \$? = $ac_status" >&5
    16694 +  echo "$as_me:8782: \$? = $ac_status" >&5
     17791+  echo "$as_me:8858: \$? = $ac_status" >&5
    1669517792   (exit $ac_status); }; }; then
    1669617793   ac_lo=0 ac_mid=0
     
    1669817795     cat >conftest.$ac_ext <<_ACEOF
    1669917796-#line 8654 "configure"
    16700 +#line 8787 "configure"
     17797+#line 8863 "configure"
    1670117798 #include "confdefs.h"
    1670217799 $ac_includes_default
    1670317800 int
    16704 @@ -8663,16 +8796,16 @@
     17801@@ -8663,16 +8872,16 @@
    1670517802 }
    1670617803 _ACEOF
    1670717804 rm -f conftest.$ac_objext
    1670817805-if { (eval echo "$as_me:8666: \"$ac_compile\"") >&5
    16709 +if { (eval echo "$as_me:8799: \"$ac_compile\"") >&5
     17806+if { (eval echo "$as_me:8875: \"$ac_compile\"") >&5
    1671017807   (eval $ac_compile) 2>&5
    1671117808   ac_status=$?
    1671217809-  echo "$as_me:8669: \$? = $ac_status" >&5
    16713 +  echo "$as_me:8802: \$? = $ac_status" >&5
     17810+  echo "$as_me:8878: \$? = $ac_status" >&5
    1671417811   (exit $ac_status); } &&
    1671517812          { ac_try='test -s conftest.$ac_objext'
    1671617813-  { (eval echo "$as_me:8672: \"$ac_try\"") >&5
    16717 +  { (eval echo "$as_me:8805: \"$ac_try\"") >&5
     17814+  { (eval echo "$as_me:8881: \"$ac_try\"") >&5
    1671817815   (eval $ac_try) 2>&5
    1671917816   ac_status=$?
    1672017817-  echo "$as_me:8675: \$? = $ac_status" >&5
    16721 +  echo "$as_me:8808: \$? = $ac_status" >&5
     17818+  echo "$as_me:8884: \$? = $ac_status" >&5
    1672217819   (exit $ac_status); }; }; then
    1672317820   ac_hi=$ac_mid; break
    1672417821 else
    16725 @@ -8688,7 +8821,7 @@
     17822@@ -8688,7 +8897,7 @@
    1672617823 ac_hi=-1 ac_mid=-1
    1672717824   while :; do
    1672817825     cat >conftest.$ac_ext <<_ACEOF
    1672917826-#line 8691 "configure"
    16730 +#line 8824 "configure"
     17827+#line 8900 "configure"
    1673117828 #include "confdefs.h"
    1673217829 $ac_includes_default
    1673317830 int
    16734 @@ -8700,16 +8833,16 @@
     17831@@ -8700,16 +8909,16 @@
    1673517832 }
    1673617833 _ACEOF
    1673717834 rm -f conftest.$ac_objext
    1673817835-if { (eval echo "$as_me:8703: \"$ac_compile\"") >&5
    16739 +if { (eval echo "$as_me:8836: \"$ac_compile\"") >&5
     17836+if { (eval echo "$as_me:8912: \"$ac_compile\"") >&5
    1674017837   (eval $ac_compile) 2>&5
    1674117838   ac_status=$?
    1674217839-  echo "$as_me:8706: \$? = $ac_status" >&5
    16743 +  echo "$as_me:8839: \$? = $ac_status" >&5
     17840+  echo "$as_me:8915: \$? = $ac_status" >&5
    1674417841   (exit $ac_status); } &&
    1674517842          { ac_try='test -s conftest.$ac_objext'
    1674617843-  { (eval echo "$as_me:8709: \"$ac_try\"") >&5
    16747 +  { (eval echo "$as_me:8842: \"$ac_try\"") >&5
     17844+  { (eval echo "$as_me:8918: \"$ac_try\"") >&5
    1674817845   (eval $ac_try) 2>&5
    1674917846   ac_status=$?
    1675017847-  echo "$as_me:8712: \$? = $ac_status" >&5
    16751 +  echo "$as_me:8845: \$? = $ac_status" >&5
     17848+  echo "$as_me:8921: \$? = $ac_status" >&5
    1675217849   (exit $ac_status); }; }; then
    1675317850   ac_lo=$ac_mid; break
    1675417851 else
    16755 @@ -8725,7 +8858,7 @@
     17852@@ -8725,7 +8934,7 @@
    1675617853 while test "x$ac_lo" != "x$ac_hi"; do
    1675717854   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
    1675817855   cat >conftest.$ac_ext <<_ACEOF
    1675917856-#line 8728 "configure"
    16760 +#line 8861 "configure"
     17857+#line 8937 "configure"
    1676117858 #include "confdefs.h"
    1676217859 $ac_includes_default
    1676317860 int
    16764 @@ -8737,16 +8870,16 @@
     17861@@ -8737,16 +8946,16 @@
    1676517862 }
    1676617863 _ACEOF
    1676717864 rm -f conftest.$ac_objext
    1676817865-if { (eval echo "$as_me:8740: \"$ac_compile\"") >&5
    16769 +if { (eval echo "$as_me:8873: \"$ac_compile\"") >&5
     17866+if { (eval echo "$as_me:8949: \"$ac_compile\"") >&5
    1677017867   (eval $ac_compile) 2>&5
    1677117868   ac_status=$?
    1677217869-  echo "$as_me:8743: \$? = $ac_status" >&5
    16773 +  echo "$as_me:8876: \$? = $ac_status" >&5
     17870+  echo "$as_me:8952: \$? = $ac_status" >&5
    1677417871   (exit $ac_status); } &&
    1677517872          { ac_try='test -s conftest.$ac_objext'
    1677617873-  { (eval echo "$as_me:8746: \"$ac_try\"") >&5
    16777 +  { (eval echo "$as_me:8879: \"$ac_try\"") >&5
     17874+  { (eval echo "$as_me:8955: \"$ac_try\"") >&5
    1677817875   (eval $ac_try) 2>&5
    1677917876   ac_status=$?
    1678017877-  echo "$as_me:8749: \$? = $ac_status" >&5
    16781 +  echo "$as_me:8882: \$? = $ac_status" >&5
     17878+  echo "$as_me:8958: \$? = $ac_status" >&5
    1678217879   (exit $ac_status); }; }; then
    1678317880   ac_hi=$ac_mid
    1678417881 else
    16785 @@ -8759,12 +8892,12 @@
     17882@@ -8759,12 +8968,12 @@
    1678617883 ac_cv_sizeof_signed_char=$ac_lo
    1678717884 else
    1678817885   if test "$cross_compiling" = yes; then
    1678917886-  { { echo "$as_me:8762: error: cannot run test program while cross compiling" >&5
    16790 +  { { echo "$as_me:8895: error: cannot run test program while cross compiling" >&5
     17887+  { { echo "$as_me:8971: error: cannot run test program while cross compiling" >&5
    1679117888 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
    1679217889    { (exit 1); exit 1; }; }
     
    1679417891   cat >conftest.$ac_ext <<_ACEOF
    1679517892-#line 8767 "configure"
    16796 +#line 8900 "configure"
     17893+#line 8976 "configure"
    1679717894 #include "confdefs.h"
    1679817895 $ac_includes_default
    1679917896 int
    16800 @@ -8780,15 +8913,15 @@
     17897@@ -8780,15 +8989,15 @@
    1680117898 }
    1680217899 _ACEOF
    1680317900 rm -f conftest$ac_exeext
    1680417901-if { (eval echo "$as_me:8783: \"$ac_link\"") >&5
    16805 +if { (eval echo "$as_me:8916: \"$ac_link\"") >&5
     17902+if { (eval echo "$as_me:8992: \"$ac_link\"") >&5
    1680617903   (eval $ac_link) 2>&5
    1680717904   ac_status=$?
    1680817905-  echo "$as_me:8786: \$? = $ac_status" >&5
    16809 +  echo "$as_me:8919: \$? = $ac_status" >&5
     17906+  echo "$as_me:8995: \$? = $ac_status" >&5
    1681017907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    1681117908-  { (eval echo "$as_me:8788: \"$ac_try\"") >&5
    16812 +  { (eval echo "$as_me:8921: \"$ac_try\"") >&5
     17909+  { (eval echo "$as_me:8997: \"$ac_try\"") >&5
    1681317910   (eval $ac_try) 2>&5
    1681417911   ac_status=$?
    1681517912-  echo "$as_me:8791: \$? = $ac_status" >&5
    16816 +  echo "$as_me:8924: \$? = $ac_status" >&5
     17913+  echo "$as_me:9000: \$? = $ac_status" >&5
    1681717914   (exit $ac_status); }; }; then
    1681817915   ac_cv_sizeof_signed_char=`cat conftest.val`
    1681917916 else
    16820 @@ -8804,7 +8937,7 @@
     17917@@ -8804,7 +9013,7 @@
    1682117918   ac_cv_sizeof_signed_char=0
    1682217919 fi
    1682317920 fi
    1682417921-echo "$as_me:8807: result: $ac_cv_sizeof_signed_char" >&5
    16825 +echo "$as_me:8940: result: $ac_cv_sizeof_signed_char" >&5
     17922+echo "$as_me:9016: result: $ac_cv_sizeof_signed_char" >&5
    1682617923 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
    1682717924 cat >>confdefs.h <<EOF
    1682817925 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
    16829 @@ -8815,7 +8948,7 @@
     17926@@ -8815,7 +9024,7 @@
    1683017927 else
    1683117928        NCURSES_SBOOL="char"
    1683217929 fi
    1683317930-echo "$as_me:8818: checking if you want to use signed Boolean array in term.h" >&5
    16834 +echo "$as_me:8951: checking if you want to use signed Boolean array in term.h" >&5
     17931+echo "$as_me:9027: checking if you want to use signed Boolean array in term.h" >&5
    1683517932 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
    1683617933 
    1683717934 # Check whether --enable-signed-char or --disable-signed-char was given.
    16838 @@ -8825,12 +8958,12 @@
     17935@@ -8825,12 +9034,12 @@
    1683917936 else
    1684017937   with_signed_char=no
    1684117938 fi;
    1684217939-echo "$as_me:8828: result: $with_signed_char" >&5
    16843 +echo "$as_me:8961: result: $with_signed_char" >&5
     17940+echo "$as_me:9037: result: $with_signed_char" >&5
    1684417941 echo "${ECHO_T}$with_signed_char" >&6
    1684517942 test "$with_signed_char" != yes && NCURSES_SBOOL="char"
     
    1684717944 ###   use option --enable-sigwinch to turn on use of SIGWINCH logic
    1684817945-echo "$as_me:8833: checking if you want SIGWINCH handler" >&5
    16849 +echo "$as_me:8966: checking if you want SIGWINCH handler" >&5
     17946+echo "$as_me:9042: checking if you want SIGWINCH handler" >&5
    1685017947 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
    1685117948 
    1685217949 # Check whether --enable-sigwinch or --disable-sigwinch was given.
    16853 @@ -8840,14 +8973,14 @@
     17950@@ -8840,14 +9049,14 @@
    1685417951 else
    1685517952   with_sigwinch=$with_ext_funcs
    1685617953 fi;
    1685717954-echo "$as_me:8843: result: $with_sigwinch" >&5
    16858 +echo "$as_me:8976: result: $with_sigwinch" >&5
     17955+echo "$as_me:9052: result: $with_sigwinch" >&5
    1685917956 echo "${ECHO_T}$with_sigwinch" >&6
    1686017957 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
     
    1686417961 ###   use option --enable-tcap-names to allow user to define new capabilities
    1686517962-echo "$as_me:8850: checking if you want user-definable terminal capabilities like termcap" >&5
    16866 +echo "$as_me:8983: checking if you want user-definable terminal capabilities like termcap" >&5
     17963+echo "$as_me:9059: checking if you want user-definable terminal capabilities like termcap" >&5
    1686717964 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
    1686817965 
    1686917966 # Check whether --enable-tcap-names or --disable-tcap-names was given.
    16870 @@ -8857,7 +8990,7 @@
     17967@@ -8857,7 +9066,7 @@
    1687117968 else
    1687217969   with_tcap_names=$with_ext_funcs
    1687317970 fi;
    1687417971-echo "$as_me:8860: result: $with_tcap_names" >&5
    16875 +echo "$as_me:8993: result: $with_tcap_names" >&5
     17972+echo "$as_me:9069: result: $with_tcap_names" >&5
    1687617973 echo "${ECHO_T}$with_tcap_names" >&6
    1687717974 NCURSES_XNAMES=0
    1687817975 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
    16879 @@ -8865,7 +8998,7 @@
     17976@@ -8865,7 +9074,7 @@
    1688017977 ###############################################################################
    1688117978 # These options are relatively safe to experiment with.
    1688217979 
    1688317980-echo "$as_me:8868: checking if you want all development code" >&5
    16884 +echo "$as_me:9001: checking if you want all development code" >&5
     17981+echo "$as_me:9077: checking if you want all development code" >&5
    1688517982 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
    1688617983 
    1688717984 # Check whether --with-develop or --without-develop was given.
    16888 @@ -8875,11 +9008,11 @@
     17985@@ -8875,11 +9084,11 @@
    1688917986 else
    1689017987   with_develop=no
    1689117988 fi;
    1689217989-echo "$as_me:8878: result: $with_develop" >&5
    16893 +echo "$as_me:9011: result: $with_develop" >&5
     17990+echo "$as_me:9087: result: $with_develop" >&5
    1689417991 echo "${ECHO_T}$with_develop" >&6
    1689517992 
    1689617993 ###   use option --enable-hard-tabs to turn on use of hard-tabs optimize
    1689717994-echo "$as_me:8882: checking if you want hard-tabs code" >&5
    16898 +echo "$as_me:9015: checking if you want hard-tabs code" >&5
     17995+echo "$as_me:9091: checking if you want hard-tabs code" >&5
    1689917996 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
    1690017997 
    1690117998 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
    16902 @@ -8889,14 +9022,14 @@
     17999@@ -8889,14 +9098,14 @@
    1690318000 else
    1690418001   enable_hard_tabs=$with_develop
    1690518002 fi;
    1690618003-echo "$as_me:8892: result: $enable_hard_tabs" >&5
    16907 +echo "$as_me:9025: result: $enable_hard_tabs" >&5
     18004+echo "$as_me:9101: result: $enable_hard_tabs" >&5
    1690818005 echo "${ECHO_T}$enable_hard_tabs" >&6
    1690918006 test "$enable_hard_tabs" = yes && cat >>confdefs.h <<\EOF
     
    1691318010 ###   use option --enable-xmc-glitch to turn on use of magic-cookie optimize
    1691418011-echo "$as_me:8899: checking if you want limited support for xmc" >&5
    16915 +echo "$as_me:9032: checking if you want limited support for xmc" >&5
     18012+echo "$as_me:9108: checking if you want limited support for xmc" >&5
    1691618013 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
    1691718014 
    1691818015 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
    16919 @@ -8906,7 +9039,7 @@
     18016@@ -8906,7 +9115,7 @@
    1692018017 else
    1692118018   enable_xmc_glitch=$with_develop
    1692218019 fi;
    1692318020-echo "$as_me:8909: result: $enable_xmc_glitch" >&5
    16924 +echo "$as_me:9042: result: $enable_xmc_glitch" >&5
     18021+echo "$as_me:9118: result: $enable_xmc_glitch" >&5
    1692518022 echo "${ECHO_T}$enable_xmc_glitch" >&6
    1692618023 test "$enable_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
    1692718024 #define USE_XMC_SUPPORT 1
    16928 @@ -8915,7 +9048,7 @@
     18025@@ -8915,7 +9124,7 @@
    1692918026 ###############################################################################
    1693018027 # These are just experimental, probably should not be in a package:
    1693118028 
    1693218029-echo "$as_me:8918: checking if you do not want to assume colors are white-on-black" >&5
    16933 +echo "$as_me:9051: checking if you do not want to assume colors are white-on-black" >&5
     18030+echo "$as_me:9127: checking if you do not want to assume colors are white-on-black" >&5
    1693418031 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
    1693518032 
    1693618033 # Check whether --enable-assumed-color or --disable-assumed-color was given.
    16937 @@ -8925,14 +9058,14 @@
     18034@@ -8925,14 +9134,14 @@
    1693818035 else
    1693918036   with_assumed_color=yes
    1694018037 fi;
    1694118038-echo "$as_me:8928: result: $with_assumed_color" >&5
    16942 +echo "$as_me:9061: result: $with_assumed_color" >&5
     18039+echo "$as_me:9137: result: $with_assumed_color" >&5
    1694318040 echo "${ECHO_T}$with_assumed_color" >&6
    1694418041 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
     
    1694818045 ###   use option --enable-hashmap to turn on use of hashmap scrolling logic
    1694918046-echo "$as_me:8935: checking if you want hashmap scrolling-optimization code" >&5
    16950 +echo "$as_me:9068: checking if you want hashmap scrolling-optimization code" >&5
     18047+echo "$as_me:9144: checking if you want hashmap scrolling-optimization code" >&5
    1695118048 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
    1695218049 
    1695318050 # Check whether --enable-hashmap or --disable-hashmap was given.
    16954 @@ -8942,14 +9075,14 @@
     18051@@ -8942,14 +9151,14 @@
    1695518052 else
    1695618053   with_hashmap=yes
    1695718054 fi;
    1695818055-echo "$as_me:8945: result: $with_hashmap" >&5
    16959 +echo "$as_me:9078: result: $with_hashmap" >&5
     18056+echo "$as_me:9154: result: $with_hashmap" >&5
    1696018057 echo "${ECHO_T}$with_hashmap" >&6
    1696118058 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
     
    1696518062 ###   use option --enable-colorfgbg to turn on use of $COLORFGBG environment
    1696618063-echo "$as_me:8952: checking if you want colorfgbg code" >&5
    16967 +echo "$as_me:9085: checking if you want colorfgbg code" >&5
     18064+echo "$as_me:9161: checking if you want colorfgbg code" >&5
    1696818065 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
    1696918066 
    1697018067 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
    16971 @@ -8959,14 +9092,14 @@
     18068@@ -8959,83 +9168,195 @@
    1697218069 else
    1697318070   with_colorfgbg=no
    1697418071 fi;
    1697518072-echo "$as_me:8962: result: $with_colorfgbg" >&5
    16976 +echo "$as_me:9095: result: $with_colorfgbg" >&5
     18073+echo "$as_me:9171: result: $with_colorfgbg" >&5
    1697718074 echo "${ECHO_T}$with_colorfgbg" >&6
    1697818075 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
     
    1698018077 EOF
    1698118078 
    16982  ###   use option --enable-ext-colors to turn on use of colors beyond 16.
     18079-###   use option --enable-ext-colors to turn on use of colors beyond 16.
    1698318080-echo "$as_me:8969: checking if you want to use experimental extended colors" >&5
    16984 +echo "$as_me:9102: checking if you want to use experimental extended colors" >&5
    16985  echo $ECHO_N "checking if you want to use experimental extended colors... $ECHO_C" >&6
    16986  
    16987  # Check whether --enable-ext-colors or --disable-ext-colors was given.
    16988 @@ -8976,13 +9109,14 @@
    16989  else
    16990    with_ext_colors=no
    16991  fi;
     18081-echo $ECHO_N "checking if you want to use experimental extended colors... $ECHO_C" >&6
     18082+# This is still experimental (20080329), but should ultimately be moved to
     18083+# the script-block --with-normal, etc.
     18084 
     18085-# Check whether --enable-ext-colors or --disable-ext-colors was given.
     18086-if test "${enable_ext_colors+set}" = set; then
     18087-  enableval="$enable_ext_colors"
     18088-  with_ext_colors=$enableval
     18089-else
     18090-  with_ext_colors=no
     18091-fi;
    1699218092-echo "$as_me:8979: result: $with_ext_colors" >&5
    16993 +echo "$as_me:9112: result: $with_ext_colors" >&5
    16994  echo "${ECHO_T}$with_ext_colors" >&6
    16995  NCURSES_EXT_COLORS=0
    16996  if test "$with_ext_colors" = yes ; then
    16997         if test "$with_widec" != yes ; then
     18093-echo "${ECHO_T}$with_ext_colors" >&6
     18094-NCURSES_EXT_COLORS=0
     18095-if test "$with_ext_colors" = yes ; then
     18096-       if test "$with_widec" != yes ; then
    1699818097-               { echo "$as_me:8984: WARNING: This option applies only to wide-character library" >&5
    1699918098-echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
    17000 +               { { echo "$as_me:9117: error: This option applies only to wide-character library" >&5
    17001 +echo "$as_me: error: This option applies only to wide-character library" >&2;}
     18099-       else
     18100-               # cannot be ABI 5 since it changes sizeof(cchar_t)
     18101+echo "$as_me:9180: checking if you want to link with the pthread library" >&5
     18102+echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
     18103 
     18104-if test "${with_abi_version+set}" != set; then
     18105-       case $cf_cv_rel_version in
     18106-       5.*)
     18107-               cf_cv_rel_version=6.0
     18108-               cf_cv_abi_version=6
     18109-               { echo "$as_me:8994: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
     18110-echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
     18111-               ;;
     18112-       esac
     18113+# Check whether --with-pthread or --without-pthread was given.
     18114+if test "${with_pthread+set}" = set; then
     18115+  withval="$with_pthread"
     18116+  with_pthread=$withval
     18117+else
     18118+  with_pthread=no
     18119+fi;
     18120+echo "$as_me:9190: result: $with_pthread" >&5
     18121+echo "${ECHO_T}$with_pthread" >&6
     18122+
     18123+if test "$with_pthread" != no ; then
     18124+    echo "$as_me:9194: checking for pthread.h" >&5
     18125+echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
     18126+if test "${ac_cv_header_pthread_h+set}" = set; then
     18127+  echo $ECHO_N "(cached) $ECHO_C" >&6
     18128+else
     18129+  cat >conftest.$ac_ext <<_ACEOF
     18130+#line 9200 "configure"
     18131+#include "confdefs.h"
     18132+#include <pthread.h>
     18133+_ACEOF
     18134+if { (eval echo "$as_me:9204: \"$ac_cpp conftest.$ac_ext\"") >&5
     18135+  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     18136+  ac_status=$?
     18137+  egrep -v '^ *\+' conftest.er1 >conftest.err
     18138+  rm -f conftest.er1
     18139+  cat conftest.err >&5
     18140+  echo "$as_me:9210: \$? = $ac_status" >&5
     18141+  (exit $ac_status); } >/dev/null; then
     18142+  if test -s conftest.err; then
     18143+    ac_cpp_err=$ac_c_preproc_warn_flag
     18144+  else
     18145+    ac_cpp_err=
     18146+  fi
     18147+else
     18148+  ac_cpp_err=yes
     18149+fi
     18150+if test -z "$ac_cpp_err"; then
     18151+  ac_cv_header_pthread_h=yes
     18152+else
     18153+  echo "$as_me: failed program was:" >&5
     18154+  cat conftest.$ac_ext >&5
     18155+  ac_cv_header_pthread_h=no
     18156+fi
     18157+rm -f conftest.err conftest.$ac_ext
     18158 fi
     18159+echo "$as_me:9229: result: $ac_cv_header_pthread_h" >&5
     18160+echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
     18161+if test $ac_cv_header_pthread_h = yes; then
     18162 
     18163-       fi
     18164-       NCURSES_EXT_COLORS=1
     18165-       cat >>confdefs.h <<\EOF
     18166-#define NCURSES_EXT_COLORS 1
     18167+        cat >>confdefs.h <<\EOF
     18168+#define HAVE_PTHREADS_H 1
     18169 EOF
     18170 
     18171+        echo "$as_me:9237: checking for pthread_create in -lpthread" >&5
     18172+echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
     18173+if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
     18174+  echo $ECHO_N "(cached) $ECHO_C" >&6
     18175+else
     18176+  ac_check_lib_save_LIBS=$LIBS
     18177+LIBS="-lpthread  $LIBS"
     18178+cat >conftest.$ac_ext <<_ACEOF
     18179+#line 9245 "configure"
     18180+#include "confdefs.h"
     18181+
     18182+/* Override any gcc2 internal prototype to avoid an error.  */
     18183+#ifdef __cplusplus
     18184+extern "C"
     18185+#endif
     18186+/* We use char because int might match the return type of a gcc2
     18187+   builtin and then its argument prototype would still apply.  */
     18188+char pthread_create ();
     18189+int
     18190+main ()
     18191+{
     18192+pthread_create ();
     18193+  ;
     18194+  return 0;
     18195+}
     18196+_ACEOF
     18197+rm -f conftest.$ac_objext conftest$ac_exeext
     18198+if { (eval echo "$as_me:9264: \"$ac_link\"") >&5
     18199+  (eval $ac_link) 2>&5
     18200+  ac_status=$?
     18201+  echo "$as_me:9267: \$? = $ac_status" >&5
     18202+  (exit $ac_status); } &&
     18203+         { ac_try='test -s conftest$ac_exeext'
     18204+  { (eval echo "$as_me:9270: \"$ac_try\"") >&5
     18205+  (eval $ac_try) 2>&5
     18206+  ac_status=$?
     18207+  echo "$as_me:9273: \$? = $ac_status" >&5
     18208+  (exit $ac_status); }; }; then
     18209+  ac_cv_lib_pthread_pthread_create=yes
     18210+else
     18211+  echo "$as_me: failed program was:" >&5
     18212+cat conftest.$ac_ext >&5
     18213+ac_cv_lib_pthread_pthread_create=no
     18214+fi
     18215+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     18216+LIBS=$ac_check_lib_save_LIBS
     18217 fi
     18218+echo "$as_me:9284: result: $ac_cv_lib_pthread_pthread_create" >&5
     18219+echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
     18220+if test $ac_cv_lib_pthread_pthread_create = yes; then
     18221 
     18222-###   use option --enable-ext-mouse to modify coding to support 5-button mice
     18223-echo "$as_me:9009: checking if you want to use experimental extended mouse encoding" >&5
     18224-echo $ECHO_N "checking if you want to use experimental extended mouse encoding... $ECHO_C" >&6
     18225+            LIBS="-lpthread $LIBS"
     18226+            cat >>confdefs.h <<\EOF
     18227+#define HAVE_LIBPTHREADS 1
     18228+EOF
     18229+
     18230+            with_pthread=yes
     18231 
     18232-# Check whether --enable-ext-mouse or --disable-ext-mouse was given.
     18233-if test "${enable_ext_mouse+set}" = set; then
     18234-  enableval="$enable_ext_mouse"
     18235-  with_ext_mouse=$enableval
     18236 else
     18237-  with_ext_mouse=no
     18238-fi;
     18239-echo "$as_me:9019: result: $with_ext_mouse" >&5
     18240-echo "${ECHO_T}$with_ext_mouse" >&6
     18241-NCURSES_MOUSE_VERSION=1
     18242-if test "$with_ext_mouse" = yes ; then
     18243-       NCURSES_MOUSE_VERSION=2
     18244+
     18245+            { { echo "$as_me:9297: error: Cannot link with pthread library" >&5
     18246+echo "$as_me: error: Cannot link with pthread library" >&2;}
    1700218247+   { (exit 1); exit 1; }; }
    17003         else
    17004                 # cannot be ABI 5 since it changes sizeof(cchar_t)
    17005  
    17006 @@ -8991,7 +9125,7 @@
    17007         5.*)
    17008                 cf_cv_rel_version=6.0
    17009                 cf_cv_abi_version=6
    17010 -               { echo "$as_me:8994: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
    17011 +               { echo "$as_me:9128: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
    17012  echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
    17013                 ;;
    17014         esac
    17015 @@ -9006,7 +9140,7 @@
    17016  fi
    17017  
    17018  ###   use option --enable-ext-mouse to modify coding to support 5-button mice
    17019 -echo "$as_me:9009: checking if you want to use experimental extended mouse encoding" >&5
    17020 +echo "$as_me:9143: checking if you want to use experimental extended mouse encoding" >&5
    17021  echo $ECHO_N "checking if you want to use experimental extended mouse encoding... $ECHO_C" >&6
    17022  
    17023  # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
    17024 @@ -9016,7 +9150,7 @@
    17025  else
    17026    with_ext_mouse=no
    17027  fi;
    17028 -echo "$as_me:9019: result: $with_ext_mouse" >&5
    17029 +echo "$as_me:9153: result: $with_ext_mouse" >&5
    17030  echo "${ECHO_T}$with_ext_mouse" >&6
    17031  NCURSES_MOUSE_VERSION=1
    17032  if test "$with_ext_mouse" = yes ; then
    17033 @@ -9027,7 +9161,7 @@
    17034         5.*)
    17035                 cf_cv_rel_version=6.0
    17036                 cf_cv_abi_version=6
    17037 -               { echo "$as_me:9030: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
    17038 +               { echo "$as_me:9164: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
    17039  echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
    17040                 ;;
    17041         esac
    17042 @@ -9035,7 +9169,49 @@
    17043  
    17044  fi
    17045  
    17046 -echo "$as_me:9038: checking if you want experimental safe-sprintf code" >&5
     18248+
     18249+fi
     18250+
     18251+fi
     18252+
     18253+fi
     18254+
     18255+if test "$with_pthread" = "yes" ; then
     18256+    cat >>confdefs.h <<\EOF
     18257+#define USE_PTHREADS 1
     18258+EOF
     18259+
     18260+    enable_reentrant=yes
     18261+fi
     18262+
    1704718263+# Reentrant code has to be opaque; there's little advantage to making ncurses
    17048 +# opaque outside of that, so there is no --enable-opaque option.
    17049 +echo "$as_me:9174: checking if you want experimental reentrant code" >&5
     18264+# opaque outside of that, so there is no --enable-opaque option.  We can use
     18265+# this option without --with-pthreads, but this will be always set for
     18266+# pthreads.
     18267+echo "$as_me:9319: checking if you want experimental reentrant code" >&5
    1705018268+echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
    1705118269+
     
    1705718275+  with_reentrant=no
    1705818276+fi;
    17059 +echo "$as_me:9184: result: $with_reentrant" >&5
     18277+echo "$as_me:9329: result: $with_reentrant" >&5
    1706018278+echo "${ECHO_T}$with_reentrant" >&6
    1706118279+if test "$with_reentrant" = yes ; then
     
    1706818286+#define USE_REENTRANT 1
    1706918287+EOF
    17070 +
    17071 +if test "${with_abi_version+set}" != set; then
    17072 +       case $cf_cv_rel_version in
    17073 +       5.*)
    17074 +               cf_cv_rel_version=6.0
    17075 +               cf_cv_abi_version=6
    17076 +               { echo "$as_me:9201: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
    17077 +echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
    17078 +               ;;
    17079 +       esac
    17080 +fi
    17081 +
     18288 
     18289 if test "${with_abi_version+set}" != set; then
     18290        case $cf_cv_rel_version in
     18291        5.*)
     18292                cf_cv_rel_version=6.0
     18293                cf_cv_abi_version=6
     18294-               { echo "$as_me:9030: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
     18295+               { echo "$as_me:9346: WARNING: Overriding ABI version to $cf_cv_abi_version" >&5
     18296 echo "$as_me: WARNING: Overriding ABI version to $cf_cv_abi_version" >&2;}
     18297                ;;
     18298        esac
     18299 fi
     18300 
    1708218301+else
    1708318302+       cf_cv_enable_reentrant=0
     
    1708518304+       NCURSES_OPAQUE=0
    1708618305+       NCURSES_SIZE_T=short
    17087 +fi
    17088 +
    17089 +echo "$as_me:9214: checking if you want experimental safe-sprintf code" >&5
     18306 fi
     18307 
     18308-echo "$as_me:9038: checking if you want experimental safe-sprintf code" >&5
     18309+echo "$as_me:9359: checking if you want experimental safe-sprintf code" >&5
    1709018310 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
    1709118311 
    1709218312 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
    17093 @@ -9045,7 +9221,7 @@
     18313@@ -9045,7 +9366,7 @@
    1709418314 else
    1709518315   with_safe_sprintf=no
    1709618316 fi;
    1709718317-echo "$as_me:9048: result: $with_safe_sprintf" >&5
    17098 +echo "$as_me:9224: result: $with_safe_sprintf" >&5
     18318+echo "$as_me:9369: result: $with_safe_sprintf" >&5
    1709918319 echo "${ECHO_T}$with_safe_sprintf" >&6
    1710018320 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
    1710118321 #define USE_SAFE_SPRINTF 1
    17102 @@ -9054,7 +9230,7 @@
     18322@@ -9054,7 +9375,7 @@
    1710318323 ###   use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
    1710418324 # when hashmap is used scroll hints are useless
    1710518325 if test "$with_hashmap" = no ; then
    1710618326-echo "$as_me:9057: checking if you want to experiment without scrolling-hints code" >&5
    17107 +echo "$as_me:9233: checking if you want to experiment without scrolling-hints code" >&5
     18327+echo "$as_me:9378: checking if you want to experiment without scrolling-hints code" >&5
    1710818328 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
    1710918329 
    1711018330 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
    17111 @@ -9064,7 +9240,7 @@
     18331@@ -9064,7 +9385,7 @@
    1711218332 else
    1711318333   with_scroll_hints=yes
    1711418334 fi;
    1711518335-echo "$as_me:9067: result: $with_scroll_hints" >&5
    17116 +echo "$as_me:9243: result: $with_scroll_hints" >&5
     18336+echo "$as_me:9388: result: $with_scroll_hints" >&5
    1711718337 echo "${ECHO_T}$with_scroll_hints" >&6
    1711818338 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
    1711918339 #define USE_SCROLL_HINTS 1
    17120 @@ -9072,7 +9248,7 @@
     18340@@ -9072,7 +9393,7 @@
    1712118341 
    1712218342 fi
    1712318343 
    1712418344-echo "$as_me:9075: checking if you want experimental wgetch-events code" >&5
    17125 +echo "$as_me:9251: checking if you want experimental wgetch-events code" >&5
     18345+echo "$as_me:9396: checking if you want experimental wgetch-events code" >&5
    1712618346 echo $ECHO_N "checking if you want experimental wgetch-events code... $ECHO_C" >&6
    1712718347 
    1712818348 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
    17129 @@ -9082,7 +9258,7 @@
     18349@@ -9082,7 +9403,7 @@
    1713018350 else
    1713118351   with_wgetch_events=no
    1713218352 fi;
    1713318353-echo "$as_me:9085: result: $with_wgetch_events" >&5
    17134 +echo "$as_me:9261: result: $with_wgetch_events" >&5
     18354+echo "$as_me:9406: result: $with_wgetch_events" >&5
    1713518355 echo "${ECHO_T}$with_wgetch_events" >&6
    1713618356 test "$with_wgetch_events" = yes && cat >>confdefs.h <<\EOF
    1713718357 #define NCURSES_WGETCH_EVENTS 1
    17138 @@ -9091,7 +9267,7 @@
     18358@@ -9091,7 +9412,7 @@
    1713918359 ###############################################################################
    1714018360 
    1714118361 ###    use option --disable-echo to suppress full display compiling commands
    1714218362-echo "$as_me:9094: checking if you want to display full commands during build" >&5
    17143 +echo "$as_me:9270: checking if you want to display full commands during build" >&5
     18363+echo "$as_me:9415: checking if you want to display full commands during build" >&5
    1714418364 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
    1714518365 
    1714618366 # Check whether --enable-echo or --disable-echo was given.
    17147 @@ -9106,12 +9282,13 @@
     18367@@ -9106,12 +9427,13 @@
    1714818368 else
    1714918369        ECHO_LINK='@ echo linking $@ ... ;'
     
    1715218372 fi
    1715318373-echo "$as_me:9110: result: $with_echo" >&5
    17154 +echo "$as_me:9287: result: $with_echo" >&5
     18374+echo "$as_me:9432: result: $with_echo" >&5
    1715518375 echo "${ECHO_T}$with_echo" >&6
    1715618376 
    1715718377 ###    use option --enable-warnings to turn on all gcc warnings
    1715818378-echo "$as_me:9114: checking if you want to see compiler warnings" >&5
    17159 +echo "$as_me:9291: checking if you want to see compiler warnings" >&5
     18379+echo "$as_me:9436: checking if you want to see compiler warnings" >&5
    1716018380 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
    1716118381 
    1716218382 # Check whether --enable-warnings or --disable-warnings was given.
    17163 @@ -9119,10 +9296,10 @@
     18383@@ -9119,10 +9441,10 @@
    1716418384   enableval="$enable_warnings"
    1716518385   with_warnings=$enableval
    1716618386 fi;
    1716718387-echo "$as_me:9122: result: $with_warnings" >&5
    17168 +echo "$as_me:9299: result: $with_warnings" >&5
     18388+echo "$as_me:9444: result: $with_warnings" >&5
    1716918389 echo "${ECHO_T}$with_warnings" >&6
    1717018390 
     
    1717418394 
    1717518395 INTEL_COMPILER=no
    17176 @@ -9130,12 +9307,12 @@
     18396@@ -9130,12 +9452,12 @@
    1717718397 if test "$GCC" = yes ; then
    1717818398        case $host_os in
    1717918399        linux*|gnu*)
    1718018400-               echo "$as_me:9133: checking if this is really Intel C compiler" >&5
    17181 +               echo "$as_me:9310: checking if this is really Intel C compiler" >&5
     18401+               echo "$as_me:9455: checking if this is really Intel C compiler" >&5
    1718218402 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
    1718318403                cf_save_CFLAGS="$CFLAGS"
     
    1718518405                cat >conftest.$ac_ext <<_ACEOF
    1718618406-#line 9138 "configure"
    17187 +#line 9315 "configure"
     18407+#line 9460 "configure"
    1718818408 #include "confdefs.h"
    1718918409 
    1719018410 int
    17191 @@ -9152,16 +9329,16 @@
     18411@@ -9152,16 +9474,16 @@
    1719218412 }
    1719318413 _ACEOF
    1719418414 rm -f conftest.$ac_objext
    1719518415-if { (eval echo "$as_me:9155: \"$ac_compile\"") >&5
    17196 +if { (eval echo "$as_me:9332: \"$ac_compile\"") >&5
     18416+if { (eval echo "$as_me:9477: \"$ac_compile\"") >&5
    1719718417   (eval $ac_compile) 2>&5
    1719818418   ac_status=$?
    1719918419-  echo "$as_me:9158: \$? = $ac_status" >&5
    17200 +  echo "$as_me:9335: \$? = $ac_status" >&5
     18420+  echo "$as_me:9480: \$? = $ac_status" >&5
    1720118421   (exit $ac_status); } &&
    1720218422          { ac_try='test -s conftest.$ac_objext'
    1720318423-  { (eval echo "$as_me:9161: \"$ac_try\"") >&5
    17204 +  { (eval echo "$as_me:9338: \"$ac_try\"") >&5
     18424+  { (eval echo "$as_me:9483: \"$ac_try\"") >&5
    1720518425   (eval $ac_try) 2>&5
    1720618426   ac_status=$?
    1720718427-  echo "$as_me:9164: \$? = $ac_status" >&5
    17208 +  echo "$as_me:9341: \$? = $ac_status" >&5
     18428+  echo "$as_me:9486: \$? = $ac_status" >&5
    1720918429   (exit $ac_status); }; }; then
    1721018430   INTEL_COMPILER=yes
    1721118431 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
    17212 @@ -9172,14 +9349,14 @@
     18432@@ -9172,14 +9494,14 @@
    1721318433 fi
    1721418434 rm -f conftest.$ac_objext conftest.$ac_ext
    1721518435                CFLAGS="$cf_save_CFLAGS"
    1721618436-               echo "$as_me:9175: result: $INTEL_COMPILER" >&5
    17217 +               echo "$as_me:9352: result: $INTEL_COMPILER" >&5
     18437+               echo "$as_me:9497: result: $INTEL_COMPILER" >&5
    1721818438 echo "${ECHO_T}$INTEL_COMPILER" >&6
    1721918439                ;;
     
    1722318443 cat > conftest.$ac_ext <<EOF
    1722418444-#line 9182 "configure"
    17225 +#line 9359 "${as_me-configure}"
     18445+#line 9504 "${as_me-configure}"
    1722618446 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
    1722718447 EOF
    1722818448 
    17229 @@ -9197,11 +9374,11 @@
     18449@@ -9197,11 +9519,11 @@
    1723018450 # remark #981: operands are evaluated in unspecified order
    1723118451 # warning #269: invalid format string conversion
    1723218452 
    1723318453-       { echo "$as_me:9200: checking for $CC warning options..." >&5
    17234 +       { echo "$as_me:9377: checking for $CC warning options..." >&5
     18454+       { echo "$as_me:9522: checking for $CC warning options..." >&5
    1723518455 echo "$as_me: checking for $CC warning options..." >&6;}
    1723618456        cf_save_CFLAGS="$CFLAGS"
     
    1724118461                wd1682 \
    1724218462                wd1683 \
    17243 @@ -9214,12 +9391,12 @@
     18463@@ -9214,12 +9536,12 @@
    1724418464                wd981
    1724518465        do
    1724618466                CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
    1724718467-               if { (eval echo "$as_me:9217: \"$ac_compile\"") >&5
    17248 +               if { (eval echo "$as_me:9394: \"$ac_compile\"") >&5
     18468+               if { (eval echo "$as_me:9539: \"$ac_compile\"") >&5
    1724918469   (eval $ac_compile) 2>&5
    1725018470   ac_status=$?
    1725118471-  echo "$as_me:9220: \$? = $ac_status" >&5
    17252 +  echo "$as_me:9397: \$? = $ac_status" >&5
     18472+  echo "$as_me:9542: \$? = $ac_status" >&5
    1725318473   (exit $ac_status); }; then
    1725418474-                       test -n "$verbose" && echo "$as_me:9222: result: ... -$cf_opt" >&5
    17255 +                       test -n "$verbose" && echo "$as_me:9399: result: ... -$cf_opt" >&5
     18475+                       test -n "$verbose" && echo "$as_me:9544: result: ... -$cf_opt" >&5
    1725618476 echo "${ECHO_T}... -$cf_opt" >&6
    1725718477                        EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
    1725818478                fi
    17259 @@ -9228,7 +9405,7 @@
     18479@@ -9228,7 +9550,7 @@
    1726018480 
    1726118481 elif test "$GCC" = yes
    1726218482 then
    1726318483-       { echo "$as_me:9231: checking for $CC warning options..." >&5
    17264 +       { echo "$as_me:9408: checking for $CC warning options..." >&5
     18484+       { echo "$as_me:9553: checking for $CC warning options..." >&5
    1726518485 echo "$as_me: checking for $CC warning options..." >&6;}
    1726618486        cf_save_CFLAGS="$CFLAGS"
    1726718487        EXTRA_CFLAGS="-W -Wall"
    17268 @@ -9245,15 +9422,15 @@
     18488@@ -9245,15 +9567,15 @@
    1726918489                Wpointer-arith \
    1727018490                Wshadow \
     
    1727518495                CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
    1727618496-               if { (eval echo "$as_me:9251: \"$ac_compile\"") >&5
    17277 +               if { (eval echo "$as_me:9428: \"$ac_compile\"") >&5
     18497+               if { (eval echo "$as_me:9573: \"$ac_compile\"") >&5
    1727818498   (eval $ac_compile) 2>&5
    1727918499   ac_status=$?
    1728018500-  echo "$as_me:9254: \$? = $ac_status" >&5
    17281 +  echo "$as_me:9431: \$? = $ac_status" >&5
     18501+  echo "$as_me:9576: \$? = $ac_status" >&5
    1728218502   (exit $ac_status); }; then
    1728318503-                       test -n "$verbose" && echo "$as_me:9256: result: ... -$cf_opt" >&5
    17284 +                       test -n "$verbose" && echo "$as_me:9433: result: ... -$cf_opt" >&5
     18504+                       test -n "$verbose" && echo "$as_me:9578: result: ... -$cf_opt" >&5
    1728518505 echo "${ECHO_T}... -$cf_opt" >&6
    1728618506                        case $cf_opt in #(vi
    1728718507                        Wcast-qual) #(vi
    17288 @@ -9264,6 +9441,8 @@
     18508@@ -9264,6 +9586,8 @@
    1728918509                                3.3*)
    1729018510                                        test -n "$verbose" && echo "    feature is broken in gcc $GCC_VERSION" 1>&6
    1729118511 
    17292 +echo "${as_me-configure}:9444: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
     18512+echo "${as_me-configure}:9589: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
    1729318513+
    1729418514                                        continue;;
    1729518515                                esac
    1729618516                                ;;
    17297 @@ -9282,12 +9461,12 @@
     18517@@ -9282,12 +9606,12 @@
    1729818518 if test "$GCC" = yes ; then
    1729918519        case $host_os in
    1730018520        linux*|gnu*)
    1730118521-               echo "$as_me:9285: checking if this is really Intel C++ compiler" >&5
    17302 +               echo "$as_me:9464: checking if this is really Intel C++ compiler" >&5
     18522+               echo "$as_me:9609: checking if this is really Intel C++ compiler" >&5
    1730318523 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
    1730418524                cf_save_CFLAGS="$CXXFLAGS"
     
    1730618526                cat >conftest.$ac_ext <<_ACEOF
    1730718527-#line 9290 "configure"
    17308 +#line 9469 "configure"
     18528+#line 9614 "configure"
    1730918529 #include "confdefs.h"
    1731018530 
    1731118531 int
    17312 @@ -9304,16 +9483,16 @@
     18532@@ -9304,16 +9628,16 @@
    1731318533 }
    1731418534 _ACEOF
    1731518535 rm -f conftest.$ac_objext
    1731618536-if { (eval echo "$as_me:9307: \"$ac_compile\"") >&5
    17317 +if { (eval echo "$as_me:9486: \"$ac_compile\"") >&5
     18537+if { (eval echo "$as_me:9631: \"$ac_compile\"") >&5
    1731818538   (eval $ac_compile) 2>&5
    1731918539   ac_status=$?
    1732018540-  echo "$as_me:9310: \$? = $ac_status" >&5
    17321 +  echo "$as_me:9489: \$? = $ac_status" >&5
     18541+  echo "$as_me:9634: \$? = $ac_status" >&5
    1732218542   (exit $ac_status); } &&
    1732318543          { ac_try='test -s conftest.$ac_objext'
    1732418544-  { (eval echo "$as_me:9313: \"$ac_try\"") >&5
    17325 +  { (eval echo "$as_me:9492: \"$ac_try\"") >&5
     18545+  { (eval echo "$as_me:9637: \"$ac_try\"") >&5
    1732618546   (eval $ac_try) 2>&5
    1732718547   ac_status=$?
    1732818548-  echo "$as_me:9316: \$? = $ac_status" >&5
    17329 +  echo "$as_me:9495: \$? = $ac_status" >&5
     18549+  echo "$as_me:9640: \$? = $ac_status" >&5
    1733018550   (exit $ac_status); }; }; then
    1733118551   INTEL_CPLUSPLUS=yes
    1733218552 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
    17333 @@ -9324,7 +9503,7 @@
     18553@@ -9324,7 +9648,7 @@
    1733418554 fi
    1733518555 rm -f conftest.$ac_objext conftest.$ac_ext
    1733618556                CXXFLAGS="$cf_save_CFLAGS"
    1733718557-               echo "$as_me:9327: result: $INTEL_CPLUSPLUS" >&5
    17338 +               echo "$as_me:9506: result: $INTEL_CPLUSPLUS" >&5
     18558+               echo "$as_me:9651: result: $INTEL_CPLUSPLUS" >&5
    1733918559 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
    1734018560                ;;
    1734118561        esac
    17342 @@ -9338,7 +9517,7 @@
     18562@@ -9338,7 +9662,7 @@
    1734318563 ac_main_return=return
    1734418564 
    1734518565 cat > conftest.$ac_ext <<EOF
    1734618566-#line 9341 "configure"
    17347 +#line 9520 "configure"
     18567+#line 9665 "configure"
    1734818568 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
    1734918569 EOF
    1735018570 
    17351 @@ -9356,7 +9535,7 @@
     18571@@ -9356,7 +9680,7 @@
    1735218572 # remark #981: operands are evaluated in unspecified order
    1735318573 # warning #269: invalid format string conversion
    1735418574 
    1735518575-       { echo "$as_me:9359: checking for $CC warning options..." >&5
    17356 +       { echo "$as_me:9538: checking for $CC warning options..." >&5
     18576+       { echo "$as_me:9683: checking for $CC warning options..." >&5
    1735718577 echo "$as_me: checking for $CC warning options..." >&6;}
    1735818578        cf_save_CXXFLAGS="$CXXFLAGS"
    1735918579        EXTRA_CXXFLAGS="-Wall"
    17360 @@ -9373,12 +9552,12 @@
     18580@@ -9373,12 +9697,12 @@
    1736118581                wd981
    1736218582        do
    1736318583                CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
    1736418584-               if { (eval echo "$as_me:9376: \"$ac_compile\"") >&5
    17365 +               if { (eval echo "$as_me:9555: \"$ac_compile\"") >&5
     18585+               if { (eval echo "$as_me:9700: \"$ac_compile\"") >&5
    1736618586   (eval $ac_compile) 2>&5
    1736718587   ac_status=$?
    1736818588-  echo "$as_me:9379: \$? = $ac_status" >&5
    17369 +  echo "$as_me:9558: \$? = $ac_status" >&5
     18589+  echo "$as_me:9703: \$? = $ac_status" >&5
    1737018590   (exit $ac_status); }; then
    1737118591-                       test -n "$verbose" && echo "$as_me:9381: result: ... -$cf_opt" >&5
    17372 +                       test -n "$verbose" && echo "$as_me:9560: result: ... -$cf_opt" >&5
     18592+                       test -n "$verbose" && echo "$as_me:9705: result: ... -$cf_opt" >&5
    1737318593 echo "${ECHO_T}... -$cf_opt" >&6
    1737418594                        EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
    1737518595                fi
    17376 @@ -9387,7 +9566,7 @@
     18596@@ -9387,7 +9711,7 @@
    1737718597 
    1737818598 elif test "$GXX" = yes
    1737918599 then
    1738018600-       { echo "$as_me:9390: checking for $CXX warning options..." >&5
    17381 +       { echo "$as_me:9569: checking for $CXX warning options..." >&5
     18601+       { echo "$as_me:9714: checking for $CXX warning options..." >&5
    1738218602 echo "$as_me: checking for $CXX warning options..." >&6;}
    1738318603        cf_save_CXXFLAGS="$CXXFLAGS"
    1738418604        EXTRA_CXXFLAGS="-W -Wall"
    17385 @@ -9416,16 +9595,16 @@
     18605@@ -9416,16 +9740,16 @@
    1738618606                Wundef $cf_gxx_extra_warnings Wno-unused
    1738718607        do
    1738818608                CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
    1738918609-               if { (eval echo "$as_me:9419: \"$ac_compile\"") >&5
    17390 +               if { (eval echo "$as_me:9598: \"$ac_compile\"") >&5
     18610+               if { (eval echo "$as_me:9743: \"$ac_compile\"") >&5
    1739118611   (eval $ac_compile) 2>&5
    1739218612   ac_status=$?
    1739318613-  echo "$as_me:9422: \$? = $ac_status" >&5
    17394 +  echo "$as_me:9601: \$? = $ac_status" >&5
     18614+  echo "$as_me:9746: \$? = $ac_status" >&5
    1739518615   (exit $ac_status); }; then
    1739618616-                       test -n "$verbose" && echo "$as_me:9424: result: ... -$cf_opt" >&5
    17397 +                       test -n "$verbose" && echo "$as_me:9603: result: ... -$cf_opt" >&5
     18617+                       test -n "$verbose" && echo "$as_me:9748: result: ... -$cf_opt" >&5
    1739818618 echo "${ECHO_T}... -$cf_opt" >&6
    1739918619                        EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
    1740018620                else
    1740118621-                       test -n "$verbose" && echo "$as_me:9428: result: ... no -$cf_opt" >&5
    17402 +                       test -n "$verbose" && echo "$as_me:9607: result: ... no -$cf_opt" >&5
     18622+                       test -n "$verbose" && echo "$as_me:9752: result: ... no -$cf_opt" >&5
    1740318623 echo "${ECHO_T}... no -$cf_opt" >&6
    1740418624                fi
    1740518625        done
    17406 @@ -9461,10 +9640,10 @@
     18626@@ -9461,10 +9785,10 @@
    1740718627 EOF
    1740818628 if test "$GCC" = yes
    1740918629 then
    1741018630-       { echo "$as_me:9464: checking for $CC __attribute__ directives..." >&5
    17411 +       { echo "$as_me:9643: checking for $CC __attribute__ directives..." >&5
     18631+       { echo "$as_me:9788: checking for $CC __attribute__ directives..." >&5
    1741218632 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
    1741318633 cat > conftest.$ac_ext <<EOF
    1741418634-#line 9467 "configure"
    17415 +#line 9646 "${as_me-configure}"
     18635+#line 9791 "${as_me-configure}"
    1741618636 #include "confdefs.h"
    1741718637 #include "conftest.h"
    1741818638 #include "conftest.i"
    17419 @@ -9502,12 +9681,12 @@
     18639@@ -9502,12 +9826,12 @@
    1742018640 EOF
    1742118641                        ;;
    1742218642                esac
    1742318643-               if { (eval echo "$as_me:9505: \"$ac_compile\"") >&5
    17424 +               if { (eval echo "$as_me:9684: \"$ac_compile\"") >&5
     18644+               if { (eval echo "$as_me:9829: \"$ac_compile\"") >&5
    1742518645   (eval $ac_compile) 2>&5
    1742618646   ac_status=$?
    1742718647-  echo "$as_me:9508: \$? = $ac_status" >&5
    17428 +  echo "$as_me:9687: \$? = $ac_status" >&5
     18648+  echo "$as_me:9832: \$? = $ac_status" >&5
    1742918649   (exit $ac_status); }; then
    1743018650-                       test -n "$verbose" && echo "$as_me:9510: result: ... $cf_attribute" >&5
    17431 +                       test -n "$verbose" && echo "$as_me:9689: result: ... $cf_attribute" >&5
     18651+                       test -n "$verbose" && echo "$as_me:9834: result: ... $cf_attribute" >&5
    1743218652 echo "${ECHO_T}... $cf_attribute" >&6
    1743318653                        cat conftest.h >>confdefs.h
    1743418654                fi
    17435 @@ -9519,7 +9698,7 @@
     18655@@ -9519,7 +9843,7 @@
    1743618656 fi
    1743718657 
    1743818658 ###    use option --enable-assertions to turn on generation of assertion code
    1743918659-echo "$as_me:9522: checking if you want to enable runtime assertions" >&5
    17440 +echo "$as_me:9701: checking if you want to enable runtime assertions" >&5
     18660+echo "$as_me:9846: checking if you want to enable runtime assertions" >&5
    1744118661 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
    1744218662 
    1744318663 # Check whether --enable-assertions or --disable-assertions was given.
    17444 @@ -9529,7 +9708,7 @@
     18664@@ -9529,7 +9853,7 @@
    1744518665 else
    1744618666   with_assertions=no
    1744718667 fi;
    1744818668-echo "$as_me:9532: result: $with_assertions" >&5
    17449 +echo "$as_me:9711: result: $with_assertions" >&5
     18669+echo "$as_me:9856: result: $with_assertions" >&5
    1745018670 echo "${ECHO_T}$with_assertions" >&6
    1745118671 if test -n "$GCC"
    1745218672 then
    17453 @@ -9547,7 +9726,7 @@
     18673@@ -9547,7 +9871,7 @@
    1745418674 
    1745518675 ###    use option --disable-leaks to suppress "permanent" leaks, for testing
    1745618676 
    1745718677-echo "$as_me:9550: checking if you want to use dmalloc for testing" >&5
    17458 +echo "$as_me:9729: checking if you want to use dmalloc for testing" >&5
     18678+echo "$as_me:9874: checking if you want to use dmalloc for testing" >&5
    1745918679 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
    1746018680 
    1746118681 # Check whether --with-dmalloc or --without-dmalloc was given.
    17462 @@ -9563,7 +9742,7 @@
     18682@@ -9563,7 +9887,7 @@
    1746318683 else
    1746418684   with_dmalloc=
    1746518685 fi;
    1746618686-echo "$as_me:9566: result: ${with_dmalloc:-no}" >&5
    17467 +echo "$as_me:9745: result: ${with_dmalloc:-no}" >&5
     18687+echo "$as_me:9890: result: ${with_dmalloc:-no}" >&5
    1746818688 echo "${ECHO_T}${with_dmalloc:-no}" >&6
    1746918689 
    1747018690 case .$with_cflags in #(vi
    17471 @@ -9647,23 +9826,23 @@
     18691@@ -9647,23 +9971,23 @@
    1747218692 esac
    1747318693 
    1747418694 if test "$with_dmalloc" = yes ; then
    1747518695-       echo "$as_me:9650: checking for dmalloc.h" >&5
    17476 +       echo "$as_me:9829: checking for dmalloc.h" >&5
     18696+       echo "$as_me:9974: checking for dmalloc.h" >&5
    1747718697 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
    1747818698 if test "${ac_cv_header_dmalloc_h+set}" = set; then
     
    1748118701   cat >conftest.$ac_ext <<_ACEOF
    1748218702-#line 9656 "configure"
    17483 +#line 9835 "configure"
     18703+#line 9980 "configure"
    1748418704 #include "confdefs.h"
    1748518705 #include <dmalloc.h>
    1748618706 _ACEOF
    1748718707-if { (eval echo "$as_me:9660: \"$ac_cpp conftest.$ac_ext\"") >&5
    17488 +if { (eval echo "$as_me:9839: \"$ac_cpp conftest.$ac_ext\"") >&5
     18708+if { (eval echo "$as_me:9984: \"$ac_cpp conftest.$ac_ext\"") >&5
    1748918709   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    1749018710   ac_status=$?
     
    1749318713   cat conftest.err >&5
    1749418714-  echo "$as_me:9666: \$? = $ac_status" >&5
    17495 +  echo "$as_me:9845: \$? = $ac_status" >&5
     18715+  echo "$as_me:9990: \$? = $ac_status" >&5
    1749618716   (exit $ac_status); } >/dev/null; then
    1749718717   if test -s conftest.err; then
    1749818718     ac_cpp_err=$ac_c_preproc_warn_flag
    17499 @@ -9682,11 +9861,11 @@
     18719@@ -9682,11 +10006,11 @@
    1750018720 fi
    1750118721 rm -f conftest.err conftest.$ac_ext
    1750218722 fi
    1750318723-echo "$as_me:9685: result: $ac_cv_header_dmalloc_h" >&5
    17504 +echo "$as_me:9864: result: $ac_cv_header_dmalloc_h" >&5
     18724+echo "$as_me:10009: result: $ac_cv_header_dmalloc_h" >&5
    1750518725 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
    1750618726 if test $ac_cv_header_dmalloc_h = yes; then
    1750718727 
    1750818728-echo "$as_me:9689: checking for dmalloc_debug in -ldmalloc" >&5
    17509 +echo "$as_me:9868: checking for dmalloc_debug in -ldmalloc" >&5
     18729+echo "$as_me:10013: checking for dmalloc_debug in -ldmalloc" >&5
    1751018730 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
    1751118731 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
    1751218732   echo $ECHO_N "(cached) $ECHO_C" >&6
    17513 @@ -9694,7 +9873,7 @@
     18733@@ -9694,7 +10018,7 @@
    1751418734   ac_check_lib_save_LIBS=$LIBS
    1751518735 LIBS="-ldmalloc  $LIBS"
    1751618736 cat >conftest.$ac_ext <<_ACEOF
    1751718737-#line 9697 "configure"
    17518 +#line 9876 "configure"
     18738+#line 10021 "configure"
    1751918739 #include "confdefs.h"
    1752018740 
    1752118741 /* Override any gcc2 internal prototype to avoid an error.  */
    17522 @@ -9713,16 +9892,16 @@
     18742@@ -9713,16 +10037,16 @@
    1752318743 }
    1752418744 _ACEOF
    1752518745 rm -f conftest.$ac_objext conftest$ac_exeext
    1752618746-if { (eval echo "$as_me:9716: \"$ac_link\"") >&5
    17527 +if { (eval echo "$as_me:9895: \"$ac_link\"") >&5
     18747+if { (eval echo "$as_me:10040: \"$ac_link\"") >&5
    1752818748   (eval $ac_link) 2>&5
    1752918749   ac_status=$?
    1753018750-  echo "$as_me:9719: \$? = $ac_status" >&5
    17531 +  echo "$as_me:9898: \$? = $ac_status" >&5
     18751+  echo "$as_me:10043: \$? = $ac_status" >&5
    1753218752   (exit $ac_status); } &&
    1753318753          { ac_try='test -s conftest$ac_exeext'
    1753418754-  { (eval echo "$as_me:9722: \"$ac_try\"") >&5
    17535 +  { (eval echo "$as_me:9901: \"$ac_try\"") >&5
     18755+  { (eval echo "$as_me:10046: \"$ac_try\"") >&5
    1753618756   (eval $ac_try) 2>&5
    1753718757   ac_status=$?
    1753818758-  echo "$as_me:9725: \$? = $ac_status" >&5
    17539 +  echo "$as_me:9904: \$? = $ac_status" >&5
     18759+  echo "$as_me:10049: \$? = $ac_status" >&5
    1754018760   (exit $ac_status); }; }; then
    1754118761   ac_cv_lib_dmalloc_dmalloc_debug=yes
    1754218762 else
    17543 @@ -9733,7 +9912,7 @@
     18763@@ -9733,7 +10057,7 @@
    1754418764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1754518765 LIBS=$ac_check_lib_save_LIBS
    1754618766 fi
    1754718767-echo "$as_me:9736: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
    17548 +echo "$as_me:9915: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
     18768+echo "$as_me:10060: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
    1754918769 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
    1755018770 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
    1755118771   cat >>confdefs.h <<EOF
    17552 @@ -9748,7 +9927,7 @@
     18772@@ -9748,7 +10072,7 @@
    1755318773 
    1755418774 fi
    1755518775 
    1755618776-echo "$as_me:9751: checking if you want to use dbmalloc for testing" >&5
    17557 +echo "$as_me:9930: checking if you want to use dbmalloc for testing" >&5
     18777+echo "$as_me:10075: checking if you want to use dbmalloc for testing" >&5
    1755818778 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
    1755918779 
    1756018780 # Check whether --with-dbmalloc or --without-dbmalloc was given.
    17561 @@ -9764,7 +9943,7 @@
     18781@@ -9764,7 +10088,7 @@
    1756218782 else
    1756318783   with_dbmalloc=
    1756418784 fi;
    1756518785-echo "$as_me:9767: result: ${with_dbmalloc:-no}" >&5
    17566 +echo "$as_me:9946: result: ${with_dbmalloc:-no}" >&5
     18786+echo "$as_me:10091: result: ${with_dbmalloc:-no}" >&5
    1756718787 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
    1756818788 
    1756918789 case .$with_cflags in #(vi
    17570 @@ -9848,23 +10027,23 @@
     18790@@ -9848,23 +10172,23 @@
    1757118791 esac
    1757218792 
    1757318793 if test "$with_dbmalloc" = yes ; then
    1757418794-       echo "$as_me:9851: checking for dbmalloc.h" >&5
    17575 +       echo "$as_me:10030: checking for dbmalloc.h" >&5
     18795+       echo "$as_me:10175: checking for dbmalloc.h" >&5
    1757618796 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
    1757718797 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
     
    1758018800   cat >conftest.$ac_ext <<_ACEOF
    1758118801-#line 9857 "configure"
    17582 +#line 10036 "configure"
     18802+#line 10181 "configure"
    1758318803 #include "confdefs.h"
    1758418804 #include <dbmalloc.h>
    1758518805 _ACEOF
    1758618806-if { (eval echo "$as_me:9861: \"$ac_cpp conftest.$ac_ext\"") >&5
    17587 +if { (eval echo "$as_me:10040: \"$ac_cpp conftest.$ac_ext\"") >&5
     18807+if { (eval echo "$as_me:10185: \"$ac_cpp conftest.$ac_ext\"") >&5
    1758818808   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    1758918809   ac_status=$?
     
    1759218812   cat conftest.err >&5
    1759318813-  echo "$as_me:9867: \$? = $ac_status" >&5
    17594 +  echo "$as_me:10046: \$? = $ac_status" >&5
     18814+  echo "$as_me:10191: \$? = $ac_status" >&5
    1759518815   (exit $ac_status); } >/dev/null; then
    1759618816   if test -s conftest.err; then
    1759718817     ac_cpp_err=$ac_c_preproc_warn_flag
    17598 @@ -9883,11 +10062,11 @@
     18818@@ -9883,11 +10207,11 @@
    1759918819 fi
    1760018820 rm -f conftest.err conftest.$ac_ext
    1760118821 fi
    1760218822-echo "$as_me:9886: result: $ac_cv_header_dbmalloc_h" >&5
    17603 +echo "$as_me:10065: result: $ac_cv_header_dbmalloc_h" >&5
     18823+echo "$as_me:10210: result: $ac_cv_header_dbmalloc_h" >&5
    1760418824 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
    1760518825 if test $ac_cv_header_dbmalloc_h = yes; then
    1760618826 
    1760718827-echo "$as_me:9890: checking for debug_malloc in -ldbmalloc" >&5
    17608 +echo "$as_me:10069: checking for debug_malloc in -ldbmalloc" >&5
     18828+echo "$as_me:10214: checking for debug_malloc in -ldbmalloc" >&5
    1760918829 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
    1761018830 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
    1761118831   echo $ECHO_N "(cached) $ECHO_C" >&6
    17612 @@ -9895,7 +10074,7 @@
     18832@@ -9895,7 +10219,7 @@
    1761318833   ac_check_lib_save_LIBS=$LIBS
    1761418834 LIBS="-ldbmalloc  $LIBS"
    1761518835 cat >conftest.$ac_ext <<_ACEOF
    1761618836-#line 9898 "configure"
    17617 +#line 10077 "configure"
     18837+#line 10222 "configure"
    1761818838 #include "confdefs.h"
    1761918839 
    1762018840 /* Override any gcc2 internal prototype to avoid an error.  */
    17621 @@ -9914,16 +10093,16 @@
     18841@@ -9914,16 +10238,16 @@
    1762218842 }
    1762318843 _ACEOF
    1762418844 rm -f conftest.$ac_objext conftest$ac_exeext
    1762518845-if { (eval echo "$as_me:9917: \"$ac_link\"") >&5
    17626 +if { (eval echo "$as_me:10096: \"$ac_link\"") >&5
     18846+if { (eval echo "$as_me:10241: \"$ac_link\"") >&5
    1762718847   (eval $ac_link) 2>&5
    1762818848   ac_status=$?
    1762918849-  echo "$as_me:9920: \$? = $ac_status" >&5
    17630 +  echo "$as_me:10099: \$? = $ac_status" >&5
     18850+  echo "$as_me:10244: \$? = $ac_status" >&5
    1763118851   (exit $ac_status); } &&
    1763218852          { ac_try='test -s conftest$ac_exeext'
    1763318853-  { (eval echo "$as_me:9923: \"$ac_try\"") >&5
    17634 +  { (eval echo "$as_me:10102: \"$ac_try\"") >&5
     18854+  { (eval echo "$as_me:10247: \"$ac_try\"") >&5
    1763518855   (eval $ac_try) 2>&5
    1763618856   ac_status=$?
    1763718857-  echo "$as_me:9926: \$? = $ac_status" >&5
    17638 +  echo "$as_me:10105: \$? = $ac_status" >&5
     18858+  echo "$as_me:10250: \$? = $ac_status" >&5
    1763918859   (exit $ac_status); }; }; then
    1764018860   ac_cv_lib_dbmalloc_debug_malloc=yes
    1764118861 else
    17642 @@ -9934,7 +10113,7 @@
     18862@@ -9934,7 +10258,7 @@
    1764318863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1764418864 LIBS=$ac_check_lib_save_LIBS
    1764518865 fi
    1764618866-echo "$as_me:9937: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
    17647 +echo "$as_me:10116: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
     18867+echo "$as_me:10261: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
    1764818868 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
    1764918869 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
    1765018870   cat >>confdefs.h <<EOF
    17651 @@ -9949,7 +10128,7 @@
     18871@@ -9949,7 +10273,7 @@
    1765218872 
    1765318873 fi
    1765418874 
    1765518875-echo "$as_me:9952: checking if you want to use valgrind for testing" >&5
    17656 +echo "$as_me:10131: checking if you want to use valgrind for testing" >&5
     18876+echo "$as_me:10276: checking if you want to use valgrind for testing" >&5
    1765718877 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
    1765818878 
    1765918879 # Check whether --with-valgrind or --without-valgrind was given.
    17660 @@ -9965,7 +10144,7 @@
     18880@@ -9965,7 +10289,7 @@
    1766118881 else
    1766218882   with_valgrind=
    1766318883 fi;
    1766418884-echo "$as_me:9968: result: ${with_valgrind:-no}" >&5
    17665 +echo "$as_me:10147: result: ${with_valgrind:-no}" >&5
     18885+echo "$as_me:10292: result: ${with_valgrind:-no}" >&5
    1766618886 echo "${ECHO_T}${with_valgrind:-no}" >&6
    1766718887 
    1766818888 case .$with_cflags in #(vi
    17669 @@ -10048,7 +10227,7 @@
     18889@@ -10048,7 +10372,7 @@
    1767018890        ;;
    1767118891 esac
    1767218892 
    1767318893-echo "$as_me:10051: checking if you want to perform memory-leak testing" >&5
    17674 +echo "$as_me:10230: checking if you want to perform memory-leak testing" >&5
     18894+echo "$as_me:10375: checking if you want to perform memory-leak testing" >&5
    1767518895 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
    1767618896 
    1767718897 # Check whether --enable-leaks or --disable-leaks was given.
    17678 @@ -10058,7 +10237,7 @@
     18898@@ -10058,7 +10382,7 @@
    1767918899 else
    1768018900   : ${with_no_leaks:=no}
    1768118901 fi;
    1768218902-echo "$as_me:10061: result: $with_no_leaks" >&5
    17683 +echo "$as_me:10240: result: $with_no_leaks" >&5
     18903+echo "$as_me:10385: result: $with_no_leaks" >&5
    1768418904 echo "${ECHO_T}$with_no_leaks" >&6
    1768518905 
    1768618906 if test "$with_no_leaks" = yes ; then
    17687 @@ -10103,7 +10282,7 @@
     18907@@ -10103,7 +10427,7 @@
    1768818908        ;;
    1768918909 esac
    1769018910 
    1769118911-echo "$as_me:10106: checking whether to add trace feature to all models" >&5
    17692 +echo "$as_me:10285: checking whether to add trace feature to all models" >&5
     18912+echo "$as_me:10430: checking whether to add trace feature to all models" >&5
    1769318913 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
    1769418914 
    1769518915 # Check whether --with-trace or --without-trace was given.
    17696 @@ -10113,7 +10292,7 @@
     18916@@ -10113,7 +10437,7 @@
    1769718917 else
    1769818918   cf_with_trace=$cf_all_traces
    1769918919 fi;
    1770018920-echo "$as_me:10116: result: $cf_with_trace" >&5
    17701 +echo "$as_me:10295: result: $cf_with_trace" >&5
     18921+echo "$as_me:10440: result: $cf_with_trace" >&5
    1770218922 echo "${ECHO_T}$cf_with_trace" >&6
    1770318923 
    1770418924 if test "$cf_with_trace" = yes ; then
    17705 @@ -10194,13 +10373,13 @@
     18925@@ -10194,13 +10518,13 @@
    1770618926 fi
    1770718927 
    1770818928 ###    Checks for libraries.
    1770918929-echo "$as_me:10197: checking for gettimeofday" >&5
    17710 +echo "$as_me:10376: checking for gettimeofday" >&5
     18930+echo "$as_me:10521: checking for gettimeofday" >&5
    1771118931 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
    1771218932 if test "${ac_cv_func_gettimeofday+set}" = set; then
     
    1771518935   cat >conftest.$ac_ext <<_ACEOF
    1771618936-#line 10203 "configure"
    17717 +#line 10382 "configure"
     18937+#line 10527 "configure"
    1771818938 #include "confdefs.h"
    1771918939 /* System header to define __stub macros and hopefully few prototypes,
    1772018940     which can conflict with char gettimeofday (); below.  */
    17721 @@ -10231,16 +10410,16 @@
     18941@@ -10231,16 +10555,16 @@
    1772218942 }
    1772318943 _ACEOF
    1772418944 rm -f conftest.$ac_objext conftest$ac_exeext
    1772518945-if { (eval echo "$as_me:10234: \"$ac_link\"") >&5
    17726 +if { (eval echo "$as_me:10413: \"$ac_link\"") >&5
     18946+if { (eval echo "$as_me:10558: \"$ac_link\"") >&5
    1772718947   (eval $ac_link) 2>&5
    1772818948   ac_status=$?
    1772918949-  echo "$as_me:10237: \$? = $ac_status" >&5
    17730 +  echo "$as_me:10416: \$? = $ac_status" >&5
     18950+  echo "$as_me:10561: \$? = $ac_status" >&5
    1773118951   (exit $ac_status); } &&
    1773218952          { ac_try='test -s conftest$ac_exeext'
    1773318953-  { (eval echo "$as_me:10240: \"$ac_try\"") >&5
    17734 +  { (eval echo "$as_me:10419: \"$ac_try\"") >&5
     18954+  { (eval echo "$as_me:10564: \"$ac_try\"") >&5
    1773518955   (eval $ac_try) 2>&5
    1773618956   ac_status=$?
    1773718957-  echo "$as_me:10243: \$? = $ac_status" >&5
    17738 +  echo "$as_me:10422: \$? = $ac_status" >&5
     18958+  echo "$as_me:10567: \$? = $ac_status" >&5
    1773918959   (exit $ac_status); }; }; then
    1774018960   ac_cv_func_gettimeofday=yes
    1774118961 else
    17742 @@ -10250,7 +10429,7 @@
     18962@@ -10250,7 +10574,7 @@
    1774318963 fi
    1774418964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1774518965 fi
    1774618966-echo "$as_me:10253: result: $ac_cv_func_gettimeofday" >&5
    17747 +echo "$as_me:10432: result: $ac_cv_func_gettimeofday" >&5
     18967+echo "$as_me:10577: result: $ac_cv_func_gettimeofday" >&5
    1774818968 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
    1774918969 if test $ac_cv_func_gettimeofday = yes; then
    1775018970   cat >>confdefs.h <<\EOF
    17751 @@ -10259,7 +10438,7 @@
     18971@@ -10259,7 +10583,7 @@
    1775218972 
    1775318973 else
    1775418974 
    1775518975-echo "$as_me:10262: checking for gettimeofday in -lbsd" >&5
    17756 +echo "$as_me:10441: checking for gettimeofday in -lbsd" >&5
     18976+echo "$as_me:10586: checking for gettimeofday in -lbsd" >&5
    1775718977 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
    1775818978 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
    1775918979   echo $ECHO_N "(cached) $ECHO_C" >&6
    17760 @@ -10267,7 +10446,7 @@
     18980@@ -10267,7 +10591,7 @@
    1776118981   ac_check_lib_save_LIBS=$LIBS
    1776218982 LIBS="-lbsd  $LIBS"
    1776318983 cat >conftest.$ac_ext <<_ACEOF
    1776418984-#line 10270 "configure"
    17765 +#line 10449 "configure"
     18985+#line 10594 "configure"
    1776618986 #include "confdefs.h"
    1776718987 
    1776818988 /* Override any gcc2 internal prototype to avoid an error.  */
    17769 @@ -10286,16 +10465,16 @@
     18989@@ -10286,16 +10610,16 @@
    1777018990 }
    1777118991 _ACEOF
    1777218992 rm -f conftest.$ac_objext conftest$ac_exeext
    1777318993-if { (eval echo "$as_me:10289: \"$ac_link\"") >&5
    17774 +if { (eval echo "$as_me:10468: \"$ac_link\"") >&5
     18994+if { (eval echo "$as_me:10613: \"$ac_link\"") >&5
    1777518995   (eval $ac_link) 2>&5
    1777618996   ac_status=$?
    1777718997-  echo "$as_me:10292: \$? = $ac_status" >&5
    17778 +  echo "$as_me:10471: \$? = $ac_status" >&5
     18998+  echo "$as_me:10616: \$? = $ac_status" >&5
    1777918999   (exit $ac_status); } &&
    1778019000          { ac_try='test -s conftest$ac_exeext'
    1778119001-  { (eval echo "$as_me:10295: \"$ac_try\"") >&5
    17782 +  { (eval echo "$as_me:10474: \"$ac_try\"") >&5
     19002+  { (eval echo "$as_me:10619: \"$ac_try\"") >&5
    1778319003   (eval $ac_try) 2>&5
    1778419004   ac_status=$?
    1778519005-  echo "$as_me:10298: \$? = $ac_status" >&5
    17786 +  echo "$as_me:10477: \$? = $ac_status" >&5
     19006+  echo "$as_me:10622: \$? = $ac_status" >&5
    1778719007   (exit $ac_status); }; }; then
    1778819008   ac_cv_lib_bsd_gettimeofday=yes
    1778919009 else
    17790 @@ -10306,7 +10485,7 @@
     19010@@ -10306,7 +10630,7 @@
    1779119011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1779219012 LIBS=$ac_check_lib_save_LIBS
    1779319013 fi
    1779419014-echo "$as_me:10309: result: $ac_cv_lib_bsd_gettimeofday" >&5
    17795 +echo "$as_me:10488: result: $ac_cv_lib_bsd_gettimeofday" >&5
     19015+echo "$as_me:10633: result: $ac_cv_lib_bsd_gettimeofday" >&5
    1779619016 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
    1779719017 if test $ac_cv_lib_bsd_gettimeofday = yes; then
    1779819018   cat >>confdefs.h <<\EOF
    17799 @@ -10318,14 +10497,14 @@
     19019@@ -10318,14 +10642,14 @@
    1780019020 
    1780119021 fi
    1780219022 
    1780319023-echo "$as_me:10321: checking if -lm needed for math functions" >&5
    17804 +echo "$as_me:10500: checking if -lm needed for math functions" >&5
     19024+echo "$as_me:10645: checking if -lm needed for math functions" >&5
    1780519025 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
    1780619026 if test "${cf_cv_need_libm+set}" = set; then
     
    1781019030        cat >conftest.$ac_ext <<_ACEOF
    1781119031-#line 10328 "configure"
    17812 +#line 10507 "configure"
     19032+#line 10652 "configure"
    1781319033 #include "confdefs.h"
    1781419034 
    1781519035        #include <stdio.h>
    17816 @@ -10340,16 +10519,16 @@
     19036@@ -10340,16 +10664,16 @@
    1781719037 }
    1781819038 _ACEOF
    1781919039 rm -f conftest.$ac_objext conftest$ac_exeext
    1782019040-if { (eval echo "$as_me:10343: \"$ac_link\"") >&5
    17821 +if { (eval echo "$as_me:10522: \"$ac_link\"") >&5
     19041+if { (eval echo "$as_me:10667: \"$ac_link\"") >&5
    1782219042   (eval $ac_link) 2>&5
    1782319043   ac_status=$?
    1782419044-  echo "$as_me:10346: \$? = $ac_status" >&5
    17825 +  echo "$as_me:10525: \$? = $ac_status" >&5
     19045+  echo "$as_me:10670: \$? = $ac_status" >&5
    1782619046   (exit $ac_status); } &&
    1782719047          { ac_try='test -s conftest$ac_exeext'
    1782819048-  { (eval echo "$as_me:10349: \"$ac_try\"") >&5
    17829 +  { (eval echo "$as_me:10528: \"$ac_try\"") >&5
     19049+  { (eval echo "$as_me:10673: \"$ac_try\"") >&5
    1783019050   (eval $ac_try) 2>&5
    1783119051   ac_status=$?
    1783219052-  echo "$as_me:10352: \$? = $ac_status" >&5
    17833 +  echo "$as_me:10531: \$? = $ac_status" >&5
     19053+  echo "$as_me:10676: \$? = $ac_status" >&5
    1783419054   (exit $ac_status); }; }; then
    1783519055   cf_cv_need_libm=no
    1783619056 else
    17837 @@ -10359,7 +10538,7 @@
     19057@@ -10359,7 +10683,7 @@
    1783819058 fi
    1783919059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1784019060 fi
    1784119061-echo "$as_me:10362: result: $cf_cv_need_libm" >&5
    17842 +echo "$as_me:10541: result: $cf_cv_need_libm" >&5
     19062+echo "$as_me:10686: result: $cf_cv_need_libm" >&5
    1784319063 echo "${ECHO_T}$cf_cv_need_libm" >&6
    1784419064 if test "$cf_cv_need_libm" = yes
    1784519065 then
    17846 @@ -10367,13 +10546,13 @@
     19066@@ -10367,13 +10691,13 @@
    1784719067 fi
    1784819068 
    1784919069 ###    Checks for header files.
    1785019070-echo "$as_me:10370: checking for ANSI C header files" >&5
    17851 +echo "$as_me:10549: checking for ANSI C header files" >&5
     19071+echo "$as_me:10694: checking for ANSI C header files" >&5
    1785219072 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    1785319073 if test "${ac_cv_header_stdc+set}" = set; then
     
    1785619076   cat >conftest.$ac_ext <<_ACEOF
    1785719077-#line 10376 "configure"
    17858 +#line 10555 "configure"
     19078+#line 10700 "configure"
    1785919079 #include "confdefs.h"
    1786019080 #include <stdlib.h>
    1786119081 #include <stdarg.h>
    17862 @@ -10381,13 +10560,13 @@
     19082@@ -10381,13 +10705,13 @@
    1786319083 #include <float.h>
    1786419084 
    1786519085 _ACEOF
    1786619086-if { (eval echo "$as_me:10384: \"$ac_cpp conftest.$ac_ext\"") >&5
    17867 +if { (eval echo "$as_me:10563: \"$ac_cpp conftest.$ac_ext\"") >&5
     19087+if { (eval echo "$as_me:10708: \"$ac_cpp conftest.$ac_ext\"") >&5
    1786819088   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    1786919089   ac_status=$?
     
    1787219092   cat conftest.err >&5
    1787319093-  echo "$as_me:10390: \$? = $ac_status" >&5
    17874 +  echo "$as_me:10569: \$? = $ac_status" >&5
     19094+  echo "$as_me:10714: \$? = $ac_status" >&5
    1787519095   (exit $ac_status); } >/dev/null; then
    1787619096   if test -s conftest.err; then
    1787719097     ac_cpp_err=$ac_c_preproc_warn_flag
    17878 @@ -10409,7 +10588,7 @@
     19098@@ -10409,7 +10733,7 @@
    1787919099 if test $ac_cv_header_stdc = yes; then
    1788019100   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1788119101   cat >conftest.$ac_ext <<_ACEOF
    1788219102-#line 10412 "configure"
    17883 +#line 10591 "configure"
     19103+#line 10736 "configure"
    1788419104 #include "confdefs.h"
    1788519105 #include <string.h>
    1788619106 
    17887 @@ -10427,7 +10606,7 @@
     19107@@ -10427,7 +10751,7 @@
    1788819108 if test $ac_cv_header_stdc = yes; then
    1788919109   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1789019110   cat >conftest.$ac_ext <<_ACEOF
    1789119111-#line 10430 "configure"
    17892 +#line 10609 "configure"
     19112+#line 10754 "configure"
    1789319113 #include "confdefs.h"
    1789419114 #include <stdlib.h>
    1789519115 
    17896 @@ -10448,7 +10627,7 @@
     19116@@ -10448,7 +10772,7 @@
    1789719117   :
    1789819118 else
    1789919119   cat >conftest.$ac_ext <<_ACEOF
    1790019120-#line 10451 "configure"
    17901 +#line 10630 "configure"
     19121+#line 10775 "configure"
    1790219122 #include "confdefs.h"
    1790319123 #include <ctype.h>
    1790419124 #if ((' ' & 0x0FF) == 0x020)
    17905 @@ -10474,15 +10653,15 @@
     19125@@ -10474,15 +10798,15 @@
    1790619126 }
    1790719127 _ACEOF
    1790819128 rm -f conftest$ac_exeext
    1790919129-if { (eval echo "$as_me:10477: \"$ac_link\"") >&5
    17910 +if { (eval echo "$as_me:10656: \"$ac_link\"") >&5
     19130+if { (eval echo "$as_me:10801: \"$ac_link\"") >&5
    1791119131   (eval $ac_link) 2>&5
    1791219132   ac_status=$?
    1791319133-  echo "$as_me:10480: \$? = $ac_status" >&5
    17914 +  echo "$as_me:10659: \$? = $ac_status" >&5
     19134+  echo "$as_me:10804: \$? = $ac_status" >&5
    1791519135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    1791619136-  { (eval echo "$as_me:10482: \"$ac_try\"") >&5
    17917 +  { (eval echo "$as_me:10661: \"$ac_try\"") >&5
     19137+  { (eval echo "$as_me:10806: \"$ac_try\"") >&5
    1791819138   (eval $ac_try) 2>&5
    1791919139   ac_status=$?
    1792019140-  echo "$as_me:10485: \$? = $ac_status" >&5
    17921 +  echo "$as_me:10664: \$? = $ac_status" >&5
     19141+  echo "$as_me:10809: \$? = $ac_status" >&5
    1792219142   (exit $ac_status); }; }; then
    1792319143   :
    1792419144 else
    17925 @@ -10495,7 +10674,7 @@
     19145@@ -10495,7 +10819,7 @@
    1792619146 fi
    1792719147 fi
    1792819148 fi
    1792919149-echo "$as_me:10498: result: $ac_cv_header_stdc" >&5
    17930 +echo "$as_me:10677: result: $ac_cv_header_stdc" >&5
     19150+echo "$as_me:10822: result: $ac_cv_header_stdc" >&5
    1793119151 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    1793219152 if test $ac_cv_header_stdc = yes; then
    1793319153 
    17934 @@ -10508,13 +10687,13 @@
     19154@@ -10508,13 +10832,13 @@
    1793519155 ac_header_dirent=no
    1793619156 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
    1793719157   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
    1793819158-echo "$as_me:10511: checking for $ac_hdr that defines DIR" >&5
    17939 +echo "$as_me:10690: checking for $ac_hdr that defines DIR" >&5
     19159+echo "$as_me:10835: checking for $ac_hdr that defines DIR" >&5
    1794019160 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
    1794119161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
     
    1794419164   cat >conftest.$ac_ext <<_ACEOF
    1794519165-#line 10517 "configure"
    17946 +#line 10696 "configure"
     19166+#line 10841 "configure"
    1794719167 #include "confdefs.h"
    1794819168 #include <sys/types.h>
    1794919169 #include <$ac_hdr>
    17950 @@ -10529,16 +10708,16 @@
     19170@@ -10529,16 +10853,16 @@
    1795119171 }
    1795219172 _ACEOF
    1795319173 rm -f conftest.$ac_objext
    1795419174-if { (eval echo "$as_me:10532: \"$ac_compile\"") >&5
    17955 +if { (eval echo "$as_me:10711: \"$ac_compile\"") >&5
     19175+if { (eval echo "$as_me:10856: \"$ac_compile\"") >&5
    1795619176   (eval $ac_compile) 2>&5
    1795719177   ac_status=$?
    1795819178-  echo "$as_me:10535: \$? = $ac_status" >&5
    17959 +  echo "$as_me:10714: \$? = $ac_status" >&5
     19179+  echo "$as_me:10859: \$? = $ac_status" >&5
    1796019180   (exit $ac_status); } &&
    1796119181          { ac_try='test -s conftest.$ac_objext'
    1796219182-  { (eval echo "$as_me:10538: \"$ac_try\"") >&5
    17963 +  { (eval echo "$as_me:10717: \"$ac_try\"") >&5
     19183+  { (eval echo "$as_me:10862: \"$ac_try\"") >&5
    1796419184   (eval $ac_try) 2>&5
    1796519185   ac_status=$?
    1796619186-  echo "$as_me:10541: \$? = $ac_status" >&5
    17967 +  echo "$as_me:10720: \$? = $ac_status" >&5
     19187+  echo "$as_me:10865: \$? = $ac_status" >&5
    1796819188   (exit $ac_status); }; }; then
    1796919189   eval "$as_ac_Header=yes"
    1797019190 else
    17971 @@ -10548,7 +10727,7 @@
     19191@@ -10548,7 +10872,7 @@
    1797219192 fi
    1797319193 rm -f conftest.$ac_objext conftest.$ac_ext
    1797419194 fi
    1797519195-echo "$as_me:10551: result: `eval echo '${'$as_ac_Header'}'`" >&5
    17976 +echo "$as_me:10730: result: `eval echo '${'$as_ac_Header'}'`" >&5
     19196+echo "$as_me:10875: result: `eval echo '${'$as_ac_Header'}'`" >&5
    1797719197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    1797819198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    1797919199   cat >>confdefs.h <<EOF
    17980 @@ -10561,7 +10740,7 @@
     19200@@ -10561,7 +10885,7 @@
    1798119201 done
    1798219202 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    1798319203 if test $ac_header_dirent = dirent.h; then
    1798419204-  echo "$as_me:10564: checking for opendir in -ldir" >&5
    17985 +  echo "$as_me:10743: checking for opendir in -ldir" >&5
     19205+  echo "$as_me:10888: checking for opendir in -ldir" >&5
    1798619206 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
    1798719207 if test "${ac_cv_lib_dir_opendir+set}" = set; then
    1798819208   echo $ECHO_N "(cached) $ECHO_C" >&6
    17989 @@ -10569,7 +10748,7 @@
     19209@@ -10569,7 +10893,7 @@
    1799019210   ac_check_lib_save_LIBS=$LIBS
    1799119211 LIBS="-ldir  $LIBS"
    1799219212 cat >conftest.$ac_ext <<_ACEOF
    1799319213-#line 10572 "configure"
    17994 +#line 10751 "configure"
     19214+#line 10896 "configure"
    1799519215 #include "confdefs.h"
    1799619216 
    1799719217 /* Override any gcc2 internal prototype to avoid an error.  */
    17998 @@ -10588,16 +10767,16 @@
     19218@@ -10588,16 +10912,16 @@
    1799919219 }
    1800019220 _ACEOF
    1800119221 rm -f conftest.$ac_objext conftest$ac_exeext
    1800219222-if { (eval echo "$as_me:10591: \"$ac_link\"") >&5
    18003 +if { (eval echo "$as_me:10770: \"$ac_link\"") >&5
     19223+if { (eval echo "$as_me:10915: \"$ac_link\"") >&5
    1800419224   (eval $ac_link) 2>&5
    1800519225   ac_status=$?
    1800619226-  echo "$as_me:10594: \$? = $ac_status" >&5
    18007 +  echo "$as_me:10773: \$? = $ac_status" >&5
     19227+  echo "$as_me:10918: \$? = $ac_status" >&5
    1800819228   (exit $ac_status); } &&
    1800919229          { ac_try='test -s conftest$ac_exeext'
    1801019230-  { (eval echo "$as_me:10597: \"$ac_try\"") >&5
    18011 +  { (eval echo "$as_me:10776: \"$ac_try\"") >&5
     19231+  { (eval echo "$as_me:10921: \"$ac_try\"") >&5
    1801219232   (eval $ac_try) 2>&5
    1801319233   ac_status=$?
    1801419234-  echo "$as_me:10600: \$? = $ac_status" >&5
    18015 +  echo "$as_me:10779: \$? = $ac_status" >&5
     19235+  echo "$as_me:10924: \$? = $ac_status" >&5
    1801619236   (exit $ac_status); }; }; then
    1801719237   ac_cv_lib_dir_opendir=yes
    1801819238 else
    18019 @@ -10608,14 +10787,14 @@
     19239@@ -10608,14 +10932,14 @@
    1802019240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1802119241 LIBS=$ac_check_lib_save_LIBS
    1802219242 fi
    1802319243-echo "$as_me:10611: result: $ac_cv_lib_dir_opendir" >&5
    18024 +echo "$as_me:10790: result: $ac_cv_lib_dir_opendir" >&5
     19244+echo "$as_me:10935: result: $ac_cv_lib_dir_opendir" >&5
    1802519245 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
    1802619246 if test $ac_cv_lib_dir_opendir = yes; then
     
    1803019250 else
    1803119251-  echo "$as_me:10618: checking for opendir in -lx" >&5
    18032 +  echo "$as_me:10797: checking for opendir in -lx" >&5
     19252+  echo "$as_me:10942: checking for opendir in -lx" >&5
    1803319253 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
    1803419254 if test "${ac_cv_lib_x_opendir+set}" = set; then
    1803519255   echo $ECHO_N "(cached) $ECHO_C" >&6
    18036 @@ -10623,7 +10802,7 @@
     19256@@ -10623,7 +10947,7 @@
    1803719257   ac_check_lib_save_LIBS=$LIBS
    1803819258 LIBS="-lx  $LIBS"
    1803919259 cat >conftest.$ac_ext <<_ACEOF
    1804019260-#line 10626 "configure"
    18041 +#line 10805 "configure"
     19261+#line 10950 "configure"
    1804219262 #include "confdefs.h"
    1804319263 
    1804419264 /* Override any gcc2 internal prototype to avoid an error.  */
    18045 @@ -10642,16 +10821,16 @@
     19265@@ -10642,16 +10966,16 @@
    1804619266 }
    1804719267 _ACEOF
    1804819268 rm -f conftest.$ac_objext conftest$ac_exeext
    1804919269-if { (eval echo "$as_me:10645: \"$ac_link\"") >&5
    18050 +if { (eval echo "$as_me:10824: \"$ac_link\"") >&5
     19270+if { (eval echo "$as_me:10969: \"$ac_link\"") >&5
    1805119271   (eval $ac_link) 2>&5
    1805219272   ac_status=$?
    1805319273-  echo "$as_me:10648: \$? = $ac_status" >&5
    18054 +  echo "$as_me:10827: \$? = $ac_status" >&5
     19274+  echo "$as_me:10972: \$? = $ac_status" >&5
    1805519275   (exit $ac_status); } &&
    1805619276          { ac_try='test -s conftest$ac_exeext'
    1805719277-  { (eval echo "$as_me:10651: \"$ac_try\"") >&5
    18058 +  { (eval echo "$as_me:10830: \"$ac_try\"") >&5
     19278+  { (eval echo "$as_me:10975: \"$ac_try\"") >&5
    1805919279   (eval $ac_try) 2>&5
    1806019280   ac_status=$?
    1806119281-  echo "$as_me:10654: \$? = $ac_status" >&5
    18062 +  echo "$as_me:10833: \$? = $ac_status" >&5
     19282+  echo "$as_me:10978: \$? = $ac_status" >&5
    1806319283   (exit $ac_status); }; }; then
    1806419284   ac_cv_lib_x_opendir=yes
    1806519285 else
    18066 @@ -10662,7 +10841,7 @@
     19286@@ -10662,7 +10986,7 @@
    1806719287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1806819288 LIBS=$ac_check_lib_save_LIBS
    1806919289 fi
    1807019290-echo "$as_me:10665: result: $ac_cv_lib_x_opendir" >&5
    18071 +echo "$as_me:10844: result: $ac_cv_lib_x_opendir" >&5
     19291+echo "$as_me:10989: result: $ac_cv_lib_x_opendir" >&5
    1807219292 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
    1807319293 if test $ac_cv_lib_x_opendir = yes; then
    1807419294   LIBS="$LIBS -lx"
    18075 @@ -10670,13 +10849,13 @@
     19295@@ -10670,13 +10994,13 @@
    1807619296 
    1807719297 fi
    1807819298 
    1807919299-echo "$as_me:10673: checking whether time.h and sys/time.h may both be included" >&5
    18080 +echo "$as_me:10852: checking whether time.h and sys/time.h may both be included" >&5
     19300+echo "$as_me:10997: checking whether time.h and sys/time.h may both be included" >&5
    1808119301 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
    1808219302 if test "${ac_cv_header_time+set}" = set; then
     
    1808519305   cat >conftest.$ac_ext <<_ACEOF
    1808619306-#line 10679 "configure"
    18087 +#line 10858 "configure"
     19307+#line 11003 "configure"
    1808819308 #include "confdefs.h"
    1808919309 #include <sys/types.h>
    1809019310 #include <sys/time.h>
    18091 @@ -10692,16 +10871,16 @@
     19311@@ -10692,16 +11016,16 @@
    1809219312 }
    1809319313 _ACEOF
    1809419314 rm -f conftest.$ac_objext
    1809519315-if { (eval echo "$as_me:10695: \"$ac_compile\"") >&5
    18096 +if { (eval echo "$as_me:10874: \"$ac_compile\"") >&5
     19316+if { (eval echo "$as_me:11019: \"$ac_compile\"") >&5
    1809719317   (eval $ac_compile) 2>&5
    1809819318   ac_status=$?
    1809919319-  echo "$as_me:10698: \$? = $ac_status" >&5
    18100 +  echo "$as_me:10877: \$? = $ac_status" >&5
     19320+  echo "$as_me:11022: \$? = $ac_status" >&5
    1810119321   (exit $ac_status); } &&
    1810219322          { ac_try='test -s conftest.$ac_objext'
    1810319323-  { (eval echo "$as_me:10701: \"$ac_try\"") >&5
    18104 +  { (eval echo "$as_me:10880: \"$ac_try\"") >&5
     19324+  { (eval echo "$as_me:11025: \"$ac_try\"") >&5
    1810519325   (eval $ac_try) 2>&5
    1810619326   ac_status=$?
    1810719327-  echo "$as_me:10704: \$? = $ac_status" >&5
    18108 +  echo "$as_me:10883: \$? = $ac_status" >&5
     19328+  echo "$as_me:11028: \$? = $ac_status" >&5
    1810919329   (exit $ac_status); }; }; then
    1811019330   ac_cv_header_time=yes
    1811119331 else
    18112 @@ -10711,7 +10890,7 @@
     19332@@ -10711,7 +11035,7 @@
    1811319333 fi
    1811419334 rm -f conftest.$ac_objext conftest.$ac_ext
    1811519335 fi
    1811619336-echo "$as_me:10714: result: $ac_cv_header_time" >&5
    18117 +echo "$as_me:10893: result: $ac_cv_header_time" >&5
     19337+echo "$as_me:11038: result: $ac_cv_header_time" >&5
    1811819338 echo "${ECHO_T}$ac_cv_header_time" >&6
    1811919339 if test $ac_cv_header_time = yes; then
    1812019340 
    18121 @@ -10721,14 +10900,14 @@
     19341@@ -10721,14 +11045,14 @@
    1812219342 
    1812319343 fi
    1812419344 
    1812519345-echo "$as_me:10724: checking for regular-expression headers" >&5
    18126 +echo "$as_me:10903: checking for regular-expression headers" >&5
     19346+echo "$as_me:11048: checking for regular-expression headers" >&5
    1812719347 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
    1812819348 if test "${cf_cv_regex+set}" = set; then
     
    1813219352 cat >conftest.$ac_ext <<_ACEOF
    1813319353-#line 10731 "configure"
    18134 +#line 10910 "configure"
     19354+#line 11055 "configure"
    1813519355 #include "confdefs.h"
    1813619356 #include <sys/types.h>
    1813719357 #include <regex.h>
    18138 @@ -10746,16 +10925,16 @@
     19358@@ -10746,16 +11070,16 @@
    1813919359 }
    1814019360 _ACEOF
    1814119361 rm -f conftest.$ac_objext conftest$ac_exeext
    1814219362-if { (eval echo "$as_me:10749: \"$ac_link\"") >&5
    18143 +if { (eval echo "$as_me:10928: \"$ac_link\"") >&5
     19363+if { (eval echo "$as_me:11073: \"$ac_link\"") >&5
    1814419364   (eval $ac_link) 2>&5
    1814519365   ac_status=$?
    1814619366-  echo "$as_me:10752: \$? = $ac_status" >&5
    18147 +  echo "$as_me:10931: \$? = $ac_status" >&5
     19367+  echo "$as_me:11076: \$? = $ac_status" >&5
    1814819368   (exit $ac_status); } &&
    1814919369          { ac_try='test -s conftest$ac_exeext'
    1815019370-  { (eval echo "$as_me:10755: \"$ac_try\"") >&5
    18151 +  { (eval echo "$as_me:10934: \"$ac_try\"") >&5
     19371+  { (eval echo "$as_me:11079: \"$ac_try\"") >&5
    1815219372   (eval $ac_try) 2>&5
    1815319373   ac_status=$?
    1815419374-  echo "$as_me:10758: \$? = $ac_status" >&5
    18155 +  echo "$as_me:10937: \$? = $ac_status" >&5
     19375+  echo "$as_me:11082: \$? = $ac_status" >&5
    1815619376   (exit $ac_status); }; }; then
    1815719377   cf_cv_regex="regex.h"
    1815819378 else
    18159 @@ -10763,7 +10942,7 @@
     19379@@ -10763,7 +11087,7 @@
    1816019380 cat conftest.$ac_ext >&5
    1816119381 
    1816219382        cat >conftest.$ac_ext <<_ACEOF
    1816319383-#line 10766 "configure"
    18164 +#line 10945 "configure"
     19384+#line 11090 "configure"
    1816519385 #include "confdefs.h"
    1816619386 #include <regexp.h>
    1816719387 int
    18168 @@ -10778,16 +10957,16 @@
     19388@@ -10778,16 +11102,16 @@
    1816919389 }
    1817019390 _ACEOF
    1817119391 rm -f conftest.$ac_objext conftest$ac_exeext
    1817219392-if { (eval echo "$as_me:10781: \"$ac_link\"") >&5
    18173 +if { (eval echo "$as_me:10960: \"$ac_link\"") >&5
     19393+if { (eval echo "$as_me:11105: \"$ac_link\"") >&5
    1817419394   (eval $ac_link) 2>&5
    1817519395   ac_status=$?
    1817619396-  echo "$as_me:10784: \$? = $ac_status" >&5
    18177 +  echo "$as_me:10963: \$? = $ac_status" >&5
     19397+  echo "$as_me:11108: \$? = $ac_status" >&5
    1817819398   (exit $ac_status); } &&
    1817919399          { ac_try='test -s conftest$ac_exeext'
    1818019400-  { (eval echo "$as_me:10787: \"$ac_try\"") >&5
    18181 +  { (eval echo "$as_me:10966: \"$ac_try\"") >&5
     19401+  { (eval echo "$as_me:11111: \"$ac_try\"") >&5
    1818219402   (eval $ac_try) 2>&5
    1818319403   ac_status=$?
    1818419404-  echo "$as_me:10790: \$? = $ac_status" >&5
    18185 +  echo "$as_me:10969: \$? = $ac_status" >&5
     19405+  echo "$as_me:11114: \$? = $ac_status" >&5
    1818619406   (exit $ac_status); }; }; then
    1818719407   cf_cv_regex="regexp.h"
    1818819408 else
    18189 @@ -10797,7 +10976,7 @@
     19409@@ -10797,7 +11121,7 @@
    1819019410                cf_save_LIBS="$LIBS"
    1819119411                LIBS="-lgen $LIBS"
    1819219412                cat >conftest.$ac_ext <<_ACEOF
    1819319413-#line 10800 "configure"
    18194 +#line 10979 "configure"
     19414+#line 11124 "configure"
    1819519415 #include "confdefs.h"
    1819619416 #include <regexpr.h>
    1819719417 int
    18198 @@ -10812,16 +10991,16 @@
     19418@@ -10812,16 +11136,16 @@
    1819919419 }
    1820019420 _ACEOF
    1820119421 rm -f conftest.$ac_objext conftest$ac_exeext
    1820219422-if { (eval echo "$as_me:10815: \"$ac_link\"") >&5
    18203 +if { (eval echo "$as_me:10994: \"$ac_link\"") >&5
     19423+if { (eval echo "$as_me:11139: \"$ac_link\"") >&5
    1820419424   (eval $ac_link) 2>&5
    1820519425   ac_status=$?
    1820619426-  echo "$as_me:10818: \$? = $ac_status" >&5
    18207 +  echo "$as_me:10997: \$? = $ac_status" >&5
     19427+  echo "$as_me:11142: \$? = $ac_status" >&5
    1820819428   (exit $ac_status); } &&
    1820919429          { ac_try='test -s conftest$ac_exeext'
    1821019430-  { (eval echo "$as_me:10821: \"$ac_try\"") >&5
    18211 +  { (eval echo "$as_me:11000: \"$ac_try\"") >&5
     19431+  { (eval echo "$as_me:11145: \"$ac_try\"") >&5
    1821219432   (eval $ac_try) 2>&5
    1821319433   ac_status=$?
    1821419434-  echo "$as_me:10824: \$? = $ac_status" >&5
    18215 +  echo "$as_me:11003: \$? = $ac_status" >&5
     19435+  echo "$as_me:11148: \$? = $ac_status" >&5
    1821619436   (exit $ac_status); }; }; then
    1821719437   cf_cv_regex="regexpr.h"
    1821819438 else
    18219 @@ -10837,7 +11016,7 @@
     19439@@ -10837,7 +11161,7 @@
    1822019440 
    1822119441 fi
    1822219442 
    1822319443-echo "$as_me:10840: result: $cf_cv_regex" >&5
    18224 +echo "$as_me:11019: result: $cf_cv_regex" >&5
     19444+echo "$as_me:11164: result: $cf_cv_regex" >&5
    1822519445 echo "${ECHO_T}$cf_cv_regex" >&6
    1822619446 case $cf_cv_regex in
    1822719447        regex.h)   cat >>confdefs.h <<\EOF
    18228 @@ -10873,23 +11052,23 @@
     19448@@ -10873,23 +11197,23 @@
    1822919449 
    1823019450 do
    1823119451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    1823219452-echo "$as_me:10876: checking for $ac_header" >&5
    18233 +echo "$as_me:11055: checking for $ac_header" >&5
     19453+echo "$as_me:11200: checking for $ac_header" >&5
    1823419454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    1823519455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
     
    1823819458   cat >conftest.$ac_ext <<_ACEOF
    1823919459-#line 10882 "configure"
    18240 +#line 11061 "configure"
     19460+#line 11206 "configure"
    1824119461 #include "confdefs.h"
    1824219462 #include <$ac_header>
    1824319463 _ACEOF
    1824419464-if { (eval echo "$as_me:10886: \"$ac_cpp conftest.$ac_ext\"") >&5
    18245 +if { (eval echo "$as_me:11065: \"$ac_cpp conftest.$ac_ext\"") >&5
     19465+if { (eval echo "$as_me:11210: \"$ac_cpp conftest.$ac_ext\"") >&5
    1824619466   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    1824719467   ac_status=$?
     
    1825019470   cat conftest.err >&5
    1825119471-  echo "$as_me:10892: \$? = $ac_status" >&5
    18252 +  echo "$as_me:11071: \$? = $ac_status" >&5
     19472+  echo "$as_me:11216: \$? = $ac_status" >&5
    1825319473   (exit $ac_status); } >/dev/null; then
    1825419474   if test -s conftest.err; then
    1825519475     ac_cpp_err=$ac_c_preproc_warn_flag
    18256 @@ -10908,7 +11087,7 @@
     19476@@ -10908,7 +11232,7 @@
    1825719477 fi
    1825819478 rm -f conftest.err conftest.$ac_ext
    1825919479 fi
    1826019480-echo "$as_me:10911: result: `eval echo '${'$as_ac_Header'}'`" >&5
    18261 +echo "$as_me:11090: result: `eval echo '${'$as_ac_Header'}'`" >&5
     19481+echo "$as_me:11235: result: `eval echo '${'$as_ac_Header'}'`" >&5
    1826219482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    1826319483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    1826419484   cat >>confdefs.h <<EOF
    18265 @@ -10922,7 +11101,7 @@
     19485@@ -10922,7 +11246,7 @@
    1826619486 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
    1826719487 if test "$ISC" = yes ; then
    1826819488 
    1826919489-echo "$as_me:10925: checking for main in -lcposix" >&5
    18270 +echo "$as_me:11104: checking for main in -lcposix" >&5
     19490+echo "$as_me:11249: checking for main in -lcposix" >&5
    1827119491 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
    1827219492 if test "${ac_cv_lib_cposix_main+set}" = set; then
    1827319493   echo $ECHO_N "(cached) $ECHO_C" >&6
    18274 @@ -10930,7 +11109,7 @@
     19494@@ -10930,7 +11254,7 @@
    1827519495   ac_check_lib_save_LIBS=$LIBS
    1827619496 LIBS="-lcposix  $LIBS"
    1827719497 cat >conftest.$ac_ext <<_ACEOF
    1827819498-#line 10933 "configure"
    18279 +#line 11112 "configure"
     19499+#line 11257 "configure"
    1828019500 #include "confdefs.h"
    1828119501 
    1828219502 int
    18283 @@ -10942,16 +11121,16 @@
     19503@@ -10942,16 +11266,16 @@
    1828419504 }
    1828519505 _ACEOF
    1828619506 rm -f conftest.$ac_objext conftest$ac_exeext
    1828719507-if { (eval echo "$as_me:10945: \"$ac_link\"") >&5
    18288 +if { (eval echo "$as_me:11124: \"$ac_link\"") >&5
     19508+if { (eval echo "$as_me:11269: \"$ac_link\"") >&5
    1828919509   (eval $ac_link) 2>&5
    1829019510   ac_status=$?
    1829119511-  echo "$as_me:10948: \$? = $ac_status" >&5
    18292 +  echo "$as_me:11127: \$? = $ac_status" >&5
     19512+  echo "$as_me:11272: \$? = $ac_status" >&5
    1829319513   (exit $ac_status); } &&
    1829419514          { ac_try='test -s conftest$ac_exeext'
    1829519515-  { (eval echo "$as_me:10951: \"$ac_try\"") >&5
    18296 +  { (eval echo "$as_me:11130: \"$ac_try\"") >&5
     19516+  { (eval echo "$as_me:11275: \"$ac_try\"") >&5
    1829719517   (eval $ac_try) 2>&5
    1829819518   ac_status=$?
    1829919519-  echo "$as_me:10954: \$? = $ac_status" >&5
    18300 +  echo "$as_me:11133: \$? = $ac_status" >&5
     19520+  echo "$as_me:11278: \$? = $ac_status" >&5
    1830119521   (exit $ac_status); }; }; then
    1830219522   ac_cv_lib_cposix_main=yes
    1830319523 else
    18304 @@ -10962,7 +11141,7 @@
     19524@@ -10962,7 +11286,7 @@
    1830519525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1830619526 LIBS=$ac_check_lib_save_LIBS
    1830719527 fi
    1830819528-echo "$as_me:10965: result: $ac_cv_lib_cposix_main" >&5
    18309 +echo "$as_me:11144: result: $ac_cv_lib_cposix_main" >&5
     19529+echo "$as_me:11289: result: $ac_cv_lib_cposix_main" >&5
    1831019530 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
    1831119531 if test $ac_cv_lib_cposix_main = yes; then
    1831219532   cat >>confdefs.h <<EOF
    18313 @@ -10973,7 +11152,7 @@
     19533@@ -10973,7 +11297,7 @@
    1831419534 
    1831519535 fi
    1831619536 
    1831719537-       echo "$as_me:10976: checking for bzero in -linet" >&5
    18318 +       echo "$as_me:11155: checking for bzero in -linet" >&5
     19538+       echo "$as_me:11300: checking for bzero in -linet" >&5
    1831919539 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
    1832019540 if test "${ac_cv_lib_inet_bzero+set}" = set; then
    1832119541   echo $ECHO_N "(cached) $ECHO_C" >&6
    18322 @@ -10981,7 +11160,7 @@
     19542@@ -10981,7 +11305,7 @@
    1832319543   ac_check_lib_save_LIBS=$LIBS
    1832419544 LIBS="-linet  $LIBS"
    1832519545 cat >conftest.$ac_ext <<_ACEOF
    1832619546-#line 10984 "configure"
    18327 +#line 11163 "configure"
     19547+#line 11308 "configure"
    1832819548 #include "confdefs.h"
    1832919549 
    1833019550 /* Override any gcc2 internal prototype to avoid an error.  */
    18331 @@ -11000,16 +11179,16 @@
     19551@@ -11000,16 +11324,16 @@
    1833219552 }
    1833319553 _ACEOF
    1833419554 rm -f conftest.$ac_objext conftest$ac_exeext
    1833519555-if { (eval echo "$as_me:11003: \"$ac_link\"") >&5
    18336 +if { (eval echo "$as_me:11182: \"$ac_link\"") >&5
     19556+if { (eval echo "$as_me:11327: \"$ac_link\"") >&5
    1833719557   (eval $ac_link) 2>&5
    1833819558   ac_status=$?
    1833919559-  echo "$as_me:11006: \$? = $ac_status" >&5
    18340 +  echo "$as_me:11185: \$? = $ac_status" >&5
     19560+  echo "$as_me:11330: \$? = $ac_status" >&5
    1834119561   (exit $ac_status); } &&
    1834219562          { ac_try='test -s conftest$ac_exeext'
    1834319563-  { (eval echo "$as_me:11009: \"$ac_try\"") >&5
    18344 +  { (eval echo "$as_me:11188: \"$ac_try\"") >&5
     19564+  { (eval echo "$as_me:11333: \"$ac_try\"") >&5
    1834519565   (eval $ac_try) 2>&5
    1834619566   ac_status=$?
    1834719567-  echo "$as_me:11012: \$? = $ac_status" >&5
    18348 +  echo "$as_me:11191: \$? = $ac_status" >&5
     19568+  echo "$as_me:11336: \$? = $ac_status" >&5
    1834919569   (exit $ac_status); }; }; then
    1835019570   ac_cv_lib_inet_bzero=yes
    1835119571 else
    18352 @@ -11020,21 +11199,21 @@
     19572@@ -11020,21 +11344,21 @@
    1835319573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1835419574 LIBS=$ac_check_lib_save_LIBS
    1835519575 fi
    1835619576-echo "$as_me:11023: result: $ac_cv_lib_inet_bzero" >&5
    18357 +echo "$as_me:11202: result: $ac_cv_lib_inet_bzero" >&5
     19577+echo "$as_me:11347: result: $ac_cv_lib_inet_bzero" >&5
    1835819578 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
    1835919579 if test $ac_cv_lib_inet_bzero = yes; then
     
    1836319583 
    1836419584-echo "$as_me:11030: checking if sys/time.h works with sys/select.h" >&5
    18365 +echo "$as_me:11209: checking if sys/time.h works with sys/select.h" >&5
     19585+echo "$as_me:11354: checking if sys/time.h works with sys/select.h" >&5
    1836619586 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
    1836719587 if test "${cf_cv_sys_time_select+set}" = set; then
     
    1837119591 cat >conftest.$ac_ext <<_ACEOF
    1837219592-#line 11037 "configure"
    18373 +#line 11216 "configure"
     19593+#line 11361 "configure"
    1837419594 #include "confdefs.h"
    1837519595 
    1837619596 #include <sys/types.h>
    18377 @@ -11054,16 +11233,16 @@
     19597@@ -11054,16 +11378,16 @@
    1837819598 }
    1837919599 _ACEOF
    1838019600 rm -f conftest.$ac_objext
    1838119601-if { (eval echo "$as_me:11057: \"$ac_compile\"") >&5
    18382 +if { (eval echo "$as_me:11236: \"$ac_compile\"") >&5
     19602+if { (eval echo "$as_me:11381: \"$ac_compile\"") >&5
    1838319603   (eval $ac_compile) 2>&5
    1838419604   ac_status=$?
    1838519605-  echo "$as_me:11060: \$? = $ac_status" >&5
    18386 +  echo "$as_me:11239: \$? = $ac_status" >&5
     19606+  echo "$as_me:11384: \$? = $ac_status" >&5
    1838719607   (exit $ac_status); } &&
    1838819608          { ac_try='test -s conftest.$ac_objext'
    1838919609-  { (eval echo "$as_me:11063: \"$ac_try\"") >&5
    18390 +  { (eval echo "$as_me:11242: \"$ac_try\"") >&5
     19610+  { (eval echo "$as_me:11387: \"$ac_try\"") >&5
    1839119611   (eval $ac_try) 2>&5
    1839219612   ac_status=$?
    1839319613-  echo "$as_me:11066: \$? = $ac_status" >&5
    18394 +  echo "$as_me:11245: \$? = $ac_status" >&5
     19614+  echo "$as_me:11390: \$? = $ac_status" >&5
    1839519615   (exit $ac_status); }; }; then
    1839619616   cf_cv_sys_time_select=yes
    1839719617 else
    18398 @@ -11075,7 +11254,7 @@
     19618@@ -11075,7 +11399,7 @@
    1839919619 
    1840019620 fi
    1840119621 
    1840219622-echo "$as_me:11078: result: $cf_cv_sys_time_select" >&5
    18403 +echo "$as_me:11257: result: $cf_cv_sys_time_select" >&5
     19623+echo "$as_me:11402: result: $cf_cv_sys_time_select" >&5
    1840419624 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
    1840519625 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
    1840619626 #define HAVE_SYS_TIME_SELECT 1
    18407 @@ -11089,7 +11268,7 @@
     19627@@ -11089,7 +11413,7 @@
    1840819628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1840919629 ac_main_return=return
    1841019630 
    1841119631-echo "$as_me:11092: checking for $CC option to accept ANSI C" >&5
    18412 +echo "$as_me:11271: checking for $CC option to accept ANSI C" >&5
     19632+echo "$as_me:11416: checking for $CC option to accept ANSI C" >&5
    1841319633 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
    1841419634 if test "${ac_cv_prog_cc_stdc+set}" = set; then
    1841519635   echo $ECHO_N "(cached) $ECHO_C" >&6
    18416 @@ -11097,7 +11276,7 @@
     19636@@ -11097,7 +11421,7 @@
    1841719637   ac_cv_prog_cc_stdc=no
    1841819638 ac_save_CC=$CC
    1841919639 cat >conftest.$ac_ext <<_ACEOF
    1842019640-#line 11100 "configure"
    18421 +#line 11279 "configure"
     19641+#line 11424 "configure"
    1842219642 #include "confdefs.h"
    1842319643 #include <stdarg.h>
    1842419644 #include <stdio.h>
    18425 @@ -11146,16 +11325,16 @@
     19645@@ -11146,16 +11470,16 @@
    1842619646 do
    1842719647   CC="$ac_save_CC $ac_arg"
    1842819648   rm -f conftest.$ac_objext
    1842919649-if { (eval echo "$as_me:11149: \"$ac_compile\"") >&5
    18430 +if { (eval echo "$as_me:11328: \"$ac_compile\"") >&5
     19650+if { (eval echo "$as_me:11473: \"$ac_compile\"") >&5
    1843119651   (eval $ac_compile) 2>&5
    1843219652   ac_status=$?
    1843319653-  echo "$as_me:11152: \$? = $ac_status" >&5
    18434 +  echo "$as_me:11331: \$? = $ac_status" >&5
     19654+  echo "$as_me:11476: \$? = $ac_status" >&5
    1843519655   (exit $ac_status); } &&
    1843619656          { ac_try='test -s conftest.$ac_objext'
    1843719657-  { (eval echo "$as_me:11155: \"$ac_try\"") >&5
    18438 +  { (eval echo "$as_me:11334: \"$ac_try\"") >&5
     19658+  { (eval echo "$as_me:11479: \"$ac_try\"") >&5
    1843919659   (eval $ac_try) 2>&5
    1844019660   ac_status=$?
    1844119661-  echo "$as_me:11158: \$? = $ac_status" >&5
    18442 +  echo "$as_me:11337: \$? = $ac_status" >&5
     19662+  echo "$as_me:11482: \$? = $ac_status" >&5
    1844319663   (exit $ac_status); }; }; then
    1844419664   ac_cv_prog_cc_stdc=$ac_arg
    1844519665 break
    18446 @@ -11172,21 +11351,21 @@
     19666@@ -11172,21 +11496,21 @@
    1844719667 
    1844819668 case "x$ac_cv_prog_cc_stdc" in
    1844919669   x|xno)
    1845019670-    echo "$as_me:11175: result: none needed" >&5
    18451 +    echo "$as_me:11354: result: none needed" >&5
     19671+    echo "$as_me:11499: result: none needed" >&5
    1845219672 echo "${ECHO_T}none needed" >&6 ;;
    1845319673   *)
    1845419674-    echo "$as_me:11178: result: $ac_cv_prog_cc_stdc" >&5
    18455 +    echo "$as_me:11357: result: $ac_cv_prog_cc_stdc" >&5
     19675+    echo "$as_me:11502: result: $ac_cv_prog_cc_stdc" >&5
    1845619676 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
    1845719677     CC="$CC $ac_cv_prog_cc_stdc" ;;
     
    1845919679 
    1846019680-echo "$as_me:11183: checking for an ANSI C-conforming const" >&5
    18461 +echo "$as_me:11362: checking for an ANSI C-conforming const" >&5
     19681+echo "$as_me:11507: checking for an ANSI C-conforming const" >&5
    1846219682 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
    1846319683 if test "${ac_cv_c_const+set}" = set; then
     
    1846619686   cat >conftest.$ac_ext <<_ACEOF
    1846719687-#line 11189 "configure"
    18468 +#line 11368 "configure"
     19688+#line 11513 "configure"
    1846919689 #include "confdefs.h"
    1847019690 
    1847119691 int
    18472 @@ -11244,16 +11423,16 @@
     19692@@ -11244,16 +11568,16 @@
    1847319693 }
    1847419694 _ACEOF
    1847519695 rm -f conftest.$ac_objext
    1847619696-if { (eval echo "$as_me:11247: \"$ac_compile\"") >&5
    18477 +if { (eval echo "$as_me:11426: \"$ac_compile\"") >&5
     19697+if { (eval echo "$as_me:11571: \"$ac_compile\"") >&5
    1847819698   (eval $ac_compile) 2>&5
    1847919699   ac_status=$?
    1848019700-  echo "$as_me:11250: \$? = $ac_status" >&5
    18481 +  echo "$as_me:11429: \$? = $ac_status" >&5
     19701+  echo "$as_me:11574: \$? = $ac_status" >&5
    1848219702   (exit $ac_status); } &&
    1848319703          { ac_try='test -s conftest.$ac_objext'
    1848419704-  { (eval echo "$as_me:11253: \"$ac_try\"") >&5
    18485 +  { (eval echo "$as_me:11432: \"$ac_try\"") >&5
     19705+  { (eval echo "$as_me:11577: \"$ac_try\"") >&5
    1848619706   (eval $ac_try) 2>&5
    1848719707   ac_status=$?
    1848819708-  echo "$as_me:11256: \$? = $ac_status" >&5
    18489 +  echo "$as_me:11435: \$? = $ac_status" >&5
     19709+  echo "$as_me:11580: \$? = $ac_status" >&5
    1849019710   (exit $ac_status); }; }; then
    1849119711   ac_cv_c_const=yes
    1849219712 else
    18493 @@ -11263,7 +11442,7 @@
     19713@@ -11263,7 +11587,7 @@
    1849419714 fi
    1849519715 rm -f conftest.$ac_objext conftest.$ac_ext
    1849619716 fi
    1849719717-echo "$as_me:11266: result: $ac_cv_c_const" >&5
    18498 +echo "$as_me:11445: result: $ac_cv_c_const" >&5
     19718+echo "$as_me:11590: result: $ac_cv_c_const" >&5
    1849919719 echo "${ECHO_T}$ac_cv_c_const" >&6
    1850019720 if test $ac_cv_c_const = no; then
    1850119721 
    18502 @@ -11273,7 +11452,7 @@
     19722@@ -11273,7 +11597,7 @@
    1850319723 
    1850419724 fi
    1850519725 
    1850619726-echo "$as_me:11276: checking for inline" >&5
    18507 +echo "$as_me:11455: checking for inline" >&5
     19727+echo "$as_me:11600: checking for inline" >&5
    1850819728 echo $ECHO_N "checking for inline... $ECHO_C" >&6
    1850919729 if test "${ac_cv_c_inline+set}" = set; then
    1851019730   echo $ECHO_N "(cached) $ECHO_C" >&6
    18511 @@ -11281,7 +11460,7 @@
     19731@@ -11281,7 +11605,7 @@
    1851219732   ac_cv_c_inline=no
    1851319733 for ac_kw in inline __inline__ __inline; do
    1851419734   cat >conftest.$ac_ext <<_ACEOF
    1851519735-#line 11284 "configure"
    18516 +#line 11463 "configure"
     19736+#line 11608 "configure"
    1851719737 #include "confdefs.h"
    1851819738 #ifndef __cplusplus
    1851919739 static $ac_kw int static_foo () {return 0; }
    18520 @@ -11290,16 +11469,16 @@
     19740@@ -11290,16 +11614,16 @@
    1852119741 
    1852219742 _ACEOF
    1852319743 rm -f conftest.$ac_objext
    1852419744-if { (eval echo "$as_me:11293: \"$ac_compile\"") >&5
    18525 +if { (eval echo "$as_me:11472: \"$ac_compile\"") >&5
     19745+if { (eval echo "$as_me:11617: \"$ac_compile\"") >&5
    1852619746   (eval $ac_compile) 2>&5
    1852719747   ac_status=$?
    1852819748-  echo "$as_me:11296: \$? = $ac_status" >&5
    18529 +  echo "$as_me:11475: \$? = $ac_status" >&5
     19749+  echo "$as_me:11620: \$? = $ac_status" >&5
    1853019750   (exit $ac_status); } &&
    1853119751          { ac_try='test -s conftest.$ac_objext'
    1853219752-  { (eval echo "$as_me:11299: \"$ac_try\"") >&5
    18533 +  { (eval echo "$as_me:11478: \"$ac_try\"") >&5
     19753+  { (eval echo "$as_me:11623: \"$ac_try\"") >&5
    1853419754   (eval $ac_try) 2>&5
    1853519755   ac_status=$?
    1853619756-  echo "$as_me:11302: \$? = $ac_status" >&5
    18537 +  echo "$as_me:11481: \$? = $ac_status" >&5
     19757+  echo "$as_me:11626: \$? = $ac_status" >&5
    1853819758   (exit $ac_status); }; }; then
    1853919759   ac_cv_c_inline=$ac_kw; break
    1854019760 else
    18541 @@ -11310,7 +11489,7 @@
     19761@@ -11310,7 +11634,7 @@
    1854219762 done
    1854319763 
    1854419764 fi
    1854519765-echo "$as_me:11313: result: $ac_cv_c_inline" >&5
    18546 +echo "$as_me:11492: result: $ac_cv_c_inline" >&5
     19766+echo "$as_me:11637: result: $ac_cv_c_inline" >&5
    1854719767 echo "${ECHO_T}$ac_cv_c_inline" >&6
    1854819768 case $ac_cv_c_inline in
    1854919769   inline | yes) ;;
    18550 @@ -11327,16 +11506,197 @@
     19770@@ -11327,69 +11651,250 @@
    1855119771 
    1855219772 NCURSES_INLINE=
     
    1855519775-#define CC_HAS_INLINE_FUNCS 1
    1855619776-EOF
     19777-
     19778-       NCURSES_INLINE=inline
     19779-fi
     19780-
     19781-if test $NCURSES_CHTYPE = auto ; then
     19782-
     19783-echo "$as_me:11339: checking for type of chtype" >&5
     19784-echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
     19785-if test "${cf_cv_typeof_chtype+set}" = set; then
    1855719786+  NCURSES_INLINE=inline
    1855819787+  if test "$INTEL_COMPILER" = yes
     
    1856119790+  elif test "$GCC" = yes
    1856219791+  then
    18563 +    echo "$as_me:11515: checking if gcc supports options to tune inlining" >&5
     19792+    echo "$as_me:11660: checking if gcc supports options to tune inlining" >&5
    1856419793+echo $ECHO_N "checking if gcc supports options to tune inlining... $ECHO_C" >&6
    1856519794+if test "${cf_cv_gcc_inline+set}" = set; then
    18566 +  echo $ECHO_N "(cached) $ECHO_C" >&6
    18567 +else
    18568 +
     19795   echo $ECHO_N "(cached) $ECHO_C" >&6
     19796 else
     19797 
     19798-               if test "$cross_compiling" = yes; then
     19799-  cf_cv_typeof_chtype=long
     19800-else
     19801-  cat >conftest.$ac_ext <<_ACEOF
     19802-#line 11349 "configure"
    1856919803+      cf_save_CFLAGS=$CFLAGS
    1857019804+      CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
    1857119805+      cat >conftest.$ac_ext <<_ACEOF
    18572 +#line 11524 "configure"
    18573 +#include "confdefs.h"
     19806+#line 11669 "configure"
     19807 #include "confdefs.h"
     19808-
     19809-#define WANT_BITS 31
     19810-#include <stdio.h>
     19811-int main()
    1857419812+inline int foo(void) { return 1; }
    1857519813+int
    1857619814+main ()
    18577 +{
     19815 {
     19816-       FILE *fp = fopen("cf_test.out", "w");
     19817-       if (fp != 0) {
     19818-               char *result = "long";
     19819-               if (sizeof(unsigned long) > sizeof(unsigned int)) {
     19820-                       int n;
     19821-                       unsigned int x, y;
     19822-                       for (n = 0; n < WANT_BITS; n++) {
     19823-                               x = (1 << n);
     19824-                               y = (x >> n);
     19825-                               if (y != 1 || x == 0) {
     19826-                                       x = 0;
     19827-                                       break;
     19828-                               }
     19829-                       }
     19830-                       /*
     19831-                        * If x is nonzero, an int is big enough for the bits
     19832-                        * that we want.
     19833-                        */
     19834-                       result = (x != 0) ? "int" : "long";
     19835-               }
     19836-               fputs(result, fp);
     19837-               fclose(fp);
     19838-       }
     19839-       ${cf_cv_main_return:-return}(0);
    1857819840+${cf_cv_main_return:-return} foo()
    1857919841+  ;
     
    1858219844+_ACEOF
    1858319845+rm -f conftest.$ac_objext
    18584 +if { (eval echo "$as_me:11536: \"$ac_compile\"") >&5
     19846+if { (eval echo "$as_me:11681: \"$ac_compile\"") >&5
    1858519847+  (eval $ac_compile) 2>&5
    1858619848+  ac_status=$?
    18587 +  echo "$as_me:11539: \$? = $ac_status" >&5
     19849+  echo "$as_me:11684: \$? = $ac_status" >&5
    1858819850+  (exit $ac_status); } &&
    1858919851+         { ac_try='test -s conftest.$ac_objext'
    18590 +  { (eval echo "$as_me:11542: \"$ac_try\"") >&5
     19852+  { (eval echo "$as_me:11687: \"$ac_try\"") >&5
    1859119853+  (eval $ac_try) 2>&5
    1859219854+  ac_status=$?
    18593 +  echo "$as_me:11545: \$? = $ac_status" >&5
     19855+  echo "$as_me:11690: \$? = $ac_status" >&5
    1859419856+  (exit $ac_status); }; }; then
    1859519857+  cf_cv_gcc_inline=yes
     
    1860319865+
    1860419866+fi
    18605 +echo "$as_me:11557: result: $cf_cv_gcc_inline" >&5
     19867+echo "$as_me:11702: result: $cf_cv_gcc_inline" >&5
    1860619868+echo "${ECHO_T}$cf_cv_gcc_inline" >&6
    1860719869+    if test "$cf_cv_gcc_inline" = yes ; then
     
    1865019912+yes)
    1865119913+       cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
    18652  
    18653 -       NCURSES_INLINE=inline
     19914+
    1865419915+       cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
    1865519916+
     
    1868019941+fi
    1868119942+
    18682 +echo "$as_me:11633: checking for signal global datatype" >&5
     19943+echo "$as_me:11778: checking for signal global datatype" >&5
    1868319944+echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
    1868419945+if test "${cf_cv_sig_atomic_t+set}" = set; then
     
    1869219953+       do
    1869319954+       cat >conftest.$ac_ext <<_ACEOF
    18694 +#line 11645 "configure"
     19955+#line 11790 "configure"
    1869519956+#include "confdefs.h"
    1869619957+
     
    1871519976+_ACEOF
    1871619977+rm -f conftest.$ac_objext
    18717 +if { (eval echo "$as_me:11668: \"$ac_compile\"") >&5
     19978+if { (eval echo "$as_me:11813: \"$ac_compile\"") >&5
    1871819979+  (eval $ac_compile) 2>&5
    1871919980+  ac_status=$?
    18720 +  echo "$as_me:11671: \$? = $ac_status" >&5
     19981+  echo "$as_me:11816: \$? = $ac_status" >&5
    1872119982+  (exit $ac_status); } &&
    1872219983+         { ac_try='test -s conftest.$ac_objext'
    18723 +  { (eval echo "$as_me:11674: \"$ac_try\"") >&5
     19984+  { (eval echo "$as_me:11819: \"$ac_try\"") >&5
    1872419985+  (eval $ac_try) 2>&5
    1872519986+  ac_status=$?
    18726 +  echo "$as_me:11677: \$? = $ac_status" >&5
     19987+  echo "$as_me:11822: \$? = $ac_status" >&5
    1872719988+  (exit $ac_status); }; }; then
    1872819989+  cf_cv_sig_atomic_t=$cf_type
     
    1873119992+cat conftest.$ac_ext >&5
    1873219993+cf_cv_sig_atomic_t=no
    18733  fi
     19994+fi
    1873419995+rm -f conftest.$ac_objext conftest.$ac_ext
    1873519996+               test "$cf_cv_sig_atomic_t" != no && break
     
    1873819999+fi
    1873920000+
    18740 +echo "$as_me:11691: result: $cf_cv_sig_atomic_t" >&5
     20001+echo "$as_me:11836: result: $cf_cv_sig_atomic_t" >&5
    1874120002+echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
    1874220003+test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
    1874320004+#define SIG_ATOMIC_T $cf_cv_sig_atomic_t
    1874420005+EOF
    18745  
    18746  if test $NCURSES_CHTYPE = auto ; then
    18747  
    18748 -echo "$as_me:11339: checking for type of chtype" >&5
    18749 +echo "$as_me:11699: checking for type of chtype" >&5
    18750  echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
    18751  if test "${cf_cv_typeof_chtype+set}" = set; then
    18752    echo $ECHO_N "(cached) $ECHO_C" >&6
    18753 @@ -11346,7 +11706,7 @@
    18754    cf_cv_typeof_chtype=long
    18755  else
    18756    cat >conftest.$ac_ext <<_ACEOF
    18757 -#line 11349 "configure"
    18758 +#line 11709 "configure"
    18759  #include "confdefs.h"
    18760  
    18761  #define WANT_BITS 31
    18762 @@ -11381,15 +11741,15 @@
     20006+
     20007+if test $NCURSES_CHTYPE = auto ; then
     20008+
     20009+echo "$as_me:11844: checking for type of chtype" >&5
     20010+echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
     20011+if test "${cf_cv_typeof_chtype+set}" = set; then
     20012+  echo $ECHO_N "(cached) $ECHO_C" >&6
     20013+else
     20014+
     20015+               if test "$cross_compiling" = yes; then
     20016+  cf_cv_typeof_chtype=long
     20017+else
     20018+  cat >conftest.$ac_ext <<_ACEOF
     20019+#line 11854 "configure"
     20020+#include "confdefs.h"
     20021+
     20022+#define WANT_BITS 31
     20023+#include <stdio.h>
     20024+int main()
     20025+{
     20026+       FILE *fp = fopen("cf_test.out", "w");
     20027+       if (fp != 0) {
     20028+               char *result = "long";
     20029+               if (sizeof(unsigned long) > sizeof(unsigned int)) {
     20030+                       int n;
     20031+                       unsigned int x, y;
     20032+                       for (n = 0; n < WANT_BITS; n++) {
     20033+                               x = (1 << n);
     20034+                               y = (x >> n);
     20035+                               if (y != 1 || x == 0) {
     20036+                                       x = 0;
     20037+                                       break;
     20038+                               }
     20039+                       }
     20040+                       /*
     20041+                        * If x is nonzero, an int is big enough for the bits
     20042+                        * that we want.
     20043+                        */
     20044+                       result = (x != 0) ? "int" : "long";
     20045+               }
     20046+               fputs(result, fp);
     20047+               fclose(fp);
     20048+       }
     20049+       ${cf_cv_main_return:-return}(0);
     20050 }
    1876320051 
    1876420052 _ACEOF
    1876520053 rm -f conftest$ac_exeext
    1876620054-if { (eval echo "$as_me:11384: \"$ac_link\"") >&5
    18767 +if { (eval echo "$as_me:11744: \"$ac_link\"") >&5
     20055+if { (eval echo "$as_me:11889: \"$ac_link\"") >&5
    1876820056   (eval $ac_link) 2>&5
    1876920057   ac_status=$?
    1877020058-  echo "$as_me:11387: \$? = $ac_status" >&5
    18771 +  echo "$as_me:11747: \$? = $ac_status" >&5
     20059+  echo "$as_me:11892: \$? = $ac_status" >&5
    1877220060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    1877320061-  { (eval echo "$as_me:11389: \"$ac_try\"") >&5
    18774 +  { (eval echo "$as_me:11749: \"$ac_try\"") >&5
     20062+  { (eval echo "$as_me:11894: \"$ac_try\"") >&5
    1877520063   (eval $ac_try) 2>&5
    1877620064   ac_status=$?
    1877720065-  echo "$as_me:11392: \$? = $ac_status" >&5
    18778 +  echo "$as_me:11752: \$? = $ac_status" >&5
     20066+  echo "$as_me:11897: \$? = $ac_status" >&5
    1877920067   (exit $ac_status); }; }; then
    1878020068   cf_cv_typeof_chtype=`cat cf_test.out`
    1878120069 else
    18782 @@ -11404,7 +11764,7 @@
     20070@@ -11404,7 +11909,7 @@
    1878320071 
    1878420072 fi
    1878520073 
    1878620074-echo "$as_me:11407: result: $cf_cv_typeof_chtype" >&5
    18787 +echo "$as_me:11767: result: $cf_cv_typeof_chtype" >&5
     20075+echo "$as_me:11912: result: $cf_cv_typeof_chtype" >&5
    1878820076 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
    1878920077 
    1879020078 cat >>confdefs.h <<EOF
    18791 @@ -11414,15 +11774,16 @@
     20079@@ -11414,15 +11919,16 @@
    1879220080 else
    1879320081        cf_cv_typeof_chtype=$NCURSES_CHTYPE
     
    1879620084 
    1879720085-echo "$as_me:11418: checking if unsigned literals are legal" >&5
    18798 +echo "$as_me:11779: checking if unsigned literals are legal" >&5
     20086+echo "$as_me:11924: checking if unsigned literals are legal" >&5
    1879920087 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
    1880020088 if test "${cf_cv_unsigned_literals+set}" = set; then
     
    1880420092        cat >conftest.$ac_ext <<_ACEOF
    1880520093-#line 11425 "configure"
    18806 +#line 11786 "configure"
     20094+#line 11931 "configure"
    1880720095 #include "confdefs.h"
    1880820096 
    1880920097 int
    18810 @@ -11434,16 +11795,16 @@
     20098@@ -11434,16 +11940,16 @@
    1881120099 }
    1881220100 _ACEOF
    1881320101 rm -f conftest.$ac_objext
    1881420102-if { (eval echo "$as_me:11437: \"$ac_compile\"") >&5
    18815 +if { (eval echo "$as_me:11798: \"$ac_compile\"") >&5
     20103+if { (eval echo "$as_me:11943: \"$ac_compile\"") >&5
    1881620104   (eval $ac_compile) 2>&5
    1881720105   ac_status=$?
    1881820106-  echo "$as_me:11440: \$? = $ac_status" >&5
    18819 +  echo "$as_me:11801: \$? = $ac_status" >&5
     20107+  echo "$as_me:11946: \$? = $ac_status" >&5
    1882020108   (exit $ac_status); } &&
    1882120109          { ac_try='test -s conftest.$ac_objext'
    1882220110-  { (eval echo "$as_me:11443: \"$ac_try\"") >&5
    18823 +  { (eval echo "$as_me:11804: \"$ac_try\"") >&5
     20111+  { (eval echo "$as_me:11949: \"$ac_try\"") >&5
    1882420112   (eval $ac_try) 2>&5
    1882520113   ac_status=$?
    1882620114-  echo "$as_me:11446: \$? = $ac_status" >&5
    18827 +  echo "$as_me:11807: \$? = $ac_status" >&5
     20115+  echo "$as_me:11952: \$? = $ac_status" >&5
    1882820116   (exit $ac_status); }; }; then
    1882920117   cf_cv_unsigned_literals=yes
    1883020118 else
    18831 @@ -11455,29 +11816,30 @@
     20119@@ -11455,29 +11961,30 @@
    1883220120 
    1883320121 fi
    1883420122 
    1883520123-echo "$as_me:11458: result: $cf_cv_unsigned_literals" >&5
    18836 +echo "$as_me:11819: result: $cf_cv_unsigned_literals" >&5
     20124+echo "$as_me:11964: result: $cf_cv_unsigned_literals" >&5
    1883720125 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
    1883820126 
     
    1885320141 
    1885420142-echo "$as_me:11473: checking if external errno is declared" >&5
    18855 +echo "$as_me:11835: checking if external errno is declared" >&5
     20143+echo "$as_me:11980: checking if external errno is declared" >&5
    1885620144 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
    1885720145 if test "${cf_cv_dcl_errno+set}" = set; then
     
    1886120149     cat >conftest.$ac_ext <<_ACEOF
    1886220150-#line 11480 "configure"
    18863 +#line 11842 "configure"
     20151+#line 11987 "configure"
    1886420152 #include "confdefs.h"
    1886520153 
    1886620154 #ifdef HAVE_STDLIB_H
    18867 @@ -11495,16 +11857,16 @@
     20155@@ -11495,16 +12002,16 @@
    1886820156 }
    1886920157 _ACEOF
    1887020158 rm -f conftest.$ac_objext
    1887120159-if { (eval echo "$as_me:11498: \"$ac_compile\"") >&5
    18872 +if { (eval echo "$as_me:11860: \"$ac_compile\"") >&5
     20160+if { (eval echo "$as_me:12005: \"$ac_compile\"") >&5
    1887320161   (eval $ac_compile) 2>&5
    1887420162   ac_status=$?
    1887520163-  echo "$as_me:11501: \$? = $ac_status" >&5
    18876 +  echo "$as_me:11863: \$? = $ac_status" >&5
     20164+  echo "$as_me:12008: \$? = $ac_status" >&5
    1887720165   (exit $ac_status); } &&
    1887820166          { ac_try='test -s conftest.$ac_objext'
    1887920167-  { (eval echo "$as_me:11504: \"$ac_try\"") >&5
    18880 +  { (eval echo "$as_me:11866: \"$ac_try\"") >&5
     20168+  { (eval echo "$as_me:12011: \"$ac_try\"") >&5
    1888120169   (eval $ac_try) 2>&5
    1888220170   ac_status=$?
    1888320171-  echo "$as_me:11507: \$? = $ac_status" >&5
    18884 +  echo "$as_me:11869: \$? = $ac_status" >&5
     20172+  echo "$as_me:12014: \$? = $ac_status" >&5
    1888520173   (exit $ac_status); }; }; then
    1888620174   cf_cv_dcl_errno=yes
    1888720175 else
    18888 @@ -11515,7 +11877,7 @@
     20176@@ -11515,7 +12022,7 @@
    1888920177 rm -f conftest.$ac_objext conftest.$ac_ext
    1889020178 
    1889120179 fi
    1889220180-echo "$as_me:11518: result: $cf_cv_dcl_errno" >&5
    18893 +echo "$as_me:11880: result: $cf_cv_dcl_errno" >&5
     20181+echo "$as_me:12025: result: $cf_cv_dcl_errno" >&5
    1889420182 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
    1889520183 
    1889620184 if test "$cf_cv_dcl_errno" = no ; then
    18897 @@ -11530,14 +11892,14 @@
     20185@@ -11530,14 +12037,14 @@
    1889820186 
    1889920187 # It's possible (for near-UNIX clones) that the data doesn't exist
    1890020188 
    1890120189-echo "$as_me:11533: checking if external errno exists" >&5
    18902 +echo "$as_me:11895: checking if external errno exists" >&5
     20190+echo "$as_me:12040: checking if external errno exists" >&5
    1890320191 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
    1890420192 if test "${cf_cv_have_errno+set}" = set; then
     
    1890820196     cat >conftest.$ac_ext <<_ACEOF
    1890920197-#line 11540 "configure"
    18910 +#line 11902 "configure"
     20198+#line 12047 "configure"
    1891120199 #include "confdefs.h"
    1891220200 
    1891320201 #undef errno
    18914 @@ -11552,16 +11914,16 @@
     20202@@ -11552,16 +12059,16 @@
    1891520203 }
    1891620204 _ACEOF
    1891720205 rm -f conftest.$ac_objext conftest$ac_exeext
    1891820206-if { (eval echo "$as_me:11555: \"$ac_link\"") >&5
    18919 +if { (eval echo "$as_me:11917: \"$ac_link\"") >&5
     20207+if { (eval echo "$as_me:12062: \"$ac_link\"") >&5
    1892020208   (eval $ac_link) 2>&5
    1892120209   ac_status=$?
    1892220210-  echo "$as_me:11558: \$? = $ac_status" >&5
    18923 +  echo "$as_me:11920: \$? = $ac_status" >&5
     20211+  echo "$as_me:12065: \$? = $ac_status" >&5
    1892420212   (exit $ac_status); } &&
    1892520213          { ac_try='test -s conftest$ac_exeext'
    1892620214-  { (eval echo "$as_me:11561: \"$ac_try\"") >&5
    18927 +  { (eval echo "$as_me:11923: \"$ac_try\"") >&5
     20215+  { (eval echo "$as_me:12068: \"$ac_try\"") >&5
    1892820216   (eval $ac_try) 2>&5
    1892920217   ac_status=$?
    1893020218-  echo "$as_me:11564: \$? = $ac_status" >&5
    18931 +  echo "$as_me:11926: \$? = $ac_status" >&5
     20219+  echo "$as_me:12071: \$? = $ac_status" >&5
    1893220220   (exit $ac_status); }; }; then
    1893320221   cf_cv_have_errno=yes
    1893420222 else
    18935 @@ -11572,7 +11934,7 @@
     20223@@ -11572,7 +12079,7 @@
    1893620224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1893720225 
    1893820226 fi
    1893920227-echo "$as_me:11575: result: $cf_cv_have_errno" >&5
    18940 +echo "$as_me:11937: result: $cf_cv_have_errno" >&5
     20228+echo "$as_me:12082: result: $cf_cv_have_errno" >&5
    1894120229 echo "${ECHO_T}$cf_cv_have_errno" >&6
    1894220230 
    1894320231 if test "$cf_cv_have_errno" = yes ; then
    18944 @@ -11585,7 +11947,7 @@
     20232@@ -11585,7 +12092,7 @@
    1894520233 
    1894620234 fi
    1894720235 
    1894820236-echo "$as_me:11588: checking if data-only library module links" >&5
    18949 +echo "$as_me:11950: checking if data-only library module links" >&5
     20237+echo "$as_me:12095: checking if data-only library module links" >&5
    1895020238 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
    1895120239 if test "${cf_cv_link_dataonly+set}" = set; then
    1895220240   echo $ECHO_N "(cached) $ECHO_C" >&6
    18953 @@ -11593,20 +11955,20 @@
     20241@@ -11593,20 +12100,20 @@
    1895420242 
    1895520243        rm -f conftest.a
    1895620244        cat >conftest.$ac_ext <<EOF
    1895720245-#line 11596 "configure"
    18958 +#line 11958 "configure"
     20246+#line 12103 "configure"
    1895920247 int    testdata[3] = { 123, 456, 789 };
    1896020248 EOF
    1896120249-       if { (eval echo "$as_me:11599: \"$ac_compile\"") >&5
    18962 +       if { (eval echo "$as_me:11961: \"$ac_compile\"") >&5
     20250+       if { (eval echo "$as_me:12106: \"$ac_compile\"") >&5
    1896320251   (eval $ac_compile) 2>&5
    1896420252   ac_status=$?
    1896520253-  echo "$as_me:11602: \$? = $ac_status" >&5
    18966 +  echo "$as_me:11964: \$? = $ac_status" >&5
     20254+  echo "$as_me:12109: \$? = $ac_status" >&5
    1896720255   (exit $ac_status); } ; then
    1896820256                mv conftest.o data.o && \
     
    1897220260        cat >conftest.$ac_ext <<EOF
    1897320261-#line 11609 "configure"
    18974 +#line 11971 "configure"
     20262+#line 12116 "configure"
    1897520263 int    testfunc()
    1897620264 {
    1897720265 #if defined(NeXT)
    18978 @@ -11619,10 +11981,10 @@
     20266@@ -11619,10 +12126,10 @@
    1897920267 #endif
    1898020268 }
    1898120269 EOF
    1898220270-       if { (eval echo "$as_me:11622: \"$ac_compile\"") >&5
    18983 +       if { (eval echo "$as_me:11984: \"$ac_compile\"") >&5
     20271+       if { (eval echo "$as_me:12129: \"$ac_compile\"") >&5
    1898420272   (eval $ac_compile) 2>&5
    1898520273   ac_status=$?
    1898620274-  echo "$as_me:11625: \$? = $ac_status" >&5
    18987 +  echo "$as_me:11987: \$? = $ac_status" >&5
     20275+  echo "$as_me:12132: \$? = $ac_status" >&5
    1898820276   (exit $ac_status); }; then
    1898920277                mv conftest.o func.o && \
    1899020278                ( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null
    18991 @@ -11635,7 +11997,7 @@
     20279@@ -11635,7 +12142,7 @@
    1899220280   cf_cv_link_dataonly=unknown
    1899320281 else
    1899420282   cat >conftest.$ac_ext <<_ACEOF
    1899520283-#line 11638 "configure"
    18996 +#line 12000 "configure"
     20284+#line 12145 "configure"
    1899720285 #include "confdefs.h"
    1899820286 
    1899920287        int main()
    19000 @@ -11646,15 +12008,15 @@
     20288@@ -11646,15 +12153,15 @@
    1900120289 
    1900220290 _ACEOF
    1900320291 rm -f conftest$ac_exeext
    1900420292-if { (eval echo "$as_me:11649: \"$ac_link\"") >&5
    19005 +if { (eval echo "$as_me:12011: \"$ac_link\"") >&5
     20293+if { (eval echo "$as_me:12156: \"$ac_link\"") >&5
    1900620294   (eval $ac_link) 2>&5
    1900720295   ac_status=$?
    1900820296-  echo "$as_me:11652: \$? = $ac_status" >&5
    19009 +  echo "$as_me:12014: \$? = $ac_status" >&5
     20297+  echo "$as_me:12159: \$? = $ac_status" >&5
    1901020298   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    1901120299-  { (eval echo "$as_me:11654: \"$ac_try\"") >&5
    19012 +  { (eval echo "$as_me:12016: \"$ac_try\"") >&5
     20300+  { (eval echo "$as_me:12161: \"$ac_try\"") >&5
    1901320301   (eval $ac_try) 2>&5
    1901420302   ac_status=$?
    1901520303-  echo "$as_me:11657: \$? = $ac_status" >&5
    19016 +  echo "$as_me:12019: \$? = $ac_status" >&5
     20304+  echo "$as_me:12164: \$? = $ac_status" >&5
    1901720305   (exit $ac_status); }; }; then
    1901820306   cf_cv_link_dataonly=yes
    1901920307 else
    19020 @@ -11669,7 +12031,7 @@
     20308@@ -11669,7 +12176,7 @@
    1902120309 
    1902220310 fi
    1902320311 
    1902420312-echo "$as_me:11672: result: $cf_cv_link_dataonly" >&5
    19025 +echo "$as_me:12034: result: $cf_cv_link_dataonly" >&5
     20313+echo "$as_me:12179: result: $cf_cv_link_dataonly" >&5
    1902620314 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
    1902720315 
    1902820316 if test "$cf_cv_link_dataonly" = no ; then
    19029 @@ -11704,13 +12066,13 @@
     20317@@ -11704,13 +12211,13 @@
    1903020318 
    1903120319 do
    1903220320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
    1903320321-echo "$as_me:11707: checking for $ac_func" >&5
    19034 +echo "$as_me:12069: checking for $ac_func" >&5
     20322+echo "$as_me:12214: checking for $ac_func" >&5
    1903520323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
    1903620324 if eval "test \"\${$as_ac_var+set}\" = set"; then
     
    1903920327   cat >conftest.$ac_ext <<_ACEOF
    1904020328-#line 11713 "configure"
    19041 +#line 12075 "configure"
     20329+#line 12220 "configure"
    1904220330 #include "confdefs.h"
    1904320331 /* System header to define __stub macros and hopefully few prototypes,
    1904420332     which can conflict with char $ac_func (); below.  */
    19045 @@ -11741,16 +12103,16 @@
     20333@@ -11741,16 +12248,16 @@
    1904620334 }
    1904720335 _ACEOF
    1904820336 rm -f conftest.$ac_objext conftest$ac_exeext
    1904920337-if { (eval echo "$as_me:11744: \"$ac_link\"") >&5
    19050 +if { (eval echo "$as_me:12106: \"$ac_link\"") >&5
     20338+if { (eval echo "$as_me:12251: \"$ac_link\"") >&5
    1905120339   (eval $ac_link) 2>&5
    1905220340   ac_status=$?
    1905320341-  echo "$as_me:11747: \$? = $ac_status" >&5
    19054 +  echo "$as_me:12109: \$? = $ac_status" >&5
     20342+  echo "$as_me:12254: \$? = $ac_status" >&5
    1905520343   (exit $ac_status); } &&
    1905620344          { ac_try='test -s conftest$ac_exeext'
    1905720345-  { (eval echo "$as_me:11750: \"$ac_try\"") >&5
    19058 +  { (eval echo "$as_me:12112: \"$ac_try\"") >&5
     20346+  { (eval echo "$as_me:12257: \"$ac_try\"") >&5
    1905920347   (eval $ac_try) 2>&5
    1906020348   ac_status=$?
    1906120349-  echo "$as_me:11753: \$? = $ac_status" >&5
    19062 +  echo "$as_me:12115: \$? = $ac_status" >&5
     20350+  echo "$as_me:12260: \$? = $ac_status" >&5
    1906320351   (exit $ac_status); }; }; then
    1906420352   eval "$as_ac_var=yes"
    1906520353 else
    19066 @@ -11760,7 +12122,7 @@
     20354@@ -11760,7 +12267,7 @@
    1906720355 fi
    1906820356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1906920357 fi
    1907020358-echo "$as_me:11763: result: `eval echo '${'$as_ac_var'}'`" >&5
    19071 +echo "$as_me:12125: result: `eval echo '${'$as_ac_var'}'`" >&5
     20359+echo "$as_me:12270: result: `eval echo '${'$as_ac_var'}'`" >&5
    1907220360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
    1907320361 if test `eval echo '${'$as_ac_var'}'` = yes; then
    1907420362   cat >>confdefs.h <<EOF
    19075 @@ -11772,14 +12134,14 @@
     20363@@ -11772,14 +12279,14 @@
    1907620364 
    1907720365 if test "$with_getcap" = "yes" ; then
    1907820366 
    1907920367-echo "$as_me:11775: checking for terminal-capability database functions" >&5
    19080 +echo "$as_me:12137: checking for terminal-capability database functions" >&5
     20368+echo "$as_me:12282: checking for terminal-capability database functions" >&5
    1908120369 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
    1908220370 if test "${cf_cv_cgetent+set}" = set; then
     
    1908620374 cat >conftest.$ac_ext <<_ACEOF
    1908720375-#line 11782 "configure"
    19088 +#line 12144 "configure"
     20376+#line 12289 "configure"
    1908920377 #include "confdefs.h"
    1909020378 
    1909120379 #include <stdlib.h>
    19092 @@ -11799,16 +12161,16 @@
     20380@@ -11799,16 +12306,16 @@
    1909320381 }
    1909420382 _ACEOF
    1909520383 rm -f conftest.$ac_objext conftest$ac_exeext
    1909620384-if { (eval echo "$as_me:11802: \"$ac_link\"") >&5
    19097 +if { (eval echo "$as_me:12164: \"$ac_link\"") >&5
     20385+if { (eval echo "$as_me:12309: \"$ac_link\"") >&5
    1909820386   (eval $ac_link) 2>&5
    1909920387   ac_status=$?
    1910020388-  echo "$as_me:11805: \$? = $ac_status" >&5
    19101 +  echo "$as_me:12167: \$? = $ac_status" >&5
     20389+  echo "$as_me:12312: \$? = $ac_status" >&5
    1910220390   (exit $ac_status); } &&
    1910320391          { ac_try='test -s conftest$ac_exeext'
    1910420392-  { (eval echo "$as_me:11808: \"$ac_try\"") >&5
    19105 +  { (eval echo "$as_me:12170: \"$ac_try\"") >&5
     20393+  { (eval echo "$as_me:12315: \"$ac_try\"") >&5
    1910620394   (eval $ac_try) 2>&5
    1910720395   ac_status=$?
    1910820396-  echo "$as_me:11811: \$? = $ac_status" >&5
    19109 +  echo "$as_me:12173: \$? = $ac_status" >&5
     20397+  echo "$as_me:12318: \$? = $ac_status" >&5
    1911020398   (exit $ac_status); }; }; then
    1911120399   cf_cv_cgetent=yes
    1911220400 else
    19113 @@ -11820,7 +12182,7 @@
     20401@@ -11820,7 +12327,7 @@
    1911420402 
    1911520403 fi
    1911620404 
    1911720405-echo "$as_me:11823: result: $cf_cv_cgetent" >&5
    19118 +echo "$as_me:12185: result: $cf_cv_cgetent" >&5
     20406+echo "$as_me:12330: result: $cf_cv_cgetent" >&5
    1911920407 echo "${ECHO_T}$cf_cv_cgetent" >&6
    1912020408 test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
    1912120409 #define HAVE_BSD_CGETENT 1
    19122 @@ -11828,14 +12190,14 @@
     20410@@ -11828,14 +12335,14 @@
    1912320411 
    1912420412 fi
    1912520413 
    1912620414-echo "$as_me:11831: checking for isascii" >&5
    19127 +echo "$as_me:12193: checking for isascii" >&5
     20415+echo "$as_me:12338: checking for isascii" >&5
    1912820416 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
    1912920417 if test "${cf_cv_have_isascii+set}" = set; then
     
    1913320421        cat >conftest.$ac_ext <<_ACEOF
    1913420422-#line 11838 "configure"
    19135 +#line 12200 "configure"
     20423+#line 12345 "configure"
    1913620424 #include "confdefs.h"
    1913720425 #include <ctype.h>
    1913820426 int
    19139 @@ -11847,16 +12209,16 @@
     20427@@ -11847,16 +12354,16 @@
    1914020428 }
    1914120429 _ACEOF
    1914220430 rm -f conftest.$ac_objext conftest$ac_exeext
    1914320431-if { (eval echo "$as_me:11850: \"$ac_link\"") >&5
    19144 +if { (eval echo "$as_me:12212: \"$ac_link\"") >&5
     20432+if { (eval echo "$as_me:12357: \"$ac_link\"") >&5
    1914520433   (eval $ac_link) 2>&5
    1914620434   ac_status=$?
    1914720435-  echo "$as_me:11853: \$? = $ac_status" >&5
    19148 +  echo "$as_me:12215: \$? = $ac_status" >&5
     20436+  echo "$as_me:12360: \$? = $ac_status" >&5
    1914920437   (exit $ac_status); } &&
    1915020438          { ac_try='test -s conftest$ac_exeext'
    1915120439-  { (eval echo "$as_me:11856: \"$ac_try\"") >&5
    19152 +  { (eval echo "$as_me:12218: \"$ac_try\"") >&5
     20440+  { (eval echo "$as_me:12363: \"$ac_try\"") >&5
    1915320441   (eval $ac_try) 2>&5
    1915420442   ac_status=$?
    1915520443-  echo "$as_me:11859: \$? = $ac_status" >&5
    19156 +  echo "$as_me:12221: \$? = $ac_status" >&5
     20444+  echo "$as_me:12366: \$? = $ac_status" >&5
    1915720445   (exit $ac_status); }; }; then
    1915820446   cf_cv_have_isascii=yes
    1915920447 else
    19160 @@ -11867,17 +12229,17 @@
     20448@@ -11867,17 +12374,17 @@
    1916120449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1916220450 
    1916320451 fi
    1916420452-echo "$as_me:11870: result: $cf_cv_have_isascii" >&5
    19165 +echo "$as_me:12232: result: $cf_cv_have_isascii" >&5
     20453+echo "$as_me:12377: result: $cf_cv_have_isascii" >&5
    1916620454 echo "${ECHO_T}$cf_cv_have_isascii" >&6
    1916720455 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
     
    1917120459 if test "$ac_cv_func_sigaction" = yes; then
    1917220460-echo "$as_me:11877: checking whether sigaction needs _POSIX_SOURCE" >&5
    19173 +echo "$as_me:12239: checking whether sigaction needs _POSIX_SOURCE" >&5
     20461+echo "$as_me:12384: checking whether sigaction needs _POSIX_SOURCE" >&5
    1917420462 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
    1917520463 cat >conftest.$ac_ext <<_ACEOF
    1917620464-#line 11880 "configure"
    19177 +#line 12242 "configure"
     20465+#line 12387 "configure"
    1917820466 #include "confdefs.h"
    1917920467 
    1918020468 #include <sys/types.h>
    19181 @@ -11891,16 +12253,16 @@
     20469@@ -11891,16 +12398,16 @@
    1918220470 }
    1918320471 _ACEOF
    1918420472 rm -f conftest.$ac_objext
    1918520473-if { (eval echo "$as_me:11894: \"$ac_compile\"") >&5
    19186 +if { (eval echo "$as_me:12256: \"$ac_compile\"") >&5
     20474+if { (eval echo "$as_me:12401: \"$ac_compile\"") >&5
    1918720475   (eval $ac_compile) 2>&5
    1918820476   ac_status=$?
    1918920477-  echo "$as_me:11897: \$? = $ac_status" >&5
    19190 +  echo "$as_me:12259: \$? = $ac_status" >&5
     20478+  echo "$as_me:12404: \$? = $ac_status" >&5
    1919120479   (exit $ac_status); } &&
    1919220480          { ac_try='test -s conftest.$ac_objext'
    1919320481-  { (eval echo "$as_me:11900: \"$ac_try\"") >&5
    19194 +  { (eval echo "$as_me:12262: \"$ac_try\"") >&5
     20482+  { (eval echo "$as_me:12407: \"$ac_try\"") >&5
    1919520483   (eval $ac_try) 2>&5
    1919620484   ac_status=$?
    1919720485-  echo "$as_me:11903: \$? = $ac_status" >&5
    19198 +  echo "$as_me:12265: \$? = $ac_status" >&5
     20486+  echo "$as_me:12410: \$? = $ac_status" >&5
    1919920487   (exit $ac_status); }; }; then
    1920020488   sigact_bad=no
    1920120489 else
    19202 @@ -11908,7 +12270,7 @@
     20490@@ -11908,7 +12415,7 @@
    1920320491 cat conftest.$ac_ext >&5
    1920420492 
    1920520493 cat >conftest.$ac_ext <<_ACEOF
    1920620494-#line 11911 "configure"
    19207 +#line 12273 "configure"
     20495+#line 12418 "configure"
    1920820496 #include "confdefs.h"
    1920920497 
    1921020498 #define _POSIX_SOURCE
    19211 @@ -11923,16 +12285,16 @@
     20499@@ -11923,16 +12430,16 @@
    1921220500 }
    1921320501 _ACEOF
    1921420502 rm -f conftest.$ac_objext
    1921520503-if { (eval echo "$as_me:11926: \"$ac_compile\"") >&5
    19216 +if { (eval echo "$as_me:12288: \"$ac_compile\"") >&5
     20504+if { (eval echo "$as_me:12433: \"$ac_compile\"") >&5
    1921720505   (eval $ac_compile) 2>&5
    1921820506   ac_status=$?
    1921920507-  echo "$as_me:11929: \$? = $ac_status" >&5
    19220 +  echo "$as_me:12291: \$? = $ac_status" >&5
     20508+  echo "$as_me:12436: \$? = $ac_status" >&5
    1922120509   (exit $ac_status); } &&
    1922220510          { ac_try='test -s conftest.$ac_objext'
    1922320511-  { (eval echo "$as_me:11932: \"$ac_try\"") >&5
    19224 +  { (eval echo "$as_me:12294: \"$ac_try\"") >&5
     20512+  { (eval echo "$as_me:12439: \"$ac_try\"") >&5
    1922520513   (eval $ac_try) 2>&5
    1922620514   ac_status=$?
    1922720515-  echo "$as_me:11935: \$? = $ac_status" >&5
    19228 +  echo "$as_me:12297: \$? = $ac_status" >&5
     20516+  echo "$as_me:12442: \$? = $ac_status" >&5
    1922920517   (exit $ac_status); }; }; then
    1923020518   sigact_bad=yes
    1923120519         cat >>confdefs.h <<\EOF
    19232 @@ -11947,11 +12309,11 @@
     20520@@ -11947,11 +12454,11 @@
    1923320521 rm -f conftest.$ac_objext conftest.$ac_ext
    1923420522 fi
    1923520523 rm -f conftest.$ac_objext conftest.$ac_ext
    1923620524-echo "$as_me:11950: result: $sigact_bad" >&5
    19237 +echo "$as_me:12312: result: $sigact_bad" >&5
     20525+echo "$as_me:12457: result: $sigact_bad" >&5
    1923820526 echo "${ECHO_T}$sigact_bad" >&6
    1923920527 fi
    1924020528 
    1924120529-echo "$as_me:11954: checking if nanosleep really works" >&5
    19242 +echo "$as_me:12316: checking if nanosleep really works" >&5
     20530+echo "$as_me:12461: checking if nanosleep really works" >&5
    1924320531 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
    1924420532 if test "${cf_cv_func_nanosleep+set}" = set; then
    1924520533   echo $ECHO_N "(cached) $ECHO_C" >&6
    19246 @@ -11961,7 +12323,7 @@
     20534@@ -11961,7 +12468,7 @@
    1924720535   cf_cv_func_nanosleep=unknown
    1924820536 else
    1924920537   cat >conftest.$ac_ext <<_ACEOF
    1925020538-#line 11964 "configure"
    19251 +#line 12326 "configure"
     20539+#line 12471 "configure"
    1925220540 #include "confdefs.h"
    1925320541 
    1925420542 #include <stdio.h>
    19255 @@ -11986,15 +12348,15 @@
     20543@@ -11986,15 +12493,15 @@
    1925620544 
    1925720545 _ACEOF
    1925820546 rm -f conftest$ac_exeext
    1925920547-if { (eval echo "$as_me:11989: \"$ac_link\"") >&5
    19260 +if { (eval echo "$as_me:12351: \"$ac_link\"") >&5
     20548+if { (eval echo "$as_me:12496: \"$ac_link\"") >&5
    1926120549   (eval $ac_link) 2>&5
    1926220550   ac_status=$?
    1926320551-  echo "$as_me:11992: \$? = $ac_status" >&5
    19264 +  echo "$as_me:12354: \$? = $ac_status" >&5
     20552+  echo "$as_me:12499: \$? = $ac_status" >&5
    1926520553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    1926620554-  { (eval echo "$as_me:11994: \"$ac_try\"") >&5
    19267 +  { (eval echo "$as_me:12356: \"$ac_try\"") >&5
     20555+  { (eval echo "$as_me:12501: \"$ac_try\"") >&5
    1926820556   (eval $ac_try) 2>&5
    1926920557   ac_status=$?
    1927020558-  echo "$as_me:11997: \$? = $ac_status" >&5
    19271 +  echo "$as_me:12359: \$? = $ac_status" >&5
     20559+  echo "$as_me:12504: \$? = $ac_status" >&5
    1927220560   (exit $ac_status); }; }; then
    1927320561   cf_cv_func_nanosleep=yes
    1927420562 else
    19275 @@ -12006,7 +12368,7 @@
     20563@@ -12006,7 +12513,7 @@
    1927620564 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    1927720565 fi
    1927820566 fi
    1927920567-echo "$as_me:12009: result: $cf_cv_func_nanosleep" >&5
    19280 +echo "$as_me:12371: result: $cf_cv_func_nanosleep" >&5
     20568+echo "$as_me:12516: result: $cf_cv_func_nanosleep" >&5
    1928120569 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
    1928220570 
    1928320571 test "$cf_cv_func_nanosleep" = "yes" && cat >>confdefs.h <<\EOF
    19284 @@ -12020,23 +12382,23 @@
     20572@@ -12020,23 +12527,23 @@
    1928520573 
    1928620574 do
    1928720575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    1928820576-echo "$as_me:12023: checking for $ac_header" >&5
    19289 +echo "$as_me:12385: checking for $ac_header" >&5
     20577+echo "$as_me:12530: checking for $ac_header" >&5
    1929020578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    1929120579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
     
    1929420582   cat >conftest.$ac_ext <<_ACEOF
    1929520583-#line 12029 "configure"
    19296 +#line 12391 "configure"
     20584+#line 12536 "configure"
    1929720585 #include "confdefs.h"
    1929820586 #include <$ac_header>
    1929920587 _ACEOF
    1930020588-if { (eval echo "$as_me:12033: \"$ac_cpp conftest.$ac_ext\"") >&5
    19301 +if { (eval echo "$as_me:12395: \"$ac_cpp conftest.$ac_ext\"") >&5
     20589+if { (eval echo "$as_me:12540: \"$ac_cpp conftest.$ac_ext\"") >&5
    1930220590   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    1930320591   ac_status=$?
     
    1930620594   cat conftest.err >&5
    1930720595-  echo "$as_me:12039: \$? = $ac_status" >&5
    19308 +  echo "$as_me:12401: \$? = $ac_status" >&5
     20596+  echo "$as_me:12546: \$? = $ac_status" >&5
    1930920597   (exit $ac_status); } >/dev/null; then
    1931020598   if test -s conftest.err; then
    1931120599     ac_cpp_err=$ac_c_preproc_warn_flag
    19312 @@ -12055,7 +12417,7 @@
     20600@@ -12055,7 +12562,7 @@
    1931320601 fi
    1931420602 rm -f conftest.err conftest.$ac_ext
    1931520603 fi
    1931620604-echo "$as_me:12058: result: `eval echo '${'$as_ac_Header'}'`" >&5
    19317 +echo "$as_me:12420: result: `eval echo '${'$as_ac_Header'}'`" >&5
     20605+echo "$as_me:12565: result: `eval echo '${'$as_ac_Header'}'`" >&5
    1931820606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    1931920607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    1932020608   cat >>confdefs.h <<EOF
    19321 @@ -12070,23 +12432,23 @@
     20609@@ -12070,23 +12577,23 @@
    1932220610 for ac_header in sys/termio.h
    1932320611 do
    1932420612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    1932520613-echo "$as_me:12073: checking for $ac_header" >&5
    19326 +echo "$as_me:12435: checking for $ac_header" >&5
     20614+echo "$as_me:12580: checking for $ac_header" >&5
    1932720615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    1932820616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
     
    1933120619   cat >conftest.$ac_ext <<_ACEOF
    1933220620-#line 12079 "configure"
    19333 +#line 12441 "configure"
     20621+#line 12586 "configure"
    1933420622 #include "confdefs.h"
    1933520623 #include <$ac_header>
    1933620624 _ACEOF
    1933720625-if { (eval echo "$as_me:12083: \"$ac_cpp conftest.$ac_ext\"") >&5
    19338 +if { (eval echo "$as_me:12445: \"$ac_cpp conftest.$ac_ext\"") >&5
     20626+if { (eval echo "$as_me:12590: \"$ac_cpp conftest.$ac_ext\"") >&5
    1933920627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    1934020628   ac_status=$?
     
    1934320631   cat conftest.err >&5
    1934420632-  echo "$as_me:12089: \$? = $ac_status" >&5
    19345 +  echo "$as_me:12451: \$? = $ac_status" >&5
     20633+  echo "$as_me:12596: \$? = $ac_status" >&5
    1934620634   (exit $ac_status); } >/dev/null; then
    1934720635   if test -s conftest.err; then
    1934820636     ac_cpp_err=$ac_c_preproc_warn_flag
    19349 @@ -12105,7 +12467,7 @@
     20637@@ -12105,7 +12612,7 @@
    1935020638 fi
    1935120639 rm -f conftest.err conftest.$ac_ext
    1935220640 fi
    1935320641-echo "$as_me:12108: result: `eval echo '${'$as_ac_Header'}'`" >&5
    19354 +echo "$as_me:12470: result: `eval echo '${'$as_ac_Header'}'`" >&5
     20642+echo "$as_me:12615: result: `eval echo '${'$as_ac_Header'}'`" >&5
    1935520643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    1935620644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    1935720645   cat >>confdefs.h <<EOF
    19358 @@ -12123,10 +12485,10 @@
     20646@@ -12123,10 +12630,10 @@
    1935920647        *)      termios_bad=maybe ;;
    1936020648        esac
    1936120649        if test "$termios_bad" = maybe ; then
    1936220650-       echo "$as_me:12126: checking whether termios.h needs _POSIX_SOURCE" >&5
    19363 +       echo "$as_me:12488: checking whether termios.h needs _POSIX_SOURCE" >&5
     20651+       echo "$as_me:12633: checking whether termios.h needs _POSIX_SOURCE" >&5
    1936420652 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
    1936520653        cat >conftest.$ac_ext <<_ACEOF
    1936620654-#line 12129 "configure"
    19367 +#line 12491 "configure"
     20655+#line 12636 "configure"
    1936820656 #include "confdefs.h"
    1936920657 #include <termios.h>
    1937020658 int
    19371 @@ -12138,16 +12500,16 @@
     20659@@ -12138,16 +12645,16 @@
    1937220660 }
    1937320661 _ACEOF
    1937420662 rm -f conftest.$ac_objext
    1937520663-if { (eval echo "$as_me:12141: \"$ac_compile\"") >&5
    19376 +if { (eval echo "$as_me:12503: \"$ac_compile\"") >&5
     20664+if { (eval echo "$as_me:12648: \"$ac_compile\"") >&5
    1937720665   (eval $ac_compile) 2>&5
    1937820666   ac_status=$?
    1937920667-  echo "$as_me:12144: \$? = $ac_status" >&5
    19380 +  echo "$as_me:12506: \$? = $ac_status" >&5
     20668+  echo "$as_me:12651: \$? = $ac_status" >&5
    1938120669   (exit $ac_status); } &&
    1938220670          { ac_try='test -s conftest.$ac_objext'
    1938320671-  { (eval echo "$as_me:12147: \"$ac_try\"") >&5
    19384 +  { (eval echo "$as_me:12509: \"$ac_try\"") >&5
     20672+  { (eval echo "$as_me:12654: \"$ac_try\"") >&5
    1938520673   (eval $ac_try) 2>&5
    1938620674   ac_status=$?
    1938720675-  echo "$as_me:12150: \$? = $ac_status" >&5
    19388 +  echo "$as_me:12512: \$? = $ac_status" >&5
     20676+  echo "$as_me:12657: \$? = $ac_status" >&5
    1938920677   (exit $ac_status); }; }; then
    1939020678   termios_bad=no
    1939120679 else
    19392 @@ -12155,7 +12517,7 @@
     20680@@ -12155,7 +12662,7 @@
    1939320681 cat conftest.$ac_ext >&5
    1939420682 
    1939520683                cat >conftest.$ac_ext <<_ACEOF
    1939620684-#line 12158 "configure"
    19397 +#line 12520 "configure"
     20685+#line 12665 "configure"
    1939820686 #include "confdefs.h"
    1939920687 
    1940020688 #define _POSIX_SOURCE
    19401 @@ -12169,16 +12531,16 @@
     20689@@ -12169,16 +12676,16 @@
    1940220690 }
    1940320691 _ACEOF
    1940420692 rm -f conftest.$ac_objext
    1940520693-if { (eval echo "$as_me:12172: \"$ac_compile\"") >&5
    19406 +if { (eval echo "$as_me:12534: \"$ac_compile\"") >&5
     20694+if { (eval echo "$as_me:12679: \"$ac_compile\"") >&5
    1940720695   (eval $ac_compile) 2>&5
    1940820696   ac_status=$?
    1940920697-  echo "$as_me:12175: \$? = $ac_status" >&5
    19410 +  echo "$as_me:12537: \$? = $ac_status" >&5
     20698+  echo "$as_me:12682: \$? = $ac_status" >&5
    1941120699   (exit $ac_status); } &&
    1941220700          { ac_try='test -s conftest.$ac_objext'
    1941320701-  { (eval echo "$as_me:12178: \"$ac_try\"") >&5
    19414 +  { (eval echo "$as_me:12540: \"$ac_try\"") >&5
     20702+  { (eval echo "$as_me:12685: \"$ac_try\"") >&5
    1941520703   (eval $ac_try) 2>&5
    1941620704   ac_status=$?
    1941720705-  echo "$as_me:12181: \$? = $ac_status" >&5
    19418 +  echo "$as_me:12543: \$? = $ac_status" >&5
     20706+  echo "$as_me:12688: \$? = $ac_status" >&5
    1941920707   (exit $ac_status); }; }; then
    1942020708   termios_bad=unknown
    1942120709 else
    19422 @@ -12193,19 +12555,19 @@
     20710@@ -12193,19 +12700,19 @@
    1942320711 
    1942420712 fi
    1942520713 rm -f conftest.$ac_objext conftest.$ac_ext
    1942620714-       echo "$as_me:12196: result: $termios_bad" >&5
    19427 +       echo "$as_me:12558: result: $termios_bad" >&5
     20715+       echo "$as_me:12703: result: $termios_bad" >&5
    1942820716 echo "${ECHO_T}$termios_bad" >&6
    1942920717        fi
     
    1943120719 
    1943220720-echo "$as_me:12201: checking for tcgetattr" >&5
    19433 +echo "$as_me:12563: checking for tcgetattr" >&5
     20721+echo "$as_me:12708: checking for tcgetattr" >&5
    1943420722 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
    1943520723 if test "${cf_cv_have_tcgetattr+set}" = set; then
     
    1943920727 cat >conftest.$ac_ext <<_ACEOF
    1944020728-#line 12208 "configure"
    19441 +#line 12570 "configure"
     20729+#line 12715 "configure"
    1944220730 #include "confdefs.h"
    1944320731 
    1944420732 #include <sys/types.h>
    19445 @@ -12233,16 +12595,16 @@
     20733@@ -12233,16 +12740,16 @@
    1944620734 }
    1944720735 _ACEOF
    1944820736 rm -f conftest.$ac_objext conftest$ac_exeext
    1944920737-if { (eval echo "$as_me:12236: \"$ac_link\"") >&5
    19450 +if { (eval echo "$as_me:12598: \"$ac_link\"") >&5
     20738+if { (eval echo "$as_me:12743: \"$ac_link\"") >&5
    1945120739   (eval $ac_link) 2>&5
    1945220740   ac_status=$?
    1945320741-  echo "$as_me:12239: \$? = $ac_status" >&5
    19454 +  echo "$as_me:12601: \$? = $ac_status" >&5
     20742+  echo "$as_me:12746: \$? = $ac_status" >&5
    1945520743   (exit $ac_status); } &&
    1945620744          { ac_try='test -s conftest$ac_exeext'
    1945720745-  { (eval echo "$as_me:12242: \"$ac_try\"") >&5
    19458 +  { (eval echo "$as_me:12604: \"$ac_try\"") >&5
     20746+  { (eval echo "$as_me:12749: \"$ac_try\"") >&5
    1945920747   (eval $ac_try) 2>&5
    1946020748   ac_status=$?
    1946120749-  echo "$as_me:12245: \$? = $ac_status" >&5
    19462 +  echo "$as_me:12607: \$? = $ac_status" >&5
     20750+  echo "$as_me:12752: \$? = $ac_status" >&5
    1946320751   (exit $ac_status); }; }; then
    1946420752   cf_cv_have_tcgetattr=yes
    1946520753 else
    19466 @@ -12252,20 +12614,20 @@
     20754@@ -12252,20 +12759,20 @@
    1946720755 fi
    1946820756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1946920757 fi
    1947020758-echo "$as_me:12255: result: $cf_cv_have_tcgetattr" >&5
    19471 +echo "$as_me:12617: result: $cf_cv_have_tcgetattr" >&5
     20759+echo "$as_me:12762: result: $cf_cv_have_tcgetattr" >&5
    1947220760 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
    1947320761 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
     
    1947620764 
    1947720765-echo "$as_me:12261: checking for vsscanf function or workaround" >&5
    19478 +echo "$as_me:12623: checking for vsscanf function or workaround" >&5
     20766+echo "$as_me:12768: checking for vsscanf function or workaround" >&5
    1947920767 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
    1948020768 if test "${cf_cv_func_vsscanf+set}" = set; then
     
    1948420772 cat >conftest.$ac_ext <<_ACEOF
    1948520773-#line 12268 "configure"
    19486 +#line 12630 "configure"
     20774+#line 12775 "configure"
    1948720775 #include "confdefs.h"
    1948820776 
    1948920777 #include <stdarg.h>
    19490 @@ -12281,16 +12643,16 @@
     20778@@ -12281,16 +12788,16 @@
    1949120779 }
    1949220780 _ACEOF
    1949320781 rm -f conftest.$ac_objext conftest$ac_exeext
    1949420782-if { (eval echo "$as_me:12284: \"$ac_link\"") >&5
    19495 +if { (eval echo "$as_me:12646: \"$ac_link\"") >&5
     20783+if { (eval echo "$as_me:12791: \"$ac_link\"") >&5
    1949620784   (eval $ac_link) 2>&5
    1949720785   ac_status=$?
    1949820786-  echo "$as_me:12287: \$? = $ac_status" >&5
    19499 +  echo "$as_me:12649: \$? = $ac_status" >&5
     20787+  echo "$as_me:12794: \$? = $ac_status" >&5
    1950020788   (exit $ac_status); } &&
    1950120789          { ac_try='test -s conftest$ac_exeext'
    1950220790-  { (eval echo "$as_me:12290: \"$ac_try\"") >&5
    19503 +  { (eval echo "$as_me:12652: \"$ac_try\"") >&5
     20791+  { (eval echo "$as_me:12797: \"$ac_try\"") >&5
    1950420792   (eval $ac_try) 2>&5
    1950520793   ac_status=$?
    1950620794-  echo "$as_me:12293: \$? = $ac_status" >&5
    19507 +  echo "$as_me:12655: \$? = $ac_status" >&5
     20795+  echo "$as_me:12800: \$? = $ac_status" >&5
    1950820796   (exit $ac_status); }; }; then
    1950920797   cf_cv_func_vsscanf=vsscanf
    1951020798 else
    19511 @@ -12298,7 +12660,7 @@
     20799@@ -12298,7 +12805,7 @@
    1951220800 cat conftest.$ac_ext >&5
    1951320801 
    1951420802 cat >conftest.$ac_ext <<_ACEOF
    1951520803-#line 12301 "configure"
    19516 +#line 12663 "configure"
     20804+#line 12808 "configure"
    1951720805 #include "confdefs.h"
    1951820806 
    1951920807 #include <stdarg.h>
    19520 @@ -12320,16 +12682,16 @@
     20808@@ -12320,16 +12827,16 @@
    1952120809 }
    1952220810 _ACEOF
    1952320811 rm -f conftest.$ac_objext conftest$ac_exeext
    1952420812-if { (eval echo "$as_me:12323: \"$ac_link\"") >&5
    19525 +if { (eval echo "$as_me:12685: \"$ac_link\"") >&5
     20813+if { (eval echo "$as_me:12830: \"$ac_link\"") >&5
    1952620814   (eval $ac_link) 2>&5
    1952720815   ac_status=$?
    1952820816-  echo "$as_me:12326: \$? = $ac_status" >&5
    19529 +  echo "$as_me:12688: \$? = $ac_status" >&5
     20817+  echo "$as_me:12833: \$? = $ac_status" >&5
    1953020818   (exit $ac_status); } &&
    1953120819          { ac_try='test -s conftest$ac_exeext'
    1953220820-  { (eval echo "$as_me:12329: \"$ac_try\"") >&5
    19533 +  { (eval echo "$as_me:12691: \"$ac_try\"") >&5
     20821+  { (eval echo "$as_me:12836: \"$ac_try\"") >&5
    1953420822   (eval $ac_try) 2>&5
    1953520823   ac_status=$?
    1953620824-  echo "$as_me:12332: \$? = $ac_status" >&5
    19537 +  echo "$as_me:12694: \$? = $ac_status" >&5
     20825+  echo "$as_me:12839: \$? = $ac_status" >&5
    1953820826   (exit $ac_status); }; }; then
    1953920827   cf_cv_func_vsscanf=vfscanf
    1954020828 else
    19541 @@ -12337,7 +12699,7 @@
     20829@@ -12337,7 +12844,7 @@
    1954220830 cat conftest.$ac_ext >&5
    1954320831 
    1954420832 cat >conftest.$ac_ext <<_ACEOF
    1954520833-#line 12340 "configure"
    19546 +#line 12702 "configure"
     20834+#line 12847 "configure"
    1954720835 #include "confdefs.h"
    1954820836 
    1954920837 #include <stdarg.h>
    19550 @@ -12359,16 +12721,16 @@
     20838@@ -12359,16 +12866,16 @@
    1955120839 }
    1955220840 _ACEOF
    1955320841 rm -f conftest.$ac_objext conftest$ac_exeext
    1955420842-if { (eval echo "$as_me:12362: \"$ac_link\"") >&5
    19555 +if { (eval echo "$as_me:12724: \"$ac_link\"") >&5
     20843+if { (eval echo "$as_me:12869: \"$ac_link\"") >&5
    1955620844   (eval $ac_link) 2>&5
    1955720845   ac_status=$?
    1955820846-  echo "$as_me:12365: \$? = $ac_status" >&5
    19559 +  echo "$as_me:12727: \$? = $ac_status" >&5
     20847+  echo "$as_me:12872: \$? = $ac_status" >&5
    1956020848   (exit $ac_status); } &&
    1956120849          { ac_try='test -s conftest$ac_exeext'
    1956220850-  { (eval echo "$as_me:12368: \"$ac_try\"") >&5
    19563 +  { (eval echo "$as_me:12730: \"$ac_try\"") >&5
     20851+  { (eval echo "$as_me:12875: \"$ac_try\"") >&5
    1956420852   (eval $ac_try) 2>&5
    1956520853   ac_status=$?
    1956620854-  echo "$as_me:12371: \$? = $ac_status" >&5
    19567 +  echo "$as_me:12733: \$? = $ac_status" >&5
     20855+  echo "$as_me:12878: \$? = $ac_status" >&5
    1956820856   (exit $ac_status); }; }; then
    1956920857   cf_cv_func_vsscanf=_doscan
    1957020858 else
    19571 @@ -12383,7 +12745,7 @@
     20859@@ -12383,7 +12890,7 @@
    1957220860 fi
    1957320861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1957420862 fi
    1957520863-echo "$as_me:12386: result: $cf_cv_func_vsscanf" >&5
    19576 +echo "$as_me:12748: result: $cf_cv_func_vsscanf" >&5
     20864+echo "$as_me:12893: result: $cf_cv_func_vsscanf" >&5
    1957720865 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
    1957820866 
    1957920867 case $cf_cv_func_vsscanf in #(vi
    19580 @@ -12401,7 +12763,7 @@
     20868@@ -12401,7 +12908,7 @@
    1958120869 ;;
    1958220870 esac
    1958320871 
    1958420872-echo "$as_me:12404: checking for working mkstemp" >&5
    19585 +echo "$as_me:12766: checking for working mkstemp" >&5
     20873+echo "$as_me:12911: checking for working mkstemp" >&5
    1958620874 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
    1958720875 if test "${cf_cv_func_mkstemp+set}" = set; then
    1958820876   echo $ECHO_N "(cached) $ECHO_C" >&6
    19589 @@ -12409,13 +12771,13 @@
     20877@@ -12409,13 +12916,13 @@
    1959020878 
    1959120879 rm -f conftest*
    1959220880 if test "$cross_compiling" = yes; then
    1959320881-  echo "$as_me:12412: checking for mkstemp" >&5
    19594 +  echo "$as_me:12774: checking for mkstemp" >&5
     20882+  echo "$as_me:12919: checking for mkstemp" >&5
    1959520883 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
    1959620884 if test "${ac_cv_func_mkstemp+set}" = set; then
     
    1959920887   cat >conftest.$ac_ext <<_ACEOF
    1960020888-#line 12418 "configure"
    19601 +#line 12780 "configure"
     20889+#line 12925 "configure"
    1960220890 #include "confdefs.h"
    1960320891 /* System header to define __stub macros and hopefully few prototypes,
    1960420892     which can conflict with char mkstemp (); below.  */
    19605 @@ -12446,16 +12808,16 @@
     20893@@ -12446,16 +12953,16 @@
    1960620894 }
    1960720895 _ACEOF
    1960820896 rm -f conftest.$ac_objext conftest$ac_exeext
    1960920897-if { (eval echo "$as_me:12449: \"$ac_link\"") >&5
    19610 +if { (eval echo "$as_me:12811: \"$ac_link\"") >&5
     20898+if { (eval echo "$as_me:12956: \"$ac_link\"") >&5
    1961120899   (eval $ac_link) 2>&5
    1961220900   ac_status=$?
    1961320901-  echo "$as_me:12452: \$? = $ac_status" >&5
    19614 +  echo "$as_me:12814: \$? = $ac_status" >&5
     20902+  echo "$as_me:12959: \$? = $ac_status" >&5
    1961520903   (exit $ac_status); } &&
    1961620904          { ac_try='test -s conftest$ac_exeext'
    1961720905-  { (eval echo "$as_me:12455: \"$ac_try\"") >&5
    19618 +  { (eval echo "$as_me:12817: \"$ac_try\"") >&5
     20906+  { (eval echo "$as_me:12962: \"$ac_try\"") >&5
    1961920907   (eval $ac_try) 2>&5
    1962020908   ac_status=$?
    1962120909-  echo "$as_me:12458: \$? = $ac_status" >&5
    19622 +  echo "$as_me:12820: \$? = $ac_status" >&5
     20910+  echo "$as_me:12965: \$? = $ac_status" >&5
    1962320911   (exit $ac_status); }; }; then
    1962420912   ac_cv_func_mkstemp=yes
    1962520913 else
    19626 @@ -12465,12 +12827,12 @@
     20914@@ -12465,12 +12972,12 @@
    1962720915 fi
    1962820916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1962920917 fi
    1963020918-echo "$as_me:12468: result: $ac_cv_func_mkstemp" >&5
    19631 +echo "$as_me:12830: result: $ac_cv_func_mkstemp" >&5
     20919+echo "$as_me:12975: result: $ac_cv_func_mkstemp" >&5
    1963220920 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
    1963320921 
     
    1963520923   cat >conftest.$ac_ext <<_ACEOF
    1963620924-#line 12473 "configure"
    19637 +#line 12835 "configure"
     20925+#line 12980 "configure"
    1963820926 #include "confdefs.h"
    1963920927 
    1964020928 #include <sys/types.h>
    19641 @@ -12508,15 +12870,15 @@
     20929@@ -12508,15 +13015,15 @@
    1964220930 
    1964320931 _ACEOF
    1964420932 rm -f conftest$ac_exeext
    1964520933-if { (eval echo "$as_me:12511: \"$ac_link\"") >&5
    19646 +if { (eval echo "$as_me:12873: \"$ac_link\"") >&5
     20934+if { (eval echo "$as_me:13018: \"$ac_link\"") >&5
    1964720935   (eval $ac_link) 2>&5
    1964820936   ac_status=$?
    1964920937-  echo "$as_me:12514: \$? = $ac_status" >&5
    19650 +  echo "$as_me:12876: \$? = $ac_status" >&5
     20938+  echo "$as_me:13021: \$? = $ac_status" >&5
    1965120939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    1965220940-  { (eval echo "$as_me:12516: \"$ac_try\"") >&5
    19653 +  { (eval echo "$as_me:12878: \"$ac_try\"") >&5
     20941+  { (eval echo "$as_me:13023: \"$ac_try\"") >&5
    1965420942   (eval $ac_try) 2>&5
    1965520943   ac_status=$?
    1965620944-  echo "$as_me:12519: \$? = $ac_status" >&5
    19657 +  echo "$as_me:12881: \$? = $ac_status" >&5
     20945+  echo "$as_me:13026: \$? = $ac_status" >&5
    1965820946   (exit $ac_status); }; }; then
    1965920947   cf_cv_func_mkstemp=yes
    1966020948 
    19661 @@ -12531,7 +12893,7 @@
     20949@@ -12531,7 +13038,7 @@
    1966220950 fi
    1966320951 
    1966420952 fi
    1966520953-echo "$as_me:12534: result: $cf_cv_func_mkstemp" >&5
    19666 +echo "$as_me:12896: result: $cf_cv_func_mkstemp" >&5
     20954+echo "$as_me:13041: result: $cf_cv_func_mkstemp" >&5
    1966720955 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
    1966820956 if test "$cf_cv_func_mkstemp" = yes ; then
    1966920957        cat >>confdefs.h <<\EOF
    19670 @@ -12549,21 +12911,21 @@
     20958@@ -12549,21 +13056,21 @@
    1967120959 fi
    1967220960 
    1967320961 if test "$cross_compiling" = yes ; then
    1967420962-       { echo "$as_me:12552: WARNING: cross compiling: assume setvbuf params not reversed" >&5
    19675 +       { echo "$as_me:12914: WARNING: cross compiling: assume setvbuf params not reversed" >&5
     20963+       { echo "$as_me:13059: WARNING: cross compiling: assume setvbuf params not reversed" >&5
    1967620964 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
    1967720965 else
    1967820966-       echo "$as_me:12555: checking whether setvbuf arguments are reversed" >&5
    19679 +       echo "$as_me:12917: checking whether setvbuf arguments are reversed" >&5
     20967+       echo "$as_me:13062: checking whether setvbuf arguments are reversed" >&5
    1968020968 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
    1968120969 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
     
    1968420972   if test "$cross_compiling" = yes; then
    1968520973-  { { echo "$as_me:12561: error: cannot run test program while cross compiling" >&5
    19686 +  { { echo "$as_me:12923: error: cannot run test program while cross compiling" >&5
     20974+  { { echo "$as_me:13068: error: cannot run test program while cross compiling" >&5
    1968720975 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
    1968820976    { (exit 1); exit 1; }; }
     
    1969020978   cat >conftest.$ac_ext <<_ACEOF
    1969120979-#line 12566 "configure"
    19692 +#line 12928 "configure"
     20980+#line 13073 "configure"
    1969320981 #include "confdefs.h"
    1969420982 #include <stdio.h>
    1969520983 /* If setvbuf has the reversed format, exit 0. */
    19696 @@ -12580,15 +12942,15 @@
     20984@@ -12580,15 +13087,15 @@
    1969720985 }
    1969820986 _ACEOF
    1969920987 rm -f conftest$ac_exeext
    1970020988-if { (eval echo "$as_me:12583: \"$ac_link\"") >&5
    19701 +if { (eval echo "$as_me:12945: \"$ac_link\"") >&5
     20989+if { (eval echo "$as_me:13090: \"$ac_link\"") >&5
    1970220990   (eval $ac_link) 2>&5
    1970320991   ac_status=$?
    1970420992-  echo "$as_me:12586: \$? = $ac_status" >&5
    19705 +  echo "$as_me:12948: \$? = $ac_status" >&5
     20993+  echo "$as_me:13093: \$? = $ac_status" >&5
    1970620994   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    1970720995-  { (eval echo "$as_me:12588: \"$ac_try\"") >&5
    19708 +  { (eval echo "$as_me:12950: \"$ac_try\"") >&5
     20996+  { (eval echo "$as_me:13095: \"$ac_try\"") >&5
    1970920997   (eval $ac_try) 2>&5
    1971020998   ac_status=$?
    1971120999-  echo "$as_me:12591: \$? = $ac_status" >&5
    19712 +  echo "$as_me:12953: \$? = $ac_status" >&5
     21000+  echo "$as_me:13098: \$? = $ac_status" >&5
    1971321001   (exit $ac_status); }; }; then
    1971421002   ac_cv_func_setvbuf_reversed=yes
    1971521003 else
    19716 @@ -12601,7 +12963,7 @@
     21004@@ -12601,7 +13108,7 @@
    1971721005 fi
    1971821006 rm -f core core.* *.core
    1971921007 fi
    1972021008-echo "$as_me:12604: result: $ac_cv_func_setvbuf_reversed" >&5
    19721 +echo "$as_me:12966: result: $ac_cv_func_setvbuf_reversed" >&5
     21009+echo "$as_me:13111: result: $ac_cv_func_setvbuf_reversed" >&5
    1972221010 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
    1972321011 if test $ac_cv_func_setvbuf_reversed = yes; then
    1972421012 
    19725 @@ -12612,13 +12974,13 @@
     21013@@ -12612,13 +13119,13 @@
    1972621014 fi
    1972721015 
    1972821016 fi
    1972921017-echo "$as_me:12615: checking return type of signal handlers" >&5
    19730 +echo "$as_me:12977: checking return type of signal handlers" >&5
     21018+echo "$as_me:13122: checking return type of signal handlers" >&5
    1973121019 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
    1973221020 if test "${ac_cv_type_signal+set}" = set; then
     
    1973521023   cat >conftest.$ac_ext <<_ACEOF
    1973621024-#line 12621 "configure"
    19737 +#line 12983 "configure"
     21025+#line 13128 "configure"
    1973821026 #include "confdefs.h"
    1973921027 #include <sys/types.h>
    1974021028 #include <signal.h>
    19741 @@ -12640,16 +13002,16 @@
     21029@@ -12640,16 +13147,16 @@
    1974221030 }
    1974321031 _ACEOF
    1974421032 rm -f conftest.$ac_objext
    1974521033-if { (eval echo "$as_me:12643: \"$ac_compile\"") >&5
    19746 +if { (eval echo "$as_me:13005: \"$ac_compile\"") >&5
     21034+if { (eval echo "$as_me:13150: \"$ac_compile\"") >&5
    1974721035   (eval $ac_compile) 2>&5
    1974821036   ac_status=$?
    1974921037-  echo "$as_me:12646: \$? = $ac_status" >&5
    19750 +  echo "$as_me:13008: \$? = $ac_status" >&5
     21038+  echo "$as_me:13153: \$? = $ac_status" >&5
    1975121039   (exit $ac_status); } &&
    1975221040          { ac_try='test -s conftest.$ac_objext'
    1975321041-  { (eval echo "$as_me:12649: \"$ac_try\"") >&5
    19754 +  { (eval echo "$as_me:13011: \"$ac_try\"") >&5
     21042+  { (eval echo "$as_me:13156: \"$ac_try\"") >&5
    1975521043   (eval $ac_try) 2>&5
    1975621044   ac_status=$?
    1975721045-  echo "$as_me:12652: \$? = $ac_status" >&5
    19758 +  echo "$as_me:13014: \$? = $ac_status" >&5
     21046+  echo "$as_me:13159: \$? = $ac_status" >&5
    1975921047   (exit $ac_status); }; }; then
    1976021048   ac_cv_type_signal=void
    1976121049 else
    19762 @@ -12659,21 +13021,21 @@
     21050@@ -12659,21 +13166,21 @@
    1976321051 fi
    1976421052 rm -f conftest.$ac_objext conftest.$ac_ext
    1976521053 fi
    1976621054-echo "$as_me:12662: result: $ac_cv_type_signal" >&5
    19767 +echo "$as_me:13024: result: $ac_cv_type_signal" >&5
     21055+echo "$as_me:13169: result: $ac_cv_type_signal" >&5
    1976821056 echo "${ECHO_T}$ac_cv_type_signal" >&6
    1976921057 
     
    1977321061 
    1977421062-echo "$as_me:12669: checking for type sigaction_t" >&5
    19775 +echo "$as_me:13031: checking for type sigaction_t" >&5
     21063+echo "$as_me:13176: checking for type sigaction_t" >&5
    1977621064 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
    1977721065 if test "${cf_cv_type_sigaction+set}" = set; then
     
    1978121069        cat >conftest.$ac_ext <<_ACEOF
    1978221070-#line 12676 "configure"
    19783 +#line 13038 "configure"
     21071+#line 13183 "configure"
    1978421072 #include "confdefs.h"
    1978521073 
    1978621074 #include <signal.h>
    19787 @@ -12686,16 +13048,16 @@
     21075@@ -12686,16 +13193,16 @@
    1978821076 }
    1978921077 _ACEOF
    1979021078 rm -f conftest.$ac_objext
    1979121079-if { (eval echo "$as_me:12689: \"$ac_compile\"") >&5
    19792 +if { (eval echo "$as_me:13051: \"$ac_compile\"") >&5
     21080+if { (eval echo "$as_me:13196: \"$ac_compile\"") >&5
    1979321081   (eval $ac_compile) 2>&5
    1979421082   ac_status=$?
    1979521083-  echo "$as_me:12692: \$? = $ac_status" >&5
    19796 +  echo "$as_me:13054: \$? = $ac_status" >&5
     21084+  echo "$as_me:13199: \$? = $ac_status" >&5
    1979721085   (exit $ac_status); } &&
    1979821086          { ac_try='test -s conftest.$ac_objext'
    1979921087-  { (eval echo "$as_me:12695: \"$ac_try\"") >&5
    19800 +  { (eval echo "$as_me:13057: \"$ac_try\"") >&5
     21088+  { (eval echo "$as_me:13202: \"$ac_try\"") >&5
    1980121089   (eval $ac_try) 2>&5
    1980221090   ac_status=$?
    1980321091-  echo "$as_me:12698: \$? = $ac_status" >&5
    19804 +  echo "$as_me:13060: \$? = $ac_status" >&5
     21092+  echo "$as_me:13205: \$? = $ac_status" >&5
    1980521093   (exit $ac_status); }; }; then
    1980621094   cf_cv_type_sigaction=yes
    1980721095 else
    19808 @@ -12706,13 +13068,13 @@
     21096@@ -12706,13 +13213,13 @@
    1980921097 rm -f conftest.$ac_objext conftest.$ac_ext
    1981021098 fi
    1981121099 
    1981221100-echo "$as_me:12709: result: $cf_cv_type_sigaction" >&5
    19813 +echo "$as_me:13071: result: $cf_cv_type_sigaction" >&5
     21101+echo "$as_me:13216: result: $cf_cv_type_sigaction" >&5
    1981421102 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
    1981521103 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
     
    1981821106 
    1981921107-echo "$as_me:12715: checking declaration of size-change" >&5
    19820 +echo "$as_me:13077: checking declaration of size-change" >&5
     21108+echo "$as_me:13222: checking declaration of size-change" >&5
    1982121109 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
    1982221110 if test "${cf_cv_sizechange+set}" = set; then
    1982321111   echo $ECHO_N "(cached) $ECHO_C" >&6
    19824 @@ -12727,7 +13089,7 @@
     21112@@ -12727,7 +13234,7 @@
    1982521113     CPPFLAGS="$cf_save_CPPFLAGS"
    1982621114     test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
    1982721115     cat >conftest.$ac_ext <<_ACEOF
    1982821116-#line 12730 "configure"
    19829 +#line 13092 "configure"
     21117+#line 13237 "configure"
    1983021118 #include "confdefs.h"
    1983121119 #include <sys/types.h>
    1983221120 #ifdef HAVE_TERMIOS_H
    19833 @@ -12771,16 +13133,16 @@
     21121@@ -12771,16 +13278,16 @@
    1983421122 }
    1983521123 _ACEOF
    1983621124 rm -f conftest.$ac_objext
    1983721125-if { (eval echo "$as_me:12774: \"$ac_compile\"") >&5
    19838 +if { (eval echo "$as_me:13136: \"$ac_compile\"") >&5
     21126+if { (eval echo "$as_me:13281: \"$ac_compile\"") >&5
    1983921127   (eval $ac_compile) 2>&5
    1984021128   ac_status=$?
    1984121129-  echo "$as_me:12777: \$? = $ac_status" >&5
    19842 +  echo "$as_me:13139: \$? = $ac_status" >&5
     21130+  echo "$as_me:13284: \$? = $ac_status" >&5
    1984321131   (exit $ac_status); } &&
    1984421132          { ac_try='test -s conftest.$ac_objext'
    1984521133-  { (eval echo "$as_me:12780: \"$ac_try\"") >&5
    19846 +  { (eval echo "$as_me:13142: \"$ac_try\"") >&5
     21134+  { (eval echo "$as_me:13287: \"$ac_try\"") >&5
    1984721135   (eval $ac_try) 2>&5
    1984821136   ac_status=$?
    1984921137-  echo "$as_me:12783: \$? = $ac_status" >&5
    19850 +  echo "$as_me:13145: \$? = $ac_status" >&5
     21138+  echo "$as_me:13290: \$? = $ac_status" >&5
    1985121139   (exit $ac_status); }; }; then
    1985221140   cf_cv_sizechange=yes
    1985321141 else
    19854 @@ -12799,7 +13161,7 @@
     21142@@ -12799,7 +13306,7 @@
    1985521143 done
    1985621144 
    1985721145 fi
    1985821146-echo "$as_me:12802: result: $cf_cv_sizechange" >&5
    19859 +echo "$as_me:13164: result: $cf_cv_sizechange" >&5
     21147+echo "$as_me:13309: result: $cf_cv_sizechange" >&5
    1986021148 echo "${ECHO_T}$cf_cv_sizechange" >&6
    1986121149 if test "$cf_cv_sizechange" != no ; then
    1986221150        cat >>confdefs.h <<\EOF
    19863 @@ -12816,13 +13178,13 @@
     21151@@ -12816,13 +13323,13 @@
    1986421152        esac
    1986521153 fi
    1986621154 
    1986721155-echo "$as_me:12819: checking for memmove" >&5
    19868 +echo "$as_me:13181: checking for memmove" >&5
     21156+echo "$as_me:13326: checking for memmove" >&5
    1986921157 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
    1987021158 if test "${ac_cv_func_memmove+set}" = set; then
     
    1987321161   cat >conftest.$ac_ext <<_ACEOF
    1987421162-#line 12825 "configure"
    19875 +#line 13187 "configure"
     21163+#line 13332 "configure"
    1987621164 #include "confdefs.h"
    1987721165 /* System header to define __stub macros and hopefully few prototypes,
    1987821166     which can conflict with char memmove (); below.  */
    19879 @@ -12853,16 +13215,16 @@
     21167@@ -12853,16 +13360,16 @@
    1988021168 }
    1988121169 _ACEOF
    1988221170 rm -f conftest.$ac_objext conftest$ac_exeext
    1988321171-if { (eval echo "$as_me:12856: \"$ac_link\"") >&5
    19884 +if { (eval echo "$as_me:13218: \"$ac_link\"") >&5
     21172+if { (eval echo "$as_me:13363: \"$ac_link\"") >&5
    1988521173   (eval $ac_link) 2>&5
    1988621174   ac_status=$?
    1988721175-  echo "$as_me:12859: \$? = $ac_status" >&5
    19888 +  echo "$as_me:13221: \$? = $ac_status" >&5
     21176+  echo "$as_me:13366: \$? = $ac_status" >&5
    1988921177   (exit $ac_status); } &&
    1989021178          { ac_try='test -s conftest$ac_exeext'
    1989121179-  { (eval echo "$as_me:12862: \"$ac_try\"") >&5
    19892 +  { (eval echo "$as_me:13224: \"$ac_try\"") >&5
     21180+  { (eval echo "$as_me:13369: \"$ac_try\"") >&5
    1989321181   (eval $ac_try) 2>&5
    1989421182   ac_status=$?
    1989521183-  echo "$as_me:12865: \$? = $ac_status" >&5
    19896 +  echo "$as_me:13227: \$? = $ac_status" >&5
     21184+  echo "$as_me:13372: \$? = $ac_status" >&5
    1989721185   (exit $ac_status); }; }; then
    1989821186   ac_cv_func_memmove=yes
    1989921187 else
    19900 @@ -12872,19 +13234,19 @@
     21188@@ -12872,19 +13379,19 @@
    1990121189 fi
    1990221190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1990321191 fi
    1990421192-echo "$as_me:12875: result: $ac_cv_func_memmove" >&5
    19905 +echo "$as_me:13237: result: $ac_cv_func_memmove" >&5
     21193+echo "$as_me:13382: result: $ac_cv_func_memmove" >&5
    1990621194 echo "${ECHO_T}$ac_cv_func_memmove" >&6
    1990721195 if test $ac_cv_func_memmove = yes; then
     
    1991021198 
    1991121199-echo "$as_me:12881: checking for bcopy" >&5
    19912 +echo "$as_me:13243: checking for bcopy" >&5
     21200+echo "$as_me:13388: checking for bcopy" >&5
    1991321201 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
    1991421202 if test "${ac_cv_func_bcopy+set}" = set; then
     
    1991721205   cat >conftest.$ac_ext <<_ACEOF
    1991821206-#line 12887 "configure"
    19919 +#line 13249 "configure"
     21207+#line 13394 "configure"
    1992021208 #include "confdefs.h"
    1992121209 /* System header to define __stub macros and hopefully few prototypes,
    1992221210     which can conflict with char bcopy (); below.  */
    19923 @@ -12915,16 +13277,16 @@
     21211@@ -12915,16 +13422,16 @@
    1992421212 }
    1992521213 _ACEOF
    1992621214 rm -f conftest.$ac_objext conftest$ac_exeext
    1992721215-if { (eval echo "$as_me:12918: \"$ac_link\"") >&5
    19928 +if { (eval echo "$as_me:13280: \"$ac_link\"") >&5
     21216+if { (eval echo "$as_me:13425: \"$ac_link\"") >&5
    1992921217   (eval $ac_link) 2>&5
    1993021218   ac_status=$?
    1993121219-  echo "$as_me:12921: \$? = $ac_status" >&5
    19932 +  echo "$as_me:13283: \$? = $ac_status" >&5
     21220+  echo "$as_me:13428: \$? = $ac_status" >&5
    1993321221   (exit $ac_status); } &&
    1993421222          { ac_try='test -s conftest$ac_exeext'
    1993521223-  { (eval echo "$as_me:12924: \"$ac_try\"") >&5
    19936 +  { (eval echo "$as_me:13286: \"$ac_try\"") >&5
     21224+  { (eval echo "$as_me:13431: \"$ac_try\"") >&5
    1993721225   (eval $ac_try) 2>&5
    1993821226   ac_status=$?
    1993921227-  echo "$as_me:12927: \$? = $ac_status" >&5
    19940 +  echo "$as_me:13289: \$? = $ac_status" >&5
     21228+  echo "$as_me:13434: \$? = $ac_status" >&5
    1994121229   (exit $ac_status); }; }; then
    1994221230   ac_cv_func_bcopy=yes
    1994321231 else
    19944 @@ -12934,11 +13296,11 @@
     21232@@ -12934,11 +13441,11 @@
    1994521233 fi
    1994621234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    1994721235 fi
    1994821236-echo "$as_me:12937: result: $ac_cv_func_bcopy" >&5
    19949 +echo "$as_me:13299: result: $ac_cv_func_bcopy" >&5
     21237+echo "$as_me:13444: result: $ac_cv_func_bcopy" >&5
    1995021238 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
    1995121239 if test $ac_cv_func_bcopy = yes; then
    1995221240 
    1995321241-       echo "$as_me:12941: checking if bcopy does overlapping moves" >&5
    19954 +       echo "$as_me:13303: checking if bcopy does overlapping moves" >&5
     21242+       echo "$as_me:13448: checking if bcopy does overlapping moves" >&5
    1995521243 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
    1995621244 if test "${cf_cv_good_bcopy+set}" = set; then
    1995721245   echo $ECHO_N "(cached) $ECHO_C" >&6
    19958 @@ -12948,7 +13310,7 @@
     21246@@ -12948,7 +13455,7 @@
    1995921247   cf_cv_good_bcopy=unknown
    1996021248 else
    1996121249   cat >conftest.$ac_ext <<_ACEOF
    1996221250-#line 12951 "configure"
    19963 +#line 13313 "configure"
     21251+#line 13458 "configure"
    1996421252 #include "confdefs.h"
    1996521253 
    1996621254 int main() {
    19967 @@ -12962,15 +13324,15 @@
     21255@@ -12962,15 +13469,15 @@
    1996821256 
    1996921257 _ACEOF
    1997021258 rm -f conftest$ac_exeext
    1997121259-if { (eval echo "$as_me:12965: \"$ac_link\"") >&5
    19972 +if { (eval echo "$as_me:13327: \"$ac_link\"") >&5
     21260+if { (eval echo "$as_me:13472: \"$ac_link\"") >&5
    1997321261   (eval $ac_link) 2>&5
    1997421262   ac_status=$?
    1997521263-  echo "$as_me:12968: \$? = $ac_status" >&5
    19976 +  echo "$as_me:13330: \$? = $ac_status" >&5
     21264+  echo "$as_me:13475: \$? = $ac_status" >&5
    1997721265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    1997821266-  { (eval echo "$as_me:12970: \"$ac_try\"") >&5
    19979 +  { (eval echo "$as_me:13332: \"$ac_try\"") >&5
     21267+  { (eval echo "$as_me:13477: \"$ac_try\"") >&5
    1998021268   (eval $ac_try) 2>&5
    1998121269   ac_status=$?
    1998221270-  echo "$as_me:12973: \$? = $ac_status" >&5
    19983 +  echo "$as_me:13335: \$? = $ac_status" >&5
     21271+  echo "$as_me:13480: \$? = $ac_status" >&5
    1998421272   (exit $ac_status); }; }; then
    1998521273   cf_cv_good_bcopy=yes
    1998621274 else
    19987 @@ -12983,7 +13345,7 @@
     21275@@ -12983,7 +13490,7 @@
    1998821276 fi
    1998921277 
    1999021278 fi
    1999121279-echo "$as_me:12986: result: $cf_cv_good_bcopy" >&5
    19992 +echo "$as_me:13348: result: $cf_cv_good_bcopy" >&5
     21280+echo "$as_me:13493: result: $cf_cv_good_bcopy" >&5
    1999321281 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
    1999421282 
    1999521283 else
    19996 @@ -13004,7 +13366,7 @@
     21284@@ -13004,7 +13511,7 @@
    1999721285 
    1999821286 fi
    1999921287 
    2000021288-echo "$as_me:13007: checking if poll really works" >&5
    20001 +echo "$as_me:13369: checking if poll really works" >&5
     21289+echo "$as_me:13514: checking if poll really works" >&5
    2000221290 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
    2000321291 if test "${cf_cv_working_poll+set}" = set; then
    2000421292   echo $ECHO_N "(cached) $ECHO_C" >&6
    20005 @@ -13014,7 +13376,7 @@
     21293@@ -13014,7 +13521,7 @@
    2000621294   cf_cv_working_poll=unknown
    2000721295 else
    2000821296   cat >conftest.$ac_ext <<_ACEOF
    2000921297-#line 13017 "configure"
    20010 +#line 13379 "configure"
     21298+#line 13524 "configure"
    2001121299 #include "confdefs.h"
    2001221300 
    2001321301 #include <stdio.h>
    20014 @@ -13035,15 +13397,15 @@
     21302@@ -13035,15 +13542,15 @@
    2001521303 }
    2001621304 _ACEOF
    2001721305 rm -f conftest$ac_exeext
    2001821306-if { (eval echo "$as_me:13038: \"$ac_link\"") >&5
    20019 +if { (eval echo "$as_me:13400: \"$ac_link\"") >&5
     21307+if { (eval echo "$as_me:13545: \"$ac_link\"") >&5
    2002021308   (eval $ac_link) 2>&5
    2002121309   ac_status=$?
    2002221310-  echo "$as_me:13041: \$? = $ac_status" >&5
    20023 +  echo "$as_me:13403: \$? = $ac_status" >&5
     21311+  echo "$as_me:13548: \$? = $ac_status" >&5
    2002421312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    2002521313-  { (eval echo "$as_me:13043: \"$ac_try\"") >&5
    20026 +  { (eval echo "$as_me:13405: \"$ac_try\"") >&5
     21314+  { (eval echo "$as_me:13550: \"$ac_try\"") >&5
    2002721315   (eval $ac_try) 2>&5
    2002821316   ac_status=$?
    2002921317-  echo "$as_me:13046: \$? = $ac_status" >&5
    20030 +  echo "$as_me:13408: \$? = $ac_status" >&5
     21318+  echo "$as_me:13553: \$? = $ac_status" >&5
    2003121319   (exit $ac_status); }; }; then
    2003221320   cf_cv_working_poll=yes
    2003321321 else
    20034 @@ -13055,7 +13417,7 @@
     21322@@ -13055,34 +13562,276 @@
    2003521323 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    2003621324 fi
    2003721325 fi
    2003821326-echo "$as_me:13058: result: $cf_cv_working_poll" >&5
    20039 +echo "$as_me:13420: result: $cf_cv_working_poll" >&5
     21327+echo "$as_me:13565: result: $cf_cv_working_poll" >&5
    2004021328 echo "${ECHO_T}$cf_cv_working_poll" >&6
    2004121329 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
    2004221330 #define HAVE_WORKING_POLL 1
    20043 @@ -13066,23 +13428,132 @@
     21331 EOF
     21332 
     21333+# special check for test/ditto.c
     21334+
     21335+echo "$as_me:13573: checking for openpty in -lutil" >&5
     21336+echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
     21337+if test "${ac_cv_lib_util_openpty+set}" = set; then
     21338+  echo $ECHO_N "(cached) $ECHO_C" >&6
     21339+else
     21340+  ac_check_lib_save_LIBS=$LIBS
     21341+LIBS="-lutil  $LIBS"
     21342+cat >conftest.$ac_ext <<_ACEOF
     21343+#line 13581 "configure"
     21344+#include "confdefs.h"
     21345+
     21346+/* Override any gcc2 internal prototype to avoid an error.  */
     21347+#ifdef __cplusplus
     21348+extern "C"
     21349+#endif
     21350+/* We use char because int might match the return type of a gcc2
     21351+   builtin and then its argument prototype would still apply.  */
     21352+char openpty ();
     21353+int
     21354+main ()
     21355+{
     21356+openpty ();
     21357+  ;
     21358+  return 0;
     21359+}
     21360+_ACEOF
     21361+rm -f conftest.$ac_objext conftest$ac_exeext
     21362+if { (eval echo "$as_me:13600: \"$ac_link\"") >&5
     21363+  (eval $ac_link) 2>&5
     21364+  ac_status=$?
     21365+  echo "$as_me:13603: \$? = $ac_status" >&5
     21366+  (exit $ac_status); } &&
     21367+         { ac_try='test -s conftest$ac_exeext'
     21368+  { (eval echo "$as_me:13606: \"$ac_try\"") >&5
     21369+  (eval $ac_try) 2>&5
     21370+  ac_status=$?
     21371+  echo "$as_me:13609: \$? = $ac_status" >&5
     21372+  (exit $ac_status); }; }; then
     21373+  ac_cv_lib_util_openpty=yes
     21374+else
     21375+  echo "$as_me: failed program was:" >&5
     21376+cat conftest.$ac_ext >&5
     21377+ac_cv_lib_util_openpty=no
     21378+fi
     21379+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     21380+LIBS=$ac_check_lib_save_LIBS
     21381+fi
     21382+echo "$as_me:13620: result: $ac_cv_lib_util_openpty" >&5
     21383+echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
     21384+if test $ac_cv_lib_util_openpty = yes; then
     21385+  cf_cv_lib_util=yes
     21386+else
     21387+  cf_cv_lib_util=no
     21388+fi
     21389+
     21390+echo "$as_me:13628: checking for openpty header" >&5
     21391+echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
     21392+if test "${cf_cv_func_openpty+set}" = set; then
     21393+  echo $ECHO_N "(cached) $ECHO_C" >&6
     21394+else
     21395+
     21396+    cf_save_LIBS="$LIBS"
     21397+    test $cf_cv_lib_util = yes && LIBS="-lutil $LIBS"
     21398+    for cf_header in pty.h libutil.h util.h
     21399+    do
     21400+    cat >conftest.$ac_ext <<_ACEOF
     21401+#line 13639 "configure"
     21402+#include "confdefs.h"
     21403+
     21404+#include <$cf_header>
     21405+
     21406+int
     21407+main ()
     21408+{
     21409+
     21410+    int x = openpty((int *)0, (int *)0, (char *)0,
     21411+                   (struct termios *)0, (struct winsize *)0);
     21412+
     21413+  ;
     21414+  return 0;
     21415+}
     21416+_ACEOF
     21417+rm -f conftest.$ac_objext conftest$ac_exeext
     21418+if { (eval echo "$as_me:13656: \"$ac_link\"") >&5
     21419+  (eval $ac_link) 2>&5
     21420+  ac_status=$?
     21421+  echo "$as_me:13659: \$? = $ac_status" >&5
     21422+  (exit $ac_status); } &&
     21423+         { ac_try='test -s conftest$ac_exeext'
     21424+  { (eval echo "$as_me:13662: \"$ac_try\"") >&5
     21425+  (eval $ac_try) 2>&5
     21426+  ac_status=$?
     21427+  echo "$as_me:13665: \$? = $ac_status" >&5
     21428+  (exit $ac_status); }; }; then
     21429+
     21430+        cf_cv_func_openpty=$cf_header
     21431+        break
     21432+
     21433+else
     21434+  echo "$as_me: failed program was:" >&5
     21435+cat conftest.$ac_ext >&5
     21436+
     21437+        cf_cv_func_openpty=no
     21438+
     21439+fi
     21440+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     21441+    done
     21442+    LIBS="$cf_save_LIBS"
     21443+
     21444+fi
     21445+echo "$as_me:13683: result: $cf_cv_func_openpty" >&5
     21446+echo "${ECHO_T}$cf_cv_func_openpty" >&6
     21447+
     21448+if test "$cf_cv_func_openpty" != no ; then
     21449+    cat >>confdefs.h <<EOF
     21450+#define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
     21451+EOF
     21452+
     21453+    cat >>confdefs.h <<\EOF
     21454+#define USE_XTERM_PTY 1
     21455+EOF
     21456+
     21457+    if test "$cf_cv_lib_util" = yes ; then
     21458+        TEST_LIBS="-lutil $TEST_LIBS"
     21459+    fi
     21460+fi
     21461+
     21462 if test "$with_hashed_db" != no ; then
     21463        cat >>confdefs.h <<\EOF
    2004421464 #define USE_HASHED_DB 1
    2004521465 EOF
     
    2007621496+                         CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
    2007721497+                         cat >conftest.$ac_ext <<_ACEOF
    20078 +#line 13461 "configure"
     21498+#line 13735 "configure"
    2007921499+#include "confdefs.h"
    2008021500+#include <stdio.h>
     
    2008821508+_ACEOF
    2008921509+rm -f conftest.$ac_objext
    20090 +if { (eval echo "$as_me:13473: \"$ac_compile\"") >&5
     21510+if { (eval echo "$as_me:13747: \"$ac_compile\"") >&5
    2009121511+  (eval $ac_compile) 2>&5
    2009221512+  ac_status=$?
    20093 +  echo "$as_me:13476: \$? = $ac_status" >&5
     21513+  echo "$as_me:13750: \$? = $ac_status" >&5
    2009421514+  (exit $ac_status); } &&
    2009521515+         { ac_try='test -s conftest.$ac_objext'
    20096 +  { (eval echo "$as_me:13479: \"$ac_try\"") >&5
     21516+  { (eval echo "$as_me:13753: \"$ac_try\"") >&5
    2009721517+  (eval $ac_try) 2>&5
    2009821518+  ac_status=$?
    20099 +  echo "$as_me:13482: \$? = $ac_status" >&5
     21519+  echo "$as_me:13756: \$? = $ac_status" >&5
    2010021520+  (exit $ac_status); }; }; then
    2010121521+  :
     
    2011221532+
    2011321533+               if test "$cf_have_incdir" = no ; then
    20114 +                 echo "$as_me:13497: result: adding $cf_add_incdir to include-path" >&5
    20115 +echo "${ECHO_T}adding $cf_add_incdir to include-path" >&6
     21534+                 test -n "$verbose" && echo "  adding $cf_add_incdir to include-path" 1>&6
     21535+
     21536+echo "${as_me-configure}:13773: testing adding $cf_add_incdir to include-path ..." 1>&5
     21537+
    2011621538+                 CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
    2011721539+
     
    2014421566+      fi
    2014521567+      if test "$cf_have_libdir" = no ; then
    20146 +        echo "$as_me:13529: result: adding $cf_add_libdir to library-path" >&5
    20147 +echo "${ECHO_T}adding $cf_add_libdir to library-path" >&6
     21568+        test -n "$verbose" && echo "   adding $cf_add_libdir to library-path" 1>&6
     21569+
     21570+echo "${as_me-configure}:13807: testing adding $cf_add_libdir to library-path ..." 1>&5
     21571+
    2014821572+        LDFLAGS="-L$cf_add_libdir $LDFLAGS"
    2014921573+      fi
     
    2015521579+esac
    2015621580+
    20157 +echo "$as_me:13540: checking for db.h" >&5
     21581+echo "$as_me:13818: checking for db.h" >&5
    2015821582 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
    2015921583 if test "${ac_cv_header_db_h+set}" = set; then
     
    2016221586   cat >conftest.$ac_ext <<_ACEOF
    2016321587-#line 13075 "configure"
    20164 +#line 13546 "configure"
     21588+#line 13824 "configure"
    2016521589 #include "confdefs.h"
    2016621590 #include <db.h>
    2016721591 _ACEOF
    2016821592-if { (eval echo "$as_me:13079: \"$ac_cpp conftest.$ac_ext\"") >&5
    20169 +if { (eval echo "$as_me:13550: \"$ac_cpp conftest.$ac_ext\"") >&5
     21593+if { (eval echo "$as_me:13828: \"$ac_cpp conftest.$ac_ext\"") >&5
    2017021594   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2017121595   ac_status=$?
     
    2017421598   cat conftest.err >&5
    2017521599-  echo "$as_me:13085: \$? = $ac_status" >&5
    20176 +  echo "$as_me:13556: \$? = $ac_status" >&5
     21600+  echo "$as_me:13834: \$? = $ac_status" >&5
    2017721601   (exit $ac_status); } >/dev/null; then
    2017821602   if test -s conftest.err; then
    2017921603     ac_cpp_err=$ac_c_preproc_warn_flag
    20180 @@ -13101,11 +13572,11 @@
     21604@@ -13101,11 +13850,11 @@
    2018121605 fi
    2018221606 rm -f conftest.err conftest.$ac_ext
    2018321607 fi
    2018421608-echo "$as_me:13104: result: $ac_cv_header_db_h" >&5
    20185 +echo "$as_me:13575: result: $ac_cv_header_db_h" >&5
     21609+echo "$as_me:13853: result: $ac_cv_header_db_h" >&5
    2018621610 echo "${ECHO_T}$ac_cv_header_db_h" >&6
    2018721611 if test $ac_cv_header_db_h = yes; then
    2018821612 
    2018921613-echo "$as_me:13108: checking for version of db" >&5
    20190 +echo "$as_me:13579: checking for version of db" >&5
     21614+echo "$as_me:13857: checking for version of db" >&5
    2019121615 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
    2019221616 if test "${cf_cv_hashed_db_version+set}" = set; then
    2019321617   echo $ECHO_N "(cached) $ECHO_C" >&6
    20194 @@ -13113,13 +13584,13 @@
     21618@@ -13113,13 +13862,13 @@
    2019521619 
    2019621620 cf_cv_hashed_db_version=unknown
     
    2020121625 
    2020221626-echo "(line 13119) testing checking for db version $cf_db_version ..." 1>&5
    20203 +echo "${as_me-configure}:13590: testing checking for db version $cf_db_version ..." 1>&5
     21627+echo "${as_me-configure}:13868: testing checking for db version $cf_db_version ..." 1>&5
    2020421628 
    2020521629        cat >conftest.$ac_ext <<_ACEOF
    2020621630-#line 13122 "configure"
    20207 +#line 13593 "configure"
     21631+#line 13871 "configure"
    2020821632 #include "confdefs.h"
    2020921633 
    2021021634 $ac_includes_default
    20211 @@ -13149,16 +13620,16 @@
     21635@@ -13149,16 +13898,16 @@
    2021221636 }
    2021321637 _ACEOF
    2021421638 rm -f conftest.$ac_objext
    2021521639-if { (eval echo "$as_me:13152: \"$ac_compile\"") >&5
    20216 +if { (eval echo "$as_me:13623: \"$ac_compile\"") >&5
     21640+if { (eval echo "$as_me:13901: \"$ac_compile\"") >&5
    2021721641   (eval $ac_compile) 2>&5
    2021821642   ac_status=$?
    2021921643-  echo "$as_me:13155: \$? = $ac_status" >&5
    20220 +  echo "$as_me:13626: \$? = $ac_status" >&5
     21644+  echo "$as_me:13904: \$? = $ac_status" >&5
    2022121645   (exit $ac_status); } &&
    2022221646          { ac_try='test -s conftest.$ac_objext'
    2022321647-  { (eval echo "$as_me:13158: \"$ac_try\"") >&5
    20224 +  { (eval echo "$as_me:13629: \"$ac_try\"") >&5
     21648+  { (eval echo "$as_me:13907: \"$ac_try\"") >&5
    2022521649   (eval $ac_try) 2>&5
    2022621650   ac_status=$?
    2022721651-  echo "$as_me:13161: \$? = $ac_status" >&5
    20228 +  echo "$as_me:13632: \$? = $ac_status" >&5
     21652+  echo "$as_me:13910: \$? = $ac_status" >&5
    2022921653   (exit $ac_status); }; }; then
    2023021654 
    2023121655        cf_cv_hashed_db_version=$cf_db_version
    20232 @@ -13172,33 +13643,33 @@
     21656@@ -13172,33 +13921,33 @@
    2023321657 done
    2023421658 
    2023521659 fi
    2023621660-echo "$as_me:13175: result: $cf_cv_hashed_db_version" >&5
    20237 +echo "$as_me:13646: result: $cf_cv_hashed_db_version" >&5
     21661+echo "$as_me:13924: result: $cf_cv_hashed_db_version" >&5
    2023821662 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
    2023921663 
    2024021664 if test "$cf_cv_hashed_db_version" = unknown ; then
    2024121665-       { { echo "$as_me:13179: error: Cannot determine version of db" >&5
    20242 +       { { echo "$as_me:13650: error: Cannot determine version of db" >&5
     21666+       { { echo "$as_me:13928: error: Cannot determine version of db" >&5
    2024321667 echo "$as_me: error: Cannot determine version of db" >&2;}
    2024421668    { (exit 1); exit 1; }; }
     
    2024621670 
    2024721671-echo "$as_me:13184: checking for db libraries" >&5
    20248 +echo "$as_me:13655: checking for db libraries" >&5
     21672+echo "$as_me:13933: checking for db libraries" >&5
    2024921673 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
    2025021674 if test "${cf_cv_hashed_db_libs+set}" = set; then
     
    2026221686 
    2026321687-echo "(line 13198) testing checking for library "$cf_db_libs" ..." 1>&5
    20264 +echo "${as_me-configure}:13669: testing checking for library "$cf_db_libs" ..." 1>&5
     21688+echo "${as_me-configure}:13947: testing checking for library "$cf_db_libs" ..." 1>&5
    2026521689 
    2026621690        cat >conftest.$ac_ext <<_ACEOF
    2026721691-#line 13201 "configure"
    20268 +#line 13672 "configure"
     21692+#line 13950 "configure"
    2026921693 #include "confdefs.h"
    2027021694 
    2027121695 $ac_includes_default
    20272 @@ -13253,16 +13724,16 @@
     21696@@ -13253,16 +14002,16 @@
    2027321697 }
    2027421698 _ACEOF
    2027521699 rm -f conftest.$ac_objext conftest$ac_exeext
    2027621700-if { (eval echo "$as_me:13256: \"$ac_link\"") >&5
    20277 +if { (eval echo "$as_me:13727: \"$ac_link\"") >&5
     21701+if { (eval echo "$as_me:14005: \"$ac_link\"") >&5
    2027821702   (eval $ac_link) 2>&5
    2027921703   ac_status=$?
    2028021704-  echo "$as_me:13259: \$? = $ac_status" >&5
    20281 +  echo "$as_me:13730: \$? = $ac_status" >&5
     21705+  echo "$as_me:14008: \$? = $ac_status" >&5
    2028221706   (exit $ac_status); } &&
    2028321707          { ac_try='test -s conftest$ac_exeext'
    2028421708-  { (eval echo "$as_me:13262: \"$ac_try\"") >&5
    20285 +  { (eval echo "$as_me:13733: \"$ac_try\"") >&5
     21709+  { (eval echo "$as_me:14011: \"$ac_try\"") >&5
    2028621710   (eval $ac_try) 2>&5
    2028721711   ac_status=$?
    2028821712-  echo "$as_me:13265: \$? = $ac_status" >&5
    20289 +  echo "$as_me:13736: \$? = $ac_status" >&5
     21713+  echo "$as_me:14014: \$? = $ac_status" >&5
    2029021714   (exit $ac_status); }; }; then
    2029121715 
    2029221716        if test -n "$cf_db_libs" ; then
    20293 @@ -13282,11 +13753,11 @@
     21717@@ -13282,11 +14031,11 @@
    2029421718 done
    2029521719 
    2029621720 fi
    2029721721-echo "$as_me:13285: result: $cf_cv_hashed_db_libs" >&5
    20298 +echo "$as_me:13756: result: $cf_cv_hashed_db_libs" >&5
     21722+echo "$as_me:14034: result: $cf_cv_hashed_db_libs" >&5
    2029921723 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
    2030021724 
    2030121725        if test "$cf_cv_hashed_db_libs" = unknown ; then
    2030221726-               { { echo "$as_me:13289: error: Cannot determine library for db" >&5
    20303 +               { { echo "$as_me:13760: error: Cannot determine library for db" >&5
     21727+               { { echo "$as_me:14038: error: Cannot determine library for db" >&5
    2030421728 echo "$as_me: error: Cannot determine library for db" >&2;}
    2030521729    { (exit 1); exit 1; }; }
    2030621730        elif test "$cf_cv_hashed_db_libs" != default ; then
    20307 @@ -13296,7 +13767,7 @@
     21731@@ -13296,7 +14045,7 @@
    2030821732 
    2030921733 else
    2031021734 
    2031121735-       { { echo "$as_me:13299: error: Cannot find db.h" >&5
    20312 +       { { echo "$as_me:13770: error: Cannot find db.h" >&5
     21736+       { { echo "$as_me:14048: error: Cannot find db.h" >&5
    2031321737 echo "$as_me: error: Cannot find db.h" >&2;}
    2031421738    { (exit 1); exit 1; }; }
    2031521739 
    20316 @@ -13311,7 +13782,7 @@
     21740@@ -13311,7 +14060,7 @@
    2031721741 
    2031821742 # Just in case, check if the C compiler has a bool type.
    2031921743 
    2032021744-echo "$as_me:13314: checking if we should include stdbool.h" >&5
    20321 +echo "$as_me:13785: checking if we should include stdbool.h" >&5
     21745+echo "$as_me:14063: checking if we should include stdbool.h" >&5
    2032221746 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
    2032321747 
    2032421748 if test "${cf_cv_header_stdbool_h+set}" = set; then
    20325 @@ -13319,7 +13790,7 @@
     21749@@ -13319,7 +14068,7 @@
    2032621750 else
    2032721751 
    2032821752        cat >conftest.$ac_ext <<_ACEOF
    2032921753-#line 13322 "configure"
    20330 +#line 13793 "configure"
     21754+#line 14071 "configure"
    2033121755 #include "confdefs.h"
    2033221756 
    2033321757 int
    20334 @@ -13331,23 +13802,23 @@
     21758@@ -13331,23 +14080,23 @@
    2033521759 }
    2033621760 _ACEOF
    2033721761 rm -f conftest.$ac_objext
    2033821762-if { (eval echo "$as_me:13334: \"$ac_compile\"") >&5
    20339 +if { (eval echo "$as_me:13805: \"$ac_compile\"") >&5
     21763+if { (eval echo "$as_me:14083: \"$ac_compile\"") >&5
    2034021764   (eval $ac_compile) 2>&5
    2034121765   ac_status=$?
    2034221766-  echo "$as_me:13337: \$? = $ac_status" >&5
    20343 +  echo "$as_me:13808: \$? = $ac_status" >&5
     21767+  echo "$as_me:14086: \$? = $ac_status" >&5
    2034421768   (exit $ac_status); } &&
    2034521769          { ac_try='test -s conftest.$ac_objext'
    2034621770-  { (eval echo "$as_me:13340: \"$ac_try\"") >&5
    20347 +  { (eval echo "$as_me:13811: \"$ac_try\"") >&5
     21771+  { (eval echo "$as_me:14089: \"$ac_try\"") >&5
    2034821772   (eval $ac_try) 2>&5
    2034921773   ac_status=$?
    2035021774-  echo "$as_me:13343: \$? = $ac_status" >&5
    20351 +  echo "$as_me:13814: \$? = $ac_status" >&5
     21775+  echo "$as_me:14092: \$? = $ac_status" >&5
    2035221776   (exit $ac_status); }; }; then
    2035321777   cf_cv_header_stdbool_h=0
     
    2035721781 cat >conftest.$ac_ext <<_ACEOF
    2035821782-#line 13350 "configure"
    20359 +#line 13821 "configure"
     21783+#line 14099 "configure"
    2036021784 #include "confdefs.h"
    2036121785 
    2036221786 #ifndef __BEOS__
    20363 @@ -13363,16 +13834,16 @@
     21787@@ -13363,16 +14112,16 @@
    2036421788 }
    2036521789 _ACEOF
    2036621790 rm -f conftest.$ac_objext
    2036721791-if { (eval echo "$as_me:13366: \"$ac_compile\"") >&5
    20368 +if { (eval echo "$as_me:13837: \"$ac_compile\"") >&5
     21792+if { (eval echo "$as_me:14115: \"$ac_compile\"") >&5
    2036921793   (eval $ac_compile) 2>&5
    2037021794   ac_status=$?
    2037121795-  echo "$as_me:13369: \$? = $ac_status" >&5
    20372 +  echo "$as_me:13840: \$? = $ac_status" >&5
     21796+  echo "$as_me:14118: \$? = $ac_status" >&5
    2037321797   (exit $ac_status); } &&
    2037421798          { ac_try='test -s conftest.$ac_objext'
    2037521799-  { (eval echo "$as_me:13372: \"$ac_try\"") >&5
    20376 +  { (eval echo "$as_me:13843: \"$ac_try\"") >&5
     21800+  { (eval echo "$as_me:14121: \"$ac_try\"") >&5
    2037721801   (eval $ac_try) 2>&5
    2037821802   ac_status=$?
    2037921803-  echo "$as_me:13375: \$? = $ac_status" >&5
    20380 +  echo "$as_me:13846: \$? = $ac_status" >&5
     21804+  echo "$as_me:14124: \$? = $ac_status" >&5
    2038121805   (exit $ac_status); }; }; then
    2038221806   cf_cv_header_stdbool_h=1
    2038321807 else
    20384 @@ -13386,13 +13857,13 @@
     21808@@ -13386,13 +14135,13 @@
    2038521809 fi
    2038621810 
    2038721811 if test "$cf_cv_header_stdbool_h" = 1
    2038821812-then   echo "$as_me:13389: result: yes" >&5
    20389 +then   echo "$as_me:13860: result: yes" >&5
     21813+then   echo "$as_me:14138: result: yes" >&5
    2039021814 echo "${ECHO_T}yes" >&6
    2039121815-else   echo "$as_me:13391: result: no" >&5
    20392 +else   echo "$as_me:13862: result: no" >&5
     21816+else   echo "$as_me:14140: result: no" >&5
    2039321817 echo "${ECHO_T}no" >&6
    2039421818 fi
    2039521819 
    2039621820-echo "$as_me:13395: checking for builtin bool type" >&5
    20397 +echo "$as_me:13866: checking for builtin bool type" >&5
     21821+echo "$as_me:14144: checking for builtin bool type" >&5
    2039821822 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
    2039921823 
    2040021824 if test "${cf_cv_cc_bool_type+set}" = set; then
    20401 @@ -13400,7 +13871,7 @@
     21825@@ -13400,7 +14149,7 @@
    2040221826 else
    2040321827 
    2040421828        cat >conftest.$ac_ext <<_ACEOF
    2040521829-#line 13403 "configure"
    20406 +#line 13874 "configure"
     21830+#line 14152 "configure"
    2040721831 #include "confdefs.h"
    2040821832 
    2040921833 #include <stdio.h>
    20410 @@ -13415,16 +13886,16 @@
     21834@@ -13415,16 +14164,16 @@
    2041121835 }
    2041221836 _ACEOF
    2041321837 rm -f conftest.$ac_objext
    2041421838-if { (eval echo "$as_me:13418: \"$ac_compile\"") >&5
    20415 +if { (eval echo "$as_me:13889: \"$ac_compile\"") >&5
     21839+if { (eval echo "$as_me:14167: \"$ac_compile\"") >&5
    2041621840   (eval $ac_compile) 2>&5
    2041721841   ac_status=$?
    2041821842-  echo "$as_me:13421: \$? = $ac_status" >&5
    20419 +  echo "$as_me:13892: \$? = $ac_status" >&5
     21843+  echo "$as_me:14170: \$? = $ac_status" >&5
    2042021844   (exit $ac_status); } &&
    2042121845          { ac_try='test -s conftest.$ac_objext'
    2042221846-  { (eval echo "$as_me:13424: \"$ac_try\"") >&5
    20423 +  { (eval echo "$as_me:13895: \"$ac_try\"") >&5
     21847+  { (eval echo "$as_me:14173: \"$ac_try\"") >&5
    2042421848   (eval $ac_try) 2>&5
    2042521849   ac_status=$?
    2042621850-  echo "$as_me:13427: \$? = $ac_status" >&5
    20427 +  echo "$as_me:13898: \$? = $ac_status" >&5
     21851+  echo "$as_me:14176: \$? = $ac_status" >&5
    2042821852   (exit $ac_status); }; }; then
    2042921853   cf_cv_cc_bool_type=1
    2043021854 else
    20431 @@ -13437,9 +13908,9 @@
     21855@@ -13437,9 +14186,9 @@
    2043221856 fi
    2043321857 
    2043421858 if test "$cf_cv_cc_bool_type" = 1
    2043521859-then   echo "$as_me:13440: result: yes" >&5
    20436 +then   echo "$as_me:13911: result: yes" >&5
     21860+then   echo "$as_me:14189: result: yes" >&5
    2043721861 echo "${ECHO_T}yes" >&6
    2043821862-else   echo "$as_me:13442: result: no" >&5
    20439 +else   echo "$as_me:13913: result: no" >&5
     21863+else   echo "$as_me:14191: result: no" >&5
    2044021864 echo "${ECHO_T}no" >&6
    2044121865 fi
    2044221866 
    20443 @@ -13461,7 +13932,7 @@
     21867@@ -13461,7 +14210,7 @@
    2044421868        cf_stdcpp_libname=stdc++
    2044521869        ;;
    2044621870 esac
    2044721871-echo "$as_me:13464: checking for library $cf_stdcpp_libname" >&5
    20448 +echo "$as_me:13935: checking for library $cf_stdcpp_libname" >&5
     21872+echo "$as_me:14213: checking for library $cf_stdcpp_libname" >&5
    2044921873 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
    2045021874 if test "${cf_cv_libstdcpp+set}" = set; then
    2045121875   echo $ECHO_N "(cached) $ECHO_C" >&6
    20452 @@ -13470,7 +13941,7 @@
     21876@@ -13470,7 +14219,7 @@
    2045321877        cf_save="$LIBS"
    2045421878        LIBS="$LIBS -l$cf_stdcpp_libname"
    2045521879 cat >conftest.$ac_ext <<_ACEOF
    2045621880-#line 13473 "configure"
    20457 +#line 13944 "configure"
     21881+#line 14222 "configure"
    2045821882 #include "confdefs.h"
    2045921883 
    2046021884 #include <strstream.h>
    20461 @@ -13486,16 +13957,16 @@
     21885@@ -13486,16 +14235,16 @@
    2046221886 }
    2046321887 _ACEOF
    2046421888 rm -f conftest.$ac_objext conftest$ac_exeext
    2046521889-if { (eval echo "$as_me:13489: \"$ac_link\"") >&5
    20466 +if { (eval echo "$as_me:13960: \"$ac_link\"") >&5
     21890+if { (eval echo "$as_me:14238: \"$ac_link\"") >&5
    2046721891   (eval $ac_link) 2>&5
    2046821892   ac_status=$?
    2046921893-  echo "$as_me:13492: \$? = $ac_status" >&5
    20470 +  echo "$as_me:13963: \$? = $ac_status" >&5
     21894+  echo "$as_me:14241: \$? = $ac_status" >&5
    2047121895   (exit $ac_status); } &&
    2047221896          { ac_try='test -s conftest$ac_exeext'
    2047321897-  { (eval echo "$as_me:13495: \"$ac_try\"") >&5
    20474 +  { (eval echo "$as_me:13966: \"$ac_try\"") >&5
     21898+  { (eval echo "$as_me:14244: \"$ac_try\"") >&5
    2047521899   (eval $ac_try) 2>&5
    2047621900   ac_status=$?
    2047721901-  echo "$as_me:13498: \$? = $ac_status" >&5
    20478 +  echo "$as_me:13969: \$? = $ac_status" >&5
     21902+  echo "$as_me:14247: \$? = $ac_status" >&5
    2047921903   (exit $ac_status); }; }; then
    2048021904   cf_cv_libstdcpp=yes
    2048121905 else
    20482 @@ -13507,12 +13978,12 @@
     21906@@ -13507,12 +14256,12 @@
    2048321907        LIBS="$cf_save"
    2048421908 
    2048521909 fi
    2048621910-echo "$as_me:13510: result: $cf_cv_libstdcpp" >&5
    20487 +echo "$as_me:13981: result: $cf_cv_libstdcpp" >&5
     21911+echo "$as_me:14259: result: $cf_cv_libstdcpp" >&5
    2048821912 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
    2048921913 test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
     
    2049121915 
    2049221916-       echo "$as_me:13515: checking whether $CXX understands -c and -o together" >&5
    20493 +       echo "$as_me:13986: checking whether $CXX understands -c and -o together" >&5
     21917+       echo "$as_me:14264: checking whether $CXX understands -c and -o together" >&5
    2049421918 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
    2049521919 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
    2049621920   echo $ECHO_N "(cached) $ECHO_C" >&6
    20497 @@ -13528,15 +13999,15 @@
     21921@@ -13528,15 +14277,15 @@
    2049821922 # We do the test twice because some compilers refuse to overwrite an
    2049921923 # existing .o file with -o, though they will create one.
    2050021924 ac_try='$CXX -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
    2050121925-if { (eval echo "$as_me:13531: \"$ac_try\"") >&5
    20502 +if { (eval echo "$as_me:14002: \"$ac_try\"") >&5
     21926+if { (eval echo "$as_me:14280: \"$ac_try\"") >&5
    2050321927   (eval $ac_try) 2>&5
    2050421928   ac_status=$?
    2050521929-  echo "$as_me:13534: \$? = $ac_status" >&5
    20506 +  echo "$as_me:14005: \$? = $ac_status" >&5
     21930+  echo "$as_me:14283: \$? = $ac_status" >&5
    2050721931   (exit $ac_status); } &&
    2050821932-  test -f conftest2.$ac_objext && { (eval echo "$as_me:13536: \"$ac_try\"") >&5
    20509 +  test -f conftest2.$ac_objext && { (eval echo "$as_me:14007: \"$ac_try\"") >&5
     21933+  test -f conftest2.$ac_objext && { (eval echo "$as_me:14285: \"$ac_try\"") >&5
    2051021934   (eval $ac_try) 2>&5
    2051121935   ac_status=$?
    2051221936-  echo "$as_me:13539: \$? = $ac_status" >&5
    20513 +  echo "$as_me:14010: \$? = $ac_status" >&5
     21937+  echo "$as_me:14288: \$? = $ac_status" >&5
    2051421938   (exit $ac_status); };
    2051521939 then
    2051621940   eval cf_cv_prog_CXX_c_o=yes
    20517 @@ -13547,10 +14018,10 @@
     21941@@ -13547,10 +14296,10 @@
    2051821942 
    2051921943 fi
    2052021944 if test $cf_cv_prog_CXX_c_o = yes; then
    2052121945-  echo "$as_me:13550: result: yes" >&5
    20522 +  echo "$as_me:14021: result: yes" >&5
     21946+  echo "$as_me:14299: result: yes" >&5
    2052321947 echo "${ECHO_T}yes" >&6
    2052421948 else
    2052521949-  echo "$as_me:13553: result: no" >&5
    20526 +  echo "$as_me:14024: result: no" >&5
     21950+  echo "$as_me:14302: result: no" >&5
    2052721951 echo "${ECHO_T}no" >&6
    2052821952 fi
    2052921953 
    20530 @@ -13570,12 +14041,12 @@
     21954@@ -13570,12 +14319,12 @@
    2053121955        ;;
    2053221956 esac
    2053321957 if test "$GXX" = yes; then
    2053421958-       echo "$as_me:13573: checking for lib$cf_gpp_libname" >&5
    20535 +       echo "$as_me:14044: checking for lib$cf_gpp_libname" >&5
     21959+       echo "$as_me:14322: checking for lib$cf_gpp_libname" >&5
    2053621960 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
    2053721961        cf_save="$LIBS"
     
    2053921963        cat >conftest.$ac_ext <<_ACEOF
    2054021964-#line 13578 "configure"
    20541 +#line 14049 "configure"
     21965+#line 14327 "configure"
    2054221966 #include "confdefs.h"
    2054321967 
    2054421968 #include <$cf_gpp_libname/builtin.h>
    20545 @@ -13589,16 +14060,16 @@
     21969@@ -13589,16 +14338,16 @@
    2054621970 }
    2054721971 _ACEOF
    2054821972 rm -f conftest.$ac_objext conftest$ac_exeext
    2054921973-if { (eval echo "$as_me:13592: \"$ac_link\"") >&5
    20550 +if { (eval echo "$as_me:14063: \"$ac_link\"") >&5
     21974+if { (eval echo "$as_me:14341: \"$ac_link\"") >&5
    2055121975   (eval $ac_link) 2>&5
    2055221976   ac_status=$?
    2055321977-  echo "$as_me:13595: \$? = $ac_status" >&5
    20554 +  echo "$as_me:14066: \$? = $ac_status" >&5
     21978+  echo "$as_me:14344: \$? = $ac_status" >&5
    2055521979   (exit $ac_status); } &&
    2055621980          { ac_try='test -s conftest$ac_exeext'
    2055721981-  { (eval echo "$as_me:13598: \"$ac_try\"") >&5
    20558 +  { (eval echo "$as_me:14069: \"$ac_try\"") >&5
     21982+  { (eval echo "$as_me:14347: \"$ac_try\"") >&5
    2055921983   (eval $ac_try) 2>&5
    2056021984   ac_status=$?
    2056121985-  echo "$as_me:13601: \$? = $ac_status" >&5
    20562 +  echo "$as_me:14072: \$? = $ac_status" >&5
     21986+  echo "$as_me:14350: \$? = $ac_status" >&5
    2056321987   (exit $ac_status); }; }; then
    2056421988   cf_cxx_library=yes
    2056521989         CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
    20566 @@ -13617,7 +14088,7 @@
     21990@@ -13617,7 +14366,7 @@
    2056721991   echo "$as_me: failed program was:" >&5
    2056821992 cat conftest.$ac_ext >&5
    2056921993 cat >conftest.$ac_ext <<_ACEOF
    2057021994-#line 13620 "configure"
    20571 +#line 14091 "configure"
     21995+#line 14369 "configure"
    2057221996 #include "confdefs.h"
    2057321997 
    2057421998 #include <builtin.h>
    20575 @@ -13631,16 +14102,16 @@
     21999@@ -13631,16 +14380,16 @@
    2057622000 }
    2057722001 _ACEOF
    2057822002 rm -f conftest.$ac_objext conftest$ac_exeext
    2057922003-if { (eval echo "$as_me:13634: \"$ac_link\"") >&5
    20580 +if { (eval echo "$as_me:14105: \"$ac_link\"") >&5
     22004+if { (eval echo "$as_me:14383: \"$ac_link\"") >&5
    2058122005   (eval $ac_link) 2>&5
    2058222006   ac_status=$?
    2058322007-  echo "$as_me:13637: \$? = $ac_status" >&5
    20584 +  echo "$as_me:14108: \$? = $ac_status" >&5
     22008+  echo "$as_me:14386: \$? = $ac_status" >&5
    2058522009   (exit $ac_status); } &&
    2058622010          { ac_try='test -s conftest$ac_exeext'
    2058722011-  { (eval echo "$as_me:13640: \"$ac_try\"") >&5
    20588 +  { (eval echo "$as_me:14111: \"$ac_try\"") >&5
     22012+  { (eval echo "$as_me:14389: \"$ac_try\"") >&5
    2058922013   (eval $ac_try) 2>&5
    2059022014   ac_status=$?
    2059122015-  echo "$as_me:13643: \$? = $ac_status" >&5
    20592 +  echo "$as_me:14114: \$? = $ac_status" >&5
     22016+  echo "$as_me:14392: \$? = $ac_status" >&5
    2059322017   (exit $ac_status); }; }; then
    2059422018   cf_cxx_library=yes
    2059522019         CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
    20596 @@ -13657,7 +14128,7 @@
     22020@@ -13657,7 +14406,7 @@
    2059722021 fi
    2059822022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    2059922023        LIBS="$cf_save"
    2060022024-       echo "$as_me:13660: result: $cf_cxx_library" >&5
    20601 +       echo "$as_me:14131: result: $cf_cxx_library" >&5
     22025+       echo "$as_me:14409: result: $cf_cxx_library" >&5
    2060222026 echo "${ECHO_T}$cf_cxx_library" >&6
    2060322027 fi
    2060422028 
    20605 @@ -13673,7 +14144,7 @@
     22029@@ -13673,7 +14422,7 @@
    2060622030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2060722031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    2060822032 ac_main_return=return
    2060922033-echo "$as_me:13676: checking how to run the C++ preprocessor" >&5
    20610 +echo "$as_me:14147: checking how to run the C++ preprocessor" >&5
     22034+echo "$as_me:14425: checking how to run the C++ preprocessor" >&5
    2061122035 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
    2061222036 if test -z "$CXXCPP"; then
    2061322037   if test "${ac_cv_prog_CXXCPP+set}" = set; then
    20614 @@ -13690,18 +14161,18 @@
     22038@@ -13690,18 +14439,18 @@
    2061522039   # On the NeXT, cc -E runs the code through the compiler's parser,
    2061622040   # not just through cpp. "Syntax error" is here to catch this case.
    2061722041   cat >conftest.$ac_ext <<_ACEOF
    2061822042-#line 13693 "configure"
    20619 +#line 14164 "configure"
     22043+#line 14442 "configure"
    2062022044 #include "confdefs.h"
    2062122045 #include <assert.h>
     
    2062322047 _ACEOF
    2062422048-if { (eval echo "$as_me:13698: \"$ac_cpp conftest.$ac_ext\"") >&5
    20625 +if { (eval echo "$as_me:14169: \"$ac_cpp conftest.$ac_ext\"") >&5
     22049+if { (eval echo "$as_me:14447: \"$ac_cpp conftest.$ac_ext\"") >&5
    2062622050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2062722051   ac_status=$?
     
    2063022054   cat conftest.err >&5
    2063122055-  echo "$as_me:13704: \$? = $ac_status" >&5
    20632 +  echo "$as_me:14175: \$? = $ac_status" >&5
     22056+  echo "$as_me:14453: \$? = $ac_status" >&5
    2063322057   (exit $ac_status); } >/dev/null; then
    2063422058   if test -s conftest.err; then
    2063522059     ac_cpp_err=$ac_cxx_preproc_warn_flag
    20636 @@ -13724,17 +14195,17 @@
     22060@@ -13724,17 +14473,17 @@
    2063722061   # OK, works on sane cases.  Now check whether non-existent headers
    2063822062   # can be detected and how.
    2063922063   cat >conftest.$ac_ext <<_ACEOF
    2064022064-#line 13727 "configure"
    20641 +#line 14198 "configure"
     22065+#line 14476 "configure"
    2064222066 #include "confdefs.h"
    2064322067 #include <ac_nonexistent.h>
    2064422068 _ACEOF
    2064522069-if { (eval echo "$as_me:13731: \"$ac_cpp conftest.$ac_ext\"") >&5
    20646 +if { (eval echo "$as_me:14202: \"$ac_cpp conftest.$ac_ext\"") >&5
     22070+if { (eval echo "$as_me:14480: \"$ac_cpp conftest.$ac_ext\"") >&5
    2064722071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2064822072   ac_status=$?
     
    2065122075   cat conftest.err >&5
    2065222076-  echo "$as_me:13737: \$? = $ac_status" >&5
    20653 +  echo "$as_me:14208: \$? = $ac_status" >&5
     22077+  echo "$as_me:14486: \$? = $ac_status" >&5
    2065422078   (exit $ac_status); } >/dev/null; then
    2065522079   if test -s conftest.err; then
    2065622080     ac_cpp_err=$ac_cxx_preproc_warn_flag
    20657 @@ -13771,7 +14242,7 @@
     22081@@ -13771,7 +14520,7 @@
    2065822082 else
    2065922083   ac_cv_prog_CXXCPP=$CXXCPP
    2066022084 fi
    2066122085-echo "$as_me:13774: result: $CXXCPP" >&5
    20662 +echo "$as_me:14245: result: $CXXCPP" >&5
     22086+echo "$as_me:14523: result: $CXXCPP" >&5
    2066322087 echo "${ECHO_T}$CXXCPP" >&6
    2066422088 ac_preproc_ok=false
    2066522089 for ac_cxx_preproc_warn_flag in '' yes
    20666 @@ -13781,18 +14252,18 @@
     22090@@ -13781,18 +14530,18 @@
    2066722091   # On the NeXT, cc -E runs the code through the compiler's parser,
    2066822092   # not just through cpp. "Syntax error" is here to catch this case.
    2066922093   cat >conftest.$ac_ext <<_ACEOF
    2067022094-#line 13784 "configure"
    20671 +#line 14255 "configure"
     22095+#line 14533 "configure"
    2067222096 #include "confdefs.h"
    2067322097 #include <assert.h>
     
    2067522099 _ACEOF
    2067622100-if { (eval echo "$as_me:13789: \"$ac_cpp conftest.$ac_ext\"") >&5
    20677 +if { (eval echo "$as_me:14260: \"$ac_cpp conftest.$ac_ext\"") >&5
     22101+if { (eval echo "$as_me:14538: \"$ac_cpp conftest.$ac_ext\"") >&5
    2067822102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2067922103   ac_status=$?
     
    2068222106   cat conftest.err >&5
    2068322107-  echo "$as_me:13795: \$? = $ac_status" >&5
    20684 +  echo "$as_me:14266: \$? = $ac_status" >&5
     22108+  echo "$as_me:14544: \$? = $ac_status" >&5
    2068522109   (exit $ac_status); } >/dev/null; then
    2068622110   if test -s conftest.err; then
    2068722111     ac_cpp_err=$ac_cxx_preproc_warn_flag
    20688 @@ -13815,17 +14286,17 @@
     22112@@ -13815,17 +14564,17 @@
    2068922113   # OK, works on sane cases.  Now check whether non-existent headers
    2069022114   # can be detected and how.
    2069122115   cat >conftest.$ac_ext <<_ACEOF
    2069222116-#line 13818 "configure"
    20693 +#line 14289 "configure"
     22117+#line 14567 "configure"
    2069422118 #include "confdefs.h"
    2069522119 #include <ac_nonexistent.h>
    2069622120 _ACEOF
    2069722121-if { (eval echo "$as_me:13822: \"$ac_cpp conftest.$ac_ext\"") >&5
    20698 +if { (eval echo "$as_me:14293: \"$ac_cpp conftest.$ac_ext\"") >&5
     22122+if { (eval echo "$as_me:14571: \"$ac_cpp conftest.$ac_ext\"") >&5
    2069922123   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2070022124   ac_status=$?
     
    2070322127   cat conftest.err >&5
    2070422128-  echo "$as_me:13828: \$? = $ac_status" >&5
    20705 +  echo "$as_me:14299: \$? = $ac_status" >&5
     22129+  echo "$as_me:14577: \$? = $ac_status" >&5
    2070622130   (exit $ac_status); } >/dev/null; then
    2070722131   if test -s conftest.err; then
    2070822132     ac_cpp_err=$ac_cxx_preproc_warn_flag
    20709 @@ -13853,7 +14324,7 @@
     22133@@ -13853,7 +14602,7 @@
    2071022134 if $ac_preproc_ok; then
    2071122135   :
    2071222136 else
    2071322137-  { { echo "$as_me:13856: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
    20714 +  { { echo "$as_me:14327: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
     22138+  { { echo "$as_me:14605: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
    2071522139 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
    2071622140    { (exit 1); exit 1; }; }
    2071722141 fi
    20718 @@ -13865,26 +14336,26 @@
     22142@@ -13865,26 +14614,26 @@
    2071922143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    2072022144 ac_main_return=return
     
    2072522149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    2072622150-echo "$as_me:13871: checking for $ac_header" >&5
    20727 +echo "$as_me:14342: checking for $ac_header" >&5
     22151+echo "$as_me:14620: checking for $ac_header" >&5
    2072822152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    2072922153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
     
    2073222156   cat >conftest.$ac_ext <<_ACEOF
    2073322157-#line 13877 "configure"
    20734 +#line 14348 "configure"
     22158+#line 14626 "configure"
    2073522159 #include "confdefs.h"
    2073622160 #include <$ac_header>
    2073722161 _ACEOF
    2073822162-if { (eval echo "$as_me:13881: \"$ac_cpp conftest.$ac_ext\"") >&5
    20739 +if { (eval echo "$as_me:14352: \"$ac_cpp conftest.$ac_ext\"") >&5
     22163+if { (eval echo "$as_me:14630: \"$ac_cpp conftest.$ac_ext\"") >&5
    2074022164   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2074122165   ac_status=$?
     
    2074422168   cat conftest.err >&5
    2074522169-  echo "$as_me:13887: \$? = $ac_status" >&5
    20746 +  echo "$as_me:14358: \$? = $ac_status" >&5
     22170+  echo "$as_me:14636: \$? = $ac_status" >&5
    2074722171   (exit $ac_status); } >/dev/null; then
    2074822172   if test -s conftest.err; then
    2074922173     ac_cpp_err=$ac_cxx_preproc_warn_flag
    20750 @@ -13903,7 +14374,7 @@
     22174@@ -13903,7 +14652,7 @@
    2075122175 fi
    2075222176 rm -f conftest.err conftest.$ac_ext
    2075322177 fi
    2075422178-echo "$as_me:13906: result: `eval echo '${'$as_ac_Header'}'`" >&5
    20755 +echo "$as_me:14377: result: `eval echo '${'$as_ac_Header'}'`" >&5
     22179+echo "$as_me:14655: result: `eval echo '${'$as_ac_Header'}'`" >&5
    2075622180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    2075722181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    2075822182   cat >>confdefs.h <<EOF
    20759 @@ -13913,7 +14384,7 @@
     22183@@ -13913,7 +14662,7 @@
    2076022184 fi
    2076122185 done
    2076222186 
    2076322187-echo "$as_me:13916: checking if we should include stdbool.h" >&5
    20764 +echo "$as_me:14387: checking if we should include stdbool.h" >&5
     22188+echo "$as_me:14665: checking if we should include stdbool.h" >&5
    2076522189 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
    2076622190 
    2076722191 if test "${cf_cv_header_stdbool_h+set}" = set; then
    20768 @@ -13921,7 +14392,7 @@
     22192@@ -13921,7 +14670,7 @@
    2076922193 else
    2077022194 
    2077122195        cat >conftest.$ac_ext <<_ACEOF
    2077222196-#line 13924 "configure"
    20773 +#line 14395 "configure"
     22197+#line 14673 "configure"
    2077422198 #include "confdefs.h"
    2077522199 
    2077622200 int
    20777 @@ -13933,23 +14404,23 @@
     22201@@ -13933,23 +14682,23 @@
    2077822202 }
    2077922203 _ACEOF
    2078022204 rm -f conftest.$ac_objext
    2078122205-if { (eval echo "$as_me:13936: \"$ac_compile\"") >&5
    20782 +if { (eval echo "$as_me:14407: \"$ac_compile\"") >&5
     22206+if { (eval echo "$as_me:14685: \"$ac_compile\"") >&5
    2078322207   (eval $ac_compile) 2>&5
    2078422208   ac_status=$?
    2078522209-  echo "$as_me:13939: \$? = $ac_status" >&5
    20786 +  echo "$as_me:14410: \$? = $ac_status" >&5
     22210+  echo "$as_me:14688: \$? = $ac_status" >&5
    2078722211   (exit $ac_status); } &&
    2078822212          { ac_try='test -s conftest.$ac_objext'
    2078922213-  { (eval echo "$as_me:13942: \"$ac_try\"") >&5
    20790 +  { (eval echo "$as_me:14413: \"$ac_try\"") >&5
     22214+  { (eval echo "$as_me:14691: \"$ac_try\"") >&5
    2079122215   (eval $ac_try) 2>&5
    2079222216   ac_status=$?
    2079322217-  echo "$as_me:13945: \$? = $ac_status" >&5
    20794 +  echo "$as_me:14416: \$? = $ac_status" >&5
     22218+  echo "$as_me:14694: \$? = $ac_status" >&5
    2079522219   (exit $ac_status); }; }; then
    2079622220   cf_cv_header_stdbool_h=0
     
    2080022224 cat >conftest.$ac_ext <<_ACEOF
    2080122225-#line 13952 "configure"
    20802 +#line 14423 "configure"
     22226+#line 14701 "configure"
    2080322227 #include "confdefs.h"
    2080422228 
    2080522229 #ifndef __BEOS__
    20806 @@ -13965,16 +14436,16 @@
     22230@@ -13965,16 +14714,16 @@
    2080722231 }
    2080822232 _ACEOF
    2080922233 rm -f conftest.$ac_objext
    2081022234-if { (eval echo "$as_me:13968: \"$ac_compile\"") >&5
    20811 +if { (eval echo "$as_me:14439: \"$ac_compile\"") >&5
     22235+if { (eval echo "$as_me:14717: \"$ac_compile\"") >&5
    2081222236   (eval $ac_compile) 2>&5
    2081322237   ac_status=$?
    2081422238-  echo "$as_me:13971: \$? = $ac_status" >&5
    20815 +  echo "$as_me:14442: \$? = $ac_status" >&5
     22239+  echo "$as_me:14720: \$? = $ac_status" >&5
    2081622240   (exit $ac_status); } &&
    2081722241          { ac_try='test -s conftest.$ac_objext'
    2081822242-  { (eval echo "$as_me:13974: \"$ac_try\"") >&5
    20819 +  { (eval echo "$as_me:14445: \"$ac_try\"") >&5
     22243+  { (eval echo "$as_me:14723: \"$ac_try\"") >&5
    2082022244   (eval $ac_try) 2>&5
    2082122245   ac_status=$?
    2082222246-  echo "$as_me:13977: \$? = $ac_status" >&5
    20823 +  echo "$as_me:14448: \$? = $ac_status" >&5
     22247+  echo "$as_me:14726: \$? = $ac_status" >&5
    2082422248   (exit $ac_status); }; }; then
    2082522249   cf_cv_header_stdbool_h=1
    2082622250 else
    20827 @@ -13988,13 +14459,13 @@
     22251@@ -13988,13 +14737,13 @@
    2082822252 fi
    2082922253 
    2083022254 if test "$cf_cv_header_stdbool_h" = 1
    2083122255-then   echo "$as_me:13991: result: yes" >&5
    20832 +then   echo "$as_me:14462: result: yes" >&5
     22256+then   echo "$as_me:14740: result: yes" >&5
    2083322257 echo "${ECHO_T}yes" >&6
    2083422258-else   echo "$as_me:13993: result: no" >&5
    20835 +else   echo "$as_me:14464: result: no" >&5
     22259+else   echo "$as_me:14742: result: no" >&5
    2083622260 echo "${ECHO_T}no" >&6
    2083722261 fi
    2083822262 
    2083922263-echo "$as_me:13997: checking for builtin bool type" >&5
    20840 +echo "$as_me:14468: checking for builtin bool type" >&5
     22264+echo "$as_me:14746: checking for builtin bool type" >&5
    2084122265 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
    2084222266 
    2084322267 if test "${cf_cv_builtin_bool+set}" = set; then
    20844 @@ -14002,7 +14473,7 @@
     22268@@ -14002,7 +14751,7 @@
    2084522269 else
    2084622270 
    2084722271        cat >conftest.$ac_ext <<_ACEOF
    2084822272-#line 14005 "configure"
    20849 +#line 14476 "configure"
     22273+#line 14754 "configure"
    2085022274 #include "confdefs.h"
    2085122275 
    2085222276 #include <stdio.h>
    20853 @@ -14017,16 +14488,16 @@
     22277@@ -14017,16 +14766,16 @@
    2085422278 }
    2085522279 _ACEOF
    2085622280 rm -f conftest.$ac_objext
    2085722281-if { (eval echo "$as_me:14020: \"$ac_compile\"") >&5
    20858 +if { (eval echo "$as_me:14491: \"$ac_compile\"") >&5
     22282+if { (eval echo "$as_me:14769: \"$ac_compile\"") >&5
    2085922283   (eval $ac_compile) 2>&5
    2086022284   ac_status=$?
    2086122285-  echo "$as_me:14023: \$? = $ac_status" >&5
    20862 +  echo "$as_me:14494: \$? = $ac_status" >&5
     22286+  echo "$as_me:14772: \$? = $ac_status" >&5
    2086322287   (exit $ac_status); } &&
    2086422288          { ac_try='test -s conftest.$ac_objext'
    2086522289-  { (eval echo "$as_me:14026: \"$ac_try\"") >&5
    20866 +  { (eval echo "$as_me:14497: \"$ac_try\"") >&5
     22290+  { (eval echo "$as_me:14775: \"$ac_try\"") >&5
    2086722291   (eval $ac_try) 2>&5
    2086822292   ac_status=$?
    2086922293-  echo "$as_me:14029: \$? = $ac_status" >&5
    20870 +  echo "$as_me:14500: \$? = $ac_status" >&5
     22294+  echo "$as_me:14778: \$? = $ac_status" >&5
    2087122295   (exit $ac_status); }; }; then
    2087222296   cf_cv_builtin_bool=1
    2087322297 else
    20874 @@ -14039,13 +14510,13 @@
     22298@@ -14039,13 +14788,13 @@
    2087522299 fi
    2087622300 
    2087722301 if test "$cf_cv_builtin_bool" = 1
    2087822302-then   echo "$as_me:14042: result: yes" >&5
    20879 +then   echo "$as_me:14513: result: yes" >&5
     22303+then   echo "$as_me:14791: result: yes" >&5
    2088022304 echo "${ECHO_T}yes" >&6
    2088122305-else   echo "$as_me:14044: result: no" >&5
    20882 +else   echo "$as_me:14515: result: no" >&5
     22306+else   echo "$as_me:14793: result: no" >&5
    2088322307 echo "${ECHO_T}no" >&6
    2088422308 fi
    2088522309 
    2088622310-echo "$as_me:14048: checking for size of bool" >&5
    20887 +echo "$as_me:14519: checking for size of bool" >&5
     22311+echo "$as_me:14797: checking for size of bool" >&5
    2088822312 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
    2088922313 if test "${cf_cv_type_of_bool+set}" = set; then
    2089022314   echo $ECHO_N "(cached) $ECHO_C" >&6
    20891 @@ -14056,7 +14527,7 @@
     22315@@ -14056,7 +14805,7 @@
    2089222316   cf_cv_type_of_bool=unknown
    2089322317 else
    2089422318   cat >conftest.$ac_ext <<_ACEOF
    2089522319-#line 14059 "configure"
    20896 +#line 14530 "configure"
     22320+#line 14808 "configure"
    2089722321 #include "confdefs.h"
    2089822322 
    2089922323 #include <stdlib.h>
    20900 @@ -14098,15 +14569,15 @@
     22324@@ -14098,15 +14847,15 @@
    2090122325 
    2090222326 _ACEOF
    2090322327 rm -f conftest$ac_exeext
    2090422328-if { (eval echo "$as_me:14101: \"$ac_link\"") >&5
    20905 +if { (eval echo "$as_me:14572: \"$ac_link\"") >&5
     22329+if { (eval echo "$as_me:14850: \"$ac_link\"") >&5
    2090622330   (eval $ac_link) 2>&5
    2090722331   ac_status=$?
    2090822332-  echo "$as_me:14104: \$? = $ac_status" >&5
    20909 +  echo "$as_me:14575: \$? = $ac_status" >&5
     22333+  echo "$as_me:14853: \$? = $ac_status" >&5
    2091022334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    2091122335-  { (eval echo "$as_me:14106: \"$ac_try\"") >&5
    20912 +  { (eval echo "$as_me:14577: \"$ac_try\"") >&5
     22336+  { (eval echo "$as_me:14855: \"$ac_try\"") >&5
    2091322337   (eval $ac_try) 2>&5
    2091422338   ac_status=$?
    2091522339-  echo "$as_me:14109: \$? = $ac_status" >&5
    20916 +  echo "$as_me:14580: \$? = $ac_status" >&5
     22340+  echo "$as_me:14858: \$? = $ac_status" >&5
    2091722341   (exit $ac_status); }; }; then
    2091822342   cf_cv_type_of_bool=`cat cf_test.out`
    2091922343                 if test -z "$cf_cv_type_of_bool"; then
    20920 @@ -14124,18 +14595,18 @@
     22344@@ -14124,18 +14873,18 @@
    2092122345 fi
    2092222346 
    2092322347        rm -f cf_test.out
    2092422348-echo "$as_me:14127: result: $cf_cv_type_of_bool" >&5
    20925 +echo "$as_me:14598: result: $cf_cv_type_of_bool" >&5
     22349+echo "$as_me:14876: result: $cf_cv_type_of_bool" >&5
    2092622350 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
    2092722351 if test "$cf_cv_type_of_bool" = unknown ; then
     
    2093022354        esac
    2093122355-       { echo "$as_me:14133: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
    20932 +       { echo "$as_me:14604: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
     22356+       { echo "$as_me:14882: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
    2093322357 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
    2093422358        cf_cv_type_of_bool=$NCURSES_BOOL
     
    2093622360 
    2093722361-echo "$as_me:14138: checking for special defines needed for etip.h" >&5
    20938 +echo "$as_me:14609: checking for special defines needed for etip.h" >&5
     22362+echo "$as_me:14887: checking for special defines needed for etip.h" >&5
    2093922363 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
    2094022364 cf_save_CXXFLAGS="$CXXFLAGS"
    2094122365 cf_result="none"
    20942 @@ -14147,7 +14618,7 @@
     22366@@ -14147,7 +14896,7 @@
    2094322367        test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
    2094422368        test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
    2094522369 cat >conftest.$ac_ext <<_ACEOF
    2094622370-#line 14150 "configure"
    20947 +#line 14621 "configure"
     22371+#line 14899 "configure"
    2094822372 #include "confdefs.h"
    2094922373 
    2095022374 #include <etip.h.in>
    20951 @@ -14161,16 +14632,16 @@
     22375@@ -14161,16 +14910,16 @@
    2095222376 }
    2095322377 _ACEOF
    2095422378 rm -f conftest.$ac_objext
    2095522379-if { (eval echo "$as_me:14164: \"$ac_compile\"") >&5
    20956 +if { (eval echo "$as_me:14635: \"$ac_compile\"") >&5
     22380+if { (eval echo "$as_me:14913: \"$ac_compile\"") >&5
    2095722381   (eval $ac_compile) 2>&5
    2095822382   ac_status=$?
    2095922383-  echo "$as_me:14167: \$? = $ac_status" >&5
    20960 +  echo "$as_me:14638: \$? = $ac_status" >&5
     22384+  echo "$as_me:14916: \$? = $ac_status" >&5
    2096122385   (exit $ac_status); } &&
    2096222386          { ac_try='test -s conftest.$ac_objext'
    2096322387-  { (eval echo "$as_me:14170: \"$ac_try\"") >&5
    20964 +  { (eval echo "$as_me:14641: \"$ac_try\"") >&5
     22388+  { (eval echo "$as_me:14919: \"$ac_try\"") >&5
    2096522389   (eval $ac_try) 2>&5
    2096622390   ac_status=$?
    2096722391-  echo "$as_me:14173: \$? = $ac_status" >&5
    20968 +  echo "$as_me:14644: \$? = $ac_status" >&5
     22392+  echo "$as_me:14922: \$? = $ac_status" >&5
    2096922393   (exit $ac_status); }; }; then
    2097022394 
    2097122395        test -n "$cf_math" && cat >>confdefs.h <<EOF
    20972 @@ -14191,12 +14662,12 @@
     22396@@ -14191,12 +14940,12 @@
    2097322397 rm -f conftest.$ac_objext conftest.$ac_ext
    2097422398 done
    2097522399 done
    2097622400-echo "$as_me:14194: result: $cf_result" >&5
    20977 +echo "$as_me:14665: result: $cf_result" >&5
     22401+echo "$as_me:14943: result: $cf_result" >&5
    2097822402 echo "${ECHO_T}$cf_result" >&6
    2097922403 CXXFLAGS="$cf_save_CXXFLAGS"
     
    2098122405 if test -n "$CXX"; then
    2098222406-echo "$as_me:14199: checking if $CXX accepts parameter initialization" >&5
    20983 +echo "$as_me:14670: checking if $CXX accepts parameter initialization" >&5
     22407+echo "$as_me:14948: checking if $CXX accepts parameter initialization" >&5
    2098422408 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
    2098522409 if test "${cf_cv_cpp_param_init+set}" = set; then
    2098622410   echo $ECHO_N "(cached) $ECHO_C" >&6
    20987 @@ -14213,7 +14684,7 @@
     22411@@ -14213,7 +14962,7 @@
    2098822412   cf_cv_cpp_param_init=unknown
    2098922413 else
    2099022414   cat >conftest.$ac_ext <<_ACEOF
    2099122415-#line 14216 "configure"
    20992 +#line 14687 "configure"
     22416+#line 14965 "configure"
    2099322417 #include "confdefs.h"
    2099422418 
    2099522419 class TEST {
    20996 @@ -14232,15 +14703,15 @@
     22420@@ -14232,15 +14981,15 @@
    2099722421 
    2099822422 _ACEOF
    2099922423 rm -f conftest$ac_exeext
    2100022424-if { (eval echo "$as_me:14235: \"$ac_link\"") >&5
    21001 +if { (eval echo "$as_me:14706: \"$ac_link\"") >&5
     22425+if { (eval echo "$as_me:14984: \"$ac_link\"") >&5
    2100222426   (eval $ac_link) 2>&5
    2100322427   ac_status=$?
    2100422428-  echo "$as_me:14238: \$? = $ac_status" >&5
    21005 +  echo "$as_me:14709: \$? = $ac_status" >&5
     22429+  echo "$as_me:14987: \$? = $ac_status" >&5
    2100622430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    2100722431-  { (eval echo "$as_me:14240: \"$ac_try\"") >&5
    21008 +  { (eval echo "$as_me:14711: \"$ac_try\"") >&5
     22432+  { (eval echo "$as_me:14989: \"$ac_try\"") >&5
    2100922433   (eval $ac_try) 2>&5
    2101022434   ac_status=$?
    2101122435-  echo "$as_me:14243: \$? = $ac_status" >&5
    21012 +  echo "$as_me:14714: \$? = $ac_status" >&5
     22436+  echo "$as_me:14992: \$? = $ac_status" >&5
    2101322437   (exit $ac_status); }; }; then
    2101422438   cf_cv_cpp_param_init=yes
    2101522439 else
    21016 @@ -14259,7 +14730,7 @@
     22440@@ -14259,7 +15008,7 @@
    2101722441 ac_main_return=return
    2101822442 
    2101922443 fi
    2102022444-echo "$as_me:14262: result: $cf_cv_cpp_param_init" >&5
    21021 +echo "$as_me:14733: result: $cf_cv_cpp_param_init" >&5
     22445+echo "$as_me:15011: result: $cf_cv_cpp_param_init" >&5
    2102222446 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
    2102322447 fi
    2102422448 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
    21025 @@ -14268,7 +14739,7 @@
     22449@@ -14268,7 +15017,7 @@
    2102622450 
    2102722451 if test -n "$CXX"; then
    2102822452 
    2102922453-echo "$as_me:14271: checking if $CXX accepts static_cast" >&5
    21030 +echo "$as_me:14742: checking if $CXX accepts static_cast" >&5
     22454+echo "$as_me:15020: checking if $CXX accepts static_cast" >&5
    2103122455 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
    2103222456 if test "${cf_cv_cpp_static_cast+set}" = set; then
    2103322457   echo $ECHO_N "(cached) $ECHO_C" >&6
    21034 @@ -14282,7 +14753,7 @@
     22458@@ -14282,7 +15031,7 @@
    2103522459 ac_main_return=return
    2103622460 
    2103722461        cat >conftest.$ac_ext <<_ACEOF
    2103822462-#line 14285 "configure"
    21039 +#line 14756 "configure"
     22463+#line 15034 "configure"
    2104022464 #include "confdefs.h"
    2104122465 
    2104222466 class NCursesPanel
    21043 @@ -14326,16 +14797,16 @@
     22467@@ -14326,16 +15075,16 @@
    2104422468 }
    2104522469 _ACEOF
    2104622470 rm -f conftest.$ac_objext
    2104722471-if { (eval echo "$as_me:14329: \"$ac_compile\"") >&5
    21048 +if { (eval echo "$as_me:14800: \"$ac_compile\"") >&5
     22472+if { (eval echo "$as_me:15078: \"$ac_compile\"") >&5
    2104922473   (eval $ac_compile) 2>&5
    2105022474   ac_status=$?
    2105122475-  echo "$as_me:14332: \$? = $ac_status" >&5
    21052 +  echo "$as_me:14803: \$? = $ac_status" >&5
     22476+  echo "$as_me:15081: \$? = $ac_status" >&5
    2105322477   (exit $ac_status); } &&
    2105422478          { ac_try='test -s conftest.$ac_objext'
    2105522479-  { (eval echo "$as_me:14335: \"$ac_try\"") >&5
    21056 +  { (eval echo "$as_me:14806: \"$ac_try\"") >&5
     22480+  { (eval echo "$as_me:15084: \"$ac_try\"") >&5
    2105722481   (eval $ac_try) 2>&5
    2105822482   ac_status=$?
    2105922483-  echo "$as_me:14338: \$? = $ac_status" >&5
    21060 +  echo "$as_me:14809: \$? = $ac_status" >&5
     22484+  echo "$as_me:15087: \$? = $ac_status" >&5
    2106122485   (exit $ac_status); }; }; then
    2106222486   cf_cv_cpp_static_cast=yes
    2106322487 else
    21064 @@ -14353,7 +14824,7 @@
     22488@@ -14353,7 +15102,7 @@
    2106522489 ac_main_return=return
    2106622490 
    2106722491 fi
    2106822492-echo "$as_me:14356: result: $cf_cv_cpp_static_cast" >&5
    21069 +echo "$as_me:14827: result: $cf_cv_cpp_static_cast" >&5
     22493+echo "$as_me:15105: result: $cf_cv_cpp_static_cast" >&5
    2107022494 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
    2107122495 
    2107222496 fi
    21073 @@ -14362,189 +14833,6 @@
     22497@@ -14362,189 +15111,6 @@
    2107422498 #define CPP_HAS_STATIC_CAST 1
    2107522499 EOF
     
    2126122685        CXX_AR_OPTS='$(AR_OPTS)'
    2126222686        case $cf_cv_system_name in #(vi
    21263 @@ -14584,7 +14872,7 @@
     22687@@ -14584,7 +15150,7 @@
    2126422688        else
    2126522689                if test "$cf_cv_header_stdbool_h" = 1 ; then
    2126622690 
    2126722691-echo "$as_me:14587: checking for size of bool" >&5
    21268 +echo "$as_me:14875: checking for size of bool" >&5
     22692+echo "$as_me:15153: checking for size of bool" >&5
    2126922693 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
    2127022694 if test "${cf_cv_type_of_bool+set}" = set; then
    2127122695   echo $ECHO_N "(cached) $ECHO_C" >&6
    21272 @@ -14595,7 +14883,7 @@
     22696@@ -14595,7 +15161,7 @@
    2127322697   cf_cv_type_of_bool=unknown
    2127422698 else
    2127522699   cat >conftest.$ac_ext <<_ACEOF
    2127622700-#line 14598 "configure"
    21277 +#line 14886 "configure"
     22701+#line 15164 "configure"
    2127822702 #include "confdefs.h"
    2127922703 
    2128022704 #include <stdlib.h>
    21281 @@ -14637,15 +14925,15 @@
     22705@@ -14637,15 +15203,15 @@
    2128222706 
    2128322707 _ACEOF
    2128422708 rm -f conftest$ac_exeext
    2128522709-if { (eval echo "$as_me:14640: \"$ac_link\"") >&5
    21286 +if { (eval echo "$as_me:14928: \"$ac_link\"") >&5
     22710+if { (eval echo "$as_me:15206: \"$ac_link\"") >&5
    2128722711   (eval $ac_link) 2>&5
    2128822712   ac_status=$?
    2128922713-  echo "$as_me:14643: \$? = $ac_status" >&5
    21290 +  echo "$as_me:14931: \$? = $ac_status" >&5
     22714+  echo "$as_me:15209: \$? = $ac_status" >&5
    2129122715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    2129222716-  { (eval echo "$as_me:14645: \"$ac_try\"") >&5
    21293 +  { (eval echo "$as_me:14933: \"$ac_try\"") >&5
     22717+  { (eval echo "$as_me:15211: \"$ac_try\"") >&5
    2129422718   (eval $ac_try) 2>&5
    2129522719   ac_status=$?
    2129622720-  echo "$as_me:14648: \$? = $ac_status" >&5
    21297 +  echo "$as_me:14936: \$? = $ac_status" >&5
     22721+  echo "$as_me:15214: \$? = $ac_status" >&5
    2129822722   (exit $ac_status); }; }; then
    2129922723   cf_cv_type_of_bool=`cat cf_test.out`
    2130022724                 if test -z "$cf_cv_type_of_bool"; then
    21301 @@ -14663,25 +14951,25 @@
     22725@@ -14663,25 +15229,25 @@
    2130222726 fi
    2130322727 
    2130422728        rm -f cf_test.out
    2130522729-echo "$as_me:14666: result: $cf_cv_type_of_bool" >&5
    21306 +echo "$as_me:14954: result: $cf_cv_type_of_bool" >&5
     22730+echo "$as_me:15232: result: $cf_cv_type_of_bool" >&5
    2130722731 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
    2130822732 if test "$cf_cv_type_of_bool" = unknown ; then
     
    2131122735        esac
    2131222736-       { echo "$as_me:14672: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
    21313 +       { echo "$as_me:14960: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
     22737+       { echo "$as_me:15238: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
    2131422738 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
    2131522739        cf_cv_type_of_bool=$NCURSES_BOOL
     
    2131822742                else
    2131922743-                       echo "$as_me:14678: checking for fallback type of bool" >&5
    21320 +                       echo "$as_me:14966: checking for fallback type of bool" >&5
     22744+                       echo "$as_me:15244: checking for fallback type of bool" >&5
    2132122745 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
    2132222746                        case "$host_cpu" in #(vi
     
    2132522749                        esac
    2132622750-                       echo "$as_me:14684: result: $cf_cv_type_of_bool" >&5
    21327 +                       echo "$as_me:14972: result: $cf_cv_type_of_bool" >&5
     22751+                       echo "$as_me:15250: result: $cf_cv_type_of_bool" >&5
    2132822752 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
    2132922753                fi
    2133022754        fi
    21331 @@ -14707,11 +14995,20 @@
     22755@@ -14707,11 +15273,20 @@
    2133222756 fi
    2133322757 
     
    2133622760+if test "$cf_with_ada" != "no" ; then
    2133722761+    if test "$with_libtool" != "no"; then
    21338 +       { echo "$as_me:15001: WARNING: libtool does not support Ada - disabling feature" >&5
     22762+       { echo "$as_me:15279: WARNING: libtool does not support Ada - disabling feature" >&5
    2133922763+echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
    2134022764+       cf_with_ada=no
     
    2134722771 set dummy $cf_ada_make; ac_word=$2
    2134822772-echo "$as_me:14714: checking for $ac_word" >&5
    21349 +echo "$as_me:15011: checking for $ac_word" >&5
     22773+echo "$as_me:15289: checking for $ac_word" >&5
    2135022774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2135122775 if test "${ac_cv_prog_gnat_exists+set}" = set; then
    2135222776   echo $ECHO_N "(cached) $ECHO_C" >&6
    21353 @@ -14726,7 +15023,7 @@
     22777@@ -14726,7 +15301,7 @@
    2135422778   test -z "$ac_dir" && ac_dir=.
    2135522779   $as_executable_p "$ac_dir/$ac_word" || continue
    2135622780 ac_cv_prog_gnat_exists="yes"
    2135722781-echo "$as_me:14729: found $ac_dir/$ac_word" >&5
    21358 +echo "$as_me:15026: found $ac_dir/$ac_word" >&5
     22782+echo "$as_me:15304: found $ac_dir/$ac_word" >&5
    2135922783 break
    2136022784 done
    2136122785 
    21362 @@ -14735,10 +15032,10 @@
     22786@@ -14735,10 +15310,10 @@
    2136322787 fi
    2136422788 gnat_exists=$ac_cv_prog_gnat_exists
    2136522789 if test -n "$gnat_exists"; then
    2136622790-  echo "$as_me:14738: result: $gnat_exists" >&5
    21367 +  echo "$as_me:15035: result: $gnat_exists" >&5
     22791+  echo "$as_me:15313: result: $gnat_exists" >&5
    2136822792 echo "${ECHO_T}$gnat_exists" >&6
    2136922793 else
    2137022794-  echo "$as_me:14741: result: no" >&5
    21371 +  echo "$as_me:15038: result: no" >&5
     22795+  echo "$as_me:15316: result: no" >&5
    2137222796 echo "${ECHO_T}no" >&6
    2137322797 fi
    2137422798 
    21375 @@ -14746,11 +15043,11 @@
     22799@@ -14746,11 +15321,11 @@
    2137622800    cf_ada_make=
    2137722801 else
    2137822802 
    2137922803-echo "$as_me:14749: checking for gnat version" >&5
    21380 +echo "$as_me:15046: checking for gnat version" >&5
     22804+echo "$as_me:15324: checking for gnat version" >&5
    2138122805 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
    2138222806 cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
    2138322807   sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
    2138422808-echo "$as_me:14753: result: $cf_gnat_version" >&5
    21385 +echo "$as_me:15050: result: $cf_gnat_version" >&5
     22809+echo "$as_me:15328: result: $cf_gnat_version" >&5
    2138622810 echo "${ECHO_T}$cf_gnat_version" >&6
    2138722811 
    2138822812 case $cf_gnat_version in
    21389 @@ -14773,7 +15070,7 @@
     22813@@ -14773,7 +15348,7 @@
    2139022814 
    2139122815    # Extract the first word of "m4", so it can be a program name with args.
    2139222816 set dummy m4; ac_word=$2
    2139322817-echo "$as_me:14776: checking for $ac_word" >&5
    21394 +echo "$as_me:15073: checking for $ac_word" >&5
     22818+echo "$as_me:15351: checking for $ac_word" >&5
    2139522819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2139622820 if test "${ac_cv_prog_M4_exists+set}" = set; then
    2139722821   echo $ECHO_N "(cached) $ECHO_C" >&6
    21398 @@ -14788,7 +15085,7 @@
     22822@@ -14788,7 +15363,7 @@
    2139922823   test -z "$ac_dir" && ac_dir=.
    2140022824   $as_executable_p "$ac_dir/$ac_word" || continue
    2140122825 ac_cv_prog_M4_exists="yes"
    2140222826-echo "$as_me:14791: found $ac_dir/$ac_word" >&5
    21403 +echo "$as_me:15088: found $ac_dir/$ac_word" >&5
     22827+echo "$as_me:15366: found $ac_dir/$ac_word" >&5
    2140422828 break
    2140522829 done
    2140622830 
    21407 @@ -14797,10 +15094,10 @@
     22831@@ -14797,10 +15372,10 @@
    2140822832 fi
    2140922833 M4_exists=$ac_cv_prog_M4_exists
    2141022834 if test -n "$M4_exists"; then
    2141122835-  echo "$as_me:14800: result: $M4_exists" >&5
    21412 +  echo "$as_me:15097: result: $M4_exists" >&5
     22836+  echo "$as_me:15375: result: $M4_exists" >&5
    2141322837 echo "${ECHO_T}$M4_exists" >&6
    2141422838 else
    2141522839-  echo "$as_me:14803: result: no" >&5
    21416 +  echo "$as_me:15100: result: no" >&5
     22840+  echo "$as_me:15378: result: no" >&5
    2141722841 echo "${ECHO_T}no" >&6
    2141822842 fi
    2141922843 
    21420 @@ -14809,7 +15106,7 @@
     22844@@ -14809,7 +15384,7 @@
    2142122845       echo Ada95 binding required program m4 not found. Ada95 binding disabled.
    2142222846    fi
    2142322847    if test "$cf_cv_prog_gnat_correct" = yes; then
    2142422848-      echo "$as_me:14812: checking if GNAT works" >&5
    21425 +      echo "$as_me:15109: checking if GNAT works" >&5
     22849+      echo "$as_me:15387: checking if GNAT works" >&5
    2142622850 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
    2142722851 
    2142822852 rm -f conftest*
    21429 @@ -14837,14 +15134,14 @@
     22853@@ -14837,14 +15412,14 @@
    2143022854 fi
    2143122855 rm -f conftest*
    2143222856 
    2143322857-      echo "$as_me:14840: result: $cf_cv_prog_gnat_correct" >&5
    21434 +      echo "$as_me:15137: result: $cf_cv_prog_gnat_correct" >&5
     22858+      echo "$as_me:15415: result: $cf_cv_prog_gnat_correct" >&5
    2143522859 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
    2143622860    fi
     
    2144022864 
    2144122865-   echo "$as_me:14847: checking if GNAT pragma Unreferenced works" >&5
    21442 +   echo "$as_me:15144: checking if GNAT pragma Unreferenced works" >&5
     22866+   echo "$as_me:15422: checking if GNAT pragma Unreferenced works" >&5
    2144322867 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
    2144422868 
    2144522869 rm -f conftest*
    21446 @@ -14871,7 +15168,7 @@
     22870@@ -14871,7 +15446,7 @@
    2144722871 fi
    2144822872 rm -f conftest*
    2144922873 
    2145022874-   echo "$as_me:14874: result: $cf_cv_pragma_unreferenced" >&5
    21451 +   echo "$as_me:15171: result: $cf_cv_pragma_unreferenced" >&5
     22875+   echo "$as_me:15449: result: $cf_cv_pragma_unreferenced" >&5
    2145222876 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
    2145322877 
    2145422878    # if the pragma is supported, use it (needed in the Trace code).
    21455 @@ -14897,7 +15194,8 @@
     22879@@ -14897,7 +15472,8 @@
    2145622880 
    2145722881 else
     
    2146322887   cf_path_syntax="$prefix"
    2146422888 else
    21465 @@ -14923,12 +15221,13 @@
     22889@@ -14923,12 +15499,13 @@
    2146622890   withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
    2146722891   ;;
    2146822892 *)
    2146922893-  { { echo "$as_me:14926: error: expected a pathname, not \"$withval\"" >&5
    21470 +  { { echo "$as_me:15224: error: expected a pathname, not \"$withval\"" >&5
     22894+  { { echo "$as_me:15502: error: expected a pathname, not \"$withval\"" >&5
    2147122895 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
    2147222896    { (exit 1); exit 1; }; }
     
    2147822902 
    2147922903 # Check whether --with-ada-objects or --without-ada-objects was given.
    21480 @@ -14937,7 +15236,8 @@
     22904@@ -14937,7 +15514,8 @@
    2148122905 
    2148222906 else
     
    2148822912   cf_path_syntax="$prefix"
    2148922913 else
    21490 @@ -14963,34 +15263,57 @@
     22914@@ -14963,34 +15541,57 @@
    2149122915   withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
    2149222916   ;;
    2149322917 *)
    2149422918-  { { echo "$as_me:14966: error: expected a pathname, not \"$withval\"" >&5
    21495 +  { { echo "$as_me:15266: error: expected a pathname, not \"$withval\"" >&5
     22919+  { { echo "$as_me:15544: error: expected a pathname, not \"$withval\"" >&5
    2149622920 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
    2149722921    { (exit 1); exit 1; }; }
     
    2152122945+###
    2152222946+### (see CF_LIB_RULES).
    21523 +echo "$as_me:15291: checking for library subsets" >&5
     22947+echo "$as_me:15569: checking for library subsets" >&5
    2152422948 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
    2152522949+LIB_SUBSETS=
     
    2155122975-echo "$as_me:14993: result: $LIB_SUBSETS" >&5
    2155222976+
    21553 +echo "$as_me:15316: result: $LIB_SUBSETS" >&5
     22977+echo "$as_me:15594: result: $LIB_SUBSETS" >&5
    2155422978 echo "${ECHO_T}$LIB_SUBSETS" >&6
    2155522979 
    2155622980 ### Construct the list of include-directories to be generated
    21557 @@ -15028,7 +15351,7 @@
     22981@@ -15028,7 +15629,7 @@
    2155822982 fi
    2155922983 
    2156022984 ### Build up pieces for makefile rules
    2156122985-echo "$as_me:15031: checking default library suffix" >&5
    21562 +echo "$as_me:15354: checking default library suffix" >&5
     22986+echo "$as_me:15632: checking default library suffix" >&5
    2156322987 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
    2156422988 
    2156522989        case $DFT_LWR_MODEL in
    21566 @@ -15039,10 +15362,10 @@
     22990@@ -15039,10 +15640,10 @@
    2156722991        shared)  DFT_ARG_SUFFIX=''   ;;
    2156822992        esac
    2156922993        test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
    2157022994-echo "$as_me:15042: result: $DFT_ARG_SUFFIX" >&5
    21571 +echo "$as_me:15365: result: $DFT_ARG_SUFFIX" >&5
     22995+echo "$as_me:15643: result: $DFT_ARG_SUFFIX" >&5
    2157222996 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
    2157322997 
    2157422998-echo "$as_me:15045: checking default library-dependency suffix" >&5
    21575 +echo "$as_me:15368: checking default library-dependency suffix" >&5
     22999+echo "$as_me:15646: checking default library-dependency suffix" >&5
    2157623000 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
    2157723001 
    2157823002        case $DFT_LWR_MODEL in
    21579 @@ -15064,17 +15387,19 @@
     23003@@ -15064,17 +15665,19 @@
    2158023004                esac
    2158123005        esac
     
    2159123015 fi
    2159223016-echo "$as_me:15074: result: $DFT_DEP_SUFFIX" >&5
    21593 +echo "$as_me:15399: result: $DFT_DEP_SUFFIX" >&5
     23017+echo "$as_me:15677: result: $DFT_DEP_SUFFIX" >&5
    2159423018 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
    2159523019 
    2159623020-echo "$as_me:15077: checking default object directory" >&5
    21597 +echo "$as_me:15402: checking default object directory" >&5
     23021+echo "$as_me:15680: checking default object directory" >&5
    2159823022 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
    2159923023 
    2160023024        case $DFT_LWR_MODEL in
    21601 @@ -15090,12 +15415,12 @@
     23025@@ -15090,12 +15693,12 @@
    2160223026                        DFT_OBJ_SUBDIR='obj_s' ;;
    2160323027                esac
    2160423028        esac
    2160523029-echo "$as_me:15093: result: $DFT_OBJ_SUBDIR" >&5
    21606 +echo "$as_me:15418: result: $DFT_OBJ_SUBDIR" >&5
     23030+echo "$as_me:15696: result: $DFT_OBJ_SUBDIR" >&5
    2160723031 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
    2160823032 
     
    2161023034 if test "$cf_with_cxx" = yes ; then
    2161123035-echo "$as_me:15098: checking c++ library-dependency suffix" >&5
    21612 +echo "$as_me:15423: checking c++ library-dependency suffix" >&5
     23036+echo "$as_me:15701: checking c++ library-dependency suffix" >&5
    2161323037 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
    2161423038 if test "$with_libtool" != "no"; then
    2161523039        CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
    21616 @@ -15121,21 +15446,60 @@
     23040@@ -15121,21 +15724,60 @@
    2161723041        esac
    2161823042        test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
    2161923043 fi
    2162023044-echo "$as_me:15124: result: $CXX_LIB_SUFFIX" >&5
    21621 +echo "$as_me:15449: result: $CXX_LIB_SUFFIX" >&5
     23045+echo "$as_me:15727: result: $CXX_LIB_SUFFIX" >&5
    2162223046 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
    2162323047 
     
    2167723101                TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
    2167823102                TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
    21679 @@ -15150,22 +15514,81 @@
     23103@@ -15150,22 +15792,85 @@
    2168023104        else
    2168123105                TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
     
    2170923133+TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[         ]//g' -e 's/-ldl$//'`
    2171023134+
     23135+fi
     23136+
     23137+if test "$DFT_LWR_MODEL" = "libtool"; then
     23138+    OBJEXT=lo
    2171123139+fi
    2171223140+
     
    2175123179+esac
    2175223180+
    21753 +echo "$as_me:15586: checking where we will install curses.h" >&5
     23181+echo "$as_me:15868: checking where we will install curses.h" >&5
    2175423182 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
    2175523183 test "$with_overwrite" = no && \
     
    2175723185        includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
    2175823186-echo "$as_me:15168: result: $includedir" >&5
    21759 +echo "$as_me:15591: result: $includedir" >&5
     23187+echo "$as_me:15873: result: $includedir" >&5
    2176023188 echo "${ECHO_T}$includedir" >&6
    2176123189 
    2176223190 ### Resolve a conflict between normal and wide-curses by forcing applications
    21763 @@ -15173,11 +15596,14 @@
     23191@@ -15173,11 +15878,14 @@
    2176423192 if test "$with_overwrite" != no ; then
    2176523193 if test "$NCURSES_LIBUTF8" = 1 ; then
    2176623194        NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
    2176723195-       { echo "$as_me:15176: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
    21768 +       { echo "$as_me:15599: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
     23196+       { echo "$as_me:15881: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
    2176923197 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
    2177023198 fi
     
    2177723205 cat >>confdefs.h <<\EOF
    2177823206 #define HAVE_SLK_COLOR 1
    21779 @@ -15186,7 +15612,7 @@
     23207@@ -15186,7 +15894,7 @@
    2178023208 ### Construct the list of subdirectories for which we'll customize makefiles
    2178123209 ### with the appropriate compile-rules.
    2178223210 
    2178323211-echo "$as_me:15189: checking for src modules" >&5
    21784 +echo "$as_me:15615: checking for src modules" >&5
     23212+echo "$as_me:15897: checking for src modules" >&5
    2178523213 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
    2178623214 
    2178723215 # dependencies and linker-arguments for test-programs
    21788 @@ -15249,7 +15675,7 @@
     23216@@ -15249,7 +15957,7 @@
    2178923217                fi
    2179023218        fi
    2179123219 done
    2179223220-echo "$as_me:15252: result: $cf_cv_src_modules" >&5
    21793 +echo "$as_me:15678: result: $cf_cv_src_modules" >&5
     23221+echo "$as_me:15960: result: $cf_cv_src_modules" >&5
    2179423222 echo "${ECHO_T}$cf_cv_src_modules" >&6
    2179523223 
    2179623224 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
    21797 @@ -15284,6 +15710,10 @@
     23225@@ -15284,6 +15992,10 @@
    2179823226 
    2179923227 fi
     
    2180623234 for cf_item in $cf_list_models
    2180723235 do
    21808 @@ -15391,6 +15821,79 @@
     23236@@ -15391,6 +16103,79 @@
    2180923237        EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
    2181023238 fi
     
    2181323241+if test "$DFT_LWR_MODEL" = "shared"; then
    2181423242+
    21815 +echo "$as_me:15827: checking for updated LDFLAGS" >&5
     23243+echo "$as_me:16109: checking for updated LDFLAGS" >&5
    2181623244+echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
    2181723245+if test -n "$LDFLAGS" ; then
    21818 +echo "$as_me:15830: result: maybe" >&5
     23246+echo "$as_me:16112: result: maybe" >&5
    2181923247+echo "${ECHO_T}maybe" >&6
    2182023248+test -n "$verbose" && echo "   ...checking LDFLAGS $LDFLAGS" 1>&6
    2182123249+
    21822 +echo "${as_me-configure}:15834: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
     23250+echo "${as_me-configure}:16116: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
    2182323251+
    2182423252+test -n "$verbose" && echo "   ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
    2182523253+
    21826 +echo "${as_me-configure}:15838: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
     23254+echo "${as_me-configure}:16120: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
    2182723255+
    2182823256+case "$EXTRA_LDFLAGS" in #(vi
     
    2184623274+        test -n "$verbose" && echo "   Filtering $cf_rpath_src" 1>&6
    2184723275+
    21848 +echo "${as_me-configure}:15860: testing Filtering $cf_rpath_src ..." 1>&5
     23276+echo "${as_me-configure}:16142: testing Filtering $cf_rpath_src ..." 1>&5
    2184923277+
    2185023278+        case $cf_rpath_src in #(vi
     
    2185723285+            test -n "$verbose" && echo "       ...Filter $cf_rpath_tmp" 1>&6
    2185823286+
    21859 +echo "${as_me-configure}:15871: testing ...Filter $cf_rpath_tmp ..." 1>&5
     23287+echo "${as_me-configure}:16153: testing ...Filter $cf_rpath_tmp ..." 1>&5
    2186023288+
    2186123289+            EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
     
    2186923297+    test -n "$verbose" && echo "       ...checked LDFLAGS $LDFLAGS" 1>&6
    2187023298+
    21871 +echo "${as_me-configure}:15883: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
     23299+echo "${as_me-configure}:16165: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
    2187223300+
    2187323301+    test -n "$verbose" && echo "       ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
    2187423302+
    21875 +echo "${as_me-configure}:15887: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
     23303+echo "${as_me-configure}:16169: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
    2187623304+
    2187723305+fi
    2187823306+else
    21879 +echo "$as_me:15891: result: no" >&5
     23307+echo "$as_me:16173: result: no" >&5
    2188023308+echo "${ECHO_T}no" >&6
    2188123309+fi
     
    2188623314 
    2188723315 if test "$cf_cv_have_tcgetattr" = yes ; then
    21888 @@ -15495,7 +15998,7 @@
     23316@@ -15495,7 +16280,7 @@
    2188923317 : ${CONFIG_STATUS=./config.status}
    2189023318 ac_clean_files_save=$ac_clean_files
    2189123319 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
    2189223320-{ echo "$as_me:15498: creating $CONFIG_STATUS" >&5
    21893 +{ echo "$as_me:16001: creating $CONFIG_STATUS" >&5
     23321+{ echo "$as_me:16283: creating $CONFIG_STATUS" >&5
    2189423322 echo "$as_me: creating $CONFIG_STATUS" >&6;}
    2189523323 cat >$CONFIG_STATUS <<_ACEOF
    2189623324 #! $SHELL
    21897 @@ -15671,7 +16174,7 @@
     23325@@ -15627,7 +16412,7 @@
     23326 cat >>$CONFIG_STATUS <<EOF
     23327 ac_cs_version="\\
     23328 config.status
     23329-configured by $0, generated by GNU Autoconf 2.52.20061216,
     23330+configured by $0, generated by GNU Autoconf 2.52.20080325,
     23331   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     23332 
     23333 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     23334@@ -15671,7 +16456,7 @@
    2189823335     echo "$ac_cs_version"; exit 0 ;;
    2189923336   --he | --h)
    2190023337     # Conflict between --help and --header
    2190123338-    { { echo "$as_me:15674: error: ambiguous option: $1
    21902 +    { { echo "$as_me:16177: error: ambiguous option: $1
     23339+    { { echo "$as_me:16459: error: ambiguous option: $1
    2190323340 Try \`$0 --help' for more information." >&5
    2190423341 echo "$as_me: error: ambiguous option: $1
    2190523342 Try \`$0 --help' for more information." >&2;}
    21906 @@ -15690,7 +16193,7 @@
     23343@@ -15690,7 +16475,7 @@
    2190723344     ac_need_defaults=false;;
    2190823345 
    2190923346   # This is an error.
    2191023347-  -*) { { echo "$as_me:15693: error: unrecognized option: $1
    21911 +  -*) { { echo "$as_me:16196: error: unrecognized option: $1
     23348+  -*) { { echo "$as_me:16478: error: unrecognized option: $1
    2191223349 Try \`$0 --help' for more information." >&5
    2191323350 echo "$as_me: error: unrecognized option: $1
    2191423351 Try \`$0 --help' for more information." >&2;}
    21915 @@ -15747,13 +16250,19 @@
     23352@@ -15709,7 +16494,7 @@
     23353 ## Running config.status.  ##
     23354 ## ----------------------- ##
     23355 
     23356-This file was extended by $as_me 2.52.20061216, executed with
     23357+This file was extended by $as_me 2.52.20080325, executed with
     23358   CONFIG_FILES    = $CONFIG_FILES
     23359   CONFIG_HEADERS  = $CONFIG_HEADERS
     23360   CONFIG_LINKS    = $CONFIG_LINKS
     23361@@ -15747,13 +16532,19 @@
    2191623362 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
    2191723363 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
     
    2193323379 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
    2193423380 cf_cv_rel_version="$cf_cv_rel_version"
    21935 @@ -15780,7 +16289,7 @@
     23381@@ -15780,7 +16571,7 @@
    2193623382   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    2193723383   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
    2193823384   "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
    2193923385-  *) { { echo "$as_me:15783: error: invalid argument: $ac_config_target" >&5
    21940 +  *) { { echo "$as_me:16292: error: invalid argument: $ac_config_target" >&5
     23386+  *) { { echo "$as_me:16574: error: invalid argument: $ac_config_target" >&5
    2194123387 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    2194223388    { (exit 1); exit 1; }; };;
    2194323389   esac
    21944 @@ -15928,6 +16437,7 @@
     23390@@ -15928,6 +16719,7 @@
    2194523391 s,@cf_list_models@,$cf_list_models,;t t
    2194623392 s,@LIBTOOL@,$LIBTOOL,;t t
     
    2195023396 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
    2195123397 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
    21952 @@ -15939,6 +16449,7 @@
     23398@@ -15939,6 +16731,7 @@
    2195323399 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
    2195423400 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
     
    2195823404 s,@LIB_NAME@,$LIB_NAME,;t t
    2195923405 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
    21960 @@ -15961,6 +16472,7 @@
     23406@@ -15961,6 +16754,7 @@
    2196123407 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
    2196223408 s,@TERMINFO@,$TERMINFO,;t t
     
    2196623412 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
    2196723413 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
    21968 @@ -15983,6 +16495,10 @@
    21969  s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
     23414@@ -15979,10 +16773,14 @@
     23415 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
     23416 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
     23417 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
     23418-s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
     23419-s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
    2197023420 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
    2197123421 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
     23422+s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
     23423+s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
    2197223424+s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
    2197323425+s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
     
    2197723429 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
    2197823430 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
    21979 @@ -16015,14 +16531,22 @@
     23431@@ -15993,6 +16791,7 @@
     23432 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
     23433 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
     23434 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
     23435+s,@TEST_LIBS@,$TEST_LIBS,;t t
     23436 s,@CXXCPP@,$CXXCPP,;t t
     23437 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
     23438 s,@CXX_AR@,$CXX_AR,;t t
     23439@@ -16015,14 +16814,22 @@
    2198023440 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
    2198123441 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
     
    2200023460 s,@TEST_DEPS@,$TEST_DEPS,;t t
    2200123461 s,@TEST_ARG2@,$TEST_ARG2,;t t
    22002 @@ -16146,7 +16670,7 @@
     23462@@ -16146,7 +16953,7 @@
    2200323463   esac
    2200423464 
    2200523465   if test x"$ac_file" != x-; then
    2200623466-    { echo "$as_me:16149: creating $ac_file" >&5
    22007 +    { echo "$as_me:16673: creating $ac_file" >&5
     23467+    { echo "$as_me:16956: creating $ac_file" >&5
    2200823468 echo "$as_me: creating $ac_file" >&6;}
    2200923469     rm -f "$ac_file"
    2201023470   fi
    22011 @@ -16164,7 +16688,7 @@
     23471@@ -16164,7 +16971,7 @@
    2201223472       -) echo $tmp/stdin ;;
    2201323473       [\\/$]*)
    2201423474          # Absolute (can't be DOS-style, as IFS=:)
    2201523475-         test -f "$f" || { { echo "$as_me:16167: error: cannot find input file: $f" >&5
    22016 +         test -f "$f" || { { echo "$as_me:16691: error: cannot find input file: $f" >&5
     23476+         test -f "$f" || { { echo "$as_me:16974: error: cannot find input file: $f" >&5
    2201723477 echo "$as_me: error: cannot find input file: $f" >&2;}
    2201823478    { (exit 1); exit 1; }; }
    2201923479          echo $f;;
    22020 @@ -16177,7 +16701,7 @@
     23480@@ -16177,7 +16984,7 @@
    2202123481            echo $srcdir/$f
    2202223482          else
    2202323483            # /dev/null tree
    2202423484-           { { echo "$as_me:16180: error: cannot find input file: $f" >&5
    22025 +           { { echo "$as_me:16704: error: cannot find input file: $f" >&5
     23485+           { { echo "$as_me:16987: error: cannot find input file: $f" >&5
    2202623486 echo "$as_me: error: cannot find input file: $f" >&2;}
    2202723487    { (exit 1); exit 1; }; }
    2202823488          fi;;
    22029 @@ -16243,7 +16767,7 @@
     23489@@ -16243,7 +17050,7 @@
    2203023490   * )   ac_file_in=$ac_file.in ;;
    2203123491   esac
    2203223492 
    2203323493-  test x"$ac_file" != x- && { echo "$as_me:16246: creating $ac_file" >&5
    22034 +  test x"$ac_file" != x- && { echo "$as_me:16770: creating $ac_file" >&5
     23494+  test x"$ac_file" != x- && { echo "$as_me:17053: creating $ac_file" >&5
    2203523495 echo "$as_me: creating $ac_file" >&6;}
    2203623496 
    2203723497   # First look for the input files in the build tree, otherwise in the
    22038 @@ -16254,7 +16778,7 @@
     23498@@ -16254,7 +17061,7 @@
    2203923499       -) echo $tmp/stdin ;;
    2204023500       [\\/$]*)
    2204123501          # Absolute (can't be DOS-style, as IFS=:)
    2204223502-         test -f "$f" || { { echo "$as_me:16257: error: cannot find input file: $f" >&5
    22043 +         test -f "$f" || { { echo "$as_me:16781: error: cannot find input file: $f" >&5
     23503+         test -f "$f" || { { echo "$as_me:17064: error: cannot find input file: $f" >&5
    2204423504 echo "$as_me: error: cannot find input file: $f" >&2;}
    2204523505    { (exit 1); exit 1; }; }
    2204623506          echo $f;;
    22047 @@ -16267,7 +16791,7 @@
     23507@@ -16267,7 +17074,7 @@
    2204823508            echo $srcdir/$f
    2204923509          else
    2205023510            # /dev/null tree
    2205123511-           { { echo "$as_me:16270: error: cannot find input file: $f" >&5
    22052 +           { { echo "$as_me:16794: error: cannot find input file: $f" >&5
     23512+           { { echo "$as_me:17077: error: cannot find input file: $f" >&5
    2205323513 echo "$as_me: error: cannot find input file: $f" >&2;}
    2205423514    { (exit 1); exit 1; }; }
    2205523515          fi;;
    22056 @@ -16325,7 +16849,7 @@
     23516@@ -16325,7 +17132,7 @@
    2205723517   rm -f $tmp/in
    2205823518   if test x"$ac_file" != x-; then
    2205923519     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
    2206023520-      { echo "$as_me:16328: $ac_file is unchanged" >&5
    22061 +      { echo "$as_me:16852: $ac_file is unchanged" >&5
     23521+      { echo "$as_me:17135: $ac_file is unchanged" >&5
    2206223522 echo "$as_me: $ac_file is unchanged" >&6;}
    2206323523     else
    2206423524       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    22065 @@ -16400,7 +16924,6 @@
     23525@@ -16400,7 +17207,6 @@
    2206623526                continue
    2206723527        elif test -f $srcdir/$cf_dir/modules; then
     
    2207123531                LIBS_TO_MAKE=
    2207223532                for cf_item in $cf_LIST_MODELS
    22073 @@ -16467,9 +16990,7 @@
     23533@@ -16467,9 +17273,7 @@
    2207423534                        # use autodetected ${cf_prefix} for import lib and static lib, but
    2207523535                        # use 'cyg' prefix for shared lib.
     
    2208223542                        fi
    2208323543                        fi
    22084 @@ -16478,17 +16999,34 @@
     23544@@ -16478,17 +17282,34 @@
    2208523545 
    2208623546                if test $cf_dir = ncurses ; then
     
    2212323583                        $cf_dir/Makefile >$cf_dir/Makefile.out
    2212423584                mv $cf_dir/Makefile.out $cf_dir/Makefile
    22125 @@ -16546,13 +17084,20 @@
     23585@@ -16546,13 +17367,20 @@
    2212623586                                case $cf_subset in
    2212723587                                *base*)
     
    2214623606                        fi
    2214723607 
    22148 @@ -16593,8 +17138,11 @@
     23608@@ -16593,8 +17421,11 @@
    2214923609                                prefix=$cf_prefix \
    2215023610                                suffix=$cf_suffix \
     
    2215823618                                rmSoLocs=$cf_cv_rm_so_locs \
    2215923619                                ldconfig="$LDCONFIG" \
    22160 @@ -16681,8 +17229,8 @@
     23620@@ -16681,8 +17512,8 @@
    2216123621 
    2216223622 cat >> Makefile <<CF_EOF
     
    2216923629 
    2217023630 install.man \\
    22171 @@ -16691,7 +17239,7 @@
     23631@@ -16691,7 +17522,7 @@
    2217223632 
    2217323633 distclean ::
     
    2217823638 CF_EOF
    2217923639 
    22180 @@ -16795,41 +17343,10 @@
     23640@@ -16795,41 +17626,10 @@
    2218123641        fi
    2218223642 
     
    2222623686diff -Naur ncurses-5.6.orig/configure.in ncurses-5.6/configure.in
    2222723687--- ncurses-5.6.orig/configure.in       2006-12-16 20:26:06.000000000 -0500
    22228 +++ ncurses-5.6/configure.in    2007-12-21 00:02:35.000000000 -0500
     23688+++ ncurses-5.6/configure.in    2008-06-18 06:49:50.000000000 -0400
    2222923689@@ -1,5 +1,5 @@
    2223023690 dnl***************************************************************************
     
    2223923699 dnl
    2224023700-dnl $Id: configure.in,v 1.383 2006/12/17 01:26:06 tom Exp $
    22241 +dnl $Id: configure.in,v 1.429 2007/11/24 22:42:43 tom Exp $
     23701+dnl $Id: configure.in,v 1.434 2008/05/17 19:50:19 tom Exp $
    2224223702 dnl Process this file with autoconf to produce a configure script.
    2224323703 dnl
     
    2224723707 AC_PREREQ(2.13.20020210)
    2224823708-AC_REVISION($Revision: 1.383 $)
    22249 +AC_REVISION($Revision: 1.429 $)
     23709+AC_REVISION($Revision: 1.434 $)
    2225023710 AC_INIT(ncurses/base/lib_initscr.c)
    2225123711 AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
     
    2238123841 AC_ARG_ENABLE(tparm-varargs,
    2238223842        [  --disable-tparm-varargs compile tparm() without varargs interface],
    22383 @@ -802,7 +852,7 @@
     23843@@ -786,6 +836,40 @@
     23844 fi
     23845 AC_SUBST(NCURSES_CONST)
     23846 
     23847+###   use option --enable-ext-colors to turn on use of colors beyond 16.
     23848+AC_MSG_CHECKING(if you want to use extended colors)
     23849+AC_ARG_ENABLE(ext-colors,
     23850+       [  --enable-ext-colors     compile for 256-color support],
     23851+       [with_ext_colors=$enableval],
     23852+       [with_ext_colors=no])
     23853+AC_MSG_RESULT($with_ext_colors)
     23854+NCURSES_EXT_COLORS=0
     23855+if test "$with_ext_colors" = yes ; then
     23856+       if test "$with_widec" != yes ; then
     23857+               AC_MSG_ERROR(This option applies only to wide-character library)
     23858+       else
     23859+               # cannot be ABI 5 since it changes sizeof(cchar_t)
     23860+               CF_NCURSES_ABI_6
     23861+       fi
     23862+       NCURSES_EXT_COLORS=1
     23863+       AC_DEFINE(NCURSES_EXT_COLORS)
     23864+fi
     23865+AC_SUBST(NCURSES_EXT_COLORS)
     23866+
     23867+###   use option --enable-ext-mouse to modify coding to support 5-button mice
     23868+AC_MSG_CHECKING(if you want to use extended mouse encoding)
     23869+AC_ARG_ENABLE(ext-mouse,
     23870+       [  --enable-ext-mouse      compile for extended mouse-encoding],
     23871+       [with_ext_mouse=$enableval],
     23872+       [with_ext_mouse=no])
     23873+AC_MSG_RESULT($with_ext_mouse)
     23874+NCURSES_MOUSE_VERSION=1
     23875+if test "$with_ext_mouse" = yes ; then
     23876+       NCURSES_MOUSE_VERSION=2
     23877+       CF_NCURSES_ABI_6
     23878+fi
     23879+AC_SUBST(NCURSES_MOUSE_VERSION)
     23880+
     23881 AC_MSG_CHECKING(if you want \$NCURSES_NO_PADDING code)
     23882 AC_ARG_ENABLE(no-padding,
     23883        [  --enable-no-padding     compile with $NCURSES_NO_PADDING code],
     23884@@ -802,7 +886,7 @@
    2238423885 fi
    2238523886 AC_MSG_CHECKING(if you want to use signed Boolean array in term.h)
     
    2239023891        [with_signed_char=no])
    2239123892 AC_MSG_RESULT($with_signed_char)
    22392 @@ -895,7 +945,7 @@
    22393  NCURSES_EXT_COLORS=0
    22394  if test "$with_ext_colors" = yes ; then
    22395         if test "$with_widec" != yes ; then
     23893@@ -885,39 +969,42 @@
     23894 AC_MSG_RESULT($with_colorfgbg)
     23895 test "$with_colorfgbg" = yes && AC_DEFINE(USE_COLORFGBG)
     23896 
     23897-###   use option --enable-ext-colors to turn on use of colors beyond 16.
     23898-AC_MSG_CHECKING(if you want to use experimental extended colors)
     23899-AC_ARG_ENABLE(ext-colors,
     23900-       [  --enable-ext-colors     compile for experimental 256-color support],
     23901-       [with_ext_colors=$enableval],
     23902-       [with_ext_colors=no])
     23903-AC_MSG_RESULT($with_ext_colors)
     23904-NCURSES_EXT_COLORS=0
     23905-if test "$with_ext_colors" = yes ; then
     23906-       if test "$with_widec" != yes ; then
    2239623907-               AC_MSG_WARN(This option applies only to wide-character library)
    22397 +               AC_MSG_ERROR(This option applies only to wide-character library)
    22398         else
    22399                 # cannot be ABI 5 since it changes sizeof(cchar_t)
    22400                 CF_NCURSES_ABI_6
    22401 @@ -919,6 +969,33 @@
    22402  fi
    22403  AC_SUBST(NCURSES_MOUSE_VERSION)
    22404  
     23908-       else
     23909-               # cannot be ABI 5 since it changes sizeof(cchar_t)
     23910-               CF_NCURSES_ABI_6
     23911-       fi
     23912-       NCURSES_EXT_COLORS=1
     23913-       AC_DEFINE(NCURSES_EXT_COLORS)
     23914-fi
     23915-AC_SUBST(NCURSES_EXT_COLORS)
     23916-
     23917-###   use option --enable-ext-mouse to modify coding to support 5-button mice
     23918-AC_MSG_CHECKING(if you want to use experimental extended mouse encoding)
     23919-AC_ARG_ENABLE(ext-mouse,
     23920-       [  --enable-ext-mouse      compile for experimental mouse-encoding],
     23921-       [with_ext_mouse=$enableval],
     23922-       [with_ext_mouse=no])
     23923-AC_MSG_RESULT($with_ext_mouse)
     23924-NCURSES_MOUSE_VERSION=1
     23925-if test "$with_ext_mouse" = yes ; then
     23926-       NCURSES_MOUSE_VERSION=2
     23927+# This is still experimental (20080329), but should ultimately be moved to
     23928+# the script-block --with-normal, etc.
     23929+CF_WITH_PTHREAD
     23930+if test "$with_pthread" = "yes" ; then
     23931+    AC_DEFINE(USE_PTHREADS)
     23932+    enable_reentrant=yes
     23933+fi
     23934+
    2240523935+# Reentrant code has to be opaque; there's little advantage to making ncurses
    22406 +# opaque outside of that, so there is no --enable-opaque option.
     23936+# opaque outside of that, so there is no --enable-opaque option.  We can use
     23937+# this option without --with-pthreads, but this will be always set for
     23938+# pthreads.
    2240723939+AC_MSG_CHECKING(if you want experimental reentrant code)
    2240823940+AC_ARG_ENABLE(reentrant,
     
    2241823950+       LIB_SUFFIX="t${LIB_SUFFIX}"
    2241923951+       AC_DEFINE(USE_REENTRANT)
    22420 +       CF_NCURSES_ABI_6
     23952        CF_NCURSES_ABI_6
     23953-fi
     23954-AC_SUBST(NCURSES_MOUSE_VERSION)
    2242123955+else
    2242223956+       cf_cv_enable_reentrant=0
     
    2242923963+AC_SUBST(NCURSES_OPAQUE)
    2243023964+AC_SUBST(NCURSES_SIZE_T)
    22431 +
     23965 
    2243223966 AC_MSG_CHECKING(if you want experimental safe-sprintf code)
    2243323967 AC_ARG_ENABLE(safe-sprintf,
    22434         [  --enable-safe-sprintf   compile with experimental safe-sprintf code],
    22435 @@ -961,6 +1038,7 @@
     23968@@ -961,6 +1048,7 @@
    2243623969 else
    2243723970        ECHO_LINK='@ echo linking $@ ... ;'
     
    2244123974 AC_MSG_RESULT($with_echo)
    2244223975 AC_SUBST(ECHO_LINK)
    22443 @@ -972,9 +1050,9 @@
     23976@@ -972,9 +1060,9 @@
    2244423977        [with_warnings=$enableval])
    2244523978 AC_MSG_RESULT($with_warnings)
     
    2245323986                CF_GXX_WARNINGS(Wno-unused)
    2245423987        fi
    22455 @@ -1088,26 +1166,21 @@
     23988@@ -1088,26 +1176,21 @@
    2245623989 ###    checks for compiler characteristics
    2245723990 AC_LANG_C
     
    2248524018 
    2248624019 if test $NCURSES_MMASK_T = auto ; then
    22487 @@ -1115,6 +1188,7 @@
     24020@@ -1115,6 +1198,7 @@
    2248824021 else
    2248924022        cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
     
    2249324026 
    2249424027 ###    Checks for external-data
    22495 @@ -1170,7 +1244,7 @@
    22496  
     24028@@ -1168,9 +1252,20 @@
     24029 CF_FUNC_MEMMOVE
     24030 CF_FUNC_POLL
     24031 
     24032+# special check for test/ditto.c
     24033+CF_FUNC_OPENPTY
     24034+if test "$cf_cv_func_openpty" != no ; then
     24035+    AC_DEFINE_UNQUOTED(USE_OPENPTY_HEADER,<$cf_cv_func_openpty>)
     24036+    AC_DEFINE(USE_XTERM_PTY)
     24037+    if test "$cf_cv_lib_util" = yes ; then
     24038+        TEST_LIBS="-lutil $TEST_LIBS"
     24039+    fi
     24040+fi
     24041+AC_SUBST(TEST_LIBS)
     24042+
    2249724043 if test "$with_hashed_db" != no ; then
    2249824044        AC_DEFINE(USE_HASHED_DB)
     
    2250224048 
    2250324049 dnl We'll do our own -g libraries, unless the user's overridden via $CFLAGS
    22504 @@ -1200,14 +1274,13 @@
     24050@@ -1200,14 +1295,13 @@
    2250524051                ;;
    2250624052        esac
     
    2251824064        CXX_AR='$(AR)'
    2251924065        CXX_AR_OPTS='$(AR_OPTS)'
    22520 @@ -1284,9 +1357,22 @@
     24066@@ -1284,9 +1378,22 @@
    2252124067 
    2252224068 CF_HELP_MESSAGE(Ada95 Binding Options:)
     
    2254224088 cf_ada_make=gnatmake
    2254324089 AC_CHECK_PROG(gnat_exists, $cf_ada_make, yes, no)
    22544 @@ -1369,22 +1455,44 @@
     24090@@ -1369,22 +1476,44 @@
    2254524091 
    2254624092 fi
     
    2259324139 
    2259424140 ### Construct the list of include-directories to be generated
    22595 @@ -1399,10 +1507,12 @@
     24141@@ -1399,10 +1528,12 @@
    2259624142 
    2259724143 AC_MSG_CHECKING(default library-dependency suffix)
     
    2260624152        esac
    2260724153 fi
    22608 @@ -1426,16 +1536,53 @@
     24154@@ -1426,16 +1557,53 @@
    2260924155 AC_SUBST(CXX_LIB_SUFFIX)
    2261024156 fi
     
    2266124207                TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
    2266224208                TINFO_LIB_SUFFIX="${TINFO_NAME}${LIB_SUFFIX}"
    22663 @@ -1450,21 +1597,48 @@
     24209@@ -1450,21 +1618,52 @@
    2266424210        else
    2266524211                TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
     
    2269724243+fi
    2269824244+
     24245+if test "$DFT_LWR_MODEL" = "libtool"; then
     24246+    OBJEXT=lo
     24247+fi
     24248+
    2269924249 # needed for Ada95
    2270024250 TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`
     
    2271024260 test "$with_overwrite" = no && \
    2271124261 test "x$includedir" = 'x${prefix}/include' && \
    22712 @@ -1481,9 +1655,14 @@
     24262@@ -1481,9 +1680,14 @@
    2271324263 fi
    2271424264 
     
    2272524275 AC_DEFINE(HAVE_SLK_COLOR)
    2272624276 
    22727 @@ -1491,6 +1670,11 @@
     24277@@ -1491,6 +1695,11 @@
    2272824278 ### with the appropriate compile-rules.
    2272924279 
     
    2273724287 
    2273824288 AC_DEFINE_UNQUOTED(NCURSES_PATHSEP,'$PATHSEP')
    22739 @@ -1500,6 +1684,11 @@
     24289@@ -1500,6 +1709,11 @@
    2274024290 ### Now that we're done running tests, add the compiler-warnings, if any
    2274124291 CF_ADD_CFLAGS($EXTRA_CFLAGS)
     
    2274924299 CF_SUBST_IF(["$cf_cv_have_tcgetattr" = yes], HAVE_TCGETATTR, 1, 0)
    2275024300 CF_SUBST_IF(["$ac_cv_header_termio_h" = yes], HAVE_TERMIO_H, 1, 0)
    22751 @@ -1540,13 +1729,19 @@
     24301@@ -1540,13 +1754,19 @@
    2275224302 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
    2275324303 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
     
    2277124321diff -Naur ncurses-5.6.orig/dist.mk ncurses-5.6/dist.mk
    2277224322--- ncurses-5.6.orig/dist.mk    2006-12-17 14:58:35.000000000 -0500
    22773 +++ ncurses-5.6/dist.mk 2007-12-21 00:02:36.000000000 -0500
     24323+++ ncurses-5.6/dist.mk 2008-06-18 06:49:52.000000000 -0400
    2277424324@@ -1,5 +1,5 @@
    2277524325 ##############################################################################
    2277624326-# Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.                #
    22777 +# Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.                #
     24327+# Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.                #
    2277824328 #                                                                            #
    2277924329 # Permission is hereby granted, free of charge, to any person obtaining a    #
     
    2278424334 ##############################################################################
    2278524335-# $Id: dist.mk,v 1.567 2006/12/17 19:58:35 tom Exp $
    22786 +# $Id: dist.mk,v 1.619 2007/12/15 22:01:55 tom Exp $
     24336+# $Id: dist.mk,v 1.646 2008/06/14 18:11:41 tom Exp $
    2278724337 # Makefile for creating ncurses distributions.
    2278824338 #
     
    2279324343 NCURSES_MINOR = 6
    2279424344-NCURSES_PATCH = 20061217
    22795 +NCURSES_PATCH = 20071215
     24345+NCURSES_PATCH = 20080614
    2279624346 
    2279724347 # We don't append the patch to the version, since this only applies to releases
     
    2280724357diff -Naur ncurses-5.6.orig/doc/hackguide.doc ncurses-5.6/doc/hackguide.doc
    2280824358--- ncurses-5.6.orig/doc/hackguide.doc  2005-12-24 10:44:52.000000000 -0500
    22809 +++ ncurses-5.6/doc/hackguide.doc       2007-12-21 00:02:35.000000000 -0500
     24359+++ ncurses-5.6/doc/hackguide.doc       2008-06-18 06:49:44.000000000 -0400
    2281024360@@ -261,7 +261,7 @@
    2281124361      lib_tracedmp.c lib_tracemse.c trace_buf.c
     
    2281924369diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/A.htm ncurses-5.6/doc/html/ada/funcs/A.htm
    2282024370--- ncurses-5.6.orig/doc/html/ada/funcs/A.htm   2005-05-14 13:34:32.000000000 -0400
    22821 +++ ncurses-5.6/doc/html/ada/funcs/A.htm        2007-12-21 00:02:35.000000000 -0500
     24371+++ ncurses-5.6/doc/html/ada/funcs/A.htm        2008-06-18 06:49:44.000000000 -0400
    2282224372@@ -4,6 +4,21 @@
    2282324373 <H2>Functions - A</H2>
     
    2284424394diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/B.htm ncurses-5.6/doc/html/ada/funcs/B.htm
    2284524395--- ncurses-5.6.orig/doc/html/ada/funcs/B.htm   2006-09-23 16:31:30.000000000 -0400
    22846 +++ ncurses-5.6/doc/html/ada/funcs/B.htm        2007-12-21 00:02:35.000000000 -0500
     24396+++ ncurses-5.6/doc/html/ada/funcs/B.htm        2008-06-18 06:49:44.000000000 -0400
    2284724397@@ -4,8 +4,18 @@
    2284824398 <H2>Functions - B</H2>
     
    2286824418diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/C.htm ncurses-5.6/doc/html/ada/funcs/C.htm
    2286924419--- ncurses-5.6.orig/doc/html/ada/funcs/C.htm   2006-09-23 16:31:30.000000000 -0400
    22870 +++ ncurses-5.6/doc/html/ada/funcs/C.htm        2007-12-21 00:02:35.000000000 -0500
     24420+++ ncurses-5.6/doc/html/ada/funcs/C.htm        2008-06-18 06:49:44.000000000 -0400
    2287124421@@ -4,24 +4,53 @@
    2287224422 <H2>Functions - C</H2>
     
    2293524485diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/D.htm ncurses-5.6/doc/html/ada/funcs/D.htm
    2293624486--- ncurses-5.6.orig/doc/html/ada/funcs/D.htm   2006-09-23 16:31:30.000000000 -0400
    22937 +++ ncurses-5.6/doc/html/ada/funcs/D.htm        2007-12-21 00:02:35.000000000 -0500
     24487+++ ncurses-5.6/doc/html/ada/funcs/D.htm        2008-06-18 06:49:44.000000000 -0400
    2293824488@@ -4,19 +4,44 @@
    2293924489 <H2>Functions - D</H2>
     
    2299124541diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/E.htm ncurses-5.6/doc/html/ada/funcs/E.htm
    2299224542--- ncurses-5.6.orig/doc/html/ada/funcs/E.htm   2006-09-23 16:31:30.000000000 -0400
    22993 +++ ncurses-5.6/doc/html/ada/funcs/E.htm        2007-12-21 00:02:35.000000000 -0500
     24543+++ ncurses-5.6/doc/html/ada/funcs/E.htm        2008-06-18 06:49:44.000000000 -0400
    2299424544@@ -4,7 +4,15 @@
    2299524545 <H2>Functions - E</H2>
     
    2301324563diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/F.htm ncurses-5.6/doc/html/ada/funcs/F.htm
    2301424564--- ncurses-5.6.orig/doc/html/ada/funcs/F.htm   2006-09-23 16:31:30.000000000 -0400
    23015 +++ ncurses-5.6/doc/html/ada/funcs/F.htm        2007-12-21 00:02:35.000000000 -0500
     24565+++ ncurses-5.6/doc/html/ada/funcs/F.htm        2008-06-18 06:49:44.000000000 -0400
    2301624566@@ -4,10 +4,13 @@
    2301724567 <H2>Functions - F</H2>
     
    2306824618diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/G.htm ncurses-5.6/doc/html/ada/funcs/G.htm
    2306924619--- ncurses-5.6.orig/doc/html/ada/funcs/G.htm   2006-09-23 16:31:30.000000000 -0400
    23070 +++ ncurses-5.6/doc/html/ada/funcs/G.htm        2007-12-21 00:02:35.000000000 -0500
     24620+++ ncurses-5.6/doc/html/ada/funcs/G.htm        2008-06-18 06:49:44.000000000 -0400
    2307124621@@ -8,26 +8,89 @@
    2307224622 <LI><A HREF="../terminal_interface-curses-forms-field_types-user__ads.htm#ref_83_13" TARGET="main">Generic_Field_Check</A>
     
    2316224712diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/H.htm ncurses-5.6/doc/html/ada/funcs/H.htm
    2316324713--- ncurses-5.6.orig/doc/html/ada/funcs/H.htm   2006-09-23 16:31:30.000000000 -0400
    23164 +++ ncurses-5.6/doc/html/ada/funcs/H.htm        2007-12-21 00:02:35.000000000 -0500
     24714+++ ncurses-5.6/doc/html/ada/funcs/H.htm        2008-06-18 06:49:44.000000000 -0400
    2316524715@@ -4,11 +4,19 @@
    2316624716 <H2>Functions - H</H2>
     
    2319024740diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/I.htm ncurses-5.6/doc/html/ada/funcs/I.htm
    2319124741--- ncurses-5.6.orig/doc/html/ada/funcs/I.htm   2006-09-23 16:31:30.000000000 -0400
    23192 +++ ncurses-5.6/doc/html/ada/funcs/I.htm        2007-12-21 00:02:35.000000000 -0500
     24742+++ ncurses-5.6/doc/html/ada/funcs/I.htm        2008-06-18 06:49:44.000000000 -0400
    2319324743@@ -4,19 +4,42 @@
    2319424744 <H2>Functions - I</H2>
     
    2324424794diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/K.htm ncurses-5.6/doc/html/ada/funcs/K.htm
    2324524795--- ncurses-5.6.orig/doc/html/ada/funcs/K.htm   2006-09-23 16:31:30.000000000 -0400
    23246 +++ ncurses-5.6/doc/html/ada/funcs/K.htm        2007-12-21 00:02:35.000000000 -0500
     24796+++ ncurses-5.6/doc/html/ada/funcs/K.htm        2008-06-18 06:49:44.000000000 -0400
    2324724797@@ -4,8 +4,11 @@
    2324824798 <H2>Functions - K</H2>
     
    2326324813diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/L.htm ncurses-5.6/doc/html/ada/funcs/L.htm
    2326424814--- ncurses-5.6.orig/doc/html/ada/funcs/L.htm   2006-09-23 16:31:30.000000000 -0400
    23265 +++ ncurses-5.6/doc/html/ada/funcs/L.htm        2007-12-21 00:02:35.000000000 -0500
     24815+++ ncurses-5.6/doc/html/ada/funcs/L.htm        2008-06-18 06:49:44.000000000 -0400
    2326624816@@ -4,12 +4,17 @@
    2326724817 <H2>Functions - L</H2>
     
    2328724837diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/M.htm ncurses-5.6/doc/html/ada/funcs/M.htm
    2328824838--- ncurses-5.6.orig/doc/html/ada/funcs/M.htm   2006-09-23 16:31:30.000000000 -0400
    23289 +++ ncurses-5.6/doc/html/ada/funcs/M.htm        2007-12-21 00:02:35.000000000 -0500
     24839+++ ncurses-5.6/doc/html/ada/funcs/M.htm        2008-06-18 06:49:44.000000000 -0400
    2329024840@@ -4,6 +4,9 @@
    2329124841 <H2>Functions - M</H2>
     
    2333424884diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/N.htm ncurses-5.6/doc/html/ada/funcs/N.htm
    2333524885--- ncurses-5.6.orig/doc/html/ada/funcs/N.htm   2006-09-23 16:31:30.000000000 -0400
    23336 +++ ncurses-5.6/doc/html/ada/funcs/N.htm        2007-12-21 00:02:35.000000000 -0500
     24886+++ ncurses-5.6/doc/html/ada/funcs/N.htm        2008-06-18 06:49:44.000000000 -0400
    2333724887@@ -4,24 +4,32 @@
    2333824888 <H2>Functions - N</H2>
     
    2338124931diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/O.htm ncurses-5.6/doc/html/ada/funcs/O.htm
    2338224932--- ncurses-5.6.orig/doc/html/ada/funcs/O.htm   2006-09-23 16:31:30.000000000 -0400
    23383 +++ ncurses-5.6/doc/html/ada/funcs/O.htm        2007-12-21 00:02:35.000000000 -0500
     24933+++ ncurses-5.6/doc/html/ada/funcs/O.htm        2008-06-18 06:49:44.000000000 -0400
    2338424934@@ -5,6 +5,8 @@
    2338524935 <A HREF="../funcs.htm" TARGET="_self">[index]</A>
     
    2339524945diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/P.htm ncurses-5.6/doc/html/ada/funcs/P.htm
    2339624946--- ncurses-5.6.orig/doc/html/ada/funcs/P.htm   2006-09-23 16:31:30.000000000 -0400
    23397 +++ ncurses-5.6/doc/html/ada/funcs/P.htm        2007-12-21 00:02:35.000000000 -0500
     24947+++ ncurses-5.6/doc/html/ada/funcs/P.htm        2008-06-18 06:49:44.000000000 -0400
    2339824948@@ -4,17 +4,33 @@
    2339924949 <H2>Functions - P</H2>
     
    2343624986diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/Q.htm ncurses-5.6/doc/html/ada/funcs/Q.htm
    2343724987--- ncurses-5.6.orig/doc/html/ada/funcs/Q.htm   2005-05-14 13:34:32.000000000 -0400
    23438 +++ ncurses-5.6/doc/html/ada/funcs/Q.htm        2007-12-21 00:02:35.000000000 -0500
     24988+++ ncurses-5.6/doc/html/ada/funcs/Q.htm        2008-06-18 06:49:44.000000000 -0400
    2343924989@@ -4,5 +4,5 @@
    2344024990 <H2>Functions - Q</H2>
     
    2344624996diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/R.htm ncurses-5.6/doc/html/ada/funcs/R.htm
    2344724997--- ncurses-5.6.orig/doc/html/ada/funcs/R.htm   2006-09-23 16:31:30.000000000 -0400
    23448 +++ ncurses-5.6/doc/html/ada/funcs/R.htm        2007-12-21 00:02:35.000000000 -0500
     24998+++ ncurses-5.6/doc/html/ada/funcs/R.htm        2008-06-18 06:49:44.000000000 -0400
    2344924999@@ -4,14 +4,36 @@
    2345025000 <H2>Functions - R</H2>
     
    2349225042diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/S.htm ncurses-5.6/doc/html/ada/funcs/S.htm
    2349325043--- ncurses-5.6.orig/doc/html/ada/funcs/S.htm   2006-09-23 16:31:30.000000000 -0400
    23494 +++ ncurses-5.6/doc/html/ada/funcs/S.htm        2007-12-21 00:02:35.000000000 -0500
     25044+++ ncurses-5.6/doc/html/ada/funcs/S.htm        2008-06-18 06:49:44.000000000 -0400
    2349525045@@ -4,24 +4,51 @@
    2349625046 <H2>Functions - S</H2>
     
    2370225252diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/T.htm ncurses-5.6/doc/html/ada/funcs/T.htm
    2370325253--- ncurses-5.6.orig/doc/html/ada/funcs/T.htm   2006-09-23 16:31:30.000000000 -0400
    23704 +++ ncurses-5.6/doc/html/ada/funcs/T.htm        2007-12-21 00:02:35.000000000 -0500
     25254+++ ncurses-5.6/doc/html/ada/funcs/T.htm        2008-06-18 06:49:44.000000000 -0400
    2370525255@@ -4,9 +4,12 @@
    2370625256 <H2>Functions - T</H2>
     
    2373925289diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/U.htm ncurses-5.6/doc/html/ada/funcs/U.htm
    2374025290--- ncurses-5.6.orig/doc/html/ada/funcs/U.htm   2006-09-23 16:31:30.000000000 -0400
    23741 +++ ncurses-5.6/doc/html/ada/funcs/U.htm        2007-12-21 00:02:35.000000000 -0500
     25291+++ ncurses-5.6/doc/html/ada/funcs/U.htm        2008-06-18 06:49:44.000000000 -0400
    2374225292@@ -4,9 +4,20 @@
    2374325293 <H2>Functions - U</H2>
     
    2376725317diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/V.htm ncurses-5.6/doc/html/ada/funcs/V.htm
    2376825318--- ncurses-5.6.orig/doc/html/ada/funcs/V.htm   2005-05-14 13:34:32.000000000 -0400
    23769 +++ ncurses-5.6/doc/html/ada/funcs/V.htm        2007-12-21 00:02:35.000000000 -0500
     25319+++ ncurses-5.6/doc/html/ada/funcs/V.htm        2008-06-18 06:49:44.000000000 -0400
    2377025320@@ -4,5 +4,8 @@
    2377125321 <H2>Functions - V</H2>
     
    2378025330diff -Naur ncurses-5.6.orig/doc/html/ada/funcs/W.htm ncurses-5.6/doc/html/ada/funcs/W.htm
    2378125331--- ncurses-5.6.orig/doc/html/ada/funcs/W.htm   2006-09-23 16:31:30.000000000 -0400
    23782 +++ ncurses-5.6/doc/html/ada/funcs/W.htm        2007-12-21 00:02:35.000000000 -0500
     25332+++ ncurses-5.6/doc/html/ada/funcs/W.htm        2008-06-18 06:49:44.000000000 -0400
    2378325333@@ -4,50 +4,50 @@
    2378425334 <H2>Functions - W</H2>
     
    2387925429diff -Naur ncurses-5.6.orig/doc/html/ada/table.html ncurses-5.6/doc/html/ada/table.html
    2388025430--- ncurses-5.6.orig/doc/html/ada/table.html    2000-12-02 18:38:22.000000000 -0500
    23881 +++ ncurses-5.6/doc/html/ada/table.html 2007-12-21 00:02:35.000000000 -0500
     25431+++ ncurses-5.6/doc/html/ada/table.html 2008-06-18 06:49:44.000000000 -0400
    2388225432@@ -10,36 +10,38 @@
    2388325433 <TABLE ALIGN=CENTER BORDER>
     
    2432625876diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-aux__ads.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-aux__ads.htm
    2432725877--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-aux__ads.htm        2006-09-23 16:31:30.000000000 -0400
    24328 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-aux__ads.htm     2007-12-21 00:02:35.000000000 -0500
     25878+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-aux__ads.htm     2008-06-18 06:49:44.000000000 -0400
    2432925879@@ -3,7 +3,6 @@
    2433025880 <BODY>
     
    2447126021diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-forms-field_types__ads.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-forms-field_types__ads.htm
    2447226022--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-forms-field_types__ads.htm  2006-09-23 16:31:31.000000000 -0400
    24473 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-forms-field_types__ads.htm       2007-12-21 00:02:35.000000000 -0500
     26023+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-forms-field_types__ads.htm       2008-06-18 06:49:44.000000000 -0400
    2447426024@@ -3,7 +3,6 @@
    2447526025 <BODY>
     
    2476326313diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-forms-field_user_data__ads.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-forms-field_user_data__ads.htm
    2476426314--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-forms-field_user_data__ads.htm      2006-09-23 16:31:31.000000000 -0400
    24765 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-forms-field_user_data__ads.htm   2007-12-21 00:02:35.000000000 -0500
     26315+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-forms-field_user_data__ads.htm   2008-06-18 06:49:44.000000000 -0400
    2476626316@@ -3,7 +3,6 @@
    2476726317 <BODY>
     
    2481726367diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-forms-form_user_data__ads.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-forms-form_user_data__ads.htm
    2481826368--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-forms-form_user_data__ads.htm       2006-09-23 16:31:31.000000000 -0400
    24819 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-forms-form_user_data__ads.htm    2007-12-21 00:02:35.000000000 -0500
     26369+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-forms-form_user_data__ads.htm    2008-06-18 06:49:44.000000000 -0400
    2482026370@@ -3,7 +3,6 @@
    2482126371 <BODY>
     
    2487126421diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-forms__ads.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-forms__ads.htm
    2487226422--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-forms__ads.htm      2006-09-23 16:31:31.000000000 -0400
    24873 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-forms__ads.htm   2007-12-21 00:02:35.000000000 -0500
     26423+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-forms__ads.htm   2008-06-18 06:49:44.000000000 -0400
    2487426424@@ -3,7 +3,6 @@
    2487526425 <BODY>
     
    2596627516diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-menus-item_user_data__ads.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-menus-item_user_data__ads.htm
    2596727517--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-menus-item_user_data__ads.htm       2006-09-23 16:31:31.000000000 -0400
    25968 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-menus-item_user_data__ads.htm    2007-12-21 00:02:35.000000000 -0500
     27518+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-menus-item_user_data__ads.htm    2008-06-18 06:49:44.000000000 -0400
    2596927519@@ -3,7 +3,6 @@
    2597027520 <BODY>
     
    2602127571diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-menus-menu_user_data__ads.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-menus-menu_user_data__ads.htm
    2602227572--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-menus-menu_user_data__ads.htm       2006-09-23 16:31:31.000000000 -0400
    26023 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-menus-menu_user_data__ads.htm    2007-12-21 00:02:35.000000000 -0500
     27573+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-menus-menu_user_data__ads.htm    2008-06-18 06:49:44.000000000 -0400
    2602427574@@ -3,7 +3,6 @@
    2602527575 <BODY>
     
    2607527625diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-menus__ads.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-menus__ads.htm
    2607627626--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-menus__ads.htm      2006-09-23 16:31:31.000000000 -0400
    26077 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-menus__ads.htm   2007-12-21 00:02:35.000000000 -0500
     27627+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-menus__ads.htm   2008-06-18 06:49:44.000000000 -0400
    2607827628@@ -3,7 +3,6 @@
    2607927629 <BODY>
     
    2697928529diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-mouse__adb.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-mouse__adb.htm
    2698028530--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-mouse__adb.htm      2006-09-23 16:31:31.000000000 -0400
    26981 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-mouse__adb.htm   2007-12-21 00:02:35.000000000 -0500
     28531+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-mouse__adb.htm   2008-06-18 06:49:44.000000000 -0400
    2698228532@@ -60,7 +60,7 @@
    2698328533       <b>function</b> <FONT COLOR=red><A NAME="ref_55_16">Mouse_Avail</A></FONT> <b>return</b> <A HREF="terminal_interface-curses-aux__ads.htm#ref_55_12">C_Int</A>;
     
    2702828578diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-mouse__ads.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-mouse__ads.htm
    2702928579--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-mouse__ads.htm      2006-09-23 16:31:31.000000000 -0400
    27030 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-mouse__ads.htm   2007-12-21 00:02:35.000000000 -0500
     28580+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-mouse__ads.htm   2008-06-18 06:49:44.000000000 -0400
    2703128581@@ -3,7 +3,6 @@
    2703228582 <BODY>
     
    2732028870diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-panels-user_data__ads.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-panels-user_data__ads.htm
    2732128871--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-panels-user_data__ads.htm   2006-09-23 16:31:31.000000000 -0400
    27322 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-panels-user_data__ads.htm        2007-12-21 00:02:35.000000000 -0500
     28872+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-panels-user_data__ads.htm        2008-06-18 06:49:44.000000000 -0400
    2732328873@@ -3,7 +3,6 @@
    2732428874 <BODY>
     
    2737428924diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-panels__ads.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-panels__ads.htm
    2737528925--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-panels__ads.htm     2006-09-23 16:31:32.000000000 -0400
    27376 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-panels__ads.htm  2007-12-21 00:02:35.000000000 -0500
     28926+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-panels__ads.htm  2008-06-18 06:49:44.000000000 -0400
    2737728927@@ -3,7 +3,6 @@
    2737828928 <BODY>
     
    2752829078diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-terminfo__adb.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-terminfo__adb.htm
    2752929079--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-terminfo__adb.htm   2006-09-23 16:31:32.000000000 -0400
    27530 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-terminfo__adb.htm        2007-12-21 00:02:35.000000000 -0500
     29080+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-terminfo__adb.htm        2008-06-18 06:49:44.000000000 -0400
    2753129081@@ -71,13 +71,13 @@
    2753229082 <FONT COLOR=green><EM>------------------------------------------------------------------------------</EM></FONT>
     
    2754729097diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-text_io-aux__adb.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-text_io-aux__adb.htm
    2754829098--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-text_io-aux__adb.htm        2006-09-23 16:31:32.000000000 -0400
    27549 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-text_io-aux__adb.htm     2007-12-21 00:02:35.000000000 -0500
     29099+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-text_io-aux__adb.htm     2008-06-18 06:49:44.000000000 -0400
    2755029100@@ -76,7 +76,7 @@
    2755129101             <b>end</b> <b>if</b>;
     
    2756829118diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-text_io__adb.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-text_io__adb.htm
    2756929119--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-text_io__adb.htm    2006-09-23 16:31:32.000000000 -0400
    27570 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-text_io__adb.htm 2007-12-21 00:02:35.000000000 -0500
     29120+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-text_io__adb.htm 2008-06-18 06:49:44.000000000 -0400
    2757129121@@ -58,7 +58,7 @@
    2757229122    <b>is</b>
     
    2769929249diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-trace__ads.htm ncurses-5.6/doc/html/ada/terminal_interface-curses-trace__ads.htm
    2770029250--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses-trace__ads.htm      2006-09-23 16:31:32.000000000 -0400
    27701 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses-trace__ads.htm   2007-12-21 00:02:35.000000000 -0500
     29251+++ ncurses-5.6/doc/html/ada/terminal_interface-curses-trace__ads.htm   2008-06-18 06:49:44.000000000 -0400
    2770229252@@ -3,7 +3,6 @@
    2770329253 <BODY>
     
    2781029360diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses__adb.htm ncurses-5.6/doc/html/ada/terminal_interface-curses__adb.htm
    2781129361--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses__adb.htm    2006-09-23 16:31:33.000000000 -0400
    27812 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses__adb.htm 2007-12-21 00:02:35.000000000 -0500
     29362+++ ncurses-5.6/doc/html/ada/terminal_interface-curses__adb.htm 2008-06-18 06:49:44.000000000 -0400
    2781329363@@ -12,7 +12,7 @@
    2781429364 <FONT COLOR=green><EM>--                                 B O D Y                                  --</EM></FONT>
     
    3181633366diff -Naur ncurses-5.6.orig/doc/html/ada/terminal_interface-curses__ads.htm ncurses-5.6/doc/html/ada/terminal_interface-curses__ads.htm
    3181733367--- ncurses-5.6.orig/doc/html/ada/terminal_interface-curses__ads.htm    2006-09-23 16:31:33.000000000 -0400
    31818 +++ ncurses-5.6/doc/html/ada/terminal_interface-curses__ads.htm 2007-12-21 00:02:35.000000000 -0500
     33368+++ ncurses-5.6/doc/html/ada/terminal_interface-curses__ads.htm 2008-06-18 06:49:44.000000000 -0400
    3181933369@@ -3,7 +3,6 @@
    3182033370 <BODY>
     
    3464136191diff -Naur ncurses-5.6.orig/doc/html/man/captoinfo.1m.html ncurses-5.6/doc/html/man/captoinfo.1m.html
    3464236192--- ncurses-5.6.orig/doc/html/man/captoinfo.1m.html     2006-12-16 17:51:21.000000000 -0500
    34643 +++ ncurses-5.6/doc/html/man/captoinfo.1m.html  2007-12-21 00:02:35.000000000 -0500
     36193+++ ncurses-5.6/doc/html/man/captoinfo.1m.html  2008-06-18 06:49:44.000000000 -0400
    3464436194@@ -28,7 +28,7 @@
    3464536195   * sale, use or other dealings in this Software without prior written       *
     
    3469536245diff -Naur ncurses-5.6.orig/doc/html/man/clear.1.html ncurses-5.6/doc/html/man/clear.1.html
    3469636246--- ncurses-5.6.orig/doc/html/man/clear.1.html  2006-12-16 17:51:21.000000000 -0500
    34697 +++ ncurses-5.6/doc/html/man/clear.1.html       2007-12-21 00:02:35.000000000 -0500
     36247+++ ncurses-5.6/doc/html/man/clear.1.html       2008-06-18 06:49:44.000000000 -0400
    3469836248@@ -27,7 +27,7 @@
    3469936249   * sale, use or other dealings in this Software without prior written       *
     
    3471636266diff -Naur ncurses-5.6.orig/doc/html/man/curs_add_wch.3x.html ncurses-5.6/doc/html/man/curs_add_wch.3x.html
    3471736267--- ncurses-5.6.orig/doc/html/man/curs_add_wch.3x.html  2006-12-16 17:51:22.000000000 -0500
    34718 +++ ncurses-5.6/doc/html/man/curs_add_wch.3x.html       2007-12-21 00:02:35.000000000 -0500
     36268+++ ncurses-5.6/doc/html/man/curs_add_wch.3x.html       2008-06-18 06:49:44.000000000 -0400
    3471936269@@ -27,7 +27,7 @@
    3472036270   * sale, use or other dealings in this Software without prior written       *
     
    3475036300diff -Naur ncurses-5.6.orig/doc/html/man/curs_addch.3x.html ncurses-5.6/doc/html/man/curs_addch.3x.html
    3475136301--- ncurses-5.6.orig/doc/html/man/curs_addch.3x.html    2006-12-16 17:51:22.000000000 -0500
    34752 +++ ncurses-5.6/doc/html/man/curs_addch.3x.html 2007-12-21 00:02:35.000000000 -0500
     36302+++ ncurses-5.6/doc/html/man/curs_addch.3x.html 2008-06-18 06:49:44.000000000 -0400
    3475336303@@ -28,7 +28,7 @@
    3475436304   * sale, use or other dealings in this Software without prior written       *
     
    3477136321diff -Naur ncurses-5.6.orig/doc/html/man/curs_border.3x.html ncurses-5.6/doc/html/man/curs_border.3x.html
    3477236322--- ncurses-5.6.orig/doc/html/man/curs_border.3x.html   2006-09-23 16:43:00.000000000 -0400
    34773 +++ ncurses-5.6/doc/html/man/curs_border.3x.html        2007-12-21 00:02:35.000000000 -0500
     36323+++ ncurses-5.6/doc/html/man/curs_border.3x.html        2008-06-18 06:49:44.000000000 -0400
    3477436324@@ -1,7 +1,7 @@
    3477536325 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
     
    3480336353diff -Naur ncurses-5.6.orig/doc/html/man/curs_extend.3x.html ncurses-5.6/doc/html/man/curs_extend.3x.html
    3480436354--- ncurses-5.6.orig/doc/html/man/curs_extend.3x.html   2006-09-23 16:43:01.000000000 -0400
    34805 +++ ncurses-5.6/doc/html/man/curs_extend.3x.html        2007-12-21 00:02:35.000000000 -0500
     36355+++ ncurses-5.6/doc/html/man/curs_extend.3x.html        2008-06-18 06:49:44.000000000 -0400
    3480636356@@ -28,7 +28,7 @@
    3480736357   * authorization.                                                           *
     
    3483536385diff -Naur ncurses-5.6.orig/doc/html/man/curs_getcchar.3x.html ncurses-5.6/doc/html/man/curs_getcchar.3x.html
    3483636386--- ncurses-5.6.orig/doc/html/man/curs_getcchar.3x.html 2006-09-23 16:43:01.000000000 -0400
    34837 +++ ncurses-5.6/doc/html/man/curs_getcchar.3x.html      2007-12-21 00:02:35.000000000 -0500
     36387+++ ncurses-5.6/doc/html/man/curs_getcchar.3x.html      2008-06-18 06:49:44.000000000 -0400
    3483836388@@ -27,7 +27,7 @@
    3483936389   * sale, use or other dealings in this Software without prior written       *
     
    3485836408diff -Naur ncurses-5.6.orig/doc/html/man/curs_insstr.3x.html ncurses-5.6/doc/html/man/curs_insstr.3x.html
    3485936409--- ncurses-5.6.orig/doc/html/man/curs_insstr.3x.html   2006-09-23 16:43:04.000000000 -0400
    34860 +++ ncurses-5.6/doc/html/man/curs_insstr.3x.html        2007-12-21 00:02:35.000000000 -0500
     36410+++ ncurses-5.6/doc/html/man/curs_insstr.3x.html        2008-06-18 06:49:44.000000000 -0400
    3486136411@@ -27,7 +27,7 @@
    3486236412   * sale, use or other dealings in this Software without prior written       *
     
    3487936429diff -Naur ncurses-5.6.orig/doc/html/man/curs_mouse.3x.html ncurses-5.6/doc/html/man/curs_mouse.3x.html
    3488036430--- ncurses-5.6.orig/doc/html/man/curs_mouse.3x.html    2005-05-15 13:05:53.000000000 -0400
    34881 +++ ncurses-5.6/doc/html/man/curs_mouse.3x.html 2007-12-21 00:02:35.000000000 -0500
     36431+++ ncurses-5.6/doc/html/man/curs_mouse.3x.html 2008-06-18 06:49:44.000000000 -0400
    3488236432@@ -2,7 +2,7 @@
    3488336433 <!--
     
    3509536645diff -Naur ncurses-5.6.orig/doc/html/man/curs_printw.3x.html ncurses-5.6/doc/html/man/curs_printw.3x.html
    3509636646--- ncurses-5.6.orig/doc/html/man/curs_printw.3x.html   2006-09-23 16:43:06.000000000 -0400
    35097 +++ ncurses-5.6/doc/html/man/curs_printw.3x.html        2007-12-21 00:02:35.000000000 -0500
     36647+++ ncurses-5.6/doc/html/man/curs_printw.3x.html        2008-06-18 06:49:44.000000000 -0400
    3509836648@@ -27,7 +27,7 @@
    3509936649   * sale, use or other dealings in this Software without prior written       *
     
    3513136681diff -Naur ncurses-5.6.orig/doc/html/man/curs_scanw.3x.html ncurses-5.6/doc/html/man/curs_scanw.3x.html
    3513236682--- ncurses-5.6.orig/doc/html/man/curs_scanw.3x.html    2006-09-23 16:43:07.000000000 -0400
    35133 +++ ncurses-5.6/doc/html/man/curs_scanw.3x.html 2007-12-21 00:02:35.000000000 -0500
     36683+++ ncurses-5.6/doc/html/man/curs_scanw.3x.html 2008-06-18 06:49:44.000000000 -0400
    3513436684@@ -27,7 +27,7 @@
    3513536685   * sale, use or other dealings in this Software without prior written       *
     
    3516136711diff -Naur ncurses-5.6.orig/doc/html/man/curs_scr_dump.3x.html ncurses-5.6/doc/html/man/curs_scr_dump.3x.html
    3516236712--- ncurses-5.6.orig/doc/html/man/curs_scr_dump.3x.html 2006-09-23 16:43:07.000000000 -0400
    35163 +++ ncurses-5.6/doc/html/man/curs_scr_dump.3x.html      2007-12-21 00:02:35.000000000 -0500
     36713+++ ncurses-5.6/doc/html/man/curs_scr_dump.3x.html      2008-06-18 06:49:44.000000000 -0400
    3516436714@@ -27,7 +27,7 @@
    3516536715   * sale, use or other dealings in this Software without prior written       *
     
    3518236732diff -Naur ncurses-5.6.orig/doc/html/man/curs_termcap.3x.html ncurses-5.6/doc/html/man/curs_termcap.3x.html
    3518336733--- ncurses-5.6.orig/doc/html/man/curs_termcap.3x.html  2006-09-23 16:43:08.000000000 -0400
    35184 +++ ncurses-5.6/doc/html/man/curs_termcap.3x.html       2007-12-21 00:02:35.000000000 -0500
     36734+++ ncurses-5.6/doc/html/man/curs_termcap.3x.html       2008-06-18 06:49:44.000000000 -0400
    3518536735@@ -27,7 +27,7 @@
    3518636736   * sale, use or other dealings in this Software without prior written       *
     
    3520336753diff -Naur ncurses-5.6.orig/doc/html/man/curs_terminfo.3x.html ncurses-5.6/doc/html/man/curs_terminfo.3x.html
    3520436754--- ncurses-5.6.orig/doc/html/man/curs_terminfo.3x.html 2006-12-16 17:51:32.000000000 -0500
    35205 +++ ncurses-5.6/doc/html/man/curs_terminfo.3x.html      2007-12-21 00:02:35.000000000 -0500
     36755+++ ncurses-5.6/doc/html/man/curs_terminfo.3x.html      2008-06-18 06:49:44.000000000 -0400
    3520636756@@ -1,7 +1,7 @@
    3520736757 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
     
    3524236792diff -Naur ncurses-5.6.orig/doc/html/man/curs_trace.3x.html ncurses-5.6/doc/html/man/curs_trace.3x.html
    3524336793--- ncurses-5.6.orig/doc/html/man/curs_trace.3x.html    2005-05-15 13:05:56.000000000 -0400
    35244 +++ ncurses-5.6/doc/html/man/curs_trace.3x.html 2007-12-21 00:02:35.000000000 -0500
     36794+++ ncurses-5.6/doc/html/man/curs_trace.3x.html 2008-06-18 06:49:44.000000000 -0400
    3524536795@@ -1,7 +1,7 @@
    3524636796 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
     
    3527236822diff -Naur ncurses-5.6.orig/doc/html/man/curs_util.3x.html ncurses-5.6/doc/html/man/curs_util.3x.html
    3527336823--- ncurses-5.6.orig/doc/html/man/curs_util.3x.html     2006-09-23 16:43:09.000000000 -0400
    35274 +++ ncurses-5.6/doc/html/man/curs_util.3x.html  2007-12-21 00:02:35.000000000 -0500
     36824+++ ncurses-5.6/doc/html/man/curs_util.3x.html  2008-06-18 06:49:44.000000000 -0400
    3527536825@@ -1,7 +1,7 @@
    3527636826 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
     
    3531336863diff -Naur ncurses-5.6.orig/doc/html/man/default_colors.3x.html ncurses-5.6/doc/html/man/default_colors.3x.html
    3531436864--- ncurses-5.6.orig/doc/html/man/default_colors.3x.html        2006-09-23 16:43:09.000000000 -0400
    35315 +++ ncurses-5.6/doc/html/man/default_colors.3x.html     2007-12-21 00:02:35.000000000 -0500
     36865+++ ncurses-5.6/doc/html/man/default_colors.3x.html     2008-06-18 06:49:44.000000000 -0400
    3531636866@@ -28,7 +28,7 @@
    3531736867   * authorization.                                                           *
     
    3533436884diff -Naur ncurses-5.6.orig/doc/html/man/form.3x.html ncurses-5.6/doc/html/man/form.3x.html
    3533536885--- ncurses-5.6.orig/doc/html/man/form.3x.html  2006-12-16 17:51:33.000000000 -0500
    35336 +++ ncurses-5.6/doc/html/man/form.3x.html       2007-12-21 00:02:35.000000000 -0500
     36886+++ ncurses-5.6/doc/html/man/form.3x.html       2008-06-18 06:49:44.000000000 -0400
    3533736887@@ -236,7 +236,7 @@
    3533836888 
     
    3534636896diff -Naur ncurses-5.6.orig/doc/html/man/form_field_new.3x.html ncurses-5.6/doc/html/man/form_field_new.3x.html
    3534736897--- ncurses-5.6.orig/doc/html/man/form_field_new.3x.html        2006-12-16 17:51:35.000000000 -0500
    35348 +++ ncurses-5.6/doc/html/man/form_field_new.3x.html     2007-12-21 00:02:35.000000000 -0500
     36898+++ ncurses-5.6/doc/html/man/form_field_new.3x.html     2008-06-18 06:49:44.000000000 -0400
    3534936899@@ -28,7 +28,7 @@
    3535036900   * sale, use or other dealings in this Software without prior written       *
     
    3537136921diff -Naur ncurses-5.6.orig/doc/html/man/form_field_opts.3x.html ncurses-5.6/doc/html/man/form_field_opts.3x.html
    3537236922--- ncurses-5.6.orig/doc/html/man/form_field_opts.3x.html       2006-12-16 17:51:36.000000000 -0500
    35373 +++ ncurses-5.6/doc/html/man/form_field_opts.3x.html    2007-12-21 00:02:35.000000000 -0500
     36923+++ ncurses-5.6/doc/html/man/form_field_opts.3x.html    2008-06-18 06:49:44.000000000 -0400
    3537436924@@ -2,7 +2,7 @@
    3537536925 <!--
     
    3540736957diff -Naur ncurses-5.6.orig/doc/html/man/form_field_validation.3x.html ncurses-5.6/doc/html/man/form_field_validation.3x.html
    3540836958--- ncurses-5.6.orig/doc/html/man/form_field_validation.3x.html 2006-12-16 17:51:36.000000000 -0500
    35409 +++ ncurses-5.6/doc/html/man/form_field_validation.3x.html      2007-12-21 00:02:35.000000000 -0500
     36959+++ ncurses-5.6/doc/html/man/form_field_validation.3x.html      2008-06-18 06:49:44.000000000 -0400
    3541036960@@ -27,7 +27,7 @@
    3541136961   * sale, use or other dealings in this Software without prior written       *
     
    3544636996diff -Naur ncurses-5.6.orig/doc/html/man/form_hook.3x.html ncurses-5.6/doc/html/man/form_hook.3x.html
    3544736997--- ncurses-5.6.orig/doc/html/man/form_hook.3x.html     2006-12-16 17:51:36.000000000 -0500
    35448 +++ ncurses-5.6/doc/html/man/form_hook.3x.html  2007-12-21 00:02:35.000000000 -0500
     36998+++ ncurses-5.6/doc/html/man/form_hook.3x.html  2008-06-18 06:49:44.000000000 -0400
    3544936999@@ -2,7 +2,7 @@
    3545037000 <!--
     
    3549037040diff -Naur ncurses-5.6.orig/doc/html/man/form_opts.3x.html ncurses-5.6/doc/html/man/form_opts.3x.html
    3549137041--- ncurses-5.6.orig/doc/html/man/form_opts.3x.html     2006-12-16 17:51:37.000000000 -0500
    35492 +++ ncurses-5.6/doc/html/man/form_opts.3x.html  2007-12-21 00:02:35.000000000 -0500
     37042+++ ncurses-5.6/doc/html/man/form_opts.3x.html  2008-06-18 06:49:44.000000000 -0400
    3549337043@@ -2,7 +2,7 @@
    3549437044 <!--
     
    3552637076diff -Naur ncurses-5.6.orig/doc/html/man/index.html ncurses-5.6/doc/html/man/index.html
    3552737077--- ncurses-5.6.orig/doc/html/man/index.html    2006-04-22 18:29:12.000000000 -0400
    35528 +++ ncurses-5.6/doc/html/man/index.html 2007-12-21 00:02:35.000000000 -0500
     37078+++ ncurses-5.6/doc/html/man/index.html 2008-06-18 06:49:44.000000000 -0400
    3552937079@@ -1,6 +1,6 @@
    3553037080 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN">
     
    3554537095diff -Naur ncurses-5.6.orig/doc/html/man/infocmp.1m.html ncurses-5.6/doc/html/man/infocmp.1m.html
    3554637096--- ncurses-5.6.orig/doc/html/man/infocmp.1m.html       2006-12-16 17:51:38.000000000 -0500
    35547 +++ ncurses-5.6/doc/html/man/infocmp.1m.html    2007-12-21 00:02:35.000000000 -0500
     37097+++ ncurses-5.6/doc/html/man/infocmp.1m.html    2008-06-18 06:49:44.000000000 -0400
    3554837098@@ -28,7 +28,7 @@
    3554937099   * sale, use or other dealings in this Software without prior written       *
     
    3556637116diff -Naur ncurses-5.6.orig/doc/html/man/infotocap.1m.html ncurses-5.6/doc/html/man/infotocap.1m.html
    3556737117--- ncurses-5.6.orig/doc/html/man/infotocap.1m.html     2006-12-16 17:51:38.000000000 -0500
    35568 +++ ncurses-5.6/doc/html/man/infotocap.1m.html  2007-12-21 00:02:35.000000000 -0500
     37118+++ ncurses-5.6/doc/html/man/infotocap.1m.html  2008-06-18 06:49:44.000000000 -0400
    3556937119@@ -28,7 +28,7 @@
    3557037120   * sale, use or other dealings in this Software without prior written       *
     
    3559637146diff -Naur ncurses-5.6.orig/doc/html/man/legacy_coding.3x.html ncurses-5.6/doc/html/man/legacy_coding.3x.html
    3559737147--- ncurses-5.6.orig/doc/html/man/legacy_coding.3x.html 2006-09-23 16:43:15.000000000 -0400
    35598 +++ ncurses-5.6/doc/html/man/legacy_coding.3x.html      2007-12-21 00:02:35.000000000 -0500
     37148+++ ncurses-5.6/doc/html/man/legacy_coding.3x.html      2008-06-18 06:49:44.000000000 -0400
    3559937149@@ -28,7 +28,7 @@
    3560037150   * authorization.                                                           *
     
    3565337203diff -Naur ncurses-5.6.orig/doc/html/man/menu.3x.html ncurses-5.6/doc/html/man/menu.3x.html
    3565437204--- ncurses-5.6.orig/doc/html/man/menu.3x.html  2006-12-16 17:51:40.000000000 -0500
    35655 +++ ncurses-5.6/doc/html/man/menu.3x.html       2007-12-21 00:02:35.000000000 -0500
     37205+++ ncurses-5.6/doc/html/man/menu.3x.html       2008-06-18 06:49:44.000000000 -0400
    3565637206@@ -226,7 +226,7 @@
    3565737207 
     
    3566537215diff -Naur ncurses-5.6.orig/doc/html/man/menu_hook.3x.html ncurses-5.6/doc/html/man/menu_hook.3x.html
    3566637216--- ncurses-5.6.orig/doc/html/man/menu_hook.3x.html     2006-12-16 17:51:41.000000000 -0500
    35667 +++ ncurses-5.6/doc/html/man/menu_hook.3x.html  2007-12-21 00:02:35.000000000 -0500
     37217+++ ncurses-5.6/doc/html/man/menu_hook.3x.html  2008-06-18 06:49:44.000000000 -0400
    3566837218@@ -2,7 +2,7 @@
    3566937219 <!--
     
    3570937259diff -Naur ncurses-5.6.orig/doc/html/man/menu_opts.3x.html ncurses-5.6/doc/html/man/menu_opts.3x.html
    3571037260--- ncurses-5.6.orig/doc/html/man/menu_opts.3x.html     2006-12-16 17:51:42.000000000 -0500
    35711 +++ ncurses-5.6/doc/html/man/menu_opts.3x.html  2007-12-21 00:02:35.000000000 -0500
     37261+++ ncurses-5.6/doc/html/man/menu_opts.3x.html  2008-06-18 06:49:44.000000000 -0400
    3571237262@@ -2,7 +2,7 @@
    3571337263 <!--
     
    3574537295diff -Naur ncurses-5.6.orig/doc/html/man/mitem_opts.3x.html ncurses-5.6/doc/html/man/mitem_opts.3x.html
    3574637296--- ncurses-5.6.orig/doc/html/man/mitem_opts.3x.html    2006-12-16 17:51:44.000000000 -0500
    35747 +++ ncurses-5.6/doc/html/man/mitem_opts.3x.html 2007-12-21 00:02:35.000000000 -0500
     37297+++ ncurses-5.6/doc/html/man/mitem_opts.3x.html 2008-06-18 06:49:44.000000000 -0400
    3574837298@@ -2,7 +2,7 @@
    3574937299 <!--
     
    3578137331diff -Naur ncurses-5.6.orig/doc/html/man/ncurses.3x.html ncurses-5.6/doc/html/man/ncurses.3x.html
    3578237332--- ncurses-5.6.orig/doc/html/man/ncurses.3x.html       2006-12-16 17:51:45.000000000 -0500
    35783 +++ ncurses-5.6/doc/html/man/ncurses.3x.html    2007-12-21 00:02:35.000000000 -0500
     37333+++ ncurses-5.6/doc/html/man/ncurses.3x.html    2008-06-18 06:49:44.000000000 -0400
    3578437334@@ -28,7 +28,7 @@
    3578537335   * sale, use or other dealings in this Software without prior written       *
     
    3581537365diff -Naur ncurses-5.6.orig/doc/html/man/panel.3x.html ncurses-5.6/doc/html/man/panel.3x.html
    3581637366--- ncurses-5.6.orig/doc/html/man/panel.3x.html 2006-12-16 17:51:45.000000000 -0500
    35817 +++ ncurses-5.6/doc/html/man/panel.3x.html      2007-12-21 00:02:35.000000000 -0500
     37367+++ ncurses-5.6/doc/html/man/panel.3x.html      2008-06-18 06:49:44.000000000 -0400
    3581837368@@ -213,7 +213,7 @@
    3581937369 <H2>SEE ALSO</H2><PRE>
     
    3582737377diff -Naur ncurses-5.6.orig/doc/html/man/term.5.html ncurses-5.6/doc/html/man/term.5.html
    3582837378--- ncurses-5.6.orig/doc/html/man/term.5.html   2006-12-16 17:51:45.000000000 -0500
    35829 +++ ncurses-5.6/doc/html/man/term.5.html        2007-12-21 00:02:35.000000000 -0500
     37379+++ ncurses-5.6/doc/html/man/term.5.html        2008-06-18 06:49:44.000000000 -0400
    3583037380@@ -27,20 +27,20 @@
    3583137381   * sale, use or other dealings in this Software without prior written       *
     
    3587337423diff -Naur ncurses-5.6.orig/doc/html/man/term.7.html ncurses-5.6/doc/html/man/term.7.html
    3587437424--- ncurses-5.6.orig/doc/html/man/term.7.html   2006-09-23 16:43:22.000000000 -0400
    35875 +++ ncurses-5.6/doc/html/man/term.7.html        2007-12-21 00:02:35.000000000 -0500
     37425+++ ncurses-5.6/doc/html/man/term.7.html        2008-06-18 06:49:44.000000000 -0400
    3587637426@@ -27,20 +27,20 @@
    3587737427   * sale, use or other dealings in this Software without prior written       *
     
    3591937469diff -Naur ncurses-5.6.orig/doc/html/man/terminfo.5.html ncurses-5.6/doc/html/man/terminfo.5.html
    3592037470--- ncurses-5.6.orig/doc/html/man/terminfo.5.html       2006-12-16 17:51:46.000000000 -0500
    35921 +++ ncurses-5.6/doc/html/man/terminfo.5.html    2007-12-21 00:02:35.000000000 -0500
     37471+++ ncurses-5.6/doc/html/man/terminfo.5.html    2008-06-18 06:49:44.000000000 -0400
    3592237472@@ -32,9 +32,9 @@
    3592337473   * sale, use or other dealings in this Software without prior written       *
     
    3601637566diff -Naur ncurses-5.6.orig/doc/html/man/tic.1m.html ncurses-5.6/doc/html/man/tic.1m.html
    3601737567--- ncurses-5.6.orig/doc/html/man/tic.1m.html   2006-12-16 17:51:46.000000000 -0500
    36018 +++ ncurses-5.6/doc/html/man/tic.1m.html        2007-12-21 00:02:35.000000000 -0500
     37568+++ ncurses-5.6/doc/html/man/tic.1m.html        2008-06-18 06:49:44.000000000 -0400
    3601937569@@ -27,7 +27,7 @@
    3602037570   * sale, use or other dealings in this Software without prior written       *
     
    3603737587diff -Naur ncurses-5.6.orig/doc/html/man/toe.1m.html ncurses-5.6/doc/html/man/toe.1m.html
    3603837588--- ncurses-5.6.orig/doc/html/man/toe.1m.html   2006-12-16 17:51:47.000000000 -0500
    36039 +++ ncurses-5.6/doc/html/man/toe.1m.html        2007-12-21 00:02:35.000000000 -0500
     37589+++ ncurses-5.6/doc/html/man/toe.1m.html        2008-06-18 06:49:44.000000000 -0400
    3604037590@@ -27,7 +27,7 @@
    3604137591   * sale, use or other dealings in this Software without prior written       *
     
    3606737617diff -Naur ncurses-5.6.orig/doc/html/man/tput.1.html ncurses-5.6/doc/html/man/tput.1.html
    3606837618--- ncurses-5.6.orig/doc/html/man/tput.1.html   2006-12-16 17:51:47.000000000 -0500
    36069 +++ ncurses-5.6/doc/html/man/tput.1.html        2007-12-21 00:02:35.000000000 -0500
     37619+++ ncurses-5.6/doc/html/man/tput.1.html        2008-06-18 06:49:44.000000000 -0400
    3607037620@@ -28,7 +28,7 @@
    3607137621   * sale, use or other dealings in this Software without prior written       *
     
    3610637656diff -Naur ncurses-5.6.orig/doc/html/man/tset.1.html ncurses-5.6/doc/html/man/tset.1.html
    3610737657--- ncurses-5.6.orig/doc/html/man/tset.1.html   2006-12-16 17:51:47.000000000 -0500
    36108 +++ ncurses-5.6/doc/html/man/tset.1.html        2007-12-21 00:02:35.000000000 -0500
     37658+++ ncurses-5.6/doc/html/man/tset.1.html        2008-06-18 06:49:44.000000000 -0400
    3610937659@@ -27,7 +27,7 @@
    3611037660   * sale, use or other dealings in this Software without prior written       *
     
    3613137681diff -Naur ncurses-5.6.orig/doc/html/ncurses-intro.html ncurses-5.6/doc/html/ncurses-intro.html
    3613237682--- ncurses-5.6.orig/doc/html/ncurses-intro.html        2005-12-24 10:47:05.000000000 -0500
    36133 +++ ncurses-5.6/doc/html/ncurses-intro.html     2007-12-21 00:02:35.000000000 -0500
     37683+++ ncurses-5.6/doc/html/ncurses-intro.html     2008-06-18 06:49:44.000000000 -0400
    3613437684@@ -1,8 +1,8 @@
    3613537685 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN">
     
    3620737757diff -Naur ncurses-5.6.orig/doc/ncurses-intro.doc ncurses-5.6/doc/ncurses-intro.doc
    3620837758--- ncurses-5.6.orig/doc/ncurses-intro.doc      2005-12-24 10:48:44.000000000 -0500
    36209 +++ ncurses-5.6/doc/ncurses-intro.doc   2007-12-21 00:02:35.000000000 -0500
     37759+++ ncurses-5.6/doc/ncurses-intro.doc   2008-06-18 06:49:44.000000000 -0400
    3621037760@@ -174,7 +174,7 @@
    3621137761    The  ncurses  package  was  originated  by  Pavel Curtis. The original
     
    3627137821diff -Naur ncurses-5.6.orig/form/Makefile.in ncurses-5.6/form/Makefile.in
    3627237822--- ncurses-5.6.orig/form/Makefile.in   2006-10-14 16:40:36.000000000 -0400
    36273 +++ ncurses-5.6/form/Makefile.in        2007-12-21 00:02:35.000000000 -0500
     37823+++ ncurses-5.6/form/Makefile.in        2008-06-18 06:49:44.000000000 -0400
    3627437824@@ -1,6 +1,6 @@
    3627537825-# $Id: Makefile.in,v 1.42 2006/10/14 20:40:36 tom Exp $
     
    3631937869diff -Naur ncurses-5.6.orig/form/fld_def.c ncurses-5.6/form/fld_def.c
    3632037870--- ncurses-5.6.orig/form/fld_def.c     2005-04-16 13:31:17.000000000 -0400
    36321 +++ ncurses-5.6/form/fld_def.c  2007-12-21 00:02:35.000000000 -0500
     37871+++ ncurses-5.6/form/fld_def.c  2008-06-18 06:49:44.000000000 -0400
    3632237872@@ -1,5 +1,5 @@
    3632337873 /****************************************************************************
     
    3637637926diff -Naur ncurses-5.6.orig/form/fld_dup.c ncurses-5.6/form/fld_dup.c
    3637737927--- ncurses-5.6.orig/form/fld_dup.c     2004-12-25 17:24:10.000000000 -0500
    36378 +++ ncurses-5.6/form/fld_dup.c  2007-12-21 00:02:35.000000000 -0500
     37928+++ ncurses-5.6/form/fld_dup.c  2008-06-18 06:49:44.000000000 -0400
    3637937929@@ -1,5 +1,5 @@
    3638037930 /****************************************************************************
     
    3640637956diff -Naur ncurses-5.6.orig/form/fld_ftlink.c ncurses-5.6/form/fld_ftlink.c
    3640737957--- ncurses-5.6.orig/form/fld_ftlink.c  2004-12-25 17:24:10.000000000 -0500
    36408 +++ ncurses-5.6/form/fld_ftlink.c       2007-12-21 00:02:35.000000000 -0500
     37958+++ ncurses-5.6/form/fld_ftlink.c       2008-06-18 06:49:44.000000000 -0400
    3640937959@@ -1,5 +1,5 @@
    3641037960 /****************************************************************************
     
    3643837988diff -Naur ncurses-5.6.orig/form/fld_link.c ncurses-5.6/form/fld_link.c
    3643937989--- ncurses-5.6.orig/form/fld_link.c    2004-12-25 17:24:10.000000000 -0500
    36440 +++ ncurses-5.6/form/fld_link.c 2007-12-21 00:02:36.000000000 -0500
     37990+++ ncurses-5.6/form/fld_link.c 2008-06-18 06:49:44.000000000 -0400
    3644137991@@ -1,5 +1,5 @@
    3644237992 /****************************************************************************
     
    3646838018diff -Naur ncurses-5.6.orig/form/fld_newftyp.c ncurses-5.6/form/fld_newftyp.c
    3646938019--- ncurses-5.6.orig/form/fld_newftyp.c 2004-12-25 17:24:10.000000000 -0500
    36470 +++ ncurses-5.6/form/fld_newftyp.c      2007-12-21 00:02:36.000000000 -0500
     38020+++ ncurses-5.6/form/fld_newftyp.c      2008-06-18 06:49:44.000000000 -0400
    3647138021@@ -1,5 +1,5 @@
    3647238022 /****************************************************************************
     
    3650038050diff -Naur ncurses-5.6.orig/form/frm_def.c ncurses-5.6/form/frm_def.c
    3650138051--- ncurses-5.6.orig/form/frm_def.c     2006-11-04 11:57:15.000000000 -0500
    36502 +++ ncurses-5.6/form/frm_def.c  2007-12-21 00:02:36.000000000 -0500
     38052+++ ncurses-5.6/form/frm_def.c  2008-06-18 06:49:44.000000000 -0400
    3650338053@@ -1,5 +1,5 @@
    3650438054 /****************************************************************************
     
    3654438094diff -Naur ncurses-5.6.orig/form/frm_driver.c ncurses-5.6/form/frm_driver.c
    3654538095--- ncurses-5.6.orig/form/frm_driver.c  2006-11-04 13:45:35.000000000 -0500
    36546 +++ ncurses-5.6/form/frm_driver.c       2007-12-21 00:02:36.000000000 -0500
     38096+++ ncurses-5.6/form/frm_driver.c       2008-06-18 06:49:46.000000000 -0400
    3654738097@@ -1,5 +1,5 @@
    3654838098 /****************************************************************************
    3654938099- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    36550 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     38100+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    3655138101  *                                                                          *
    3655238102  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    3655738107 
    3655838108-MODULE_ID("$Id: frm_driver.c,v 1.76 2006/11/04 18:45:35 tom Exp $")
    36559 +MODULE_ID("$Id: frm_driver.c,v 1.85 2007/11/24 21:32:53 tom Exp $")
     38109+MODULE_ID("$Id: frm_driver.c,v 1.86 2008/01/19 20:11:03 tom Exp $")
    3656038110 
    3656138111 /*----------------------------------------------------------------------------
     
    3658938139          for (i = 0; i <= field->nbuf; i++)
    3659038140            {
     38141@@ -663,7 +676,7 @@
     38142              new_bp[new_buflen] = myZEROS;
     38143            }
     38144 
     38145-#if USE_WIDEC_SUPPORT
     38146+#if USE_WIDEC_SUPPORT && NCURSES_EXT_FUNCS
     38147          if (wresize(field->working, 1, Buffer_Length(field) + 1) == ERR)
     38148            result = FALSE;
     38149 #endif
    3659138150@@ -724,6 +737,34 @@
    3659238151   return (result);
     
    3674038299diff -Naur ncurses-5.6.orig/form/fty_alnum.c ncurses-5.6/form/fty_alnum.c
    3674138300--- ncurses-5.6.orig/form/fty_alnum.c   2006-04-22 17:33:05.000000000 -0400
    36742 +++ ncurses-5.6/form/fty_alnum.c        2007-12-21 00:02:36.000000000 -0500
     38301+++ ncurses-5.6/form/fty_alnum.c        2008-06-18 06:49:44.000000000 -0400
    3674338302@@ -1,5 +1,5 @@
    3674438303 /****************************************************************************
     
    3679138350diff -Naur ncurses-5.6.orig/form/fty_alpha.c ncurses-5.6/form/fty_alpha.c
    3679238351--- ncurses-5.6.orig/form/fty_alpha.c   2006-04-22 17:33:05.000000000 -0400
    36793 +++ ncurses-5.6/form/fty_alpha.c        2007-12-21 00:02:36.000000000 -0500
     38352+++ ncurses-5.6/form/fty_alpha.c        2008-06-18 06:49:44.000000000 -0400
    3679438353@@ -1,5 +1,5 @@
    3679538354 /****************************************************************************
     
    3684238401diff -Naur ncurses-5.6.orig/form/fty_enum.c ncurses-5.6/form/fty_enum.c
    3684338402--- ncurses-5.6.orig/form/fty_enum.c    2006-04-22 17:33:05.000000000 -0400
    36844 +++ ncurses-5.6/form/fty_enum.c 2007-12-21 00:02:36.000000000 -0500
     38403+++ ncurses-5.6/form/fty_enum.c 2008-06-18 06:49:44.000000000 -0400
    3684538404@@ -1,5 +1,5 @@
    3684638405 /****************************************************************************
     
    3689438453diff -Naur ncurses-5.6.orig/form/fty_int.c ncurses-5.6/form/fty_int.c
    3689538454--- ncurses-5.6.orig/form/fty_int.c     2006-04-22 17:33:05.000000000 -0400
    36896 +++ ncurses-5.6/form/fty_int.c  2007-12-21 00:02:36.000000000 -0500
     38455+++ ncurses-5.6/form/fty_int.c  2008-06-18 06:49:44.000000000 -0400
    3689738456@@ -1,5 +1,5 @@
    3689838457 /****************************************************************************
     
    3694138500diff -Naur ncurses-5.6.orig/form/fty_num.c ncurses-5.6/form/fty_num.c
    3694238501--- ncurses-5.6.orig/form/fty_num.c     2006-04-22 17:33:05.000000000 -0400
    36943 +++ ncurses-5.6/form/fty_num.c  2007-12-21 00:02:36.000000000 -0500
     38502+++ ncurses-5.6/form/fty_num.c  2008-06-18 06:49:44.000000000 -0400
    3694438503@@ -1,5 +1,5 @@
    3694538504 /****************************************************************************
     
    3698838547diff -Naur ncurses-5.6.orig/form/fty_regex.c ncurses-5.6/form/fty_regex.c
    3698938548--- ncurses-5.6.orig/form/fty_regex.c   2006-04-22 17:33:05.000000000 -0400
    36990 +++ ncurses-5.6/form/fty_regex.c        2007-12-21 00:02:36.000000000 -0500
     38549+++ ncurses-5.6/form/fty_regex.c        2008-06-18 06:49:44.000000000 -0400
    3699138550@@ -1,5 +1,5 @@
    3699238551 /****************************************************************************
     
    3705338612diff -Naur ncurses-5.6.orig/form/headers ncurses-5.6/form/headers
    3705438613--- ncurses-5.6.orig/form/headers       1998-02-11 07:13:43.000000000 -0500
    37055 +++ ncurses-5.6/form/headers    2007-12-21 00:02:36.000000000 -0500
     38614+++ ncurses-5.6/form/headers    2008-06-18 06:49:44.000000000 -0400
    3705638615@@ -1,5 +1,5 @@
    3705738616 ##############################################################################
     
    3706838627diff -Naur ncurses-5.6.orig/form/modules ncurses-5.6/form/modules
    3706938628--- ncurses-5.6.orig/form/modules       2004-12-25 18:29:22.000000000 -0500
    37070 +++ ncurses-5.6/form/modules    2007-12-21 00:02:36.000000000 -0500
     38629+++ ncurses-5.6/form/modules    2008-06-18 06:49:44.000000000 -0400
    3707138630@@ -1,6 +1,6 @@
    3707238631-# $Id: modules,v 1.14 2004/12/25 23:29:22 tom Exp $
     
    3709538654diff -Naur ncurses-5.6.orig/include/MKterm.h.awk.in ncurses-5.6/include/MKterm.h.awk.in
    3709638655--- ncurses-5.6.orig/include/MKterm.h.awk.in    2006-11-25 20:18:23.000000000 -0500
    37097 +++ ncurses-5.6/include/MKterm.h.awk.in 2007-12-21 00:02:36.000000000 -0500
     38656+++ ncurses-5.6/include/MKterm.h.awk.in 2008-06-18 06:49:51.000000000 -0400
    3709838657@@ -1,6 +1,7 @@
    3709938658+# vile:awkmode
     
    3710138660                    print  "/****************************************************************************"
    3710238661-                   print  " * Copyright (c) 1998-2003,2006 Free Software Foundation, Inc.              *"
    37103 +                   print  " * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *"
     38662+                   print  " * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *"
    3710438663                    print  " *                                                                          *"
    3710538664                    print  " * Permission is hereby granted, free of charge, to any person obtaining a  *"
     
    3711038669                    print  ""
    3711138670-                   print  "/* $Id: MKterm.h.awk.in,v 1.47 2006/11/26 01:18:23 tom Exp $ */"
    37112 +                   print  "/* $Id: MKterm.h.awk.in,v 1.49 2007/08/18 11:44:26 tom Exp $ */"
     38671+                   print  "/* $Id: MKterm.h.awk.in,v 1.50 2008/05/24 23:13:59 tom Exp $ */"
    3711338672                    print  ""
    3711438673                    print  "/*"
    3711538674                    print  "**  term.h -- Definition of struct term"
    37116 @@ -229,26 +230,26 @@
     38675@@ -227,31 +228,33 @@
     38676                        print  "    char *      _termname;      /* used for termname() */"
     38677                        print  "} TERMINAL;"
    3711738678                        print  ""
    37118                         print  "extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term;"
    37119                         print  ""
     38679-                       print  "extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term;"
     38680-                       print  ""
    3712038681-                       print  "#if BROKEN_LINKER"
    3712138682-                       print  "#define boolnames  _nc_boolnames()"
     
    3713938700-                       print  "extern NCURSES_EXPORT(NCURSES_CONST char * const *) _nc_strfnames (void);"
    3714038701+                       print  "#if @BROKEN_LINKER@ || @cf_cv_enable_reentrant@"
     38702+                       print  "NCURSES_WRAPPED_VAR(TERMINAL *, cur_term);"
    3714138703+                       print  "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolnames);"
    3714238704+                       print  "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolcodes);"
     
    3714938711+                       print  "NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, strfnames);"
    3715038712+                       print  ""
     38713+                       print  "#define cur_term   NCURSES_PUBLIC_VAR(cur_term())"
    3715138714+                       print  "#define boolnames  NCURSES_PUBLIC_VAR(boolnames())"
    3715238715+                       print  "#define boolcodes  NCURSES_PUBLIC_VAR(boolcodes())"
     
    3716138724                        print  "#else"
    3716238725                        print  ""
    37163 @@ -291,10 +292,10 @@
     38726+                       print  "extern NCURSES_EXPORT_VAR(TERMINAL *) cur_term;"
     38727+                       print  ""
     38728                        print  "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolnames[];"
     38729                        print  "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolcodes[];"
     38730                        print  "extern NCURSES_EXPORT_VAR(NCURSES_CONST char * const ) boolfnames[];"
     38731@@ -291,10 +294,10 @@
    3716438732                        print  "extern NCURSES_EXPORT(int) tigetnum (NCURSES_CONST char *);"
    3716538733                        print  ""
     
    3717738745diff -Naur ncurses-5.6.orig/include/curses.h.in ncurses-5.6/include/curses.h.in
    3717838746--- ncurses-5.6.orig/include/curses.h.in        2006-11-25 20:14:54.000000000 -0500
    37179 +++ ncurses-5.6/include/curses.h.in     2007-12-21 00:02:36.000000000 -0500
     38747+++ ncurses-5.6/include/curses.h.in     2008-06-18 06:49:49.000000000 -0400
    3718038748@@ -1,5 +1,5 @@
    3718138749 /****************************************************************************
    3718238750- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    37183 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     38751+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    3718438752  *                                                                          *
    3718538753  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    3719038758 
    3719138759-/* $Id: curses.h.in,v 1.167 2006/11/26 01:14:54 tom Exp $ */
    37192 +/* $Id: curses.h.in,v 1.181 2007/11/18 00:32:03 tom Exp $ */
     38760+/* $Id: curses.h.in,v 1.186 2008/04/05 15:30:28 tom Exp $ */
    3719338761 
    3719438762 #ifndef __NCURSES_H
     
    3735238920 extern NCURSES_EXPORT(int) getcury (const WINDOW *);                   /* generated */
    3735338921 extern NCURSES_EXPORT(int) getbegx (const WINDOW *);                   /* generated */
    37354 @@ -846,12 +818,58 @@
     38922@@ -846,12 +818,60 @@
    3735538923 extern NCURSES_EXPORT(int) getpary (const WINDOW *);                   /* generated */
    3735638924 
     
    3736638934+ * These functions are extensions - not in X/Open Curses.
    3736738935+ */
    37368 +#undef  NCURSES_EXT_FUNCS
    3736938936+#if @NCURSES_EXT_FUNCS@
    3737038937+#undef  NCURSES_EXT_FUNCS
    3737138938+#define NCURSES_EXT_FUNCS @NCURSES_PATCH@
    37372 +typedef int (*NCURSES_CALLBACK)(WINDOW *, void *);
     38939+typedef int (*NCURSES_WINDOW_CB)(WINDOW *, void *);
     38940+typedef int (*NCURSES_SCREEN_CB)(SCREEN *, void *);
    3737338941+extern NCURSES_EXPORT(bool) is_term_resized (int, int);
    3737438942+extern NCURSES_EXPORT(char *) keybound (int, int);
     
    3738038948+extern NCURSES_EXPORT(int) resize_term (int, int);
    3738138949+extern NCURSES_EXPORT(int) resizeterm (int, int);
     38950+extern NCURSES_EXPORT(int) set_escdelay (int);
     38951+extern NCURSES_EXPORT(int) set_tabsize (int);
    3738238952+extern NCURSES_EXPORT(int) use_default_colors (void);
    3738338953+extern NCURSES_EXPORT(int) use_extended_names (bool);
    3738438954+extern NCURSES_EXPORT(int) use_legacy_coding (int);
    37385 +extern NCURSES_EXPORT(int) use_screen (SCREEN *, NCURSES_CALLBACK, void *);
    37386 +extern NCURSES_EXPORT(int) use_window (WINDOW *, NCURSES_CALLBACK, void *);
     38955+extern NCURSES_EXPORT(int) use_screen (SCREEN *, NCURSES_SCREEN_CB, void *);
     38956+extern NCURSES_EXPORT(int) use_window (WINDOW *, NCURSES_WINDOW_CB, void *);
    3738738957+extern NCURSES_EXPORT(int) wresize (WINDOW *, int, int);
    3738838958+extern NCURSES_EXPORT(void) nofilter(void);
     
    3741238982 
    3741338983 #define NCURSES_ATTR_SHIFT       8
    37414 @@ -892,11 +910,18 @@
     38984@@ -892,11 +912,22 @@
    3741538985 #define getmaxyx(win,y,x)      (y = getmaxy(win), x = getmaxx(win))
    3741638986 #define getparyx(win,y,x)      (y = getpary(win), x = getparx(win))
     
    3741838988-#define getsyx(y,x) do { if(newscr->_leaveok) (y)=(x)=-1; \
    3741938989-                        else getyx(newscr,(y),(x)); \
    37420 +#define getsyx(y,x) do { if (is_leaveok(newscr)) \
    37421 +                           (y) = (x) = -1; \
    37422 +                        else \
    37423 +                            getyx(newscr,(y), (x)); \
     38990+#define getsyx(y,x) do { if (newscr) { \
     38991+                            if (is_leaveok(newscr)) \
     38992+                               (y) = (x) = -1; \
     38993+                            else \
     38994+                                getyx(newscr,(y), (x)); \
     38995+                       } \
    3742438996                    } while(0)
    3742538997-#define setsyx(y,x) do { if((y)==-1 && (x)==-1) newscr->_leaveok=TRUE; \
    3742638998-                        else {newscr->_leaveok=FALSE;wmove(newscr,(y),(x));} \
    3742738999+
    37428 +#define setsyx(y,x) do { if ((y) == -1 && (x) == -1) \
    37429 +                           leaveok(newscr, TRUE); \
    37430 +                        else { \
    37431 +                           leaveok(newscr, FALSE); \
    37432 +                           wmove(newscr, (y), (x)); \
     39000+#define setsyx(y,x) do { if (newscr) { \
     39001+                           if ((y) == -1 && (x) == -1) \
     39002+                               leaveok(newscr, TRUE); \
     39003+                           else { \
     39004+                               leaveok(newscr, FALSE); \
     39005+                               wmove(newscr, (y), (x)); \
     39006+                           } \
    3743339007+                       } \
    3743439008                    } while(0)
    3743539009 
    3743639010 #ifndef NCURSES_NOMACROS
    37437 @@ -918,15 +943,17 @@
     39011@@ -918,15 +949,17 @@
    3743839012 #define gettmode()
    3743939013 
     
    3746239036 #define wstandout(win)         (wattrset(win,A_STANDOUT))
    3746339037 #define wstandend(win)         (wattrset(win,A_NORMAL))
    37464 @@ -934,12 +961,14 @@
     39038@@ -934,12 +967,14 @@
    3746539039 #define wattron(win,at)                wattr_on(win, NCURSES_CAST(attr_t, at), NULL)
    3746639040 #define wattroff(win,at)       wattr_off(win, NCURSES_CAST(attr_t, at), NULL)
     
    3747739051 #define scroll(win)            wscrl(win,1)
    3747839052 
    37479 @@ -956,7 +985,10 @@
     39053@@ -956,7 +991,10 @@
    3748039054 #define winchstr(w, s)         winchnstr(w, s, -1)
    3748139055 #define winsstr(w, s)          winsnstr(w, s, -1)
     
    3748839062 #define waddchstr(win,str)     waddchnstr(win,str,-1)
    3748939063 
    37490 @@ -1064,11 +1096,14 @@
     39064@@ -1064,27 +1102,31 @@
    3749139065 /*
    3749239066  * Some wide-character functions can be implemented without the extensions.
     
    3750339077 #define wattr_set(win,a,p,opts)                ((win)->_attrs = ((a) & ~A_COLOR), \
    3750439078                                         (win)->_color = (p), \
    37505 @@ -1082,9 +1117,10 @@
    37506                                          (void)((p) != 0 && (*(p) = PAIR_NUMBER((win)->_attrs))), \
     39079                                         OK)
     39080-#define wattr_get(win,a,p,opts)                ((void)((a) != 0 && (*(a) = (win)->_attrs)), \
     39081-                                        (void)((p) != 0 && (*(p) = (win)->_color)), \
     39082+#define wattr_get(win,a,p,opts)                ((void)((a) != (void *)0 && (*(a) = (win)->_attrs)), \
     39083+                                        (void)((p) != (void *)0 && (*(p) = (win)->_color)), \
     39084                                         OK)
     39085 #else
     39086 #define wattr_set(win,a,p,opts)                ((win)->_attrs = (((a) & ~A_COLOR) | COLOR_PAIR(p)), OK)
     39087-#define wattr_get(win,a,p,opts)                ((void)((a) != 0 && (*(a) = (win)->_attrs)), \
     39088-                                        (void)((p) != 0 && (*(p) = PAIR_NUMBER((win)->_attrs))), \
     39089+#define wattr_get(win,a,p,opts)                ((void)((a) != (void *)0 && (*(a) = (win)->_attrs)), \
     39090+                                        (void)((p) != (void *)0 && (*(p) = PAIR_NUMBER((win)->_attrs))), \
    3750739091                                         OK)
    3750839092 #endif
     
    3751539099  * use POSIX stdarg.h.  The ncurses versions of vwprintw/vwscanw already
    3751639100  * use stdarg.h, so...
    37517 @@ -1100,9 +1136,76 @@
     39101@@ -1100,9 +1142,76 @@
    3751839102 NCURSES_EXPORT(int) vsscanf(const char *, const char *, va_list);
    3751939103 #endif
     
    3759439178diff -Naur ncurses-5.6.orig/include/curses.tail ncurses-5.6/include/curses.tail
    3759539179--- ncurses-5.6.orig/include/curses.tail        2006-05-27 12:28:29.000000000 -0400
    37596 +++ ncurses-5.6/include/curses.tail     2007-12-21 00:02:36.000000000 -0500
     39180+++ ncurses-5.6/include/curses.tail     2008-06-18 06:49:44.000000000 -0400
    3759739181@@ -1,8 +1,9 @@
    3759839182+/* $Id: curses.tail,v 1.15 2007/03/10 17:51:24 tom Exp $ */
     
    3760839192diff -Naur ncurses-5.6.orig/include/curses.wide ncurses-5.6/include/curses.wide
    3760939193--- ncurses-5.6.orig/include/curses.wide        2006-05-27 15:44:23.000000000 -0400
    37610 +++ ncurses-5.6/include/curses.wide     2007-12-21 00:02:36.000000000 -0500
     39194+++ ncurses-5.6/include/curses.wide     2008-06-18 06:49:44.000000000 -0400
    3761139195@@ -1,11 +1,11 @@
    3761239196+/* $Id: curses.wide,v 1.34 2007/03/10 17:52:23 tom Exp $ */
     
    3764039224diff -Naur ncurses-5.6.orig/include/headers ncurses-5.6/include/headers
    3764139225--- ncurses-5.6.orig/include/headers    2001-04-07 16:52:04.000000000 -0400
    37642 +++ ncurses-5.6/include/headers 2007-12-21 00:02:36.000000000 -0500
     39226+++ ncurses-5.6/include/headers 2008-06-18 06:49:44.000000000 -0400
    3764339227@@ -1,5 +1,6 @@
    3764439228+# $Id: headers,v 1.9 2007/01/20 19:57:04 Miroslav.Lichvar Exp $
     
    3766939253diff -Naur ncurses-5.6.orig/include/nc_alloc.h ncurses-5.6/include/nc_alloc.h
    3767039254--- ncurses-5.6.orig/include/nc_alloc.h 2005-01-15 19:27:35.000000000 -0500
    37671 +++ ncurses-5.6/include/nc_alloc.h      2007-12-21 00:02:36.000000000 -0500
     39255+++ ncurses-5.6/include/nc_alloc.h      2008-06-18 06:49:44.000000000 -0400
    3767239256@@ -1,5 +1,5 @@
    3767339257 /****************************************************************************
     
    3771039294diff -Naur ncurses-5.6.orig/include/ncurses_defs ncurses-5.6/include/ncurses_defs
    3771139295--- ncurses-5.6.orig/include/ncurses_defs       2006-08-05 15:27:02.000000000 -0400
    37712 +++ ncurses-5.6/include/ncurses_defs    2007-12-21 00:02:36.000000000 -0500
     39296+++ ncurses-5.6/include/ncurses_defs    2008-06-18 06:49:47.000000000 -0400
    3771339297@@ -1,6 +1,6 @@
    3771439298-# $Id: ncurses_defs,v 1.30 2006/08/05 19:27:02 tom Exp $
    37715 +# $Id: ncurses_defs,v 1.35 2007/10/06 21:18:16 tom Exp $
     39299+# $Id: ncurses_defs,v 1.38 2008/02/10 00:12:03 tom Exp $
    3771639300 ##############################################################################
    3771739301-# Copyright (c) 2000-2005,2006 Free Software Foundation, Inc.                #
    37718 +# Copyright (c) 2000-2006,2007 Free Software Foundation, Inc.                #
     39302+# Copyright (c) 2000-2007,2008 Free Software Foundation, Inc.                #
    3771939303 #                                                                            #
    3772039304 # Permission is hereby granted, free of charge, to any person obtaining a    #
     
    3773139315 CURSES_WACS_ARRAY      _nc_wacs
    3773239316 DECL_ERRNO
    37733 @@ -68,6 +66,7 @@
     39317@@ -48,6 +46,8 @@
     39318 HAVE_BSD_SIGNAL_H
     39319 HAVE_BTOWC
     39320 HAVE_BUILTIN_H
     39321+HAVE_CHGAT     1
     39322+HAVE_COLOR_SET 1
     39323 HAVE_DIRENT_H
     39324 HAVE_ERRNO
     39325 HAVE_FCNTL_H
     39326@@ -60,6 +60,7 @@
     39327 HAVE_GETEUID
     39328 HAVE_GETMAXX   1
     39329 HAVE_GETNSTR
     39330+HAVE_GETPARX   1
     39331 HAVE_GETOPT_H
     39332 HAVE_GETTIMEOFDAY
     39333 HAVE_GETTTYNAM
     39334@@ -68,6 +69,7 @@
    3773439335 HAVE_GPP_BUILTIN_H
    3773539336 HAVE_GXX_BUILTIN_H
     
    3773939340 HAVE_ISSETUGID
    3774039341 HAVE_LANGINFO_CODESET
    37741 @@ -159,6 +158,7 @@
     39342@@ -159,6 +161,7 @@
    3774239343 HAVE_WRESIZE
    3774339344 HAVE__DOSCAN
     
    3774739348 NCURSES_EXT_COLORS
    3774839349 NCURSES_EXT_FUNCS
    37749 @@ -189,12 +189,10 @@
     39350@@ -189,12 +192,10 @@
    3775039351 USE_MY_MEMMOVE
    3775139352 USE_OK_BCOPY
     
    3776339364diff -Naur ncurses-5.6.orig/include/ncurses_dll.h ncurses-5.6/include/ncurses_dll.h
    3776439365--- ncurses-5.6.orig/include/ncurses_dll.h      2006-04-22 18:07:51.000000000 -0400
    37765 +++ ncurses-5.6/include/ncurses_dll.h   2007-12-21 00:02:36.000000000 -0500
     39366+++ ncurses-5.6/include/ncurses_dll.h   2008-06-18 06:49:44.000000000 -0400
    3776639367@@ -1,5 +1,5 @@
    3776739368 /****************************************************************************
     
    3779439395diff -Naur ncurses-5.6.orig/include/tic.h ncurses-5.6/include/tic.h
    3779539396--- ncurses-5.6.orig/include/tic.h      2006-08-19 10:17:49.000000000 -0400
    37796 +++ ncurses-5.6/include/tic.h   2007-12-21 00:02:36.000000000 -0500
     39397+++ ncurses-5.6/include/tic.h   2008-06-18 06:49:44.000000000 -0400
    3779739398@@ -1,5 +1,5 @@
    3779839399 /****************************************************************************
     
    3787039471diff -Naur ncurses-5.6.orig/install-sh ncurses-5.6/install-sh
    3787139472--- ncurses-5.6.orig/install-sh 2001-06-22 10:37:33.000000000 -0400
    37872 +++ ncurses-5.6/install-sh      2007-12-21 00:02:36.000000000 -0500
     39473+++ ncurses-5.6/install-sh      2008-06-18 06:49:44.000000000 -0400
    3787339474@@ -1,19 +1,37 @@
    3787439475 #! /bin/sh
     
    3813939740diff -Naur ncurses-5.6.orig/man/Makefile.in ncurses-5.6/man/Makefile.in
    3814039741--- ncurses-5.6.orig/man/Makefile.in    2005-07-16 13:26:45.000000000 -0400
    38141 +++ ncurses-5.6/man/Makefile.in 2007-12-21 00:02:36.000000000 -0500
     39742+++ ncurses-5.6/man/Makefile.in 2008-06-18 06:49:44.000000000 -0400
    3814239743@@ -1,6 +1,6 @@
    3814339744-# $Id: Makefile.in,v 1.39 2005/07/16 17:26:45 tom Exp $
     
    3816639767diff -Naur ncurses-5.6.orig/man/captoinfo.1m ncurses-5.6/man/captoinfo.1m
    3816739768--- ncurses-5.6.orig/man/captoinfo.1m   2006-05-13 11:14:01.000000000 -0400
    38168 +++ ncurses-5.6/man/captoinfo.1m        2007-12-21 00:02:36.000000000 -0500
     39769+++ ncurses-5.6/man/captoinfo.1m        2008-06-18 06:49:44.000000000 -0400
    3816939770@@ -1,6 +1,6 @@
    3817039771 '\" t
     
    3824139842diff -Naur ncurses-5.6.orig/man/clear.1 ncurses-5.6/man/clear.1
    3824239843--- ncurses-5.6.orig/man/clear.1        2006-07-01 17:55:09.000000000 -0400
    38243 +++ ncurses-5.6/man/clear.1     2007-12-21 00:02:36.000000000 -0500
     39844+++ ncurses-5.6/man/clear.1     2008-06-18 06:49:44.000000000 -0400
    3824439845@@ -26,20 +26,20 @@
    3824539846 .\" authorization.                                                           *
     
    3827139872diff -Naur ncurses-5.6.orig/man/curs_add_wch.3x ncurses-5.6/man/curs_add_wch.3x
    3827239873--- ncurses-5.6.orig/man/curs_add_wch.3x        2006-12-02 12:02:35.000000000 -0500
    38273 +++ ncurses-5.6/man/curs_add_wch.3x     2007-12-21 00:02:36.000000000 -0500
     39874+++ ncurses-5.6/man/curs_add_wch.3x     2008-06-18 06:49:44.000000000 -0400
    3827439875@@ -26,7 +26,7 @@
    3827539876 .\" authorization.                                                           *
     
    3830139902diff -Naur ncurses-5.6.orig/man/curs_addch.3x ncurses-5.6/man/curs_addch.3x
    3830239903--- ncurses-5.6.orig/man/curs_addch.3x  2006-12-02 12:02:22.000000000 -0500
    38303 +++ ncurses-5.6/man/curs_addch.3x       2007-12-21 00:02:36.000000000 -0500
     39904+++ ncurses-5.6/man/curs_addch.3x       2008-06-18 06:49:44.000000000 -0400
    3830439905@@ -1,6 +1,6 @@
    3830539906 '\" t
     
    3833939940diff -Naur ncurses-5.6.orig/man/curs_attr.3x ncurses-5.6/man/curs_attr.3x
    3834039941--- ncurses-5.6.orig/man/curs_attr.3x   2006-07-15 14:39:05.000000000 -0400
    38341 +++ ncurses-5.6/man/curs_attr.3x        2007-12-21 00:02:36.000000000 -0500
     39942+++ ncurses-5.6/man/curs_attr.3x        2008-06-18 06:49:44.000000000 -0400
    3834239943@@ -1,6 +1,6 @@
    3834339944 '\" t
     
    3836939970diff -Naur ncurses-5.6.orig/man/curs_border.3x ncurses-5.6/man/curs_border.3x
    3837039971--- ncurses-5.6.orig/man/curs_border.3x 2006-02-25 16:49:19.000000000 -0500
    38371 +++ ncurses-5.6/man/curs_border.3x      2007-12-21 00:02:36.000000000 -0500
     39972+++ ncurses-5.6/man/curs_border.3x      2008-06-18 06:49:44.000000000 -0400
    3837239973@@ -1,5 +1,5 @@
    3837339974 .\"***************************************************************************
     
    3839839999 \fBint mvvline(int y, int x, chtype ch, int n);\fR
    3839940000 .br
     40001diff -Naur ncurses-5.6.orig/man/curs_clear.3x ncurses-5.6/man/curs_clear.3x
     40002--- ncurses-5.6.orig/man/curs_clear.3x  2005-10-01 15:34:43.000000000 -0400
     40003+++ ncurses-5.6/man/curs_clear.3x       2008-06-18 06:49:45.000000000 -0400
     40004@@ -1,5 +1,5 @@
     40005 .\"***************************************************************************
     40006-.\" Copyright (c) 1998,2005 Free Software Foundation, Inc.                   *
     40007+.\" Copyright (c) 1998-2005,2007 Free Software Foundation, Inc.              *
     40008 .\"                                                                          *
     40009 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
     40010 .\" copy of this software and associated documentation files (the            *
     40011@@ -26,7 +26,7 @@
     40012 .\" authorization.                                                           *
     40013 .\"***************************************************************************
     40014 .\"
     40015-.\" $Id: curs_clear.3x,v 1.10 2005/10/01 19:34:43 tom Exp $
     40016+.\" $Id: curs_clear.3x,v 1.11 2007/12/29 15:58:38 tom Exp $
     40017 .TH curs_clear 3X ""
     40018 .na
     40019 .hy 0
     40020@@ -105,6 +105,12 @@
     40021 That fact is not documented in other implementations,
     40022 and may not be true of implementations
     40023 which were not derived from SVr4 source.
     40024+.PP
     40025+Not obvious from the description,
     40026+most implementations clear the screen after \fBwclear\fP
     40027+even for a subwindow or derived window.
     40028+If you do not want to clear the screen during the next \fBwrefresh\fP,
     40029+use \fBwerase\fP instead.
     40030 .SH SEE ALSO
     40031 \fBcurses\fR(3X), \fBcurs_outopts\fR(3X), \fBcurs_refresh\fR(3X)
     40032 .\"#
    3840040033diff -Naur ncurses-5.6.orig/man/curs_deleteln.3x ncurses-5.6/man/curs_deleteln.3x
    3840140034--- ncurses-5.6.orig/man/curs_deleteln.3x       2006-02-25 16:49:19.000000000 -0500
    38402 +++ ncurses-5.6/man/curs_deleteln.3x    2007-12-21 00:02:36.000000000 -0500
     40035+++ ncurses-5.6/man/curs_deleteln.3x    2008-06-18 06:49:44.000000000 -0400
    3840340036@@ -1,5 +1,5 @@
    3840440037 .\"***************************************************************************
     
    3842840061diff -Naur ncurses-5.6.orig/man/curs_extend.3x ncurses-5.6/man/curs_extend.3x
    3842940062--- ncurses-5.6.orig/man/curs_extend.3x 2006-02-25 16:04:43.000000000 -0500
    38430 +++ ncurses-5.6/man/curs_extend.3x      2007-12-21 00:02:36.000000000 -0500
     40063+++ ncurses-5.6/man/curs_extend.3x      2008-06-18 06:49:44.000000000 -0400
    3843140064@@ -28,7 +28,7 @@
    3843240065 .\"
     
    3846240095diff -Naur ncurses-5.6.orig/man/curs_getcchar.3x ncurses-5.6/man/curs_getcchar.3x
    3846340096--- ncurses-5.6.orig/man/curs_getcchar.3x       2006-07-15 18:51:07.000000000 -0400
    38464 +++ ncurses-5.6/man/curs_getcchar.3x    2007-12-21 00:02:36.000000000 -0500
     40097+++ ncurses-5.6/man/curs_getcchar.3x    2008-06-18 06:49:50.000000000 -0400
     40098@@ -1,5 +1,5 @@
     40099 .\"***************************************************************************
     40100-.\" Copyright (c) 2001-2003,2006 Free Software Foundation, Inc.              *
     40101+.\" Copyright (c) 2001-2006,2008 Free Software Foundation, Inc.              *
     40102 .\"                                                                          *
     40103 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
     40104 .\" copy of this software and associated documentation files (the            *
    3846540105@@ -26,7 +26,7 @@
    3846640106 .\" authorization.                                                           *
     
    3846840108 .\"
    3846940109-.\" $Id: curs_getcchar.3x,v 1.8 2006/07/15 22:51:07 wcmbrine Exp $
    38470 +.\" $Id: curs_getcchar.3x,v 1.10 2006/12/24 16:00:02 tom Exp $
     40110+.\" $Id: curs_getcchar.3x,v 1.11 2008/05/17 19:37:05 tom Exp $
    3847140111 .TH curs_getcchar 3X ""
    3847240112 .SH NAME
    3847340113 \fBgetcchar\fP,
    38474 @@ -132,10 +132,10 @@
     40114@@ -106,9 +106,14 @@
     40115 -
     40116 The wide-character string pointed to by \fIwch\fP.
     40117 The string must be L'\\0' terminated,
     40118-contain at most one character with strictly positive width,
     40119-which must be the first,
     40120-and contain no characters of negative width.
     40121+contain at most one spacing character,
     40122+which must be the first.
     40123+.IP
     40124+Up to \fBCCHARW_MAX\fP-1 nonspacing characters may follow.
     40125+Additional nonspacing characters are ignored.
     40126+.IP
     40127+The string may contain a single control character instead.
     40128+In that case, no nonspacing characters are allowed.
     40129 .SH NOTES
     40130 .PP
     40131 The \fIopts\fP argument is reserved for future use.
     40132@@ -132,10 +137,10 @@
    3847540133 .SH SEE ALSO
    3847640134 .PP
     
    3848840146diff -Naur ncurses-5.6.orig/man/curs_getyx.3x ncurses-5.6/man/curs_getyx.3x
    3848940147--- ncurses-5.6.orig/man/curs_getyx.3x  2006-05-27 16:28:05.000000000 -0400
    38490 +++ ncurses-5.6/man/curs_getyx.3x       2007-12-21 00:02:36.000000000 -0500
     40148+++ ncurses-5.6/man/curs_getyx.3x       2008-06-18 06:49:44.000000000 -0400
    3849140149@@ -1,5 +1,5 @@
    3849240150 .\"***************************************************************************
     
    3854540203diff -Naur ncurses-5.6.orig/man/curs_insstr.3x ncurses-5.6/man/curs_insstr.3x
    3854640204--- ncurses-5.6.orig/man/curs_insstr.3x 2006-02-25 16:49:19.000000000 -0500
    38547 +++ ncurses-5.6/man/curs_insstr.3x      2007-12-21 00:02:36.000000000 -0500
     40205+++ ncurses-5.6/man/curs_insstr.3x      2008-06-18 06:49:44.000000000 -0400
    3854840206@@ -26,7 +26,7 @@
    3854940207 .\" authorization.                                                           *
     
    3856640224diff -Naur ncurses-5.6.orig/man/curs_legacy.3x ncurses-5.6/man/curs_legacy.3x
    3856740225--- ncurses-5.6.orig/man/curs_legacy.3x 1969-12-31 19:00:00.000000000 -0500
    38568 +++ ncurses-5.6/man/curs_legacy.3x      2007-12-21 00:02:36.000000000 -0500
     40226+++ ncurses-5.6/man/curs_legacy.3x      2008-06-18 06:49:44.000000000 -0400
    3856940227@@ -0,0 +1,93 @@
    3857040228+.\"***************************************************************************
     
    3866340321diff -Naur ncurses-5.6.orig/man/curs_mouse.3x ncurses-5.6/man/curs_mouse.3x
    3866440322--- ncurses-5.6.orig/man/curs_mouse.3x  2005-05-15 12:18:19.000000000 -0400
    38665 +++ ncurses-5.6/man/curs_mouse.3x       2007-12-21 00:02:36.000000000 -0500
     40323+++ ncurses-5.6/man/curs_mouse.3x       2008-06-18 06:49:44.000000000 -0400
    3866640324@@ -1,6 +1,6 @@
    3866740325 '\" t
     
    3876840426diff -Naur ncurses-5.6.orig/man/curs_opaque.3x ncurses-5.6/man/curs_opaque.3x
    3876940427--- ncurses-5.6.orig/man/curs_opaque.3x 1969-12-31 19:00:00.000000000 -0500
    38770 +++ ncurses-5.6/man/curs_opaque.3x      2007-12-21 00:02:36.000000000 -0500
     40428+++ ncurses-5.6/man/curs_opaque.3x      2008-06-18 06:49:44.000000000 -0400
    3877140429@@ -0,0 +1,133 @@
    3877240430+.\"***************************************************************************
     
    3890540563diff -Naur ncurses-5.6.orig/man/curs_outopts.3x ncurses-5.6/man/curs_outopts.3x
    3890640564--- ncurses-5.6.orig/man/curs_outopts.3x        2005-05-15 12:18:32.000000000 -0400
    38907 +++ ncurses-5.6/man/curs_outopts.3x     2007-12-21 00:02:36.000000000 -0500
     40565+++ ncurses-5.6/man/curs_outopts.3x     2008-06-18 06:49:44.000000000 -0400
    3890840566@@ -1,5 +1,5 @@
    3890940567 .\"***************************************************************************
     
    3893340591diff -Naur ncurses-5.6.orig/man/curs_printw.3x ncurses-5.6/man/curs_printw.3x
    3893440592--- ncurses-5.6.orig/man/curs_printw.3x 2006-02-25 16:49:19.000000000 -0500
    38935 +++ ncurses-5.6/man/curs_printw.3x      2007-12-21 00:02:36.000000000 -0500
     40593+++ ncurses-5.6/man/curs_printw.3x      2008-06-18 06:49:44.000000000 -0400
    3893640594@@ -26,7 +26,7 @@
    3893740595 .\" authorization.                                                           *
     
    3896940627diff -Naur ncurses-5.6.orig/man/curs_scanw.3x ncurses-5.6/man/curs_scanw.3x
    3897040628--- ncurses-5.6.orig/man/curs_scanw.3x  2006-02-25 16:42:22.000000000 -0500
    38971 +++ ncurses-5.6/man/curs_scanw.3x       2007-12-21 00:02:36.000000000 -0500
     40629+++ ncurses-5.6/man/curs_scanw.3x       2008-06-18 06:49:44.000000000 -0400
    3897240630@@ -26,7 +26,7 @@
    3897340631 .\" authorization.                                                           *
     
    3899940657diff -Naur ncurses-5.6.orig/man/curs_scr_dump.3x ncurses-5.6/man/curs_scr_dump.3x
    3900040658--- ncurses-5.6.orig/man/curs_scr_dump.3x       2006-02-25 16:49:19.000000000 -0500
    39001 +++ ncurses-5.6/man/curs_scr_dump.3x    2007-12-21 00:02:36.000000000 -0500
     40659+++ ncurses-5.6/man/curs_scr_dump.3x    2008-06-18 06:49:44.000000000 -0400
    3900240660@@ -26,7 +26,7 @@
    3900340661 .\" authorization.                                                           *
     
    3902040678diff -Naur ncurses-5.6.orig/man/curs_slk.3x ncurses-5.6/man/curs_slk.3x
    3902140679--- ncurses-5.6.orig/man/curs_slk.3x    2006-02-25 16:49:19.000000000 -0500
    39022 +++ ncurses-5.6/man/curs_slk.3x 2007-12-21 00:02:36.000000000 -0500
     40680+++ ncurses-5.6/man/curs_slk.3x 2008-06-18 06:49:44.000000000 -0400
    3902340681@@ -1,5 +1,5 @@
    3902440682 .\"***************************************************************************
     
    3904840706diff -Naur ncurses-5.6.orig/man/curs_termattrs.3x ncurses-5.6/man/curs_termattrs.3x
    3904940707--- ncurses-5.6.orig/man/curs_termattrs.3x      2003-12-27 13:37:47.000000000 -0500
    39050 +++ ncurses-5.6/man/curs_termattrs.3x   2007-12-21 00:02:36.000000000 -0500
     40708+++ ncurses-5.6/man/curs_termattrs.3x   2008-06-18 06:49:44.000000000 -0400
    3905140709@@ -1,5 +1,5 @@
    3905240710 .\"***************************************************************************
     
    3907640734diff -Naur ncurses-5.6.orig/man/curs_termcap.3x ncurses-5.6/man/curs_termcap.3x
    3907740735--- ncurses-5.6.orig/man/curs_termcap.3x        2006-02-25 16:50:01.000000000 -0500
    39078 +++ ncurses-5.6/man/curs_termcap.3x     2007-12-21 00:02:36.000000000 -0500
     40736+++ ncurses-5.6/man/curs_termcap.3x     2008-06-18 06:49:44.000000000 -0400
    3907940737@@ -1,5 +1,5 @@
    3908040738 .\"***************************************************************************
     
    3911340771diff -Naur ncurses-5.6.orig/man/curs_terminfo.3x ncurses-5.6/man/curs_terminfo.3x
    3911440772--- ncurses-5.6.orig/man/curs_terminfo.3x       2006-11-04 16:50:03.000000000 -0500
    39115 +++ ncurses-5.6/man/curs_terminfo.3x    2007-12-21 00:02:36.000000000 -0500
     40773+++ ncurses-5.6/man/curs_terminfo.3x    2008-06-18 06:49:44.000000000 -0400
    3911640774@@ -1,5 +1,5 @@
    3911740775 .\"***************************************************************************
     
    3920240860 .\"# The following sets edit modes for GNU EMACS
    3920340861 .\"# Local Variables:
     40862diff -Naur ncurses-5.6.orig/man/curs_threads.3x ncurses-5.6/man/curs_threads.3x
     40863--- ncurses-5.6.orig/man/curs_threads.3x        1969-12-31 19:00:00.000000000 -0500
     40864+++ ncurses-5.6/man/curs_threads.3x     2008-06-18 06:49:49.000000000 -0400
     40865@@ -0,0 +1,603 @@
     40866+.\"***************************************************************************
     40867+.\" Copyright (c) 2008 Free Software Foundation, Inc.                        *
     40868+.\"                                                                          *
     40869+.\" Permission is hereby granted, free of charge, to any person obtaining a  *
     40870+.\" copy of this software and associated documentation files (the            *
     40871+.\" "Software"), to deal in the Software without restriction, including      *
     40872+.\" without limitation the rights to use, copy, modify, merge, publish,      *
     40873+.\" distribute, distribute with modifications, sublicense, and/or sell       *
     40874+.\" copies of the Software, and to permit persons to whom the Software is    *
     40875+.\" furnished to do so, subject to the following conditions:                 *
     40876+.\"                                                                          *
     40877+.\" The above copyright notice and this permission notice shall be included  *
     40878+.\" in all copies or substantial portions of the Software.                   *
     40879+.\"                                                                          *
     40880+.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
     40881+.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
     40882+.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
     40883+.\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
     40884+.\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
     40885+.\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
     40886+.\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
     40887+.\"                                                                          *
     40888+.\" Except as contained in this notice, the name(s) of the above copyright   *
     40889+.\" holders shall not be used in advertising or otherwise to promote the     *
     40890+.\" sale, use or other dealings in this Software without prior written       *
     40891+.\" authorization.                                                           *
     40892+.\"***************************************************************************
     40893+.\"
     40894+.\" $Id: curs_threads.3x,v 1.12 2008/04/12 18:22:51 tom Exp $
     40895+.TH curs_threads 3X ""
     40896+.na
     40897+.hy 0
     40898+.SH NAME
     40899+\fBuse_screen\fR,
     40900+\fBuse_window\fR - \fBcurses\fR thread support
     40901+.ad
     40902+.hy
     40903+.SH SYNOPSIS
     40904+\fB#include <curses.h>\fR
     40905+.sp
     40906+\fBtypedef int (*NCURSES_WINDOW_CB)(WINDOW *, void *);\fR
     40907+\fBtypedef int (*NCURSES_SCREEN_CB)(SCREEN *, void *);\fR
     40908+.br
     40909+\fBint set_escdelay(int size);\fR
     40910+.br
     40911+\fBint set_tabsize(int size);\fR
     40912+.br
     40913+\fBint use_screen(SCREEN *scr, NCURSES_WINDOW_CB func, void *data);\fR
     40914+.br
     40915+\fBint use_window(WINDOW *win, NCURSES_SCREEN_CB func, void *data);\fR
     40916+.br
     40917+.SH DESCRIPTION
     40918+This implementation can be configured to provide rudimentary support
     40919+for multi-threaded applications.
     40920+This makes a different set of libraries, e.g., \fIlibncursest\fP since
     40921+the binary interfaces are different.
     40922+.PP
     40923+Rather than modify the interfaces to pass a thread specifier to
     40924+each function, it adds a few functions which can be used in any
     40925+configuration which hide the mutex's needed to prevent concurrent
     40926+use of the global variables when configured for threading.
     40927+.PP
     40928+In addition to forcing access to members of the \fBWINDOW\fP structure
     40929+to be via functions (see \fBcurs_opaque\fP(3x)),
     40930+it makes functions of the common global variables,
     40931+e.g.,
     40932+COLORS,
     40933+COLOR_PAIRS,
     40934+COLS,
     40935+ESCDELAY,
     40936+LINES,
     40937+TABSIZE
     40938+curscr,
     40939+newscr and
     40940+ttytype.
     40941+Those variables are maintained as read-only values, stored in the \fBSCREEN\fP
     40942+structure.
     40943+.PP
     40944+Even this is not enough to make a thread-safe application using curses.
     40945+A multi-threaded application would be expected to have threads updating
     40946+separate windows (within the same device),
     40947+or updating on separate screens (on different devices).
     40948+Also, a few of the global variables are considered writable by some
     40949+applications.
     40950+The functions described here address these special situations.
     40951+.PP
     40952+The ESCDELAY and TABSIZE global variables are modified by some applications.
     40953+To modify them in any configuration,
     40954+use the \fBset_escdelay\fP or \fBset_tabsize\fP functions.
     40955+Other global variables are not modifiable.
     40956+.PP
     40957+The \fBuse_window\fP and \fBuse_screen\fP functions provide coarse
     40958+granularity mutexes for their respective \fBWINDOW\fP and \fBSCREEN\fP
     40959+parameters, and call a user-supplied function,
     40960+passing it a \fIdata\fP parameter,
     40961+and returning the value from the user-supplied function to the application.
     40962+.\" ***************************************************************************
     40963+.SS USAGE
     40964+All of the ncurses library functions assume that the locale is not
     40965+altered during operation.
     40966+In addition,
     40967+they use data which is maintained within a hierarchy of scopes.
     40968+.RS
     40969+.TP 3
     40970+-
     40971+global data, e.g., used in the low-level terminfo or termcap interfaces.
     40972+.TP 3
     40973+-
     40974+terminal data, e.g., associated with a call to \fIset_curterm\fP.
     40975+The terminal data are initialized when screens are created.
     40976+.TP 3
     40977+-
     40978+screen data, e.g., associated with a call to \fInewterm\fP or \fIinitscr\fP.
     40979+.TP 3
     40980+-
     40981+window data, e.g., associated with a call to \fInewwin\fP or \fIsubwin\fP.
     40982+Windows are associated with screens.
     40983+Pads are not necessarily associated with a particular screen.
     40984+.IP
     40985+Most curses applications operate on one or more windows within a single screen.
     40986+.TP 3
     40987+-
     40988+reentrant, i.e., it uses only the data passed as parameters.
     40989+.RE
     40990+.PP
     40991+This table lists the scope of data used for each symbol in the
     40992+ncurses library when it is configured to support threading:
     40993+.TS
     40994+center tab(/);
     40995+l l
     40996+l l .
     40997+Symbol/Scope
     40998+=
     40999+BC/global
     41000+COLORS/screen (readonly)
     41001+COLOR_PAIR/reentrant
     41002+COLOR_PAIRS/screen (readonly)
     41003+COLS/screen (readonly)
     41004+ESCDELAY/screen (readonly, see \fIset_escdelay\fP)
     41005+LINES/screen (readonly)
     41006+PAIR_NUMBER/reentrant
     41007+PC/global
     41008+SP/global
     41009+TABSIZE/screen (readonly)
     41010+UP/global
     41011+acs_map/screen (readonly)
     41012+add_wch/window (stdscr)
     41013+add_wchnstr/window (stdscr)
     41014+add_wchstr/window (stdscr)
     41015+addch/window (stdscr)
     41016+addchnstr/window (stdscr)
     41017+addchstr/window (stdscr)
     41018+addnstr/window (stdscr)
     41019+addnwstr/window (stdscr)
     41020+addstr/window (stdscr)
     41021+addwstr/window (stdscr)
     41022+assume_default_colors/screen
     41023+attr_get/window (stdscr)
     41024+attr_off/window (stdscr)
     41025+attr_on/window (stdscr)
     41026+attr_set/window (stdscr)
     41027+attroff/window (stdscr)
     41028+attron/window (stdscr)
     41029+attrset/window (stdscr)
     41030+baudrate/screen
     41031+beep/screen
     41032+bkgd/window (stdscr)
     41033+bkgdset/window (stdscr)
     41034+bkgrnd/window (stdscr)
     41035+bkgrndset/window (stdscr)
     41036+boolcodes/global (readonly)
     41037+boolfnames/global (readonly)
     41038+boolnames/global (readonly)
     41039+border/window (stdscr)
     41040+border_set/window (stdscr)
     41041+box/window (stdscr)
     41042+box_set/window (stdscr)
     41043+can_change_color/terminal
     41044+cbreak/screen
     41045+chgat/window (stdscr)
     41046+clear/window (stdscr)
     41047+clearok/window
     41048+clrtobot/window (stdscr)
     41049+clrtoeol/window (stdscr)
     41050+color_content/screen
     41051+color_set/window (stdscr)
     41052+copywin/window locks(source, target)
     41053+cur_term/terminal
     41054+curs_set/screen
     41055+curscr/screen (readonly)
     41056+curses_version/global (readonly)
     41057+def_prog_mode/terminal
     41058+def_shell_mode/terminal
     41059+define_key/screen
     41060+del_curterm/screen
     41061+delay_output/screen
     41062+delch/window (stdscr)
     41063+deleteln/window (stdscr)
     41064+delscreen/global locks(screenlist, screen)
     41065+delwin/global locks(windowlist)
     41066+derwin/screen
     41067+doupdate/screen
     41068+dupwin/screen locks(window)
     41069+echo/screen
     41070+echo_wchar/window (stdscr)
     41071+echochar/window (stdscr)
     41072+endwin/screen
     41073+erase/window (stdscr)
     41074+erasechar/window (stdscr)
     41075+erasewchar/window (stdscr)
     41076+filter/global
     41077+flash/terminal
     41078+flushinp/screen
     41079+get_wch/screen (input-operation)
     41080+get_wstr/screen (input-operation)
     41081+getattrs/window
     41082+getbegx/window
     41083+getbegy/window
     41084+getbkgd/window
     41085+getbkgrnd/window
     41086+getcchar/reentrant
     41087+getch/screen (input-operation)
     41088+getcurx/window
     41089+getcury/window
     41090+getmaxx/window
     41091+getmaxy/window
     41092+getmouse/screen (input-operation)
     41093+getn_wstr/screen (input-operation)
     41094+getnstr/screen (input-operation)
     41095+getparx/window
     41096+getpary/window
     41097+getstr/screen (input-operation)
     41098+getwin/screen (input-operation)
     41099+halfdelay/screen
     41100+has_colors/terminal
     41101+has_ic/terminal
     41102+has_il/terminal
     41103+has_key/screen
     41104+hline/window (stdscr)
     41105+hline_set/window (stdscr)
     41106+idcok/window
     41107+idlok/window
     41108+immedok/window
     41109+in_wch/window (stdscr)
     41110+in_wchnstr/window (stdscr)
     41111+in_wchstr/window (stdscr)
     41112+inch/window (stdscr)
     41113+inchnstr/window (stdscr)
     41114+inchstr/window (stdscr)
     41115+init_color/screen
     41116+init_pair/screen
     41117+initscr/global locks(screenlist)
     41118+innstr/window (stdscr)
     41119+innwstr/window (stdscr)
     41120+ins_nwstr/window (stdscr)
     41121+ins_wch/window (stdscr)
     41122+ins_wstr/window (stdscr)
     41123+insch/window (stdscr)
     41124+insdelln/window (stdscr)
     41125+insertln/window (stdscr)
     41126+insnstr/window (stdscr)
     41127+insstr/window (stdscr)
     41128+instr/window (stdscr)
     41129+intrflush/terminal
     41130+inwstr/window (stdscr)
     41131+is_cleared/window
     41132+is_idcok/window
     41133+is_idlok/window
     41134+is_immedok/window
     41135+is_keypad/window
     41136+is_leaveok/window
     41137+is_linetouched/window
     41138+is_nodelay/window
     41139+is_notimeout/window
     41140+is_scrollok/window
     41141+is_syncok/window
     41142+is_term_resized/terminal
     41143+is_wintouched/window
     41144+isendwin/screen
     41145+key_defined/screen
     41146+key_name/global (static data)
     41147+keybound/screen
     41148+keyname/global (static data)
     41149+keyok/screen
     41150+keypad/window
     41151+killchar/terminal
     41152+killwchar/terminal
     41153+leaveok/window
     41154+longname/screen
     41155+mcprint/terminal
     41156+meta/screen
     41157+mouse_trafo/window (stdscr)
     41158+mouseinterval/screen
     41159+mousemask/screen
     41160+move/window (stdscr)
     41161+mvadd_wch/window (stdscr)
     41162+mvadd_wchnstr/window (stdscr)
     41163+mvadd_wchstr/window (stdscr)
     41164+mvaddch/window (stdscr)
     41165+mvaddchnstr/window (stdscr)
     41166+mvaddchstr/window (stdscr)
     41167+mvaddnstr/window (stdscr)
     41168+mvaddnwstr/window (stdscr)
     41169+mvaddstr/window (stdscr)
     41170+mvaddwstr/window (stdscr)
     41171+mvchgat/window (stdscr)
     41172+mvcur/screen
     41173+mvdelch/window (stdscr)
     41174+mvderwin/window (stdscr)
     41175+mvget_wch/screen (input-operation)
     41176+mvget_wstr/screen (input-operation)
     41177+mvgetch/screen (input-operation)
     41178+mvgetn_wstr/screen (input-operation)
     41179+mvgetnstr/screen (input-operation)
     41180+mvgetstr/screen (input-operation)
     41181+mvhline/window (stdscr)
     41182+mvhline_set/window (stdscr)
     41183+mvin_wch/window (stdscr)
     41184+mvin_wchnstr/window (stdscr)
     41185+mvin_wchstr/window (stdscr)
     41186+mvinch/window (stdscr)
     41187+mvinchnstr/window (stdscr)
     41188+mvinchstr/window (stdscr)
     41189+mvinnstr/window (stdscr)
     41190+mvinnwstr/window (stdscr)
     41191+mvins_nwstr/window (stdscr)
     41192+mvins_wch/window (stdscr)
     41193+mvins_wstr/window (stdscr)
     41194+mvinsch/window (stdscr)
     41195+mvinsnstr/window (stdscr)
     41196+mvinsstr/window (stdscr)
     41197+mvinstr/window (stdscr)
     41198+mvinwstr/window (stdscr)
     41199+mvprintw/window (stdscr)
     41200+mvscanw/screen
     41201+mvvline/window (stdscr)
     41202+mvvline_set/window (stdscr)
     41203+mvwadd_wch/window
     41204+mvwadd_wchnstr/window
     41205+mvwadd_wchstr/window
     41206+mvwaddch/window
     41207+mvwaddchnstr/window
     41208+mvwaddchstr/window
     41209+mvwaddnstr/window
     41210+mvwaddnwstr/window
     41211+mvwaddstr/window
     41212+mvwaddwstr/window
     41213+mvwchgat/window
     41214+mvwdelch/window
     41215+mvwget_wch/screen (input-operation)
     41216+mvwget_wstr/screen (input-operation)
     41217+mvwgetch/screen (input-operation)
     41218+mvwgetn_wstr/screen (input-operation)
     41219+mvwgetnstr/screen (input-operation)
     41220+mvwgetstr/screen (input-operation)
     41221+mvwhline/window
     41222+mvwhline_set/window
     41223+mvwin/window
     41224+mvwin_wch/window
     41225+mvwin_wchnstr/window
     41226+mvwin_wchstr/window
     41227+mvwinch/window
     41228+mvwinchnstr/window
     41229+mvwinchstr/window
     41230+mvwinnstr/window
     41231+mvwinnwstr/window
     41232+mvwins_nwstr/window
     41233+mvwins_wch/window
     41234+mvwins_wstr/window
     41235+mvwinsch/window
     41236+mvwinsnstr/window
     41237+mvwinsstr/window
     41238+mvwinstr/window
     41239+mvwinwstr/window
     41240+mvwprintw/window
     41241+mvwscanw/screen
     41242+mvwvline/window
     41243+mvwvline_set/window
     41244+napms/reentrant
     41245+newpad/global locks(windowlist)
     41246+newscr/screen (readonly)
     41247+newterm/global locks(screenlist)
     41248+newwin/global locks(windowlist)
     41249+nl/screen
     41250+nocbreak/screen
     41251+nodelay/window
     41252+noecho/screen
     41253+nofilter/global
     41254+nonl/screen
     41255+noqiflush/terminal
     41256+noraw/screen
     41257+notimeout/window
     41258+numcodes/global (readonly)
     41259+numfnames/global (readonly)
     41260+numnames/global (readonly)
     41261+ospeed/global
     41262+overlay/window locks(source, target)
     41263+overwrite/window locks(source, target)
     41264+pair_content/screen
     41265+pecho_wchar/screen
     41266+pechochar/screen
     41267+pnoutrefresh/screen
     41268+prefresh/screen
     41269+printw/window
     41270+putp/global
     41271+putwin/window
     41272+qiflush/terminal
     41273+raw/screen
     41274+redrawwin/window
     41275+refresh/screen
     41276+reset_prog_mode/screen
     41277+reset_shell_mode/screen
     41278+resetty/terminal
     41279+resize_term/screen locks(windowlist)
     41280+resizeterm/screen
     41281+restartterm/screen
     41282+ripoffline/global (static data)
     41283+savetty/terminal
     41284+scanw/screen
     41285+scr_dump/screen
     41286+scr_init/screen
     41287+scr_restore/screen
     41288+scr_set/screen
     41289+scrl/window (stdscr)
     41290+scroll/window
     41291+scrollok/window
     41292+set_curterm/screen
     41293+set_escdelay/screen
     41294+set_tabsize/screen
     41295+set_term/global locks(screenlist, screen)
     41296+setcchar/reentrant
     41297+setscrreg/window (stdscr)
     41298+setupterm/global
     41299+slk_attr/screen
     41300+slk_attr_off/screen
     41301+slk_attr_on/screen
     41302+slk_attr_set/screen
     41303+slk_attroff/screen
     41304+slk_attron/screen
     41305+slk_attrset/screen
     41306+slk_clear/screen
     41307+slk_color/screen
     41308+slk_init/screen
     41309+slk_label/screen
     41310+slk_noutrefresh/screen
     41311+slk_refresh/screen
     41312+slk_restore/screen
     41313+slk_set/screen
     41314+slk_touch/screen
     41315+slk_wset/screen
     41316+standend/window
     41317+standout/window
     41318+start_color/screen
     41319+stdscr/screen (readonly)
     41320+strcodes/global (readonly)
     41321+strfnames/global (readonly)
     41322+strnames/global (readonly)
     41323+subpad/window
     41324+subwin/window
     41325+syncok/window
     41326+term_attrs/screen
     41327+termattrs/screen
     41328+termname/terminal
     41329+tgetent/global
     41330+tgetflag/global
     41331+tgetnum/global
     41332+tgetstr/global
     41333+tgoto/global
     41334+tigetflag/terminal
     41335+tigetnum/terminal
     41336+tigetstr/terminal
     41337+timeout/window (stdscr)
     41338+touchline/window
     41339+touchwin/window
     41340+tparm/global (static data)
     41341+tputs/screen
     41342+trace/global (static data)
     41343+ttytype/screen (readonly)
     41344+typeahead/screen
     41345+unctrl/screen
     41346+unget_wch/screen (input-operation)
     41347+ungetch/screen (input-operation)
     41348+ungetmouse/screen (input-operation)
     41349+untouchwin/window
     41350+use_default_colors/screen
     41351+use_env/global (static data)
     41352+use_extended_names/global (static data)
     41353+use_legacy_coding/screen
     41354+use_screen/global locks(screenlist, screen)
     41355+use_window/global locks(windowlist, window)
     41356+vid_attr/screen
     41357+vid_puts/screen
     41358+vidattr/screen
     41359+vidputs/screen
     41360+vline/window (stdscr)
     41361+vline_set/window (stdscr)
     41362+vw_printw/window
     41363+vw_scanw/screen
     41364+vwprintw/window
     41365+vwscanw/screen
     41366+wadd_wch/window
     41367+wadd_wchnstr/window
     41368+wadd_wchstr/window
     41369+waddch/window
     41370+waddchnstr/window
     41371+waddchstr/window
     41372+waddnstr/window
     41373+waddnwstr/window
     41374+waddstr/window
     41375+waddwstr/window
     41376+wattr_get/window
     41377+wattr_off/window
     41378+wattr_on/window
     41379+wattr_set/window
     41380+wattroff/window
     41381+wattron/window
     41382+wattrset/window
     41383+wbkgd/window
     41384+wbkgdset/window
     41385+wbkgrnd/window
     41386+wbkgrndset/window
     41387+wborder/window
     41388+wborder_set/window
     41389+wchgat/window
     41390+wclear/window
     41391+wclrtobot/window
     41392+wclrtoeol/window
     41393+wcolor_set/window
     41394+wcursyncup/screen (affects window plus parents)
     41395+wdelch/window
     41396+wdeleteln/window
     41397+wecho_wchar/window
     41398+wechochar/window
     41399+wenclose/window
     41400+werase/window
     41401+wget_wch/screen (input-operation)
     41402+wget_wstr/screen (input-operation)
     41403+wgetbkgrnd/window
     41404+wgetch/screen (input-operation)
     41405+wgetn_wstr/screen (input-operation)
     41406+wgetnstr/screen (input-operation)
     41407+wgetparent/window
     41408+wgetscrreg/window
     41409+wgetstr/screen (input-operation)
     41410+whline/window
     41411+whline_set/window
     41412+win_wch/window
     41413+win_wchnstr/window
     41414+win_wchstr/window
     41415+winch/window
     41416+winchnstr/window
     41417+winchstr/window
     41418+winnstr/window
     41419+winnwstr/window
     41420+wins_nwstr/window
     41421+wins_wch/window
     41422+wins_wstr/window
     41423+winsch/window
     41424+winsdelln/window
     41425+winsertln/window
     41426+winsnstr/window
     41427+winsstr/window
     41428+winstr/window
     41429+winwstr/window
     41430+wmouse_trafo/window
     41431+wmove/window
     41432+wnoutrefresh/screen
     41433+wprintw/window
     41434+wredrawln/window
     41435+wrefresh/screen
     41436+wresize/window locks(windowlist)
     41437+wscanw/screen
     41438+wscrl/window
     41439+wsetscrreg/window
     41440+wstandend/window
     41441+wstandout/window
     41442+wsyncdown/screen (affects window plus parents)
     41443+wsyncup/screen (affects window plus parents)
     41444+wtimeout/window
     41445+wtouchln/window
     41446+wunctrl/global (static data)
     41447+wvline/window
     41448+wvline_set/window
     41449+.TE
     41450+.\" ***************************************************************************
     41451+.SH RETURN VALUE
     41452+These functions all return TRUE or FALSE, except as noted.
     41453+.SH NOTES
     41454+Both a macro and a function are provided for each name.
     41455+.SH PORTABILITY
     41456+These routines are specific to ncurses.
     41457+They were not supported on Version 7, BSD or System V implementations.
     41458+It is recommended that any code depending on ncurses extensions
     41459+be conditioned using NCURSES_VERSION.
     41460+.SH SEE ALSO
     41461+\fBcurses\fR(3X),
     41462+\fBcurs_opaque\fR(3X)
     41463+.\"#
     41464+.\"# The following sets edit modes for GNU EMACS
     41465+.\"# Local Variables:
     41466+.\"# mode:nroff
     41467+.\"# fill-column:79
     41468+.\"# End:
    3920441469diff -Naur ncurses-5.6.orig/man/curs_trace.3x ncurses-5.6/man/curs_trace.3x
    3920541470--- ncurses-5.6.orig/man/curs_trace.3x  2005-05-15 13:02:54.000000000 -0400
    39206 +++ ncurses-5.6/man/curs_trace.3x       2007-12-21 00:02:36.000000000 -0500
     41471+++ ncurses-5.6/man/curs_trace.3x       2008-06-18 06:49:44.000000000 -0400
    3920741472@@ -1,5 +1,5 @@
    3920841473 .\"***************************************************************************
     
    3923241497diff -Naur ncurses-5.6.orig/man/curs_util.3x ncurses-5.6/man/curs_util.3x
    3923341498--- ncurses-5.6.orig/man/curs_util.3x   2006-08-26 10:17:48.000000000 -0400
    39234 +++ ncurses-5.6/man/curs_util.3x        2007-12-21 00:02:36.000000000 -0500
     41499+++ ncurses-5.6/man/curs_util.3x        2008-06-18 06:49:44.000000000 -0400
    3923541500@@ -1,5 +1,5 @@
    3923641501 .\"***************************************************************************
     
    3933141596diff -Naur ncurses-5.6.orig/man/default_colors.3x ncurses-5.6/man/default_colors.3x
    3933241597--- ncurses-5.6.orig/man/default_colors.3x      2006-02-25 16:49:19.000000000 -0500
    39333 +++ ncurses-5.6/man/default_colors.3x   2007-12-21 00:02:36.000000000 -0500
     41598+++ ncurses-5.6/man/default_colors.3x   2008-06-18 06:49:44.000000000 -0400
    3933441599@@ -28,7 +28,7 @@
    3933541600 .\"
     
    3935341618 The \fIuse_default_colors()\fP function was added to support \fIded\fP.
    3935441619 This is a full-screen application which uses curses to manage only part
     41620diff -Naur ncurses-5.6.orig/man/form.3x ncurses-5.6/man/form.3x
     41621--- ncurses-5.6.orig/man/form.3x        2006-11-04 13:50:09.000000000 -0500
     41622+++ ncurses-5.6/man/form.3x     2008-06-18 06:49:50.000000000 -0400
     41623@@ -1,6 +1,6 @@
     41624 '\" t
     41625 .\"***************************************************************************
     41626-.\" Copyright (c) 1998-2002,2006 Free Software Foundation, Inc.              *
     41627+.\" Copyright (c) 1998-2006,2008 Free Software Foundation, Inc.              *
     41628 .\"                                                                          *
     41629 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
     41630 .\" copy of this software and associated documentation files (the            *
     41631@@ -27,7 +27,7 @@
     41632 .\" authorization.                                                           *
     41633 .\"***************************************************************************
     41634 .\"
     41635-.\" $Id: form.3x,v 1.20 2006/11/04 18:50:09 tom Exp $
     41636+.\" $Id: form.3x,v 1.21 2008/04/26 17:11:52 tom Exp $
     41637 .TH form 3X ""
     41638 .SH NAME
     41639 \fBform\fR - curses extension for programming forms
     41640@@ -69,7 +69,7 @@
     41641 data_ahead     \fBform_data\fR(3X)
     41642 data_behind    \fBform_data\fR(3X)
     41643 dup_field      \fBform_field_new\fR(3X)
     41644-dynamic_fieldinfo      \fBform_field_info\fR(3X)
     41645+dynamic_field_info     \fBform_field_info\fR(3X)
     41646 field_arg      \fBform_field_validation\fR(3X)
     41647 field_back     \fBform_field_attributes\fR(3X)
     41648 field_buffer   \fBform_field_buffer\fR(3X)
    3935541649diff -Naur ncurses-5.6.orig/man/form_driver.3x ncurses-5.6/man/form_driver.3x
    3935641650--- ncurses-5.6.orig/man/form_driver.3x 2006-11-04 13:51:00.000000000 -0500
    39357 +++ ncurses-5.6/man/form_driver.3x      2007-12-21 00:02:36.000000000 -0500
     41651+++ ncurses-5.6/man/form_driver.3x      2008-06-18 06:49:44.000000000 -0400
    3935841652@@ -1,5 +1,5 @@
    3935941653 .\"***************************************************************************
     
    3944141735diff -Naur ncurses-5.6.orig/man/form_field_new.3x ncurses-5.6/man/form_field_new.3x
    3944241736--- ncurses-5.6.orig/man/form_field_new.3x      2006-11-04 12:12:00.000000000 -0500
    39443 +++ ncurses-5.6/man/form_field_new.3x   2007-12-21 00:02:36.000000000 -0500
     41737+++ ncurses-5.6/man/form_field_new.3x   2008-06-18 06:49:44.000000000 -0400
    3944441738@@ -1,6 +1,6 @@
    3944541739 '\" t
     
    3947241766diff -Naur ncurses-5.6.orig/man/form_field_opts.3x ncurses-5.6/man/form_field_opts.3x
    3947341767--- ncurses-5.6.orig/man/form_field_opts.3x     2006-11-04 12:12:00.000000000 -0500
    39474 +++ ncurses-5.6/man/form_field_opts.3x  2007-12-21 00:02:36.000000000 -0500
     41768+++ ncurses-5.6/man/form_field_opts.3x  2008-06-18 06:49:44.000000000 -0400
    3947541769@@ -1,6 +1,6 @@
    3947641770 '\" t
     
    3950941803diff -Naur ncurses-5.6.orig/man/form_field_validation.3x ncurses-5.6/man/form_field_validation.3x
    3951041804--- ncurses-5.6.orig/man/form_field_validation.3x       2006-11-04 12:14:19.000000000 -0500
    39511 +++ ncurses-5.6/man/form_field_validation.3x    2007-12-21 00:02:36.000000000 -0500
     41805+++ ncurses-5.6/man/form_field_validation.3x    2008-06-18 06:49:44.000000000 -0400
    3951241806@@ -26,7 +26,7 @@
    3951341807 .\" authorization.                                                           *
     
    3953041824diff -Naur ncurses-5.6.orig/man/form_hook.3x ncurses-5.6/man/form_hook.3x
    3953141825--- ncurses-5.6.orig/man/form_hook.3x   2006-11-04 12:12:00.000000000 -0500
    39532 +++ ncurses-5.6/man/form_hook.3x        2007-12-21 00:02:36.000000000 -0500
     41826+++ ncurses-5.6/man/form_hook.3x        2008-06-18 06:49:44.000000000 -0400
    3953341827@@ -1,6 +1,6 @@
    3953441828 '\" t
     
    3957941873diff -Naur ncurses-5.6.orig/man/form_opts.3x ncurses-5.6/man/form_opts.3x
    3958041874--- ncurses-5.6.orig/man/form_opts.3x   2006-11-04 12:12:00.000000000 -0500
    39581 +++ ncurses-5.6/man/form_opts.3x        2007-12-21 00:02:36.000000000 -0500
     41875+++ ncurses-5.6/man/form_opts.3x        2008-06-18 06:49:44.000000000 -0400
    3958241876@@ -1,6 +1,6 @@
    3958341877 '\" t
     
    3961641910diff -Naur ncurses-5.6.orig/man/infocmp.1m ncurses-5.6/man/infocmp.1m
    3961741911--- ncurses-5.6.orig/man/infocmp.1m     2006-05-13 11:14:01.000000000 -0400
    39618 +++ ncurses-5.6/man/infocmp.1m  2007-12-21 00:02:36.000000000 -0500
     41912+++ ncurses-5.6/man/infocmp.1m  2008-06-18 06:49:44.000000000 -0400
    3961941913@@ -27,14 +27,14 @@
    3962041914 .\" authorization.                                                           *
     
    3972642020diff -Naur ncurses-5.6.orig/man/infotocap.1m ncurses-5.6/man/infotocap.1m
    3972742021--- ncurses-5.6.orig/man/infotocap.1m   2006-05-13 11:35:45.000000000 -0400
    39728 +++ ncurses-5.6/man/infotocap.1m        2007-12-21 00:02:36.000000000 -0500
     42022+++ ncurses-5.6/man/infotocap.1m        2008-06-18 06:49:44.000000000 -0400
    3972942023@@ -27,16 +27,16 @@
    3973042024 .\" authorization.                                                           *
     
    3976842062diff -Naur ncurses-5.6.orig/man/legacy_coding.3x ncurses-5.6/man/legacy_coding.3x
    3976942063--- ncurses-5.6.orig/man/legacy_coding.3x       2006-02-25 16:50:01.000000000 -0500
    39770 +++ ncurses-5.6/man/legacy_coding.3x    2007-12-21 00:02:36.000000000 -0500
     42064+++ ncurses-5.6/man/legacy_coding.3x    2008-06-18 06:49:44.000000000 -0400
    3977142065@@ -28,7 +28,7 @@
    3977242066 .\"
     
    3978942083diff -Naur ncurses-5.6.orig/man/man_db.renames ncurses-5.6/man/man_db.renames
    3979042084--- ncurses-5.6.orig/man/man_db.renames 2006-05-13 19:47:25.000000000 -0400
    39791 +++ ncurses-5.6/man/man_db.renames      2007-12-21 00:02:36.000000000 -0500
     42085+++ ncurses-5.6/man/man_db.renames      2008-06-18 06:49:46.000000000 -0400
    3979242086@@ -1,5 +1,5 @@
    3979342087 ##############################################################################
    3979442088-# Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.                #
    39795 +# Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.                #
     42089+# Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.                #
    3979642090 #                                                                            #
    3979742091 # Permission is hereby granted, free of charge, to any person obtaining a    #
     
    3980242096 ##############################################################################
    3980342097-# $Id: man_db.renames,v 0.36 2006/05/13 23:47:25 tom Exp $
    39804 +# $Id: man_db.renames,v 0.39 2007/04/07 23:06:31 tom Exp $
     42098+# $Id: man_db.renames,v 0.40 2008/01/19 18:28:50 tom Exp $
    3980542099 # Manual-page renamings for the man_db program
    3980642100 #
     
    3981742111 curs_overlay.3x                        overlay.3ncurses
    3981842112 curs_pad.3x                    pad.3ncurses
    39819 @@ -159,12 +161,15 @@
     42113@@ -82,6 +84,7 @@
     42114 curs_termattrs.3x              termattrs.3ncurses
     42115 curs_termcap.3x                        termcap.3ncurses
     42116 curs_terminfo.3x               terminfo.3ncurses
     42117+curs_threads.3x                        threads.3ncurses
     42118 curs_touch.3x                  touch.3ncurses
     42119 curs_trace.3x                  trace.3ncurses
     42120 curs_util.3x                   util.3ncurses
     42121@@ -114,9 +117,9 @@
     42122 form_win.3x                    win.3form
     42123 infocmp.1m                     infocmp.1
     42124 infotocap.1m                   infotocap.1
     42125+key_defined.3x                 key_defined.3ncurses
     42126 keybound.3x                    keybound.3ncurses
     42127 keyok.3x                       keyok.3ncurses
     42128-key_defined.3x                 key_defined.3ncurses
     42129 legacy_coding.3x               legacy_coding.3ncurses
     42130 menu.3x                                menu.3menu
     42131 menu_attributes.3x             attributes.3menu
     42132@@ -159,12 +162,15 @@
    3982042133 vprintf.3s                     vprintf.3
    3982142134 wresize.3x                     wresize.3ncurses
     
    3984042153+#
    3984142154+# vile:cfgmode
     42155diff -Naur ncurses-5.6.orig/man/manlinks.sed ncurses-5.6/man/manlinks.sed
     42156--- ncurses-5.6.orig/man/manlinks.sed   2003-12-20 08:17:56.000000000 -0500
     42157+++ ncurses-5.6/man/manlinks.sed        2008-06-18 06:49:46.000000000 -0400
     42158@@ -1,6 +1,6 @@
     42159-# $Id: manlinks.sed,v 1.12 2003/12/20 13:17:56 tom Exp $
     42160+# $Id: manlinks.sed,v 1.13 2008/01/19 23:31:17 tom Exp $
     42161 ##############################################################################
     42162-# Copyright (c) 2000-2002,2003 Free Software Foundation, Inc.                #
     42163+# Copyright (c) 2000-2003,2008 Free Software Foundation, Inc.                #
     42164 #                                                                            #
     42165 # Permission is hereby granted, free of charge, to any person obtaining a    #
     42166 # copy of this software and associated documentation files (the "Software"), #
     42167@@ -35,6 +35,7 @@
     42168 /\.\\"/d
     42169 /^\.br/d
     42170 /^\.sp/d
     42171+/typedef/d
     42172 s/^\.IX//
     42173 s/\\f.//g
     42174 s/[:,]/ /g
    3984242175diff -Naur ncurses-5.6.orig/man/menu_driver.3x ncurses-5.6/man/menu_driver.3x
    3984342176--- ncurses-5.6.orig/man/menu_driver.3x 2006-11-04 12:13:50.000000000 -0500
    39844 +++ ncurses-5.6/man/menu_driver.3x      2007-12-21 00:02:36.000000000 -0500
     42177+++ ncurses-5.6/man/menu_driver.3x      2008-06-18 06:49:44.000000000 -0400
    3984542178@@ -1,5 +1,5 @@
    3984642179 .\"***************************************************************************
     
    3993942272diff -Naur ncurses-5.6.orig/man/menu_hook.3x ncurses-5.6/man/menu_hook.3x
    3994042273--- ncurses-5.6.orig/man/menu_hook.3x   2006-11-04 12:12:00.000000000 -0500
    39941 +++ ncurses-5.6/man/menu_hook.3x        2007-12-21 00:02:36.000000000 -0500
     42274+++ ncurses-5.6/man/menu_hook.3x        2008-06-18 06:49:44.000000000 -0400
    3994242275@@ -1,6 +1,6 @@
    3994342276 '\" t
     
    3998842321diff -Naur ncurses-5.6.orig/man/menu_opts.3x ncurses-5.6/man/menu_opts.3x
    3998942322--- ncurses-5.6.orig/man/menu_opts.3x   2006-11-04 12:12:00.000000000 -0500
    39990 +++ ncurses-5.6/man/menu_opts.3x        2007-12-21 00:02:36.000000000 -0500
     42323+++ ncurses-5.6/man/menu_opts.3x        2008-06-18 06:49:44.000000000 -0400
    3999142324@@ -1,6 +1,6 @@
    3999242325 '\" t
     
    4002542358diff -Naur ncurses-5.6.orig/man/mitem_opts.3x ncurses-5.6/man/mitem_opts.3x
    4002642359--- ncurses-5.6.orig/man/mitem_opts.3x  2006-11-04 12:12:00.000000000 -0500
    40027 +++ ncurses-5.6/man/mitem_opts.3x       2007-12-21 00:02:36.000000000 -0500
     42360+++ ncurses-5.6/man/mitem_opts.3x       2008-06-18 06:49:44.000000000 -0400
    4002842361@@ -1,6 +1,6 @@
    4002942362 '\" t
     
    4006242395diff -Naur ncurses-5.6.orig/man/ncurses.3x ncurses-5.6/man/ncurses.3x
    4006342396--- ncurses-5.6.orig/man/ncurses.3x     2006-12-02 14:23:11.000000000 -0500
    40064 +++ ncurses-5.6/man/ncurses.3x  2007-12-21 00:02:36.000000000 -0500
     42397+++ ncurses-5.6/man/ncurses.3x  2008-06-18 06:49:44.000000000 -0400
    4006542398@@ -1,6 +1,6 @@
    4006642399 '\" t
     
    4055742890diff -Naur ncurses-5.6.orig/man/panel.3x ncurses-5.6/man/panel.3x
    4055842891--- ncurses-5.6.orig/man/panel.3x       2006-05-13 11:35:45.000000000 -0400
    40559 +++ ncurses-5.6/man/panel.3x    2007-12-21 00:02:36.000000000 -0500
     42892+++ ncurses-5.6/man/panel.3x    2008-06-18 06:49:44.000000000 -0400
    4056042893@@ -1,5 +1,5 @@
    4056142894 .\"***************************************************************************
     
    4066242995diff -Naur ncurses-5.6.orig/man/term.5 ncurses-5.6/man/term.5
    4066342996--- ncurses-5.6.orig/man/term.5 2006-12-02 20:08:16.000000000 -0500
    40664 +++ ncurses-5.6/man/term.5      2007-12-21 00:02:36.000000000 -0500
     42997+++ ncurses-5.6/man/term.5      2008-06-18 06:49:44.000000000 -0400
    4066542998@@ -26,8 +26,8 @@
    4066642999 .\" authorization.                                                           *
     
    4068543018diff -Naur ncurses-5.6.orig/man/term.7 ncurses-5.6/man/term.7
    4068643019--- ncurses-5.6.orig/man/term.7 2006-02-25 16:47:06.000000000 -0500
    40687 +++ ncurses-5.6/man/term.7      2007-12-21 00:02:36.000000000 -0500
     43020+++ ncurses-5.6/man/term.7      2008-06-18 06:49:44.000000000 -0400
    4068843021@@ -1,5 +1,5 @@
    4068943022 .\"***************************************************************************
     
    4073443067diff -Naur ncurses-5.6.orig/man/terminfo.head ncurses-5.6/man/terminfo.head
    4073543068--- ncurses-5.6.orig/man/terminfo.head  2006-05-13 11:35:45.000000000 -0400
    40736 +++ ncurses-5.6/man/terminfo.head       2007-12-21 00:02:36.000000000 -0500
     43069+++ ncurses-5.6/man/terminfo.head       2008-06-18 06:49:44.000000000 -0400
    4073743070@@ -26,8 +26,8 @@
    4073843071 .\" authorization.                                                           *
     
    4077643109diff -Naur ncurses-5.6.orig/man/terminfo.tail ncurses-5.6/man/terminfo.tail
    4077743110--- ncurses-5.6.orig/man/terminfo.tail  2006-04-01 17:47:01.000000000 -0500
    40778 +++ ncurses-5.6/man/terminfo.tail       2007-12-21 00:02:36.000000000 -0500
     43111+++ ncurses-5.6/man/terminfo.tail       2008-06-18 06:49:47.000000000 -0400
    4077943112@@ -1,11 +1,11 @@
    4078043113-.\" $Id: terminfo.tail,v 1.44 2006/04/01 22:47:01 tom Exp $
    40781 +.\" $Id: terminfo.tail,v 1.48 2007/06/02 20:30:40 tom Exp $
     43114+.\" $Id: terminfo.tail,v 1.49 2008/02/16 20:57:43 tom Exp $
    4078243115 .\" Beginning of terminfo.tail file
    4078343116 .\" This file is part of ncurses.
     
    4080143134 For example, to address the cursor, the
    4080243135 .B cup
    40803 @@ -395,7 +395,7 @@
     43136@@ -325,7 +325,9 @@
     43137 outputs `%'
     43138 .TP
     43139 %\fI[[\fP:\fI]flags][width[.precision]][\fPdoxXs\fI]\fP
     43140-as in \fBprintf\fP, flags are [-+#] and space
     43141+as in \fBprintf\fP, flags are [-+#] and space.
     43142+Use a `:' to allow the next character to be a `-' flag,
     43143+avoiding interpreting "%-" as an operator.
     43144 .TP
     43145 %c
     43146 print pop() like %c in \fBprintf\fP
     43147@@ -395,7 +397,7 @@
    4080443148 .IP
    4080543149 where c\di\u are conditions, b\di\u are bodies.
     
    4081043154 Some strings, e.g., \fBsgr\fP can be very complicated when written
    4081143155 on one line.
    40812 @@ -993,7 +993,7 @@
     43156@@ -993,7 +995,7 @@
    4081343157 They are normally sent to the terminal, by the
    4081443158 .I init
     
    4081943163 They will be printed in the following order:
    4082043164 .RS
    40821 @@ -1578,7 +1578,7 @@
     43165@@ -1578,7 +1580,7 @@
    4082243166 *
    4082343167 and the termcap library (like the one in BSD/OS 1.1 and GNU) reads
     
    4082843172 *
    4082943173 and \fBtgetent()\fP is searching for a terminal type that either is the
    40830 @@ -1599,19 +1599,19 @@
     43174@@ -1599,19 +1601,19 @@
    4083143175 .PP
    4083243176 The "after tc expansion" length will have a similar effect to the
     
    4085143195 The -c (check) option also checks resolved (after tc
    4085243196 expansion) lengths.
    40853 @@ -1688,7 +1688,7 @@
     43197@@ -1688,7 +1690,7 @@
    4085443198 \fB@TIC@\fR(1M),
    4085543199 \fB@INFOCMP@\fR(1M),
     
    4086243206diff -Naur ncurses-5.6.orig/man/tic.1m ncurses-5.6/man/tic.1m
    4086343207--- ncurses-5.6.orig/man/tic.1m 2006-05-13 11:14:01.000000000 -0400
    40864 +++ ncurses-5.6/man/tic.1m      2007-12-21 00:02:36.000000000 -0500
     43208+++ ncurses-5.6/man/tic.1m      2008-06-18 06:49:44.000000000 -0400
    4086543209@@ -26,8 +26,8 @@
    4086643210 .\" authorization.                                                           *
     
    4088543229diff -Naur ncurses-5.6.orig/man/toe.1m ncurses-5.6/man/toe.1m
    4088643230--- ncurses-5.6.orig/man/toe.1m 2006-05-13 11:14:01.000000000 -0400
    40887 +++ ncurses-5.6/man/toe.1m      2007-12-21 00:02:36.000000000 -0500
     43231+++ ncurses-5.6/man/toe.1m      2008-06-18 06:49:45.000000000 -0400
     43232@@ -1,5 +1,5 @@
     43233 .\"***************************************************************************
     43234-.\" Copyright (c) 1998-2004,2006 Free Software Foundation, Inc.              *
     43235+.\" Copyright (c) 1998-2006,2008 Free Software Foundation, Inc.              *
     43236 .\"                                                                          *
     43237 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
     43238 .\" copy of this software and associated documentation files (the            *
    4088843239@@ -26,8 +26,8 @@
    4088943240 .\" authorization.                                                           *
     
    4089243243-.\" $Id: toe.1m,v 1.18 2006/05/13 15:14:01 tom Exp $
    4089343244-.TH toe 1M ""
    40894 +.\" $Id: toe.1m,v 1.20 2006/12/24 17:20:37 tom Exp $
     43245+.\" $Id: toe.1m,v 1.21 2008/01/05 20:57:16 tom Exp $
    4089543246+.TH @TOE@ 1M ""
    4089643247 .ds n 5
    4089743248 .ds d @TERMINFO@
    4089843249 .SH NAME
    40899 @@ -67,7 +67,7 @@
     43250@@ -37,10 +37,14 @@
     43251 .br
     43252 .SH DESCRIPTION
     43253 .PP
     43254-With no options, \fBtoe\fR lists all available terminal types by primary name
     43255-with descriptions.  File arguments specify the directories to be scanned; if no
     43256-such arguments are given, your default terminfo directory is scanned.  If you
     43257-also specify the \fB-h\fR option, a directory header will be issued as each
     43258+With no options,
     43259+\fBtoe\fR lists all available terminal types by primary name
     43260+with descriptions.
     43261+File arguments specify the directories to be scanned; if no
     43262+such arguments are given,
     43263+your default terminfo directory is scanned.
     43264+If you also specify the \fB-h\fR option,
     43265+a directory header will be issued as each
     43266 directory is entered.
     43267 .PP
     43268 There are other options intended for use by terminfo file maintainers:
     43269@@ -50,16 +54,25 @@
     43270 rather than only the first one that it finds.
     43271 .TP
     43272 \fB-u\fR \fIfile\fR
     43273-says to issue a report on dependencies in the given file. This report condenses
     43274-the `use' relation: each line consists of the primary name of a terminal that
     43275-has use capabilities, followed by a colon, followed by the
     43276+says to write a report to the standard output,
     43277+listing dependencies in the given terminfo/termcap source file.
     43278+The report condenses the `use' relation:
     43279+each line consists of the primary name of a terminal that
     43280+has use capabilities,
     43281+followed by a colon,
     43282+followed by the
     43283 whitespace-separated primary names of all terminals which occur in those use
     43284-capabilities, followed by a newline
     43285+capabilities,
     43286+followed by a newline
     43287 .TP
     43288 \fB-U\fR \fIfile\fR
     43289-says to issue a report on reverse dependencies in the given file. This report
     43290-reverses the `use' relation: each line consists of the primary name of a
     43291-terminal that occurs in use capabilities, followed by a colon, followed by the
     43292+says to write a report to the standard output,
     43293+listing reverse dependencies in the given terminfo/termcap source file.
     43294+The report reverses the `use' relation:
     43295+each line consists of the primary name of a
     43296+terminal that occurs in use capabilities,
     43297+followed by a colon,
     43298+followed by the
     43299 whitespace-separated primary names of all terminals which depend on it,
     43300 followed by a newline.
     43301 .TP
     43302@@ -67,10 +80,11 @@
    4090043303 specifies that (verbose) output be written to standard error,
    4090143304 showing \fBtoe\fR's progress.
     
    4090543308 .TP
    4090643309 \fB-V\fR
    40907  reports the version of ncurses which was used in this program, and exits.
     43310-reports the version of ncurses which was used in this program, and exits.
     43311+reports the version of ncurses which was used in this program,
     43312+and exits.
     43313 .SH FILES
     43314 .TP 5
     43315 \fB\*d/?/*\fR
    4090843316diff -Naur ncurses-5.6.orig/man/tput.1 ncurses-5.6/man/tput.1
    4090943317--- ncurses-5.6.orig/man/tput.1 2006-05-13 11:14:01.000000000 -0400
    40910 +++ ncurses-5.6/man/tput.1      2007-12-21 00:02:36.000000000 -0500
     43318+++ ncurses-5.6/man/tput.1      2008-06-18 06:49:44.000000000 -0400
    4091143319@@ -27,27 +27,27 @@
    4091243320 .\" authorization.                                                           *
     
    4110743515diff -Naur ncurses-5.6.orig/man/tset.1 ncurses-5.6/man/tset.1
    4110843516--- ncurses-5.6.orig/man/tset.1 2006-07-29 07:34:07.000000000 -0400
    41109 +++ ncurses-5.6/man/tset.1      2007-12-21 00:02:36.000000000 -0500
     43517+++ ncurses-5.6/man/tset.1      2008-06-18 06:49:44.000000000 -0400
    4111043518@@ -26,7 +26,7 @@
    4111143519 .\" authorization.                                                           *
     
    4112843536diff -Naur ncurses-5.6.orig/menu/Makefile.in ncurses-5.6/menu/Makefile.in
    4112943537--- ncurses-5.6.orig/menu/Makefile.in   2006-10-14 16:40:36.000000000 -0400
    41130 +++ ncurses-5.6/menu/Makefile.in        2007-12-21 00:02:36.000000000 -0500
     43538+++ ncurses-5.6/menu/Makefile.in        2008-06-18 06:49:44.000000000 -0400
    4113143539@@ -1,6 +1,6 @@
    4113243540-# $Id: Makefile.in,v 1.43 2006/10/14 20:40:36 tom Exp $
     
    4117643584diff -Naur ncurses-5.6.orig/menu/headers ncurses-5.6/menu/headers
    4117743585--- ncurses-5.6.orig/menu/headers       1998-02-11 07:13:49.000000000 -0500
    41178 +++ ncurses-5.6/menu/headers    2007-12-21 00:02:36.000000000 -0500
     43586+++ ncurses-5.6/menu/headers    2008-06-18 06:49:44.000000000 -0400
    4117943587@@ -1,5 +1,5 @@
    4118043588 ##############################################################################
     
    4119143599diff -Naur ncurses-5.6.orig/menu/menu.h ncurses-5.6/menu/menu.h
    4119243600--- ncurses-5.6.orig/menu/menu.h        2003-11-08 15:48:24.000000000 -0500
    41193 +++ ncurses-5.6/menu/menu.h     2007-12-21 00:02:36.000000000 -0500
     43601+++ ncurses-5.6/menu/menu.h     2008-06-18 06:49:44.000000000 -0400
    4119443602@@ -1,5 +1,5 @@
    4119543603 /****************************************************************************
     
    4123843646diff -Naur ncurses-5.6.orig/menu/modules ncurses-5.6/menu/modules
    4123943647--- ncurses-5.6.orig/menu/modules       2004-12-25 17:06:33.000000000 -0500
    41240 +++ ncurses-5.6/menu/modules    2007-12-21 00:02:36.000000000 -0500
     43648+++ ncurses-5.6/menu/modules    2008-06-18 06:49:44.000000000 -0400
    4124143649@@ -1,6 +1,6 @@
    4124243650-# $Id: modules,v 1.16 2004/12/25 22:06:33 tom Exp $
     
    4126543673diff -Naur ncurses-5.6.orig/misc/Makefile.in ncurses-5.6/misc/Makefile.in
    4126643674--- ncurses-5.6.orig/misc/Makefile.in   2006-10-21 09:28:03.000000000 -0400
    41267 +++ ncurses-5.6/misc/Makefile.in        2007-12-21 00:02:36.000000000 -0500
     43675+++ ncurses-5.6/misc/Makefile.in        2008-06-18 06:49:44.000000000 -0400
    4126843676@@ -1,6 +1,6 @@
    4126943677-# $Id: Makefile.in,v 1.40 2006/10/21 13:28:03 tom Exp $
     
    4131943727diff -Naur ncurses-5.6.orig/misc/ncurses-config.in ncurses-5.6/misc/ncurses-config.in
    4132043728--- ncurses-5.6.orig/misc/ncurses-config.in     2006-10-28 16:22:52.000000000 -0400
    41321 +++ ncurses-5.6/misc/ncurses-config.in  2007-12-21 00:02:36.000000000 -0500
     43729+++ ncurses-5.6/misc/ncurses-config.in  2008-06-18 06:49:44.000000000 -0400
    4132243730@@ -1,7 +1,7 @@
    4132343731 #!@SHELL@
     
    4134443752diff -Naur ncurses-5.6.orig/misc/shlib ncurses-5.6/misc/shlib
    4134543753--- ncurses-5.6.orig/misc/shlib 2005-06-25 18:41:17.000000000 -0400
    41346 +++ ncurses-5.6/misc/shlib      2007-12-21 00:02:36.000000000 -0500
     43754+++ ncurses-5.6/misc/shlib      2008-06-18 06:49:44.000000000 -0400
    4134743755@@ -29,7 +29,7 @@
    4134843756 #
     
    4136443772diff -Naur ncurses-5.6.orig/misc/terminfo.src ncurses-5.6/misc/terminfo.src
    4136543773--- ncurses-5.6.orig/misc/terminfo.src  2006-10-07 13:52:03.000000000 -0400
    41366 +++ ncurses-5.6/misc/terminfo.src       2007-12-21 00:02:36.000000000 -0500
     43774+++ ncurses-5.6/misc/terminfo.src       2008-06-18 06:49:50.000000000 -0400
    4136743775@@ -6,8 +6,8 @@
    4136843776 # Report bugs and new terminal descriptions to
     
    4137143779-#      $Revision: 1.303 $
    4137243780-#      $Date: 2006/10/07 17:52:03 $
    41373 +#      $Revision: 1.318 $
    41374 +#      $Date: 2007/11/03 19:02:01 $
     43781+#      $Revision: 1.328 $
     43782+#      $Date: 2008/04/29 00:49:41 $
    4137543783 #
    4137643784 # The original header is preserved below for reference.  It is noted that there
     
    4140443812 # One of the keyboard selections is "VT100+".
    4140543813 # pterm (the X11 port) uses shifted F1-F10 as F11-F20
    41406 @@ -3015,11 +3026,10 @@
     43814@@ -3006,20 +3017,17 @@
     43815        cnorm=\E[?12l\E[?25h, cvvis=\E[?12;25h, indn=\E[%p1%dS,
     43816        rin=\E[%p1%dT, use=xterm-xf86-v43,
     43817 
     43818-# This is the most common alias for xterm-new.
     43819 xterm-xfree86|xterm terminal emulator (XFree86),
     43820-       use=xterm-new,
     43821-#      use=xterm-old,
     43822+       use=xterm-xf86-v44,
     43823 
     43824 # This version reflects the current xterm features.
    4140743825 xterm-new|modern xterm terminal emulator,
    4140843826        npc,
     
    4142043838 #
    4142143839 # This fragment describes as much of XFree86 xterm's "pc-style" function
    41422 @@ -3060,25 +3070,30 @@
     43840@@ -3038,7 +3046,16 @@
     43841 # The meta key may also be used as a modifier in this scheme, adding another
     43842 # bit to the parameter.
     43843 xterm+pcfkeys|fragment for PC-style fkeys,
     43844-       use=xterm+pcf2, use=xterm+pcc2,
     43845+       use=xterm+app, use=xterm+pcf2, use=xterm+pcc2,
     43846+       use=xterm+pce2,
     43847+#
     43848+xterm+noapp|fragment with cursor keys in normal mode,
     43849+       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, kend=\E[F,
     43850+       khome=\E[H,
     43851+
     43852+xterm+app|fragment with cursor keys in application mode,
     43853+       kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kend=\EOF,
     43854+       khome=\EOH,
     43855 #
     43856 # The "PC-style" modifier scheme was introduced in xterm patch #94 (1999/3/27)
     43857 # and revised in patch #167 (2002/8/24).  Some other terminal emulators copied
     43858@@ -3060,25 +3077,41 @@
    4142343859 # modifyCursorKeys resource.  These fragments list the modified cursor-keys
    4142443860 # that might apply to xterm+pcfkeys with different values of that resource.
    4142543861 xterm+pcc3|fragment with modifyCursorKeys:3,
    4142643862-       kDN=\E[>1;2B, kDN5=\E[>1;5B, kDN6=\E[>1;6B,
     43863-       kLFT5=\E[>1;5D, kLFT6=\E[>1;6D, kRIT5=\E[>1;5C,
     43864-       kRIT6=\E[>1;6C, kUP=\E[>1;2A, kUP5=\E[>1;5A,
     43865-       kUP6=\E[>1;6A,
    4142743866+       kLFT=\E[>1;2D, kRIT=\E[>1;2C, kind=\E[>1;2B,
    41428 +       kri=\E[>1;2A, kDN=\E[>1;2B, kDN5=\E[>1;5B, kDN6=\E[>1;6B,
    41429         kLFT5=\E[>1;5D, kLFT6=\E[>1;6D, kRIT5=\E[>1;5C,
    41430         kRIT6=\E[>1;6C, kUP=\E[>1;2A, kUP5=\E[>1;5A,
    41431         kUP6=\E[>1;6A,
     43867+       kri=\E[>1;2A, kDN=\E[>1;2B, kDN3=\E[>1;3B, kDN4=\E[>1;4B,
     43868+       kDN5=\E[>1;5B, kDN6=\E[>1;6B, kDN7=\E[>1;7B,
     43869+       kLFT3=\E[>1;3D, kLFT4=\E[>1;4D, kLFT5=\E[>1;5D,
     43870+       kLFT6=\E[>1;6D, kLFT7=\E[>1;7D, kRIT3=\E[>1;3C,
     43871+       kRIT4=\E[>1;4C, kRIT5=\E[>1;5C, kRIT6=\E[>1;6C,
     43872+       kRIT7=\E[>1;7C, kUP=\E[>1;2A, kUP3=\E[>1;3A,
     43873+       kUP4=\E[>1;4A, kUP5=\E[>1;5A, kUP6=\E[>1;6A,
     43874+       kUP7=\E[>1;7A,
    4143243875 
    4143343876 xterm+pcc2|fragment with modifyCursorKeys:2,
     43877-       kDN=\E[1;2B, kDN5=\E[1;5B, kDN6=\E[1;6B, kLFT5=\E[1;5D,
     43878-       kLFT6=\E[1;6D, kRIT5=\E[1;5C, kRIT6=\E[1;6C, kUP=\E[1;2A,
     43879-       kUP5=\E[1;5A, kUP6=\E[1;6A,
    4143443880+       kLFT=\E[1;2D, kRIT=\E[1;2C, kind=\E[1;2B, kri=\E[1;2A,
    41435         kDN=\E[1;2B, kDN5=\E[1;5B, kDN6=\E[1;6B, kLFT5=\E[1;5D,
    41436         kLFT6=\E[1;6D, kRIT5=\E[1;5C, kRIT6=\E[1;6C, kUP=\E[1;2A,
    41437         kUP5=\E[1;5A, kUP6=\E[1;6A,
     43881+       kDN=\E[1;2B, kDN3=\E[1;3B, kDN4=\E[1;4B, kDN5=\E[1;5B,
     43882+       kDN6=\E[1;6B, kDN7=\E[1;7B, kLFT3=\E[1;3D, kLFT4=\E[1;4D,
     43883+       kLFT5=\E[1;5D, kLFT6=\E[1;6D, kLFT7=\E[1;7D,
     43884+       kRIT3=\E[1;3C, kRIT4=\E[1;4C, kRIT5=\E[1;5C,
     43885+       kRIT6=\E[1;6C, kRIT7=\E[1;7C, kUP=\E[1;2A, kUP3=\E[1;3A,
     43886+       kUP4=\E[1;4A, kUP5=\E[1;5A, kUP6=\E[1;6A, kUP7=\E[1;7A,
    4143843887 
    4143943888 xterm+pcc1|fragment with modifyCursorKeys:1,
     
    4144243891-       kUP5=\E[5A, kUP6=\E[6A,
    4144343892+       kLFT=\E[2D, kRIT=\E[2C, kind=\E[2B, kri=\E[2A, kDN=\E[2B,
    41444 +       kDN5=\E[5B, kDN6=\E[6B, kLFT5=\E[5D, kLFT6=\E[6D,
    41445 +       kRIT5=\E[5C, kRIT6=\E[6C, kUP=\E[2A, kUP5=\E[5A,
    41446 +       kUP6=\E[6A,
     43893+       kDN3=\E[3B, kDN4=\E[4B, kDN5=\E[5B, kDN6=\E[6B, kDN7=\E[7B,
     43894+       kLFT3=\E[3D, kLFT4=\E[4D, kLFT5=\E[5D, kLFT6=\E[6D,
     43895+       kLFT7=\E[7D, kRIT3=\E[3C, kRIT4=\E[4C, kRIT5=\E[5C,
     43896+       kRIT6=\E[6C, kRIT7=\E[7C, kUP=\E[2A, kUP3=\E[3A,
     43897+       kUP4=\E[4A, kUP5=\E[5A, kUP6=\E[6A, kUP7=\E[7A,
    4144743898 
    4144843899 xterm+pcc0|fragment with modifyCursorKeys:0,
     
    4145143902-       kUP5=\EO5A, kUP6=\EO6A,
    4145243903+       kLFT=\EO2D, kRIT=\EO2C, kind=\EO2B, kri=\EO2A, kDN=\EO2B,
    41453 +       kDN5=\EO5B, kDN6=\EO6B, kLFT5=\EO5D, kLFT6=\EO6D,
    41454 +       kRIT5=\EO5C, kRIT6=\EO6C, kUP=\EO2A, kUP5=\EO5A,
    41455 +       kUP6=\EO6A,
     43904+       kDN3=\EO3B, kDN4=\EO4B, kDN5=\EO5B, kDN6=\EO6B, kDN7=\EO7B,
     43905+       kLFT3=\EO3D, kLFT4=\EO4D, kLFT5=\EO5D, kLFT6=\EO6D,
     43906+       kLFT7=\EO7D, kRIT3=\EO3C, kRIT4=\EO4C, kRIT5=\EO5C,
     43907+       kRIT6=\EO6C, kRIT7=\EO7C, kUP=\EO2A, kUP3=\EO3A,
     43908+       kUP4=\EO4A, kUP5=\EO5A, kUP6=\EO6A, kUP7=\EO7A,
    4145643909+
    4145743910 #
    4145843911 # Here are corresponding fragments from xterm patch #216:
    4145943912 #
    41460 @@ -3101,24 +3116,37 @@
     43913@@ -3101,24 +3134,63 @@
    4146143914        kf59=\E[23;3~, kf6=\E[17~, kf60=\E[24;3~, kf61=\EO4P,
    4146243915        kf62=\EO4Q, kf63=\EO4R, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
     
    4149443947+       kf8=\E[19~, kf9=\E[20~,
    4149543948+#
     43949+# Chunks from xterm #230:
     43950+xterm+pce2|fragment with modifyCursorKeys:2,
     43951+       kDC=\E[3;2~, kEND=\E[1;2F, kHOM=\E[1;2H, kIC=\E[2;2~,
     43952+       kNXT=\E[6;2~, kPRV=\E[5;2~, kich1=\E[2~, knp=\E[6~,
     43953+       kpp=\E[5~, kDC3=\E[3;3~, kDC4=\E[3;4~, kDC5=\E[3;5~,
     43954+       kDC6=\E[3;6~, kDC7=\E[3;7~, kEND3=\E[1;3F, kEND4=\E[1;4F,
     43955+       kEND5=\E[1;5F, kEND6=\E[1;6F, kEND7=\E[1;7F,
     43956+       kHOM3=\E[1;3H, kHOM4=\E[1;4H, kHOM5=\E[1;5H,
     43957+       kHOM6=\E[1;6H, kHOM7=\E[1;7H, kIC3=\E[2;3~, kIC4=\E[2;4~,
     43958+       kIC5=\E[2;5~, kIC6=\E[2;6~, kIC7=\E[2;7~, kNXT3=\E[6;3~,
     43959+       kNXT4=\E[6;4~, kNXT5=\E[6;5~, kNXT6=\E[6;6~,
     43960+       kNXT7=\E[6;7~, kPRV3=\E[5;3~, kPRV4=\E[5;4~,
     43961+       kPRV5=\E[5;5~, kPRV6=\E[5;6~, kPRV7=\E[5;7~,
     43962+       use=xterm+edit,
     43963+
     43964+xterm+edit|fragment for 6-key editing-keypad,
     43965+       kdch1=\E[3~, kich1=\E[2~, knp=\E[6~, kpp=\E[5~,
     43966+       use=xterm+pc+edit,
     43967+
     43968+xterm+pc+edit|fragment for pc-style editing keypad,
     43969+       kend=\E[4~, khome=\E[1~,
     43970+
     43971+xterm+vt+edit|fragment for vt220-style editing keypad,
     43972+       kfnd=\E[1~, kslt=\E[4~,
     43973+
     43974+#
    4149643975+# Those chunks use the new-style (the xterm oldFunctionKeys resource is false).
    4149743976+# Alternatively, the same scheme with old-style function keys as in xterm-r6
     
    4150843987 # This chunk is used for building the VT220/Sun/PC keyboard variants.
    4150943988 xterm-basic|modern xterm terminal emulator - common,
    41510 @@ -3157,6 +3185,8 @@
     43989@@ -3135,8 +3207,8 @@
     43990        flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
     43991        ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L,
     43992        ind=^J, invis=\E[8m, is2=\E[!p\E[?3;4l\E[4l\E>, kbs=^H,
     43993-       kdch1=\E[3~, kmous=\E[M, mc0=\E[i, mc4=\E[4i, mc5=\E[5i,
     43994-       meml=\El, memu=\Em, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM,
     43995+       kmous=\E[M, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, meml=\El,
     43996+       memu=\Em, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM,
     43997        rmacs=\E(B, rmam=\E[?7l, rmcup=\E[?1049l, rmir=\E[4l,
     43998        rmkx=\E[?1l\E>, rmm=\E[?1034l, rmso=\E[27m, rmul=\E[24m,
     43999        rs1=\Ec, rs2=\E[!p\E[?3;4l\E[4l\E>, sc=\E7,
     44000@@ -3157,6 +3229,8 @@
    4151144001 xterm-16color|xterm with 16 colors like aixterm,
    4151244002        use=ibm+16color, use=xterm-new,
     
    4151744007        ccc,
    4151844008        colors#256, pairs#32767,
    41519 @@ -3165,6 +3195,18 @@
     44009@@ -3165,6 +3239,18 @@
    4152044010        setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
    4152144011        setb@, setf@,
     
    4153644026        colors#88, pairs#7744, use=xterm+256color,
    4153744027 
    41538 @@ -3444,11 +3486,23 @@
     44028@@ -3268,7 +3354,8 @@
     44029        kf17=\E[31~, kf18=\E[32~, kf19=\E[33~, kf20=\E[34~,
     44030        kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
     44031        khome=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
     44032-       use=xterm-basic, use=vt220+keypad,
     44033+       use=xterm+app, use=xterm+edit, use=xterm-basic,
     44034+       use=vt220+keypad,
     44035 
     44036 xterm-vt52|xterm emulating dec vt52,
     44037        cols#80, it#8, lines#24,
     44038@@ -3279,11 +3366,11 @@
     44039        kcuf1=\EC, kcuu1=\EA, nel=^M^J, ri=\EI, rmacs=\EG, smacs=\EF,
     44040 
     44041 xterm-noapp|xterm with cursor keys in normal mode,
     44042-       kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A, rmcup@,
     44043-       rmkx=\E>, smcup@, smkx=\E=, use=xterm,
     44044+       rmcup@, rmkx=\E>, smcup@, smkx=\E=, use=xterm+noapp,
     44045+       use=xterm,
     44046 
     44047 xterm-24|vs100|xterms|xterm terminal emulator (X Window System),
     44048-       lines#24, use=xterm,
     44049+       lines#24, use=xterm-old,
     44050 
     44051 # This is xterm for ncurses.
     44052 xterm|xterm terminal emulator (X Window System),
     44053@@ -3307,7 +3394,7 @@
     44054 #
     44055 # xterm with bold instead of underline
     44056 xterm-bold|xterm terminal emulator (X11R6 Window System) standout w/bold,
     44057-       smso=\E[7m, smul=\E[1m, use=xterm,
     44058+       smso=\E[7m, smul=\E[1m, use=xterm-old,
     44059 # (kterm: this had extension capabilities ":KJ:TY=ascii:" -- esr)
     44060 # (kterm should not invoke DEC Graphics as the alternate character set
     44061 #  -- Kenji Rikitake)
     44062@@ -3444,11 +3531,23 @@
    4153944063        rs2=\E7\E[r\E8\E[m\E[?7h\E[!p\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?25h,
    4154044064        use=ansi+enq, use=xterm+pcc0, use=gnome-rh90,
     
    4156244086 # XFCE Terminal 0.2.5.4beta2
    4156344087 #
    41564 @@ -3551,14 +3605,29 @@
     44088@@ -3551,14 +3650,29 @@
    4156544089 konsole|KDE console window,
    4156644090        use=konsole-xf4x,
     
    4159744121        am, eslok, km, mc5i, mir, msgr, npc, xenl,
    4159844122        colors#8, cols#80, it#8, lines#24, pairs#64,
    41599 @@ -3574,21 +3643,29 @@
     44123@@ -3574,21 +3688,29 @@
    4160044124        ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS,
    4160144125        is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>,
     
    4163844162 # From: Thomas Dickey <dickey@clark.net> 04 Oct 1997
    4163944163 # Updated: Oezguer Kesim <kesim@math.fu-berlin.de> 02 Nov 1997
    41640 @@ -3607,7 +3684,7 @@
     44164@@ -3607,7 +3729,7 @@
    4164144165 #
    4164244166 # rxvt is normally configured to look for "xterm" or "xterm-color" as $TERM.
     
    4164744171 # removed dch/dch1 because they are inconsistent with bce/ech -TD
    4164844172 # remove km as per tack test -TD
    41649 @@ -3677,6 +3754,7 @@
     44173@@ -3677,6 +3799,7 @@
    4165044174 #  F18              ESC [ 32 ~   ESC [ 32 $   ESC [ 32 ^   ESC [ 32 @
    4165144175 #  F19              ESC [ 33 ~   ESC [ 33 $   ESC [ 33 ^   ESC [ 33 @
     
    4165544179 #  Up               ESC [ A      ESC [ a      ESC O a      ESC O A
    4165644180 #  Down             ESC [ B      ESC [ b      ESC O b      ESC O B
    41657 @@ -3704,10 +3782,18 @@
     44181@@ -3704,10 +3827,18 @@
    4165844182 #  XK_KP_8          8                                      ESC O x
    4165944183 #  XK_KP_9          9                                      ESC O y
     
    4167544199        kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kel=\E[8\^,
    4167644200        kend=\E[8~, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
    41677 @@ -3722,7 +3808,10 @@
     44201@@ -3722,7 +3853,10 @@
    4167844202        kf41=\E[33\^, kf42=\E[34\^, kf43=\E[23@, kf44=\E[24@,
    4167944203        kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
     
    4168744211 
    4168844212 rxvt|rxvt terminal emulator (X Window System),
    41689 @@ -3747,6 +3836,13 @@
     44213@@ -3747,6 +3881,13 @@
    4169044214 rxvt-16color|xterm with 16 colors like aixterm,
    4169144215        ncv#32, use=ibm+16color, use=rxvt,
     
    4170144225 #
    4170244226 # Eterm 0.9.3
    41703 @@ -15183,6 +15279,82 @@
     44227@@ -4218,13 +4359,20 @@
     44228 #       if the terminal is wide (132 cols or more)).  If even this
     44229 #       entry cannot be found, "vt100" is used as a substitute.
     44230 #
     44231+# Notwithstanding the manpage, screen uses its own notion of the termcap
     44232+# and some keys from "screen.<term>" are ignored.  Here is an entry which
     44233+# covers those (tested with screen 4.00.02) -TD
     44234+screen+fkeys|function-keys according to screen,
     44235+       kend=\E[4~, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kfnd@,
     44236+       khome=\E[1~, kslt@,
     44237+#
     44238 # Here are a few customized entries which are useful -TD
     44239 #
     44240 # Notes:
     44241 # (a)  screen does not support invis.
     44242 # (b)  screen's implementation of bw is incorrect according to tack.
     44243 # (c)  screen appears to hardcode the strings for khome/kend, making it
     44244-#      necessary to override the "use=" clause's values.
     44245+#      necessary to override the "use=" clause's values (screen+fkeys).
     44246 # (d)  screen sets $TERMCAP to a termcap-formatted copy of the 'screen' entry,
     44247 #      which is NOT the same as the terminfo screen.<term>.
     44248 # (e)  when screen finds one of these customized entries, it sets $TERM to
     44249@@ -4236,24 +4384,29 @@
     44250 #      translation.  They are suppressed here to show what is tested by tack.
     44251 screen.xterm-xfree86|screen.xterm-new|screen customized for modern xterm,
     44252        bce@, bw,
     44253-       invis@, kIC@, kNXT@, kPRV@, kend=\E[4~, khome=\E[1~, meml@,
     44254-       memu@,
     44255+       invis@, kIC@, kNXT@, kPRV@, meml@, memu@,
     44256        sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m,
     44257-       use=xterm-new,
     44258+       use=screen+fkeys, use=xterm-new,
     44259 # xterm-r6 does not really support khome/kend unless it is propped up by
     44260 # the translations resource.
     44261 screen.xterm-r6|screen customized for X11R6 xterm,
     44262-       bw, use=xterm-r6,
     44263+       bw, use=screen+fkeys, use=xterm-r6,
     44264 # Color applications running in screen and TeraTerm do not play well together
     44265 # on Solaris because Sun's curses implementation gets confused.
     44266 screen.teraterm|disable ncv in teraterm,
     44267        ncv#127,
     44268        acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
     44269-       use=screen,
     44270+       use=screen+fkeys, use=screen,
     44271+# Other terminals
     44272+screen.rxvt|screen in rxvt,
     44273+       bw,
     44274+       cvvis@, flash@, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC,
     44275+       kcuu1=\EOA, use=screen+fkeys, use=vt100+enq,
     44276+       use=rxvt+pcfkeys, use=vt220+keypad, use=screen,
     44277 # fix the backspace key
     44278 screen.linux|screen in linux console,
     44279        bw,
     44280-       kbs=\177, kcbt@, use=screen,
     44281+       kbs=\177, kcbt@, use=screen+fkeys, use=screen,
     44282 
     44283 screen-w|VT 100/ANSI X3.64 virtual terminal with 132 cols,
     44284        cols#132, use=screen,
     44285@@ -15183,6 +15336,82 @@
    4170444286        sgr0=^O, smso=\E0Q\016, smul=\E0`\016,
    4170544287        vpa=\013%p1%{64}%+%c,
     
    4178444366 #
    4178544367 # These are official terminfo entries from within Perkin-Elmer.
    41786 @@ -18147,19 +18319,19 @@
     44368@@ -18147,19 +18376,19 @@
    4178744369 h19|heath|h19-b|heathkit|heath-19|z19|zenith|heathkit h19,
    4178844370        OTbs, am, eslok, hs, mir, msgr,
     
    4181444396        lines#60,
    4181544397        dl1=\EM, il1=\EL, use=h19,
    41816 @@ -18285,14 +18457,15 @@
     44398@@ -18285,14 +18514,15 @@
    4181744399 z100bw|h100bw|z110bw|z-100bw|h-100bw|heath/zenith z-100 pc,
    4181844400        OTbs, OTpt, mir, msgr,
     
    4183844420        dl1=\EM$<2*/>, il1=\EL$<2*/>, use=h19-b,
    4183944421 # From: <ucscc!B.fiatlux@ucbvax.berkeley.edu>
    41840 @@ -20696,6 +20869,99 @@
     44422@@ -20696,6 +20926,99 @@
    4184144423 #      * Back off the xterm entry to use r6 as a base.
    4184244424 # 9.13.22 (Sat Nov 30 11:51:31 EST 1996):
     
    4193844520 #      * Replaced minitel-2 entry.
    4193944521 #      * Added MGR, ansi-nt.
    41940 @@ -20748,6 +21014,8 @@
     44522@@ -20748,6 +21071,8 @@
    4194144523 #      * Incorporated att700 from the Boundless Technology FTP site.
    4194244524 #      * Miscellaneous contact-address and Web-page updates.
     
    4194744529 #      * add nxterm and xterm-color terminfo description (request by Cristian
    4194844530 #        Gafton <gafton@redhat.com>).
    41949 @@ -21309,6 +21577,36 @@
     44531@@ -21309,6 +21634,51 @@
    4195044532 #      * add several GNU Screen variations with 16- and 256-colors, and
    4195144533 #        status line (Alain Bench).
     
    4198144563+#      * correct acsc strings for h19 and z100 (Benjamin Sittler)
    4198244564+#
     44565+# 2007-11-11
     44566+#      * use xterm-xf86-v44 for "xterm-xfree86", reflecting changes to
     44567+#        xterm starting with patch #216 -TD
     44568+#      * make legacy xterm entries such as xterm-24 inherit from xterm-old,
     44569+#        to match xterm #230 -TD
     44570+#      * extend xterm+pccX entries to match xterm #230 -TD
     44571+#      * add xterm+app, xterm+noapp, from xterm #230 -TD
     44572+#      * add/use xterm+pce2 from xterm #230, in xterm+pcfkeys -TD
     44573+#
     44574+# 2008-04-19
     44575+#      * add screen.rxvt -TD
     44576+#
     44577+# 2008-04-28
     44578+#      * add screen+fkeys (prompted by Debian # 478094) -TD
     44579+#
    4198344580 # The following sets edit modes for GNU EMACS.
    4198444581 # Local Variables:
     
    4198644583diff -Naur ncurses-5.6.orig/mk-1st.awk ncurses-5.6/mk-1st.awk
    4198744584--- ncurses-5.6.orig/mk-1st.awk 2006-10-07 20:14:08.000000000 -0400
    41988 +++ ncurses-5.6/mk-1st.awk      2007-12-21 00:02:36.000000000 -0500
     44585+++ ncurses-5.6/mk-1st.awk      2008-06-18 06:49:44.000000000 -0400
    4198944586@@ -1,6 +1,6 @@
    4199044587-# $Id: mk-1st.awk,v 1.68 2006/10/08 00:14:08 tom Exp $
     
    4225344850diff -Naur ncurses-5.6.orig/mk-hdr.awk ncurses-5.6/mk-hdr.awk
    4225444851--- ncurses-5.6.orig/mk-hdr.awk 1969-12-31 19:00:00.000000000 -0500
    42255 +++ ncurses-5.6/mk-hdr.awk      2007-12-21 00:02:36.000000000 -0500
     44852+++ ncurses-5.6/mk-hdr.awk      2008-06-18 06:49:44.000000000 -0400
    4225644853@@ -0,0 +1,107 @@
    4225744854+# $Id: mk-hdr.awk,v 1.2 2007/03/31 15:48:45 tom Exp $
     
    4236444961diff -Naur ncurses-5.6.orig/mkdirs.sh ncurses-5.6/mkdirs.sh
    4236544962--- ncurses-5.6.orig/mkdirs.sh  1969-12-31 19:00:00.000000000 -0500
    42366 +++ ncurses-5.6/mkdirs.sh       2007-12-21 00:02:36.000000000 -0500
     44963+++ ncurses-5.6/mkdirs.sh       2008-06-18 06:49:44.000000000 -0400
    4236744964@@ -0,0 +1,51 @@
    4236844965+#! /bin/sh
     
    4246145058diff -Naur ncurses-5.6.orig/ncurses/Makefile.in ncurses-5.6/ncurses/Makefile.in
    4246245059--- ncurses-5.6.orig/ncurses/Makefile.in        2006-10-14 15:08:11.000000000 -0400
    42463 +++ ncurses-5.6/ncurses/Makefile.in     2007-12-21 00:02:36.000000000 -0500
     45060+++ ncurses-5.6/ncurses/Makefile.in     2008-06-18 06:49:44.000000000 -0400
    4246445061@@ -1,6 +1,6 @@
    4246545062-# $Id: Makefile.in,v 1.101 2006/10/14 19:08:11 tom Exp $
     
    4259645193diff -Naur ncurses-5.6.orig/ncurses/base/MKkeyname.awk ncurses-5.6/ncurses/base/MKkeyname.awk
    4259745194--- ncurses-5.6.orig/ncurses/base/MKkeyname.awk 2006-05-20 13:35:30.000000000 -0400
    42598 +++ ncurses-5.6/ncurses/base/MKkeyname.awk      2007-12-21 00:02:36.000000000 -0500
     45195+++ ncurses-5.6/ncurses/base/MKkeyname.awk      2008-06-18 06:49:51.000000000 -0400
    4259945196@@ -1,6 +1,6 @@
    4260045197-# $Id: MKkeyname.awk,v 1.30 2006/05/20 17:35:30 tom Exp $
    42601 +# $Id: MKkeyname.awk,v 1.38 2007/08/18 18:41:18 tom Exp $
     45198+# $Id: MKkeyname.awk,v 1.39 2008/05/31 19:54:58 tom Exp $
    4260245199 ##############################################################################
    4260345200-# Copyright (c) 1999-2005,2006 Free Software Foundation, Inc.                #
    42604 +# Copyright (c) 1999-2006,2007 Free Software Foundation, Inc.                #
     45201+# Copyright (c) 1999-2007,2008 Free Software Foundation, Inc.                #
    4260545202 #                                                                            #
    4260645203 # Permission is hereby granted, free of charge, to any person obtaining a    #
    4260745204 # copy of this software and associated documentation files (the "Software"), #
    42608 @@ -33,18 +33,39 @@
     45205@@ -33,20 +33,41 @@
    4260945206        print "#include <tic.h>"
    4261045207        print "#include <term_entry.h>"
     
    4264845245+       print "#define MyTable _nc_globals.keyname_table"
    4264945246        print ""
    42650         print "NCURSES_EXPORT(NCURSES_CONST char *) keyname (int c)"
     45247-       print "NCURSES_EXPORT(NCURSES_CONST char *) keyname (int c)"
     45248+       print "NCURSES_EXPORT(NCURSES_CONST char *) _nc_keyname (SCREEN *sp, int c)"
    4265145249        print "{"
     45250        print " int i;"
     45251        print " char name[20];"
    4265245252@@ -56,21 +77,30 @@
    4265345253        print " if (c == -1) {"
     
    4268845288        print "                                 p = name;"
    4268945289-       print "                                 if (cc >= 128) {"
    42690 +       print "                                 if (cc >= 128 && (SP == 0 || SP->_use_meta)) {"
     45290+       print "                                 if (cc >= 128 && (sp == 0 || sp->_use_meta)) {"
    4269145291        print "                                         strcpy(p, \"M-\");"
    4269245292        print "                                         p += 2;"
     
    4270445304        print "#if NCURSES_EXT_FUNCS && NCURSES_XNAMES"
    4270545305        print "         } else if (result == 0 && cur_term != 0) {"
    42706 @@ -111,24 +141,15 @@
     45306@@ -111,24 +141,20 @@
    4270745307        print " return result;"
    4270845308        print "}"
     
    4271045310-       print "#if USE_WIDEC_SUPPORT"
    4271145311-       print "NCURSES_EXPORT(NCURSES_CONST char *) key_name (wchar_t c)"
    42712 -       print "{"
     45312+       print "NCURSES_EXPORT(NCURSES_CONST char *) keyname (int c)"
     45313        print "{"
    4271345314-       print " NCURSES_CONST char *result = keyname((int)c);"
    4271445315-       print " if (!strncmp(result, \"M-\", 2)) result = 0;"
    4271545316-       print " return result;"
    42716 -       print "}"
     45317+       print "\treturn _nc_keyname(SP, c);"
     45318        print "}"
    4271745319-       print "#endif"
    42718 -       print ""
     45320        print ""
    4271945321        print "#if NO_LEAKS"
    4272045322        print "void _nc_keyname_leaks(void)"
     
    4273445336diff -Naur ncurses-5.6.orig/ncurses/base/MKlib_gen.sh ncurses-5.6/ncurses/base/MKlib_gen.sh
    4273545337--- ncurses-5.6.orig/ncurses/base/MKlib_gen.sh  2006-07-01 17:25:39.000000000 -0400
    42736 +++ ncurses-5.6/ncurses/base/MKlib_gen.sh       2007-12-21 00:02:36.000000000 -0500
     45338+++ ncurses-5.6/ncurses/base/MKlib_gen.sh       2008-06-18 06:49:45.000000000 -0400
    4273745339@@ -2,10 +2,10 @@
    4273845340 #
     
    4274045342 #
    4274145343-# ($Id: MKlib_gen.sh,v 1.27 2006/07/01 21:25:39 tom Exp $)
    42742 +# ($Id: MKlib_gen.sh,v 1.29 2007/08/18 13:17:14 tom Exp $)
     45344+# ($Id: MKlib_gen.sh,v 1.30 2008/01/05 23:21:10 tom Exp $)
    4274345345 #
    4274445346 ##############################################################################
    4274545347-# Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.                #
    42746 +# Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.                #
     45348+# Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.                #
    4274745349 #                                                                            #
    4274845350 # Permission is hereby granted, free of charge, to any person obtaining a    #
     
    4277045372 $preprocessor $TMP 2>/dev/null \
    4277145373 | sed \
     45374@@ -418,4 +422,5 @@
     45375 | sed \
     45376        -e 's/^.*T_CALLED.*returnCode( \([a-z].*) \));/ return \1;/' \
     45377        -e 's/^.*T_CALLED.*returnCode( \((wmove.*) \));/        return \1;/' \
     45378+       -e 's/gen_//' \
     45379 | sed -f $ED4
    4277245380diff -Naur ncurses-5.6.orig/ncurses/base/MKunctrl.awk ncurses-5.6/ncurses/base/MKunctrl.awk
    4277345381--- ncurses-5.6.orig/ncurses/base/MKunctrl.awk  2005-12-17 17:48:37.000000000 -0500
    42774 +++ ncurses-5.6/ncurses/base/MKunctrl.awk       2007-12-21 00:02:36.000000000 -0500
     45382+++ ncurses-5.6/ncurses/base/MKunctrl.awk       2008-06-18 06:49:51.000000000 -0400
    4277545383@@ -1,6 +1,6 @@
    4277645384-# $Id: MKunctrl.awk,v 1.11 2005/12/17 22:48:37 tom Exp $
    42777 +# $Id: MKunctrl.awk,v 1.14 2007/07/28 21:13:21 tom Exp $
     45385+# $Id: MKunctrl.awk,v 1.22 2008/05/31 19:36:11 tom Exp $
    4277845386 ##############################################################################
    4277945387-# Copyright (c) 1998-2004,2005 Free Software Foundation, Inc.                #
    42780 +# Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.                #
     45388+# Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.                #
    4278145389 #                                                                            #
    4278245390 # Permission is hereby granted, free of charge, to any person obtaining a    #
    4278345391 # copy of this software and associated documentation files (the "Software"), #
    42784 @@ -42,63 +42,111 @@
    42785                 print "NCURSES_EXPORT(NCURSES_CONST char *) unctrl (register chtype ch)"
     45392@@ -27,81 +27,164 @@
     45393 # authorization.                                                             #
     45394 ##############################################################################
     45395 #
     45396-# Author: Thomas E. Dickey <dickey@clark.net> 1997
     45397+# Author: Thomas E. Dickey (1997-on)
     45398 #
     45399 
     45400 BEGIN  {
     45401                print "/* generated by MKunctrl.awk */"
     45402                print ""
     45403                print "#include <curses.priv.h>"
     45404+               print "#include <ctype.h>"
     45405+               print ""
     45406+               print "#if USE_WIDEC_SUPPORT"
     45407+               print "#if HAVE_WCTYPE_H"
     45408+               print "#include <wctype.h>"
     45409+               print "#endif"
     45410+               print "#endif"
     45411                print ""
     45412                print "#undef unctrl"
     45413                print ""
     45414        }
     45415 END    {
     45416-               print "NCURSES_EXPORT(NCURSES_CONST char *) unctrl (register chtype ch)"
     45417+               print "NCURSES_EXPORT(NCURSES_CONST char *) _nc_unctrl (SCREEN *sp, chtype ch)"
    4278645418                print "{"
    4278745419 
     
    4281845450+                               part = sprintf("~\\%03o", ch - 64);
    4281945451+                               offset = offset + 3;
     45452+                       } else if (ch == 255) {
     45453+                               part = "~?";
     45454+                               offset = offset + 3;
     45455+                       } else if (ch >= 160) {
     45456+                               part = sprintf("M-\\%03o", ch - 128);
     45457+                               offset = offset + 4;
    4282045458                        } else {
    4282145459-                               printf "\"\\%03o\"", ch
     
    4283945477 
    4284045478                print ""
    42841                 print "#if NCURSES_EXT_FUNCS"
     45479-               print "#if NCURSES_EXT_FUNCS"
    4284245480-               printf "static const char* const table2[] = {"
     45481-               for ( ch = 128; ch < 160; ch++ ) {
    4284345482+               if (bigstrings) {
    42844 +                       blob = blob "\n#if NCURSES_EXT_FUNCS"
     45483+                       blob = blob "\n/* printable values in 128-255 range */"
    4284545484+                       printf "static const short unctrl_c1[] = {"
    4284645485+               } else {
    4284745486+                       printf "static const char* const unctrl_c1[] = {"
    4284845487+               }
    42849                 for ( ch = 128; ch < 160; ch++ ) {
     45488+               for ( ch = 128; ch < 256; ch++ ) {
    4285045489                        gap = ","
    4285145490-                       if ((ch % 8) == 0)
     
    4286745506+                                       gap = gap " "
    4286845507+                       } else {
    42869 +                               if (ch >= 128 && ch < 160) {
     45508+                               if (ch >= 128) {
    4287045509+                                       printf "\"\\%03o\"", ch
    4287145510+                                       gap = gap " "
     
    4288445523                }
    4288545524                print "};"
    42886                 print "#endif /* NCURSES_EXT_FUNCS */"
    42887 +               blob = blob "\"\n#endif /* NCURSES_EXT_FUNCS */\n"
     45525-               print "#endif /* NCURSES_EXT_FUNCS */"
     45526+               blob = blob "\"\n"
    4288845527 
    4288945528                print ""
     45529-               print "\tint check = ChCharOf(ch);"
     45530-               print "\tconst char *result;"
     45531-               print ""
     45532-               print "\tif (check >= 0 && check < (int)SIZEOF(table)) {"
     45533-               print "#if NCURSES_EXT_FUNCS"
     45534-               print "\t\tif ((SP != 0)"
     45535-               print "\t\t && (SP->_legacy_coding > 1)"
     45536-               print "\t\t && (check >= 128)"
     45537-               print "\t\t && (check < 160))"
     45538-               print "\t\t\tresult = table2[check - 128];"
     45539-               print "\t\telse"
     45540-               print "#endif /* NCURSES_EXT_FUNCS */"
     45541-               print "\t\t\tresult = table[check];"
     45542-               print "\t} else {"
     45543-               print "\t\tresult = 0;"
     45544-               print "\t}"
     45545-               print "\treturn (NCURSES_CONST char *)result;"
     45546-               print "}"
    4289045547+               if (bigstrings) {
    4289145548+                       print "static const char unctrl_blob[] = "blob";"
     
    4289545552+                       stringname = "unctrl"
    4289645553+               }
    42897                 print "\tint check = ChCharOf(ch);"
    42898                 print "\tconst char *result;"
    42899                 print ""
    42900 -               print "\tif (check >= 0 && check < (int)SIZEOF(table)) {"
    42901 +               print "\tif (check >= 0 && check < (int)SIZEOF(unctrl_table)) {"
    42902                 print "#if NCURSES_EXT_FUNCS"
    42903                 print "\t\tif ((SP != 0)"
    42904                 print "\t\t && (SP->_legacy_coding > 1)"
    42905                 print "\t\t && (check >= 128)"
    42906                 print "\t\t && (check < 160))"
    42907 -               print "\t\t\tresult = table2[check - 128];"
     45554+               print  "\tint check = ChCharOf(ch);"
     45555+               print  "\tconst char *result;"
     45556+               print  ""
     45557+               print  "\tif (check >= 0 && check < (int)SIZEOF(unctrl_table)) {"
     45558+               print  "#if NCURSES_EXT_FUNCS"
     45559+               print  "\t\tif ((sp != 0)"
     45560+               print  "\t\t && (sp->_legacy_coding > 1)"
     45561+               print  "\t\t && (check >= 128)"
     45562+               print  "\t\t && (check < 160))"
    4290845563+               printf "\t\t\tresult = %s_c1[check - 128];\n", stringname;
    42909                 print "\t\telse"
    42910                 print "#endif /* NCURSES_EXT_FUNCS */"
    42911 -               print "\t\t\tresult = table[check];"
     45564+               print  "\t\telse"
     45565+               print  "#if USE_WIDEC_SUPPORT"
     45566+               print  "\t\tif ((check >= 160)"
     45567+               print  "\t\t && (check < 256)"
     45568+               print  "\t\t && ((sp != 0)"
     45569+               print  "\t\t  && ((sp->_legacy_coding > 0)"
     45570+               print  "\t\t   || (sp->_legacy_coding == 0"
     45571+               print  "\t\t       && (isprint(check) || iswprint(check))))))"
     45572+               printf "\t\t\tresult = %s_c1[check - 128];\n", stringname;
     45573+               print  "\t\telse"
     45574+               print  "#else"
     45575+               print  "\t\tif ((check >= 160)"
     45576+               print  "\t\t && (check < 256)"
     45577+               print  "\t\t && ((sp != 0)"
     45578+               print  "\t\t  && ((sp->_legacy_coding > 0)"
     45579+               print  "\t\t   || (sp->_legacy_coding == 0"
     45580+               print  "\t\t       && isprint(check)))))"
     45581+               printf "\t\t\tresult = %s_c1[check - 128];\n", stringname;
     45582+               print  "\t\telse"
     45583+               print  "#endif /* USE_WIDEC_SUPPORT */"
     45584+               print  "#endif /* NCURSES_EXT_FUNCS */"
    4291245585+               printf "\t\t\tresult = %s_table[check];\n", stringname;
    42913                 print "\t} else {"
    42914                 print "\t\tresult = 0;"
    42915                 print "\t}"
     45586+               print  "\t} else {"
     45587+               print  "\t\tresult = 0;"
     45588+               print  "\t}"
     45589+               print  "\treturn (NCURSES_CONST char *)result;"
     45590+               print  "}"
     45591+               print  ""
     45592+               print  "NCURSES_EXPORT(NCURSES_CONST char *) unctrl (chtype ch)"
     45593+               print  "{"
     45594+               print  "\treturn _nc_unctrl(SP, ch);"
     45595+               print  "}"
     45596        }
    4291645597diff -Naur ncurses-5.6.orig/ncurses/base/define_key.c ncurses-5.6/ncurses/base/define_key.c
    4291745598--- ncurses-5.6.orig/ncurses/base/define_key.c  2006-06-17 14:19:48.000000000 -0400
    42918 +++ ncurses-5.6/ncurses/base/define_key.c       2007-12-21 00:02:36.000000000 -0500
     45599+++ ncurses-5.6/ncurses/base/define_key.c       2008-06-18 06:49:44.000000000 -0400
    4291945600@@ -32,7 +32,7 @@
    4292045601 
     
    4295345634diff -Naur ncurses-5.6.orig/ncurses/base/key_defined.c ncurses-5.6/ncurses/base/key_defined.c
    4295445635--- ncurses-5.6.orig/ncurses/base/key_defined.c 2003-05-17 19:12:27.000000000 -0400
    42955 +++ ncurses-5.6/ncurses/base/key_defined.c      2007-12-21 00:02:36.000000000 -0500
     45636+++ ncurses-5.6/ncurses/base/key_defined.c      2008-06-18 06:49:44.000000000 -0400
    4295645637@@ -1,5 +1,5 @@
    4295745638 /****************************************************************************
     
    4300945690diff -Naur ncurses-5.6.orig/ncurses/base/keyok.c ncurses-5.6/ncurses/base/keyok.c
    4301045691--- ncurses-5.6.orig/ncurses/base/keyok.c       2006-06-17 14:18:43.000000000 -0400
    43011 +++ ncurses-5.6/ncurses/base/keyok.c    2007-12-21 00:02:36.000000000 -0500
     45692+++ ncurses-5.6/ncurses/base/keyok.c    2008-06-18 06:49:44.000000000 -0400
    4301245693@@ -27,12 +27,12 @@
    4301345694  ****************************************************************************/
     
    4305045731        }
    4305145732     }
     45733diff -Naur ncurses-5.6.orig/ncurses/base/lib_addch.c ncurses-5.6/ncurses/base/lib_addch.c
     45734--- ncurses-5.6.orig/ncurses/base/lib_addch.c   2006-10-14 16:31:19.000000000 -0400
     45735+++ ncurses-5.6/ncurses/base/lib_addch.c        2008-06-18 06:49:50.000000000 -0400
     45736@@ -1,5 +1,5 @@
     45737 /****************************************************************************
     45738- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
     45739+ * Copyright (c) 1998-2006,2008 Free Software Foundation, Inc.              *
     45740  *                                                                          *
     45741  * Permission is hereby granted, free of charge, to any person obtaining a  *
     45742  * copy of this software and associated documentation files (the            *
     45743@@ -36,7 +36,7 @@
     45744 #include <curses.priv.h>
     45745 #include <ctype.h>
     45746 
     45747-MODULE_ID("$Id: lib_addch.c,v 1.104 2006/10/14 20:31:19 tom Exp $")
     45748+MODULE_ID("$Id: lib_addch.c,v 1.112 2008/05/17 19:08:40 Miroslav.Lichvar Exp $")
     45749 
     45750 static const NCURSES_CH_T blankchar = NewChar(BLANK_TEXT);
     45751 
     45752@@ -217,19 +217,19 @@
     45753                       buffer,
     45754                       WINDOW_EXT(win, addch_used), &state)) > 0) {
     45755        attr_t attrs = AttrOf(CHDEREF(ch));
     45756+       if_EXT_COLORS(int pair = GetPair(CHDEREF(ch)));
     45757        SetChar(CHDEREF(ch), result, attrs);
     45758+       if_EXT_COLORS(SetPair(CHDEREF(ch), pair));
     45759+       WINDOW_EXT(win, addch_used) = 0;
     45760+    } else if (len == -1) {
     45761+       /*
     45762+        * An error occurred.  We could either discard everything,
     45763+        * or assume that the error was in the previous input.
     45764+        * Try the latter.
     45765+        */
     45766+       TR(TRACE_VIRTPUT, ("Alert! mbrtowc returns error"));
     45767+       /* handle this with unctrl() */
     45768        WINDOW_EXT(win, addch_used) = 0;
     45769-    } else {
     45770-       if (len == -1) {
     45771-           /*
     45772-            * An error occurred.  We could either discard everything,
     45773-            * or assume that the error was in the previous input.
     45774-            * Try the latter.
     45775-            */
     45776-           TR(TRACE_VIRTPUT, ("Alert! mbrtowc returns error"));
     45777-           buffer[0] = CharOf(CHDEREF(ch));
     45778-           WINDOW_EXT(win, addch_used) = 1;
     45779-       }
     45780     }
     45781     return len;
     45782 }
     45783@@ -264,13 +264,16 @@
     45784        if (WINDOW_EXT(win, addch_used) != 0 || !Charable(ch)) {
     45785            int len = _nc_build_wch(win, CHREF(ch));
     45786 
     45787-           if (len > 0) {
     45788+           if (len >= -1) {
     45789+               /* handle EILSEQ */
     45790                if (is8bits(CharOf(ch))) {
     45791                    const char *s = unctrl((chtype) CharOf(ch));
     45792                    if (s[1] != 0) {
     45793                        return waddstr(win, s);
     45794                    }
     45795                }
     45796+               if (len == -1)
     45797+                   return waddch(win, ' ');
     45798            } else {
     45799                return OK;
     45800            }
     45801@@ -287,12 +290,15 @@
     45802        int len = wcwidth(CharOf(ch));
     45803        int i;
     45804        int j;
     45805+       wchar_t *chars;
     45806 
     45807        if (len == 0) {         /* non-spacing */
     45808            if ((x > 0 && y >= 0)
     45809-               || ((y = win->_cury - 1) >= 0 &&
     45810-                   (x = win->_maxx) > 0)) {
     45811-               wchar_t *chars = (win->_line[y].text[x - 1].chars);
     45812+               || (win->_maxx >= 0 && win->_cury >= 1)) {
     45813+               if (x > 0 && y >= 0)
     45814+                   chars = (win->_line[y].text[x - 1].chars);
     45815+               else
     45816+                   chars = (win->_line[y - 1].text[win->_maxx].chars);
     45817                for (i = 0; i < CCHARW_MAX; ++i) {
     45818                    if (chars[i] == 0) {
     45819                        TR(TRACE_VIRTPUT,
     45820@@ -473,6 +479,7 @@
     45821        while (*s) {
     45822            NCURSES_CH_T sch;
     45823            SetChar(sch, *s++, AttrOf(ch));
     45824+           if_EXT_COLORS(SetPair(sch, GetPair(ch)));
     45825            if (waddch_literal(win, sch) == ERR)
     45826                return ERR;
     45827        }
    4305245828diff -Naur ncurses-5.6.orig/ncurses/base/lib_addstr.c ncurses-5.6/ncurses/base/lib_addstr.c
    4305345829--- ncurses-5.6.orig/ncurses/base/lib_addstr.c  2006-05-27 15:22:19.000000000 -0400
    43054 +++ ncurses-5.6/ncurses/base/lib_addstr.c       2007-12-21 00:02:36.000000000 -0500
     45830+++ ncurses-5.6/ncurses/base/lib_addstr.c       2008-06-18 06:49:44.000000000 -0400
    4305545831@@ -1,5 +1,5 @@
    4305645832 /****************************************************************************
     
    4310845884        n = _nc_wchstrlen(astr);
    4310945885     }
     45886diff -Naur ncurses-5.6.orig/ncurses/base/lib_bkgd.c ncurses-5.6/ncurses/base/lib_bkgd.c
     45887--- ncurses-5.6.orig/ncurses/base/lib_bkgd.c    2006-05-27 15:20:11.000000000 -0400
     45888+++ ncurses-5.6/ncurses/base/lib_bkgd.c 2008-06-18 06:49:48.000000000 -0400
     45889@@ -1,5 +1,5 @@
     45890 /****************************************************************************
     45891- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
     45892+ * Copyright (c) 1998-2006,2008 Free Software Foundation, Inc.              *
     45893  *                                                                          *
     45894  * Permission is hereby granted, free of charge, to any person obtaining a  *
     45895  * copy of this software and associated documentation files (the            *
     45896@@ -36,7 +36,7 @@
     45897 
     45898 #include <curses.priv.h>
     45899 
     45900-MODULE_ID("$Id: lib_bkgd.c,v 1.35 2006/05/27 19:20:11 tom Exp $")
     45901+MODULE_ID("$Id: lib_bkgd.c,v 1.36 2008/03/23 00:09:14 tom Exp $")
     45902 
     45903 /*
     45904  * Set the window's background information.
     45905@@ -70,7 +70,7 @@
     45906 
     45907        if (CharOf(CHDEREF(ch)) == L('\0')) {
     45908            SetChar(win->_nc_bkgd, BLANK_TEXT, AttrOf(CHDEREF(ch)));
     45909-           SetPair(win->_nc_bkgd, GetPair(CHDEREF(ch)));
     45910+           if_EXT_COLORS(SetPair(win->_nc_bkgd, GetPair(CHDEREF(ch))));
     45911        } else {
     45912            win->_nc_bkgd = CHDEREF(ch);
     45913        }
    4311045914diff -Naur ncurses-5.6.orig/ncurses/base/lib_color.c ncurses-5.6/ncurses/base/lib_color.c
    4311145915--- ncurses-5.6.orig/ncurses/base/lib_color.c   2006-11-25 20:33:16.000000000 -0500
    43112 +++ ncurses-5.6/ncurses/base/lib_color.c        2007-12-21 00:02:36.000000000 -0500
     45916+++ ncurses-5.6/ncurses/base/lib_color.c        2008-06-18 06:49:44.000000000 -0400
    4311345917@@ -1,5 +1,5 @@
    4311445918 /****************************************************************************
     
    4322646030diff -Naur ncurses-5.6.orig/ncurses/base/lib_delwin.c ncurses-5.6/ncurses/base/lib_delwin.c
    4322746031--- ncurses-5.6.orig/ncurses/base/lib_delwin.c  2001-08-25 20:40:20.000000000 -0400
    43228 +++ ncurses-5.6/ncurses/base/lib_delwin.c       2007-12-21 00:02:36.000000000 -0500
     46032+++ ncurses-5.6/ncurses/base/lib_delwin.c       2008-06-18 06:49:51.000000000 -0400
    4322946033@@ -1,5 +1,5 @@
    4323046034 /****************************************************************************
    4323146035- * Copyright (c) 1998,2000,2001 Free Software Foundation, Inc.              *
    43232 + * Copyright (c) 1998-2001,2007 Free Software Foundation, Inc.              *
     46036+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4323346037  *                                                                          *
    4323446038  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    4323946043 
    4324046044-MODULE_ID("$Id: lib_delwin.c,v 1.13 2001/08/26 00:40:20 tom Exp $")
    43241 +MODULE_ID("$Id: lib_delwin.c,v 1.14 2007/11/03 20:24:15 tom Exp $")
     46045+MODULE_ID("$Id: lib_delwin.c,v 1.17 2008/06/07 14:10:56 tom Exp $")
    4324246046 
    4324346047 static bool
    4324446048 cannot_delete(WINDOW *win)
    43245 @@ -63,16 +63,23 @@
     46049@@ -48,7 +48,7 @@
     46050     WINDOWLIST *p;
     46051     bool result = TRUE;
     46052 
     46053-    for (p = _nc_windows; p != 0; p = p->next) {
     46054+    for (each_window(p)) {
     46055        if (&(p->win) == win) {
     46056            result = FALSE;
     46057        } else if ((p->win._flags & _SUBWIN) != 0
     46058@@ -63,16 +63,24 @@
    4324646059 NCURSES_EXPORT(int)
    4324746060 delwin(WINDOW *win)
     
    4325146064     T((T_CALLED("delwin(%p)"), win));
    4325246065 
    43253 +    _nc_lock_global(windowlist);
    43254      if (win == 0
     46066-    if (win == 0
    4325546067-       || cannot_delete(win))
    4325646068-       returnCode(ERR);
     
    4326046072-    else if (curscr != 0)
    4326146073-       touchwin(curscr);
    43262 +       || cannot_delete(win)) {
    43263 +       result = ERR;
    43264 +    } else {
    43265 +
    43266 +       if (win->_flags & _SUBWIN)
    43267 +           touchwin(win->_parent);
    43268 +       else if (curscr != 0)
    43269 +           touchwin(curscr);
     46074+    if (_nc_try_global(curses) == 0) {
     46075+       if (win == 0
     46076+           || cannot_delete(win)) {
     46077+           result = ERR;
     46078+       } else {
     46079+
     46080+           if (win->_flags & _SUBWIN)
     46081+               touchwin(win->_parent);
     46082+           else if (curscr != 0)
     46083+               touchwin(curscr);
    4327046084 
    4327146085-    returnCode(_nc_freewin(win));
    43272 +       result = _nc_freewin(win);
     46086+           result = _nc_freewin(win);
     46087+       }
     46088+       _nc_unlock_global(curses);
    4327346089+    }
    43274 +    _nc_unlock_global(windowlist);
    4327546090+    returnCode(result);
    4327646091 }
    4327746092diff -Naur ncurses-5.6.orig/ncurses/base/lib_freeall.c ncurses-5.6/ncurses/base/lib_freeall.c
    4327846093--- ncurses-5.6.orig/ncurses/base/lib_freeall.c 2006-12-02 17:36:43.000000000 -0500
    43279 +++ ncurses-5.6/ncurses/base/lib_freeall.c      2007-12-21 00:02:36.000000000 -0500
     46094+++ ncurses-5.6/ncurses/base/lib_freeall.c      2008-06-18 06:49:51.000000000 -0400
    4328046095@@ -1,5 +1,5 @@
    4328146096 /****************************************************************************
    4328246097- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    43283 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     46098+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4328446099  *                                                                          *
    4328546100  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    4329946114 
    4330046115-MODULE_ID("$Id: lib_freeall.c,v 1.38 2006/12/02 22:36:43 tom Exp $")
    43301 +MODULE_ID("$Id: lib_freeall.c,v 1.44 2007/06/02 19:40:25 tom Exp $")
     46116+MODULE_ID("$Id: lib_freeall.c,v 1.47 2008/06/07 13:58:29 tom Exp $")
    4330246117 
    4330346118 /*
    4330446119  * Free all ncurses data.  This is used for testing only (there's no practical
    43305 @@ -50,14 +50,14 @@
     46120@@ -50,23 +50,27 @@
    4330646121 _nc_freeall(void)
    4330746122 {
     
    4332246137 #endif
    4332346138     if (SP != 0) {
    43324 @@ -83,32 +83,23 @@
     46139+       _nc_lock_global(curses);
     46140+
     46141        while (_nc_windows != 0) {
     46142+           bool deleted = FALSE;
     46143+
     46144            /* Delete only windows that're not a parent */
     46145-           for (p = _nc_windows; p != 0; p = p->next) {
     46146+           for (each_window(p)) {
     46147                bool found = FALSE;
     46148 
     46149-               for (q = _nc_windows; q != 0; q = q->next) {
     46150+               for (each_window(q)) {
     46151                    if ((p != q)
     46152                        && (q->win._flags & _SUBWIN)
     46153                        && (&(p->win) == q->win._parent)) {
     46154@@ -76,39 +80,38 @@
     46155                }
     46156 
     46157                if (!found) {
     46158-                   delwin(&(p->win));
     46159+                   if (delwin(&(p->win)) != ERR)
     46160+                       deleted = TRUE;
     46161                    break;
     46162                }
     46163            }
     46164+
     46165+           /*
     46166+            * Don't continue to loop if the list is trashed.
     46167+            */
     46168+           if (!deleted)
     46169+               break;
    4332546170        }
    4332646171        delscreen(SP);
     46172+       _nc_unlock_global(curses);
    4332746173     }
    4332846174-#if NO_LEAKS
     
    4336646212diff -Naur ncurses-5.6.orig/ncurses/base/lib_getch.c ncurses-5.6/ncurses/base/lib_getch.c
    4336746213--- ncurses-5.6.orig/ncurses/base/lib_getch.c   2006-03-04 15:06:09.000000000 -0500
    43368 +++ ncurses-5.6/ncurses/base/lib_getch.c        2007-12-21 00:02:36.000000000 -0500
     46214+++ ncurses-5.6/ncurses/base/lib_getch.c        2008-06-18 06:49:51.000000000 -0400
    4336946215@@ -1,5 +1,5 @@
    4337046216 /****************************************************************************
    4337146217- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    43372 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     46218+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4337346219  *                                                                          *
    4337446220  * Permission is hereby granted, free of charge, to any person obtaining a  *
    4337546221  * copy of this software and associated documentation files (the            *
    43376 @@ -41,12 +41,20 @@
     46222@@ -41,12 +41,47 @@
    4337746223 
    4337846224 #include <curses.priv.h>
    4337946225 
    4338046226-MODULE_ID("$Id: lib_getch.c,v 1.75 2006/03/04 20:06:09 tom Exp $")
    43381 +MODULE_ID("$Id: lib_getch.c,v 1.80 2007/09/29 20:39:34 tom Exp $")
     46227+MODULE_ID("$Id: lib_getch.c,v 1.95 2008/06/07 15:52:51 tom Exp $")
    4338246228 
    4338346229 #include <fifo_defs.h>
    4338446230 
    4338546231+#if USE_REENTRANT
     46232+#define GetEscdelay(sp) (sp)->_ESCDELAY
    4338646233+NCURSES_EXPORT(int)
    4338746234+NCURSES_PUBLIC_VAR(ESCDELAY) (void)
    4338846235+{
    43389 +    return SP ? SP->_ESCDELAY : 1000;
     46236+    return SP ? GetEscdelay(SP) : 1000;
    4339046237+}
    4339146238+#else
     46239+#define GetEscdelay(sp) ESCDELAY
    4339246240 NCURSES_EXPORT_VAR(int)
    4339346241 ESCDELAY = 1000;               /* max interval betw. chars in funkeys, in millisecs */
    4339446242+#endif
     46243+
     46244+#if NCURSES_EXT_FUNCS
     46245+NCURSES_EXPORT(int)
     46246+set_escdelay(int value)
     46247+{
     46248+    int code = OK;
     46249+#if USE_REENTRANT
     46250+    if (SP) {
     46251+       SP->_ESCDELAY = value;
     46252+    } else {
     46253+       code = ERR;
     46254+    }
     46255+#else
     46256+    ESCDELAY = value;
     46257+#endif
     46258+    return code;
     46259+}
     46260+#endif
     46261+
     46262+static int
     46263+_nc_use_meta(WINDOW *win)
     46264+{
     46265+    SCREEN *sp = _nc_screen_of(win);
     46266+    return (sp ? sp->_use_meta : 0);
     46267+}
    4339546268 
    4339646269 #ifdef NCURSES_WGETCH_EVENTS
    4339746270 #define TWAIT_MASK 7
    43398 @@ -104,8 +112,10 @@
     46271@@ -58,20 +93,20 @@
     46272  * Check for mouse activity, returning nonzero if we find any.
     46273  */
     46274 static int
     46275-check_mouse_activity(int delay EVENTLIST_2nd(_nc_eventlist * evl))
     46276+check_mouse_activity(SCREEN *sp, int delay EVENTLIST_2nd(_nc_eventlist * evl))
     46277 {
     46278     int rc;
     46279 
     46280 #if USE_SYSMOUSE
     46281-    if ((SP->_mouse_type == M_SYSMOUSE)
     46282-       && (SP->_sysmouse_head < SP->_sysmouse_tail)) {
     46283+    if ((sp->_mouse_type == M_SYSMOUSE)
     46284+       && (sp->_sysmouse_head < sp->_sysmouse_tail)) {
     46285        return 2;
     46286     }
     46287 #endif
     46288-    rc = _nc_timed_wait(TWAIT_MASK, delay, (int *) 0 EVENTLIST_2nd(evl));
     46289+    rc = _nc_timed_wait(sp, TWAIT_MASK, delay, (int *) 0 EVENTLIST_2nd(evl));
     46290 #if USE_SYSMOUSE
     46291-    if ((SP->_mouse_type == M_SYSMOUSE)
     46292-       && (SP->_sysmouse_head < SP->_sysmouse_tail)
     46293+    if ((sp->_mouse_type == M_SYSMOUSE)
     46294+       && (sp->_sysmouse_head < sp->_sysmouse_tail)
     46295        && (rc == 0)
     46296        && (errno == EINTR)) {
     46297        rc |= 2;
     46298@@ -81,9 +116,9 @@
     46299 }
     46300 
     46301 static NCURSES_INLINE int
     46302-fifo_peek(void)
     46303+fifo_peek(SCREEN *sp)
     46304 {
     46305-    int ch = SP->_fifo[peek];
     46306+    int ch = sp->_fifo[peek];
     46307     TR(TRACE_IEVENT, ("peeking at %d", peek));
     46308 
     46309     p_inc();
     46310@@ -91,11 +126,11 @@
     46311 }
     46312 
     46313 static NCURSES_INLINE int
     46314-fifo_pull(void)
     46315+fifo_pull(SCREEN *sp)
     46316 {
     46317     int ch;
     46318-    ch = SP->_fifo[head];
     46319-    TR(TRACE_IEVENT, ("pulling %s from %d", _tracechar(ch), head));
     46320+    ch = sp->_fifo[head];
     46321+    TR(TRACE_IEVENT, ("pulling %s from %d", _nc_tracechar(sp, ch), head));
     46322 
     46323     if (peek == head) {
     46324        h_inc();
     46325@@ -104,14 +139,16 @@
    4339946326        h_inc();
    4340046327 
    4340146328 #ifdef TRACE
    4340246329-    if (_nc_tracing & TRACE_IEVENT)
     46330-       _nc_fifo_dump();
    4340346331+    if (USE_TRACEF(TRACE_IEVENT)) {
    43404         _nc_fifo_dump();
     46332+       _nc_fifo_dump(sp);
    4340546333+       _nc_unlock_global(tracef);
    4340646334+    }
     
    4340846336     return ch;
    4340946337 }
    43410 @@ -200,8 +210,10 @@
     46338 
     46339 static NCURSES_INLINE int
     46340-fifo_push(EVENTLIST_0th(_nc_eventlist * evl))
     46341+fifo_push(SCREEN *sp EVENTLIST_2nd(_nc_eventlist * evl))
     46342 {
     46343     int n;
     46344     int ch = 0;
     46345@@ -129,47 +166,47 @@
     46346 #ifdef NCURSES_WGETCH_EVENTS
     46347     if (evl
     46348 #if USE_GPM_SUPPORT || USE_EMX_MOUSE || USE_SYSMOUSE
     46349-       || (SP->_mouse_fd >= 0)
     46350+       || (sp->_mouse_fd >= 0)
     46351 #endif
     46352        ) {
     46353-       mask = check_mouse_activity(-1 EVENTLIST_2nd(evl));
     46354+       mask = check_mouse_activity(sp, -1 EVENTLIST_2nd(evl));
     46355     } else
     46356        mask = 0;
     46357 
     46358     if (mask & 4) {
     46359        T(("fifo_push: ungetch KEY_EVENT"));
     46360-       ungetch(KEY_EVENT);
     46361+       _nc_ungetch(sp, KEY_EVENT);
     46362        return KEY_EVENT;
     46363     }
     46364 #elif USE_GPM_SUPPORT || USE_EMX_MOUSE || USE_SYSMOUSE
     46365-    if (SP->_mouse_fd >= 0) {
     46366-       mask = check_mouse_activity(-1 EVENTLIST_2nd(evl));
     46367+    if (sp->_mouse_fd >= 0) {
     46368+       mask = check_mouse_activity(sp, -1 EVENTLIST_2nd(evl));
     46369     }
     46370 #endif
     46371 
     46372 #if USE_GPM_SUPPORT || USE_EMX_MOUSE
     46373-    if ((SP->_mouse_fd >= 0) && (mask & 2)) {
     46374-       SP->_mouse_event(SP);
     46375+    if ((sp->_mouse_fd >= 0) && (mask & 2)) {
     46376+       sp->_mouse_event(sp);
     46377        ch = KEY_MOUSE;
     46378        n = 1;
     46379     } else
     46380 #endif
     46381 #if USE_SYSMOUSE
     46382-       if ((SP->_mouse_type == M_SYSMOUSE)
     46383-           && (SP->_sysmouse_head < SP->_sysmouse_tail)) {
     46384-       SP->_mouse_event(SP);
     46385+       if ((sp->_mouse_type == M_SYSMOUSE)
     46386+           && (sp->_sysmouse_head < sp->_sysmouse_tail)) {
     46387+       sp->_mouse_event(sp);
     46388        ch = KEY_MOUSE;
     46389        n = 1;
     46390-    } else if ((SP->_mouse_type == M_SYSMOUSE)
     46391+    } else if ((sp->_mouse_type == M_SYSMOUSE)
     46392               && (mask <= 0) && errno == EINTR) {
     46393-       SP->_mouse_event(SP);
     46394+       sp->_mouse_event(sp);
     46395        ch = KEY_MOUSE;
     46396        n = 1;
     46397     } else
     46398 #endif
     46399     {                          /* Can block... */
     46400        unsigned char c2 = 0;
     46401-       n = read(SP->_ifd, &c2, 1);
     46402+       n = read(sp->_ifd, &c2, 1);
     46403        ch = c2;
     46404     }
     46405 
     46406@@ -188,37 +225,85 @@
     46407 #endif
     46408 
     46409     if ((n == -1) || (n == 0)) {
     46410-       TR(TRACE_IEVENT, ("read(%d,&ch,1)=%d, errno=%d", SP->_ifd, n, errno));
     46411+       TR(TRACE_IEVENT, ("read(%d,&ch,1)=%d, errno=%d", sp->_ifd, n, errno));
     46412        ch = ERR;
     46413     }
     46414     TR(TRACE_IEVENT, ("read %d characters", n));
     46415 
     46416-    SP->_fifo[tail] = ch;
     46417-    SP->_fifohold = 0;
     46418+    sp->_fifo[tail] = ch;
     46419+    sp->_fifohold = 0;
     46420     if (head == -1)
     46421        head = peek = tail;
    4341146422     t_inc();
    43412      TR(TRACE_IEVENT, ("pushed %s at %d", _tracechar(ch), tail));
     46423-    TR(TRACE_IEVENT, ("pushed %s at %d", _tracechar(ch), tail));
     46424+    TR(TRACE_IEVENT, ("pushed %s at %d", _nc_tracechar(sp, ch), tail));
    4341346425 #ifdef TRACE
    4341446426-    if (_nc_tracing & TRACE_IEVENT)
     46427-       _nc_fifo_dump();
    4341546428+    if (USE_TRACEF(TRACE_IEVENT)) {
    43416         _nc_fifo_dump();
     46429+       _nc_fifo_dump(sp);
    4341746430+       _nc_unlock_global(tracef);
    4341846431+    }
     
    4342046433     return ch;
    4342146434 }
    43422 @@ -234,15 +246,16 @@
     46435 
     46436 static NCURSES_INLINE void
     46437-fifo_clear(void)
     46438+fifo_clear(SCREEN *sp)
     46439 {
     46440-    memset(SP->_fifo, 0, sizeof(SP->_fifo));
     46441+    memset(sp->_fifo, 0, sizeof(sp->_fifo));
     46442     head = -1;
     46443     tail = peek = 0;
     46444 }
     46445 
     46446-static int kgetch(EVENTLIST_0th(_nc_eventlist * evl));
     46447+static int kgetch(SCREEN *EVENTLIST_2nd(_nc_eventlist * evl));
     46448+
     46449+static void
     46450+recur_wrefresh(WINDOW *win)
     46451+{
     46452+#ifdef USE_PTHREADS
     46453+    SCREEN *sp = _nc_screen_of(win);
     46454+    if (sp != SP) {
     46455+       SCREEN *save_SP;
     46456+
     46457+       /* temporarily switch to the window's screen to check/refresh */
     46458+       _nc_lock_global(curses);
     46459+       save_SP = SP;
     46460+       SP = sp;
     46461+       recur_wrefresh(win);
     46462+       SP = save_SP;
     46463+       _nc_unlock_global(curses);
     46464+    } else
     46465+#endif
     46466+       if ((is_wintouched(win) || (win->_flags & _HASMOVED))
     46467+           && !(win->_flags & _ISPAD)) {
     46468+       wrefresh(win);
     46469+    }
     46470+}
     46471+
     46472+static int
     46473+recur_wgetnstr(WINDOW *win, char *buf)
     46474+{
     46475+    SCREEN *sp = _nc_screen_of(win);
     46476+    int rc;
     46477 
     46478-#define wgetch_should_refresh(win) (\
     46479-       (is_wintouched(win) || (win->_flags & _HASMOVED)) \
     46480-       && !(win->_flags & _ISPAD))
     46481+#ifdef USE_PTHREADS
     46482+    if (sp != SP) {
     46483+       SCREEN *save_SP;
     46484+
     46485+       /* temporarily switch to the window's screen to get cooked input */
     46486+       _nc_lock_global(curses);
     46487+       save_SP = SP;
     46488+       SP = sp;
     46489+       rc = recur_wgetnstr(win, buf);
     46490+       SP = save_SP;
     46491+       _nc_unlock_global(curses);
     46492+    } else
     46493+#endif
     46494+    {
     46495+       sp->_called_wgetch = TRUE;
     46496+       rc = wgetnstr(win, buf, MAXCOLUMNS);
     46497+       sp->_called_wgetch = FALSE;
     46498+    }
     46499+    return rc;
     46500+}
     46501 
     46502 NCURSES_EXPORT(int)
     46503 _nc_wgetch(WINDOW *win,
     46504@@ -226,6 +311,7 @@
     46505           int use_meta
     46506           EVENTLIST_2nd(_nc_eventlist * evl))
     46507 {
     46508+    SCREEN *sp;
     46509     int ch;
     46510 #ifdef NCURSES_WGETCH_EVENTS
     46511     long event_delay = -1;
     46512@@ -234,15 +320,16 @@
    4342346513     T((T_CALLED("_nc_wgetch(%p)"), win));
    4342446514 
    4342546515     *result = 0;
    4342646516-    if (win == 0 || SP == 0)
    43427 +    if (win == 0 || SP == 0) {
     46517+
     46518+    sp = _nc_screen_of(win);
     46519+    if (win == 0 || sp == 0) {
    4342846520        returnCode(ERR);
    4342946521+    }
    4343046522 
    4343146523     if (cooked_key_in_fifo()) {
    43432         if (wgetch_should_refresh(win))
    43433             wrefresh(win);
    43434  
    43435         *result = fifo_pull();
     46524-       if (wgetch_should_refresh(win))
     46525-           wrefresh(win);
     46526-
     46527-       *result = fifo_pull();
    4343646528-       returnCode(OK);
     46529+       recur_wrefresh(win);
     46530+       *result = fifo_pull(sp);
    4343746531+       returnCode(*result >= KEY_MIN ? KEY_CODE_YES : OK);
    4343846532     }
    4343946533 #ifdef NCURSES_WGETCH_EVENTS
    4344046534     if (evl && (evl->count == 0))
    43441 @@ -281,12 +294,10 @@
     46535@@ -256,53 +343,48 @@
     46536      * the first character to return it.
     46537      */
     46538     if (head == -1 &&
     46539-       !SP->_notty &&
     46540-       !SP->_raw &&
     46541-       !SP->_cbreak &&
     46542-       !SP->_called_wgetch) {
     46543-       char buf[MAXCOLUMNS], *sp;
     46544+       !sp->_notty &&
     46545+       !sp->_raw &&
     46546+       !sp->_cbreak &&
     46547+       !sp->_called_wgetch) {
     46548+       char buf[MAXCOLUMNS], *bufp;
     46549        int rc;
     46550 
     46551        TR(TRACE_IEVENT, ("filling queue in cooked mode"));
     46552 
     46553-       SP->_called_wgetch = TRUE;
     46554-       rc = wgetnstr(win, buf, MAXCOLUMNS);
     46555-       SP->_called_wgetch = FALSE;
     46556+       rc = recur_wgetnstr(win, buf);
     46557 
     46558        /* ungetch in reverse order */
     46559 #ifdef NCURSES_WGETCH_EVENTS
     46560        if (rc != KEY_EVENT)
     46561 #endif
     46562-           ungetch('\n');
     46563-       for (sp = buf + strlen(buf); sp > buf; sp--)
     46564-           ungetch(sp[-1]);
     46565+           _nc_ungetch(sp, '\n');
     46566+       for (bufp = buf + strlen(buf); bufp > buf; bufp--)
     46567+           _nc_ungetch(sp, bufp[-1]);
     46568 
     46569 #ifdef NCURSES_WGETCH_EVENTS
    4344246570        /* Return it first */
    4344346571        if (rc == KEY_EVENT) {
     
    4345046578-       *result = fifo_pull();
    4345146579-       returnCode(OK);
    43452 +           *result = fifo_pull();
     46580+           *result = fifo_pull(sp);
    4345346581+       returnCode(*result >= KEY_MIN ? KEY_CODE_YES : OK);
    4345446582     }
    4345546583 
    43456      if (win->_use_keypad != SP->_keypad_on)
    43457 @@ -318,7 +329,7 @@
     46584-    if (win->_use_keypad != SP->_keypad_on)
     46585-       _nc_keypad(win->_use_keypad);
     46586+    if (win->_use_keypad != sp->_keypad_on)
     46587+       _nc_keypad(sp, win->_use_keypad);
     46588 
     46589-    if (wgetch_should_refresh(win))
     46590-       wrefresh(win);
     46591+    recur_wrefresh(win);
     46592 
     46593-    if (!win->_notimeout && (win->_delay >= 0 || SP->_cbreak > 1)) {
     46594+    if (!win->_notimeout && (win->_delay >= 0 || sp->_cbreak > 1)) {
     46595        if (head == -1) {       /* fifo is empty */
     46596            int delay;
     46597            int rc;
     46598 
     46599            TR(TRACE_IEVENT, ("timed delay in wgetch()"));
     46600-           if (SP->_cbreak > 1)
     46601-               delay = (SP->_cbreak - 1) * 100;
     46602+           if (sp->_cbreak > 1)
     46603+               delay = (sp->_cbreak - 1) * 100;
     46604            else
     46605                delay = win->_delay;
     46606 
     46607@@ -313,16 +395,17 @@
     46608 
     46609            TR(TRACE_IEVENT, ("delay is %d milliseconds", delay));
     46610 
     46611-           rc = check_mouse_activity(delay EVENTLIST_2nd(evl));
     46612+           rc = check_mouse_activity(sp, delay EVENTLIST_2nd(evl));
     46613 
    4345846614 #ifdef NCURSES_WGETCH_EVENTS
    4345946615            if (rc & 4) {
     
    4346346619            }
    4346446620 #endif
    43465             if (!rc)
    43466 @@ -384,7 +395,7 @@
     46621-           if (!rc)
     46622+           if (!rc) {
     46623                returnCode(ERR);
     46624+           }
     46625        }
     46626        /* else go on to read data available */
     46627     }
     46628@@ -343,23 +426,23 @@
     46629        int rc;
     46630 
     46631        do {
     46632-           ch = kgetch(EVENTLIST_1st(evl));
     46633+           ch = kgetch(sp EVENTLIST_2nd(evl));
     46634            if (ch == KEY_MOUSE) {
     46635                ++runcount;
     46636-               if (SP->_mouse_inline(SP))
     46637+               if (sp->_mouse_inline(sp))
     46638                    break;
     46639            }
     46640-           if (SP->_maxclick < 0)
     46641+           if (sp->_maxclick < 0)
     46642                break;
     46643        } while
     46644            (ch == KEY_MOUSE
     46645-            && (((rc = check_mouse_activity(SP->_maxclick
     46646+            && (((rc = check_mouse_activity(sp, sp->_maxclick
     46647                                             EVENTLIST_2nd(evl))) != 0
     46648                  && !(rc & 4))
     46649-                || !SP->_mouse_parse(runcount)));
     46650+                || !sp->_mouse_parse(sp, runcount)));
     46651 #ifdef NCURSES_WGETCH_EVENTS
     46652        if ((rc & 4) && !ch == KEY_EVENT) {
     46653-           ungetch(ch);
     46654+           _nc_ungetch(sp, ch);
     46655            ch = KEY_EVENT;
     46656        }
     46657 #endif
     46658@@ -367,28 +450,28 @@
     46659 #ifdef NCURSES_WGETCH_EVENTS
     46660            /* mouse event sequence ended by an event, report event */
     46661            if (ch == KEY_EVENT) {
     46662-               ungetch(KEY_MOUSE);     /* FIXME This interrupts a gesture... */
     46663+               _nc_ungetch(sp, KEY_MOUSE);     /* FIXME This interrupts a gesture... */
     46664            } else
     46665 #endif
     46666            {
     46667                /* mouse event sequence ended by keystroke, store keystroke */
     46668-               ungetch(ch);
     46669+               _nc_ungetch(sp, ch);
     46670                ch = KEY_MOUSE;
     46671            }
     46672        }
     46673     } else {
     46674        if (head == -1)
     46675-           fifo_push(EVENTLIST_1st(evl));
     46676-       ch = fifo_pull();
     46677+           fifo_push(sp EVENTLIST_2nd(evl));
     46678+       ch = fifo_pull(sp);
     46679     }
    4346746680 
    4346846681     if (ch == ERR) {
    4346946682 #if USE_SIZECHANGE
    4347046683-       if (SP->_sig_winch) {
    43471 +       if (_nc_handle_sigwinch(FALSE)) {
    43472             _nc_update_screensize();
     46684-           _nc_update_screensize();
     46685+       if (_nc_handle_sigwinch(sp)) {
     46686+           _nc_update_screensize(sp);
    4347346687            /* resizeterm can push KEY_RESIZE */
    4347446688            if (cooked_key_in_fifo()) {
    43475 @@ -493,7 +504,7 @@
     46689-               *result = fifo_pull();
     46690+               *result = fifo_pull(sp);
     46691                returnCode(*result >= KEY_MIN ? KEY_CODE_YES : OK);
     46692            }
     46693        }
     46694@@ -414,7 +497,7 @@
     46695      * However, we provide the same visual result as Solaris, moving the
     46696      * cursor to the left.
     46697      */
     46698-    if (SP->_echo && !(win->_flags & _ISPAD)) {
     46699+    if (sp->_echo && !(win->_flags & _ISPAD)) {
     46700        chtype backup = (ch == KEY_BACKSPACE) ? '\b' : ch;
     46701        if (backup < KEY_MIN)
     46702            wechochar(win, backup);
     46703@@ -423,7 +506,7 @@
     46704     /*
     46705      * Simulate ICRNL mode
     46706      */
     46707-    if ((ch == '\r') && SP->_nl)
     46708+    if ((ch == '\r') && sp->_nl)
     46709        ch = '\n';
     46710 
     46711     /* Strip 8th-bit if so desired.  We do this only for characters that
     46712@@ -435,7 +518,7 @@
     46713        if ((ch < KEY_MIN) && (ch & 0x80))
     46714            ch &= 0x7f;
     46715 
     46716-    T(("wgetch returning : %s", _tracechar(ch)));
     46717+    T(("wgetch returning : %s", _nc_tracechar(sp, ch)));
     46718 
     46719     *result = ch;
     46720     returnCode(ch >= KEY_MIN ? KEY_CODE_YES : OK);
     46721@@ -451,7 +534,7 @@
     46722     T((T_CALLED("wgetch_events(%p,%p)"), win, evl));
     46723     code = _nc_wgetch(win,
     46724                      &value,
     46725-                     SP->_use_meta
     46726+                     _nc_use_meta(win)
     46727                      EVENTLIST_2nd(evl));
     46728     if (code != ERR)
     46729        code = value;
     46730@@ -468,7 +551,7 @@
     46731     T((T_CALLED("wgetch(%p)"), win));
     46732     code = _nc_wgetch(win,
     46733                      &value,
     46734-                     (SP ? SP->_use_meta : 0)
     46735+                     _nc_use_meta(win)
     46736                      EVENTLIST_2nd((_nc_eventlist *) 0));
     46737     if (code != ERR)
     46738        code = value;
     46739@@ -491,21 +574,21 @@
     46740 */
     46741 
    4347646742 static int
    43477  kgetch(EVENTLIST_0th(_nc_eventlist * evl))
     46743-kgetch(EVENTLIST_0th(_nc_eventlist * evl))
     46744+kgetch(SCREEN *sp EVENTLIST_2nd(_nc_eventlist * evl))
    4347846745 {
    4347946746-    struct tries *ptr;
    4348046747+    TRIES *ptr;
    4348146748     int ch = 0;
    43482      int timeleft = ESCDELAY;
     46749-    int timeleft = ESCDELAY;
     46750+    int timeleft = GetEscdelay(sp);
     46751 
     46752     TR(TRACE_IEVENT, ("kgetch() called"));
     46753 
     46754-    ptr = SP->_keytry;
     46755+    ptr = sp->_keytry;
     46756 
     46757     for (;;) {
     46758-       if (cooked_key_in_fifo() && SP->_fifo[head] >= KEY_MIN) {
     46759+       if (cooked_key_in_fifo() && sp->_fifo[head] >= KEY_MIN) {
     46760            break;
     46761        } else if (!raw_key_in_fifo()) {
     46762-           ch = fifo_push(EVENTLIST_1st(evl));
     46763+           ch = fifo_push(sp EVENTLIST_2nd(evl));
     46764            if (ch == ERR) {
     46765                peek = head;    /* the keys stay uninterpreted */
     46766                return ERR;
     46767@@ -513,12 +596,12 @@
     46768 #ifdef NCURSES_WGETCH_EVENTS
     46769            else if (ch == KEY_EVENT) {
     46770                peek = head;    /* the keys stay uninterpreted */
     46771-               return fifo_pull();     /* Remove KEY_EVENT from the queue */
     46772+               return fifo_pull(sp);   /* Remove KEY_EVENT from the queue */
     46773            }
     46774 #endif
     46775        }
     46776 
     46777-       ch = fifo_peek();
     46778+       ch = fifo_peek(sp);
     46779        if (ch >= KEY_MIN) {
     46780            /* If not first in queue, somebody put this key there on purpose in
     46781             * emergency.  Consider it higher priority than the unfinished
     46782@@ -530,7 +613,7 @@
     46783            return ch;
     46784        }
     46785 
     46786-       TR(TRACE_IEVENT, ("ch: %s", _tracechar((unsigned char) ch)));
     46787+       TR(TRACE_IEVENT, ("ch: %s", _nc_tracechar(sp, (unsigned char) ch)));
     46788        while ((ptr != NULL) && (ptr->ch != (unsigned char) ch))
     46789            ptr = ptr->sibling;
     46790 
     46791@@ -544,7 +627,7 @@
     46792        if (ptr->value != 0) {  /* sequence terminated */
     46793            TR(TRACE_IEVENT, ("end of sequence"));
     46794            if (peek == tail)
     46795-               fifo_clear();
     46796+               fifo_clear(sp);
     46797            else
     46798                head = peek;
     46799            return (ptr->value);
     46800@@ -556,7 +639,7 @@
     46801            int rc;
     46802 
     46803            TR(TRACE_IEVENT, ("waiting for rest of sequence"));
     46804-           rc = check_mouse_activity(timeleft EVENTLIST_2nd(evl));
     46805+           rc = check_mouse_activity(sp, timeleft EVENTLIST_2nd(evl));
     46806 #ifdef NCURSES_WGETCH_EVENTS
     46807            if (rc & 4) {
     46808                TR(TRACE_IEVENT, ("interrupted by a user event"));
     46809@@ -571,7 +654,7 @@
     46810            }
     46811        }
     46812     }
     46813-    ch = fifo_pull();
     46814+    ch = fifo_pull(sp);
     46815     peek = head;
     46816     return ch;
     46817 }
     46818diff -Naur ncurses-5.6.orig/ncurses/base/lib_getstr.c ncurses-5.6/ncurses/base/lib_getstr.c
     46819--- ncurses-5.6.orig/ncurses/base/lib_getstr.c  2006-01-11 19:33:52.000000000 -0500
     46820+++ ncurses-5.6/ncurses/base/lib_getstr.c       2008-06-18 06:49:51.000000000 -0400
     46821@@ -1,5 +1,5 @@
     46822 /****************************************************************************
     46823- * Copyright (c) 1998-2002,2006 Free Software Foundation, Inc.              *
     46824+ * Copyright (c) 1998-2006,2008 Free Software Foundation, Inc.              *
     46825  *                                                                          *
     46826  * Permission is hereby granted, free of charge, to any person obtaining a  *
     46827  * copy of this software and associated documentation files (the            *
     46828@@ -41,7 +41,7 @@
     46829 #include <curses.priv.h>
     46830 #include <term.h>
     46831 
     46832-MODULE_ID("$Id: lib_getstr.c,v 1.25 2006/01/12 00:33:52 tom Exp $")
     46833+MODULE_ID("$Id: lib_getstr.c,v 1.26 2008/05/31 22:05:15 tom Exp $")
     46834 
     46835 /*
     46836  * This wipes out the last character, no matter whether it was a tab, control
     46837@@ -75,6 +75,7 @@
     46838                int maxlen,
     46839                EVENTLIST_1st(_nc_eventlist * evl))
     46840 {
     46841+    SCREEN *sp = _nc_screen_of(win);
     46842     TTY buf;
     46843     bool oldnl, oldecho, oldraw, oldcbreak;
     46844     char erasec;
     46845@@ -90,10 +91,10 @@
     46846 
     46847     _nc_get_tty_mode(&buf);
     46848 
     46849-    oldnl = SP->_nl;
     46850-    oldecho = SP->_echo;
     46851-    oldraw = SP->_raw;
     46852-    oldcbreak = SP->_cbreak;
     46853+    oldnl = sp->_nl;
     46854+    oldecho = sp->_echo;
     46855+    oldraw = sp->_raw;
     46856+    oldcbreak = sp->_cbreak;
     46857     nl();
     46858     noecho();
     46859     noraw();
     46860@@ -187,10 +188,10 @@
     46861     /* Restore with a single I/O call, to fix minor asymmetry between
     46862      * raw/noraw, etc.
     46863      */
     46864-    SP->_nl = oldnl;
     46865-    SP->_echo = oldecho;
     46866-    SP->_raw = oldraw;
     46867-    SP->_cbreak = oldcbreak;
     46868+    sp->_nl = oldnl;
     46869+    sp->_echo = oldecho;
     46870+    sp->_raw = oldraw;
     46871+    sp->_cbreak = oldcbreak;
     46872 
     46873     _nc_set_tty_mode(&buf);
    4348346874 
    4348446875diff -Naur ncurses-5.6.orig/ncurses/base/lib_initscr.c ncurses-5.6/ncurses/base/lib_initscr.c
    4348546876--- ncurses-5.6.orig/ncurses/base/lib_initscr.c 2005-10-22 16:30:38.000000000 -0400
    43486 +++ ncurses-5.6/ncurses/base/lib_initscr.c      2007-12-21 00:02:36.000000000 -0500
     46877+++ ncurses-5.6/ncurses/base/lib_initscr.c      2008-06-18 06:49:51.000000000 -0400
    4348746878@@ -1,5 +1,5 @@
    4348846879 /****************************************************************************
    4348946880- * Copyright (c) 1998-2003,2005 Free Software Foundation, Inc.              *
    43490 + * Copyright (c) 1998-2005,2007 Free Software Foundation, Inc.              *
     46881+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4349146882  *                                                                          *
    4349246883  * Permission is hereby granted, free of charge, to any person obtaining a  *
    4349346884  * copy of this software and associated documentation files (the            *
    43494 @@ -45,19 +45,18 @@
     46885@@ -45,19 +45,22 @@
    4349546886 #include <sys/termio.h>                /* needed for ISC */
    4349646887 #endif
    4349746888 
    4349846889-MODULE_ID("$Id: lib_initscr.c,v 1.34 2005/10/22 20:30:38 tom Exp $")
    43499 +MODULE_ID("$Id: lib_initscr.c,v 1.35 2007/04/21 20:43:02 tom Exp $")
     46890+MODULE_ID("$Id: lib_initscr.c,v 1.37 2008/06/07 14:00:12 tom Exp $")
    4350046891 
    4350146892 NCURSES_EXPORT(WINDOW *)
     
    4350346894 {
    4350446895-    static bool initialized = FALSE;
     46896+    WINDOW *result;
     46897+
    4350546898     NCURSES_CONST char *name;
    4350646899 
    4350746900     START_TRACE();
    4350846901     T((T_CALLED("initscr()")));
     46902+
     46903+    _nc_lock_global(curses);
    4350946904     /* Portable applications must not call initscr() more than once */
    4351046905-    if (!initialized) {
     
    4351546910        if ((name = getenv("TERM")) == 0
    4351646911            || *name == '\0')
     46912@@ -87,5 +90,8 @@
     46913        /* def_shell_mode - done in newterm/_nc_setupscreen */
     46914        def_prog_mode();
     46915     }
     46916-    returnWin(stdscr);
     46917+    result = stdscr;
     46918+    _nc_unlock_global(curses);
     46919+
     46920+    returnWin(result);
     46921 }
     46922diff -Naur ncurses-5.6.orig/ncurses/base/lib_insch.c ncurses-5.6/ncurses/base/lib_insch.c
     46923--- ncurses-5.6.orig/ncurses/base/lib_insch.c   2005-02-26 14:27:28.000000000 -0500
     46924+++ ncurses-5.6/ncurses/base/lib_insch.c        2008-06-18 06:49:46.000000000 -0400
     46925@@ -1,5 +1,5 @@
     46926 /****************************************************************************
     46927- * Copyright (c) 1998-2004,2005 Free Software Foundation, Inc.              *
     46928+ * Copyright (c) 1998-2005,2008 Free Software Foundation, Inc.              *
     46929  *                                                                          *
     46930  * Permission is hereby granted, free of charge, to any person obtaining a  *
     46931  * copy of this software and associated documentation files (the            *
     46932@@ -43,7 +43,7 @@
     46933 #include <curses.priv.h>
     46934 #include <ctype.h>
     46935 
     46936-MODULE_ID("$Id: lib_insch.c,v 1.24 2005/02/26 19:27:28 tom Exp $")
     46937+MODULE_ID("$Id: lib_insch.c,v 1.25 2008/02/03 00:14:37 tom Exp $")
     46938 
     46939 /*
     46940  * Insert the given character, updating the current location to simplify
     46941@@ -95,7 +95,8 @@
     46942        } else if (is8bits(ChCharOf(ch)) && iscntrl(ChCharOf(ch))) {
     46943            s = unctrl(ChCharOf(ch));
     46944            while (*s != '\0') {
     46945-               if ((code = _nc_insert_ch(win, ChAttrOf(ch) | UChar(*s))) != OK)
     46946+               code = _nc_insert_ch(win, ChAttrOf(ch) | UChar(*s));
     46947+               if (code != OK)
     46948                    break;
     46949                ++s;
     46950            }
     46951@@ -107,8 +108,23 @@
     46952             */
     46953            SetChar2(wch, ch);
     46954            wch = _nc_render(win, wch);
     46955-           if (_nc_build_wch(win, &wch) >= 0)
     46956+           count = _nc_build_wch(win, &wch);
     46957+           if (count > 0) {
     46958                code = wins_wch(win, &wch);
     46959+           } else if (count == -1) {
     46960+               /* handle EILSEQ */
     46961+               if (is8bits(ch)) {
     46962+                   s = unctrl(ChCharOf(ch));
     46963+                   while (*s != '\0') {
     46964+                       code = _nc_insert_ch(win, ChAttrOf(ch) | UChar(*s));
     46965+                       if (code != OK)
     46966+                           break;
     46967+                       ++s;
     46968+                   }
     46969+               } else {
     46970+                   code = ERR;
     46971+               }
     46972+           }
     46973        }
     46974 #endif
     46975        break;
    4351746976diff -Naur ncurses-5.6.orig/ncurses/base/lib_instr.c ncurses-5.6/ncurses/base/lib_instr.c
    4351846977--- ncurses-5.6.orig/ncurses/base/lib_instr.c   2005-11-19 20:38:03.000000000 -0500
    43519 +++ ncurses-5.6/ncurses/base/lib_instr.c        2007-12-21 00:02:36.000000000 -0500
     46978+++ ncurses-5.6/ncurses/base/lib_instr.c        2008-06-18 06:49:44.000000000 -0400
    4352046979@@ -1,5 +1,5 @@
    4352146980 /****************************************************************************
     
    4355647015diff -Naur ncurses-5.6.orig/ncurses/base/lib_mouse.c ncurses-5.6/ncurses/base/lib_mouse.c
    4355747016--- ncurses-5.6.orig/ncurses/base/lib_mouse.c   2006-11-25 17:30:28.000000000 -0500
    43558 +++ ncurses-5.6/ncurses/base/lib_mouse.c        2007-12-21 00:02:36.000000000 -0500
     47017+++ ncurses-5.6/ncurses/base/lib_mouse.c        2008-06-18 06:49:51.000000000 -0400
    4355947018@@ -1,5 +1,5 @@
    4356047019 /****************************************************************************
    4356147020- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    43562 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     47021+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4356347022  *                                                                          *
    4356447023  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    4356947028 
    4357047029-MODULE_ID("$Id: lib_mouse.c,v 1.85 2006/11/25 22:30:28 tom Exp $")
    43571 +MODULE_ID("$Id: lib_mouse.c,v 1.88 2007/09/29 21:50:04 tom Exp $")
     47030+MODULE_ID("$Id: lib_mouse.c,v 1.94 2008/05/31 20:30:10 tom Exp $")
    4357247031 
    4357347032 #include <term.h>
    4357447033 #include <tic.h>
    43575 @@ -403,11 +403,11 @@
     47034@@ -154,34 +154,34 @@
     47035 
     47036 #endif                         /* USE_GPM_SUPPORT */
     47037 
     47038-static bool _nc_mouse_parse(int);
     47039+static bool _nc_mouse_parse(SCREEN *, int);
     47040 static void _nc_mouse_resume(SCREEN *);
     47041 static void _nc_mouse_wrap(SCREEN *);
     47042 
     47043 /* maintain a circular list of mouse events */
     47044 
     47045 #undef  NEXT
     47046-#define NEXT(ep)       ((ep == SP->_mouse_events + EV_MAX - 1) \
     47047-                        ? SP->_mouse_events \
     47048+#define NEXT(ep)       ((ep == sp->_mouse_events + EV_MAX - 1) \
     47049+                        ? sp->_mouse_events \
     47050                         : ep + 1)
     47051 
     47052 #undef  PREV
     47053-#define PREV(ep)       ((ep == SP->_mouse_events) \
     47054-                        ? SP->_mouse_events + EV_MAX - 1 \
     47055+#define PREV(ep)       ((ep == sp->_mouse_events) \
     47056+                        ? sp->_mouse_events + EV_MAX - 1 \
     47057                         : ep - 1)
     47058 
     47059 #ifdef TRACE
     47060 static void
     47061-_trace_slot(const char *tag)
     47062+_trace_slot(SCREEN *sp, const char *tag)
     47063 {
     47064     MEVENT *ep;
     47065 
     47066     _tracef(tag);
     47067 
     47068-    for (ep = SP->_mouse_events; ep < SP->_mouse_events + EV_MAX; ep++)
     47069+    for (ep = sp->_mouse_events; ep < sp->_mouse_events + EV_MAX; ep++)
     47070        _tracef("mouse event queue slot %ld = %s",
     47071-               (long) (ep - SP->_mouse_events),
     47072-               _tracemouse(ep));
     47073+               (long) (ep - sp->_mouse_events),
     47074+               _nc_tracemouse(sp, ep));
     47075 }
     47076 #endif
     47077 
     47078@@ -193,7 +193,7 @@
     47079 #  define M_FD(sp) sp->_mouse_fd
     47080 
     47081 static void
     47082-write_event(int down, int button, int x, int y)
     47083+write_event(SCREEN *sp, int down, int button, int x, int y)
     47084 {
     47085     char buf[6];
     47086     unsigned long ignore;
     47087@@ -202,12 +202,13 @@
     47088     buf[3] = ' ' + (button - 1) + (down ? 0 : 0x40);
     47089     buf[4] = ' ' + x - LEFT_COL + 1;
     47090     buf[5] = ' ' + y - TOP_ROW + 1;
     47091-    DosWrite(SP->_emxmouse_wfd, buf, 6, &ignore);
     47092+    DosWrite(sp->_emxmouse_wfd, buf, 6, &ignore);
     47093 }
     47094 
     47095 static void
     47096-mouse_server(unsigned long ignored GCC_UNUSED)
     47097+mouse_server(unsigned long param)
     47098 {
     47099+    SCREEN *sp = (SCREEN *) param;
     47100     unsigned short fWait = MOU_WAIT;
     47101     /* NOPTRRECT mourt = { 0,0,24,79 }; */
     47102     MOUEVENTINFO mouev;
     47103@@ -234,7 +235,7 @@
     47104                    sprintf(err, "Error reading mouse queue, rc=%lu.\r\n", rc);
     47105                    break;
     47106                }
     47107-               if (!SP->_emxmouse_activated)
     47108+               if (!sp->_emxmouse_activated)
     47109                    goto finish;
     47110 
     47111                /*
     47112@@ -246,13 +247,13 @@
     47113                 */
     47114                if ((mouev.fs ^ oldstate) & MOUSE_BN1_DOWN)
     47115                    write_event(mouev.fs & MOUSE_BN1_DOWN,
     47116-                               SP->_emxmouse_buttons[1], mouev.col, mouev.row);
     47117+                               sp->_emxmouse_buttons[1], mouev.col, mouev.row);
     47118                if ((mouev.fs ^ oldstate) & MOUSE_BN2_DOWN)
     47119                    write_event(mouev.fs & MOUSE_BN2_DOWN,
     47120-                               SP->_emxmouse_buttons[3], mouev.col, mouev.row);
     47121+                               sp->_emxmouse_buttons[3], mouev.col, mouev.row);
     47122                if ((mouev.fs ^ oldstate) & MOUSE_BN3_DOWN)
     47123                    write_event(mouev.fs & MOUSE_BN3_DOWN,
     47124-                               SP->_emxmouse_buttons[2], mouev.col, mouev.row);
     47125+                               sp->_emxmouse_buttons[2], mouev.col, mouev.row);
     47126 
     47127              finish:
     47128                oldstate = mouev.fs;
     47129@@ -271,81 +272,87 @@
     47130 
     47131 #if USE_SYSMOUSE
     47132 static void
     47133-handle_sysmouse(int sig GCC_UNUSED)
     47134+sysmouse_server(SCREEN *sp)
     47135 {
     47136     struct mouse_info the_mouse;
     47137     MEVENT *work;
     47138 
     47139     the_mouse.operation = MOUSE_GETINFO;
     47140-    if (SP != 0
     47141-       && SP->_mouse_fd >= 0
     47142-       && SP->_sysmouse_tail < FIFO_SIZE
     47143-       && ioctl(SP->_mouse_fd, CONS_MOUSECTL, &the_mouse) != -1) {
     47144-
     47145-       if (SP->_sysmouse_head > SP->_sysmouse_tail) {
     47146-           SP->_sysmouse_tail = 0;
     47147-           SP->_sysmouse_head = 0;
     47148+    if (sp != 0
     47149+       && sp->_mouse_fd >= 0
     47150+       && sp->_sysmouse_tail < FIFO_SIZE
     47151+       && ioctl(sp->_mouse_fd, CONS_MOUSECTL, &the_mouse) != -1) {
     47152+
     47153+       if (sp->_sysmouse_head > sp->_sysmouse_tail) {
     47154+           sp->_sysmouse_tail = 0;
     47155+           sp->_sysmouse_head = 0;
     47156        }
     47157-       work = &(SP->_sysmouse_fifo[SP->_sysmouse_tail]);
     47158+       work = &(sp->_sysmouse_fifo[sp->_sysmouse_tail]);
     47159        memset(work, 0, sizeof(*work));
     47160        work->id = NORMAL_EVENT;        /* there's only one mouse... */
     47161 
     47162-       SP->_sysmouse_old_buttons = SP->_sysmouse_new_buttons;
     47163-       SP->_sysmouse_new_buttons = the_mouse.u.data.buttons & 0x7;
     47164+       sp->_sysmouse_old_buttons = sp->_sysmouse_new_buttons;
     47165+       sp->_sysmouse_new_buttons = the_mouse.u.data.buttons & 0x7;
     47166 
     47167-       if (SP->_sysmouse_new_buttons) {
     47168-           if (SP->_sysmouse_new_buttons & 1)
     47169+       if (sp->_sysmouse_new_buttons) {
     47170+           if (sp->_sysmouse_new_buttons & 1)
     47171                work->bstate |= BUTTON1_PRESSED;
     47172-           if (SP->_sysmouse_new_buttons & 2)
     47173+           if (sp->_sysmouse_new_buttons & 2)
     47174                work->bstate |= BUTTON2_PRESSED;
     47175-           if (SP->_sysmouse_new_buttons & 4)
     47176+           if (sp->_sysmouse_new_buttons & 4)
     47177                work->bstate |= BUTTON3_PRESSED;
     47178        } else {
     47179-           if (SP->_sysmouse_old_buttons & 1)
     47180+           if (sp->_sysmouse_old_buttons & 1)
     47181                work->bstate |= BUTTON1_RELEASED;
     47182-           if (SP->_sysmouse_old_buttons & 2)
     47183+           if (sp->_sysmouse_old_buttons & 2)
     47184                work->bstate |= BUTTON2_RELEASED;
     47185-           if (SP->_sysmouse_old_buttons & 4)
     47186+           if (sp->_sysmouse_old_buttons & 4)
     47187                work->bstate |= BUTTON3_RELEASED;
     47188        }
     47189 
     47190        /* for cosmetic bug in syscons.c on FreeBSD 3.[34] */
     47191        the_mouse.operation = MOUSE_HIDE;
     47192-       ioctl(SP->_mouse_fd, CONS_MOUSECTL, &the_mouse);
     47193+       ioctl(sp->_mouse_fd, CONS_MOUSECTL, &the_mouse);
     47194        the_mouse.operation = MOUSE_SHOW;
     47195-       ioctl(SP->_mouse_fd, CONS_MOUSECTL, &the_mouse);
     47196+       ioctl(sp->_mouse_fd, CONS_MOUSECTL, &the_mouse);
     47197 
     47198        /*
     47199         * We're only interested if the button is pressed or released.
     47200         * FIXME: implement continuous event-tracking.
     47201         */
     47202-       if (SP->_sysmouse_new_buttons != SP->_sysmouse_old_buttons) {
     47203-           SP->_sysmouse_tail += 1;
     47204+       if (sp->_sysmouse_new_buttons != sp->_sysmouse_old_buttons) {
     47205+           sp->_sysmouse_tail += 1;
     47206        }
     47207-       work->x = the_mouse.u.data.x / SP->_sysmouse_char_width;
     47208-       work->y = the_mouse.u.data.y / SP->_sysmouse_char_height;
     47209+       work->x = the_mouse.u.data.x / sp->_sysmouse_char_width;
     47210+       work->y = the_mouse.u.data.y / sp->_sysmouse_char_height;
     47211     }
     47212 }
     47213+
     47214+static void
     47215+handle_sysmouse(int sig GCC_UNUSED)
     47216+{
     47217+    sysmouse_server(SP);
     47218+}
     47219 #endif /* USE_SYSMOUSE */
     47220 
     47221 static void
     47222-init_xterm_mouse(void)
     47223+init_xterm_mouse(SCREEN *sp)
     47224 {
     47225-    SP->_mouse_type = M_XTERM;
     47226-    SP->_mouse_xtermcap = tigetstr("XM");
     47227-    if (!VALID_STRING(SP->_mouse_xtermcap))
     47228-       SP->_mouse_xtermcap = "\033[?1000%?%p1%{1}%=%th%el%;";
     47229+    sp->_mouse_type = M_XTERM;
     47230+    sp->_mouse_xtermcap = tigetstr("XM");
     47231+    if (!VALID_STRING(sp->_mouse_xtermcap))
     47232+       sp->_mouse_xtermcap = "\033[?1000%?%p1%{1}%=%th%el%;";
     47233 }
     47234 
     47235 static void
     47236-enable_xterm_mouse(int enable)
     47237+enable_xterm_mouse(SCREEN *sp, int enable)
     47238 {
     47239 #if USE_EMX_MOUSE
     47240-    SP->_emxmouse_activated = enable;
     47241+    sp->_emxmouse_activated = enable;
     47242 #else
     47243-    putp(TPARM_1(SP->_mouse_xtermcap, enable));
     47244+    putp(TPARM_1(sp->_mouse_xtermcap, enable));
     47245 #endif
     47246-    SP->_mouse_active = enable;
     47247+    sp->_mouse_active = enable;
     47248 }
     47249 
     47250 #if USE_GPM_SUPPORT
     47251@@ -366,19 +373,19 @@
     47252 }
     47253 
     47254 static bool
     47255-enable_gpm_mouse(int enable)
     47256+enable_gpm_mouse(SCREEN *sp, int enable)
     47257 {
     47258     bool result;
     47259 
     47260     T((T_CALLED("enable_gpm_mouse(%d)"), enable));
     47261 
     47262-    if (enable && !SP->_mouse_active) {
     47263+    if (enable && !sp->_mouse_active) {
     47264        /* GPM: initialize connection to gpm server */
     47265-       SP->_mouse_gpm_connect.eventMask = GPM_DOWN | GPM_UP;
     47266-       SP->_mouse_gpm_connect.defaultMask =
     47267-           ~(SP->_mouse_gpm_connect.eventMask | GPM_HARD);
     47268-       SP->_mouse_gpm_connect.minMod = 0;
     47269-       SP->_mouse_gpm_connect.maxMod =
     47270+       sp->_mouse_gpm_connect.eventMask = GPM_DOWN | GPM_UP;
     47271+       sp->_mouse_gpm_connect.defaultMask =
     47272+           ~(sp->_mouse_gpm_connect.eventMask | GPM_HARD);
     47273+       sp->_mouse_gpm_connect.minMod = 0;
     47274+       sp->_mouse_gpm_connect.maxMod =
     47275            (unsigned short) (~((1 << KG_SHIFT) |
     47276                                (1 << KG_SHIFTL) |
     47277                                (1 << KG_SHIFTR)));
     47278@@ -387,14 +394,14 @@
     47279         * The former is recognized by wscons (SunOS), and the latter by
     47280         * xterm.  Those will not show up in ncurses' traces.
     47281         */
     47282-       result = (my_Gpm_Open(&SP->_mouse_gpm_connect, 0) >= 0);
     47283-       SP->_mouse_active = result;
     47284+       result = (my_Gpm_Open(&sp->_mouse_gpm_connect, 0) >= 0);
     47285+       sp->_mouse_active = result;
     47286        T(("GPM open %s", result ? "succeeded" : "failed"));
     47287     } else {
     47288-       if (!enable && SP->_mouse_active) {
     47289+       if (!enable && sp->_mouse_active) {
     47290            /* GPM: close connection to gpm server */
     47291            my_Gpm_Close();
     47292-           SP->_mouse_active = FALSE;
     47293+           sp->_mouse_active = FALSE;
     47294            T(("GPM closed"));
     47295        }
     47296        result = FALSE;
     47297@@ -403,17 +410,17 @@
    4357647298 }
    4357747299 #endif /* USE_GPM_SUPPORT */
     
    4358047302+
    4358147303 static void
    43582  initialize_mousetype(void)
     47304-initialize_mousetype(void)
     47305+initialize_mousetype(SCREEN *sp)
    4358347306 {
    4358447307-    static const char *xterm_kmous = "\033[M";
     
    4358747310 
    4358847311     /* Try gpm first, because gpm may be configured to run in xterm */
    43589 @@ -565,8 +565,8 @@
    43590             init_xterm_mouse();
     47312 #if USE_GPM_SUPPORT
     47313     if (allow_gpm_mouse()) {
     47314-       if (!SP->_mouse_gpm_loaded) {
     47315+       if (!sp->_mouse_gpm_loaded) {
     47316 #ifdef HAVE_LIBDL
     47317            void *obj;
     47318 
     47319@@ -425,13 +432,13 @@
     47320                    T(("GPM initialization failed: %s", dlerror()));
     47321                    dlclose(obj);
     47322                } else {
     47323-                   SP->_mouse_gpm_found = TRUE;
     47324+                   sp->_mouse_gpm_found = TRUE;
     47325                }
     47326            }
     47327 #else /* !HAVE_LIBDL */
     47328-           SP->_mouse_gpm_found = TRUE;
     47329+           sp->_mouse_gpm_found = TRUE;
     47330 #endif
     47331-           SP->_mouse_gpm_loaded = TRUE;
     47332+           sp->_mouse_gpm_loaded = TRUE;
     47333        }
     47334 
     47335        /*
     47336@@ -439,10 +446,10 @@
     47337         * maintain our notion of whether the mouse connection is active
     47338         * without testing the file-descriptor.
     47339         */
     47340-       if (SP->_mouse_gpm_found && enable_gpm_mouse(TRUE)) {
     47341-           SP->_mouse_type = M_GPM;
     47342-           SP->_mouse_fd = *(my_gpm_fd);
     47343-           T(("GPM mouse_fd %d", SP->_mouse_fd));
     47344+       if (sp->_mouse_gpm_found && enable_gpm_mouse(sp, TRUE)) {
     47345+           sp->_mouse_type = M_GPM;
     47346+           sp->_mouse_fd = *(my_gpm_fd);
     47347+           T(("GPM mouse_fd %d", sp->_mouse_fd));
     47348            returnVoid;
     47349        }
     47350     }
     47351@@ -450,7 +457,7 @@
     47352 
     47353     /* OS/2 VIO */
     47354 #if USE_EMX_MOUSE
     47355-    if (!SP->_emxmouse_thread
     47356+    if (!sp->_emxmouse_thread
     47357        && strstr(cur_term->type.term_names, "xterm") == 0
     47358        && key_mouse) {
     47359        int handles[2];
     47360@@ -461,32 +468,32 @@
     47361        } else {
     47362            int rc;
     47363 
     47364-           if (!SP->_emxmouse_buttons[0]) {
     47365+           if (!sp->_emxmouse_buttons[0]) {
     47366                char *s = getenv("MOUSE_BUTTONS_123");
     47367 
     47368-               SP->_emxmouse_buttons[0] = 1;
     47369+               sp->_emxmouse_buttons[0] = 1;
     47370                if (s && strlen(s) >= 3) {
     47371-                   SP->_emxmouse_buttons[1] = s[0] - '0';
     47372-                   SP->_emxmouse_buttons[2] = s[1] - '0';
     47373-                   SP->_emxmouse_buttons[3] = s[2] - '0';
     47374+                   sp->_emxmouse_buttons[1] = s[0] - '0';
     47375+                   sp->_emxmouse_buttons[2] = s[1] - '0';
     47376+                   sp->_emxmouse_buttons[3] = s[2] - '0';
     47377                } else {
     47378-                   SP->_emxmouse_buttons[1] = 1;
     47379-                   SP->_emxmouse_buttons[2] = 3;
     47380-                   SP->_emxmouse_buttons[3] = 2;
     47381+                   sp->_emxmouse_buttons[1] = 1;
     47382+                   sp->_emxmouse_buttons[2] = 3;
     47383+                   sp->_emxmouse_buttons[3] = 2;
     47384                }
     47385            }
     47386-           SP->_emxmouse_wfd = handles[1];
     47387-           M_FD(SP) = handles[0];
     47388+           sp->_emxmouse_wfd = handles[1];
     47389+           M_FD(sp) = handles[0];
     47390            /* Needed? */
     47391            setmode(handles[0], O_BINARY);
     47392            setmode(handles[1], O_BINARY);
     47393            /* Do not use CRT functions, we may single-threaded. */
     47394-           rc = DosCreateThread((unsigned long *) &SP->_emxmouse_thread,
     47395-                                mouse_server, 0, 0, 8192);
     47396+           rc = DosCreateThread((unsigned long *) &sp->_emxmouse_thread,
     47397+                                mouse_server, sp, 0, 8192);
     47398            if (rc) {
     47399                printf("mouse thread error %d=%#x", rc, rc);
     47400            } else {
     47401-               SP->_mouse_type = M_XTERM;
     47402+               sp->_mouse_type = M_XTERM;
     47403            }
     47404            returnVoid;
     47405        }
     47406@@ -498,14 +505,14 @@
     47407        struct mouse_info the_mouse;
     47408        char *the_device = 0;
     47409 
     47410-       if (isatty(SP->_ifd))
     47411-           the_device = ttyname(SP->_ifd);
     47412+       if (isatty(sp->_ifd))
     47413+           the_device = ttyname(sp->_ifd);
     47414        if (the_device == 0)
     47415            the_device = "/dev/tty";
     47416 
     47417-       SP->_mouse_fd = open(the_device, O_RDWR);
     47418+       sp->_mouse_fd = open(the_device, O_RDWR);
     47419 
     47420-       if (SP->_mouse_fd >= 0) {
     47421+       if (sp->_mouse_fd >= 0) {
     47422            /*
     47423             * sysmouse does not have a usable user interface for obtaining
     47424             * mouse events.  The logical way to proceed (reading data on a
     47425@@ -522,10 +529,10 @@
     47426            the_mouse.operation = MOUSE_MODE;
     47427            the_mouse.u.mode.mode = 0;
     47428            the_mouse.u.mode.signal = SIGUSR2;
     47429-           if (ioctl(SP->_mouse_fd, CONS_MOUSECTL, &the_mouse) != -1) {
     47430+           if (ioctl(sp->_mouse_fd, CONS_MOUSECTL, &the_mouse) != -1) {
     47431                signal(SIGUSR2, handle_sysmouse);
     47432                the_mouse.operation = MOUSE_SHOW;
     47433-               ioctl(SP->_mouse_fd, CONS_MOUSECTL, &the_mouse);
     47434+               ioctl(sp->_mouse_fd, CONS_MOUSECTL, &the_mouse);
     47435 
     47436 #if defined(FBIO_MODEINFO) || defined(CONS_MODEINFO)   /* FreeBSD > 2.x */
     47437                {
     47438@@ -535,23 +542,23 @@
     47439 #endif /* FBIO_GETMODE */
     47440                    video_info_t the_video;
     47441 
     47442-                   if (ioctl(SP->_mouse_fd,
     47443+                   if (ioctl(sp->_mouse_fd,
     47444                              FBIO_GETMODE,
     47445                              &the_video.vi_mode) != -1
     47446-                       && ioctl(SP->_mouse_fd,
     47447+                       && ioctl(sp->_mouse_fd,
     47448                                 FBIO_MODEINFO,
     47449                                 &the_video) != -1) {
     47450-                       SP->_sysmouse_char_width = the_video.vi_cwidth;
     47451-                       SP->_sysmouse_char_height = the_video.vi_cheight;
     47452+                       sp->_sysmouse_char_width = the_video.vi_cwidth;
     47453+                       sp->_sysmouse_char_height = the_video.vi_cheight;
     47454                    }
     47455                }
     47456 #endif /* defined(FBIO_MODEINFO) || defined(CONS_MODEINFO) */
     47457 
     47458-               if (SP->_sysmouse_char_width <= 0)
     47459-                   SP->_sysmouse_char_width = 8;
     47460-               if (SP->_sysmouse_char_height <= 0)
     47461-                   SP->_sysmouse_char_height = 16;
     47462-               SP->_mouse_type = M_SYSMOUSE;
     47463+               if (sp->_sysmouse_char_width <= 0)
     47464+                   sp->_sysmouse_char_width = 8;
     47465+               if (sp->_sysmouse_char_height <= 0)
     47466+                   sp->_sysmouse_char_height = 16;
     47467+               sp->_mouse_type = M_SYSMOUSE;
     47468                returnVoid;
     47469            }
     47470        }
     47471@@ -562,37 +569,37 @@
     47472     if (key_mouse != 0) {
     47473        if (!strcmp(key_mouse, xterm_kmous)
     47474            || strstr(cur_term->type.term_names, "xterm") != 0) {
     47475-           init_xterm_mouse();
     47476+           init_xterm_mouse(sp);
    4359147477        }
    4359247478     } else if (strstr(cur_term->type.term_names, "xterm") != 0) {
    4359347479-       (void) _nc_add_to_try(&(SP->_keytry), xterm_kmous, KEY_MOUSE);
    4359447480-       init_xterm_mouse();
    43595 +       if (_nc_add_to_try(&(SP->_keytry), xterm_kmous, KEY_MOUSE) == OK)
    43596 +           init_xterm_mouse();
     47481+       if (_nc_add_to_try(&(sp->_keytry), xterm_kmous, KEY_MOUSE) == OK)
     47482+           init_xterm_mouse(sp);
    4359747483     }
    4359847484     returnVoid;
    4359947485 }
    43600 @@ -985,12 +985,13 @@
     47486 
     47487 static bool
     47488-_nc_mouse_init(void)
     47489+_nc_mouse_init(SCREEN *sp)
     47490 /* initialize the mouse */
     47491 {
     47492     bool result = FALSE;
     47493     int i;
     47494 
     47495-    if (SP != 0) {
     47496-       if (!SP->_mouse_initialized) {
     47497-           SP->_mouse_initialized = TRUE;
     47498+    if (sp != 0) {
     47499+       if (!sp->_mouse_initialized) {
     47500+           sp->_mouse_initialized = TRUE;
     47501 
     47502            TR(MY_TRACE, ("_nc_mouse_init() called"));
     47503 
     47504-           SP->_mouse_eventp = SP->_mouse_events;
     47505+           sp->_mouse_eventp = sp->_mouse_events;
     47506            for (i = 0; i < EV_MAX; i++)
     47507-               SP->_mouse_events[i].id = INVALID_EVENT;
     47508+               sp->_mouse_events[i].id = INVALID_EVENT;
     47509 
     47510-           initialize_mousetype();
     47511+           initialize_mousetype(sp);
     47512 
     47513-           T(("_nc_mouse_init() set mousetype to %d", SP->_mouse_type));
     47514+           T(("_nc_mouse_init() set mousetype to %d", sp->_mouse_type));
     47515        }
     47516-       result = SP->_mouse_initialized;
     47517+       result = sp->_mouse_initialized;
     47518     }
     47519     return result;
     47520 }
     47521@@ -604,12 +611,12 @@
     47522 static bool
     47523 _nc_mouse_event(SCREEN *sp GCC_UNUSED)
     47524 {
     47525-    MEVENT *eventp = SP->_mouse_eventp;
     47526+    MEVENT *eventp = sp->_mouse_eventp;
     47527     bool result = FALSE;
     47528 
     47529     (void) eventp;
     47530 
     47531-    switch (SP->_mouse_type) {
     47532+    switch (sp->_mouse_type) {
     47533     case M_XTERM:
     47534        /* xterm: never have to query, mouse events are in the keyboard stream */
     47535 #if USE_EMX_MOUSE
     47536@@ -666,7 +673,7 @@
     47537                eventp->z = 0;
     47538 
     47539                /* bump the next-free pointer into the circular list */
     47540-               SP->_mouse_eventp = eventp = NEXT(eventp);
     47541+               sp->_mouse_eventp = eventp = NEXT(eventp);
     47542                result = TRUE;
     47543            }
     47544        }
     47545@@ -675,22 +682,22 @@
     47546 
     47547 #if USE_SYSMOUSE
     47548     case M_SYSMOUSE:
     47549-       if (SP->_sysmouse_head < SP->_sysmouse_tail) {
     47550-           *eventp = SP->_sysmouse_fifo[SP->_sysmouse_head];
     47551+       if (sp->_sysmouse_head < sp->_sysmouse_tail) {
     47552+           *eventp = sp->_sysmouse_fifo[sp->_sysmouse_head];
     47553 
     47554            /*
     47555             * Point the fifo-head to the next possible location.  If there
     47556             * are none, reset the indices.  This may be interrupted by the
     47557             * signal handler, doing essentially the same reset.
     47558             */
     47559-           SP->_sysmouse_head += 1;
     47560-           if (SP->_sysmouse_head == SP->_sysmouse_tail) {
     47561-               SP->_sysmouse_tail = 0;
     47562-               SP->_sysmouse_head = 0;
     47563+           sp->_sysmouse_head += 1;
     47564+           if (sp->_sysmouse_head == sp->_sysmouse_tail) {
     47565+               sp->_sysmouse_tail = 0;
     47566+               sp->_sysmouse_head = 0;
     47567            }
     47568 
     47569            /* bump the next-free pointer into the circular list */
     47570-           SP->_mouse_eventp = eventp = NEXT(eventp);
     47571+           sp->_mouse_eventp = eventp = NEXT(eventp);
     47572            result = TRUE;
     47573        }
     47574        break;
     47575@@ -709,11 +716,11 @@
     47576 {
     47577     int b;
     47578     bool result = FALSE;
     47579-    MEVENT *eventp = SP->_mouse_eventp;
     47580+    MEVENT *eventp = sp->_mouse_eventp;
     47581 
     47582     TR(MY_TRACE, ("_nc_mouse_inline() called"));
     47583 
     47584-    if (SP->_mouse_type == M_XTERM) {
     47585+    if (sp->_mouse_type == M_XTERM) {
     47586        unsigned char kbuf[4];
     47587        mmask_t prev;
     47588        size_t grabbed;
     47589@@ -847,11 +854,11 @@
     47590        eventp->y = (kbuf[2] - ' ') - 1;
     47591        TR(MY_TRACE,
     47592           ("_nc_mouse_inline: primitive mouse-event %s has slot %ld",
     47593-           _tracemouse(eventp),
     47594-           (long) (eventp - SP->_mouse_events)));
     47595+           _nc_tracemouse(sp, eventp),
     47596+           (long) (eventp - sp->_mouse_events)));
     47597 
     47598        /* bump the next-free pointer into the circular list */
     47599-       SP->_mouse_eventp = NEXT(eventp);
     47600+       sp->_mouse_eventp = NEXT(eventp);
     47601 #if 0                          /* this return would be needed for QNX's mods to lib_getch.c */
     47602        return (TRUE);
     47603 #endif
     47604@@ -861,36 +868,36 @@
     47605 }
     47606 
     47607 static void
     47608-mouse_activate(bool on)
     47609+mouse_activate(SCREEN *sp, bool on)
     47610 {
     47611-    if (!on && !SP->_mouse_initialized)
     47612+    if (!on && !sp->_mouse_initialized)
     47613        return;
     47614 
     47615-    if (!_nc_mouse_init())
     47616+    if (!_nc_mouse_init(sp))
     47617        return;
     47618 
     47619     if (on) {
     47620 
     47621-       switch (SP->_mouse_type) {
     47622+       switch (sp->_mouse_type) {
     47623        case M_XTERM:
     47624 #if NCURSES_EXT_FUNCS
     47625            keyok(KEY_MOUSE, on);
     47626 #endif
     47627            TPUTS_TRACE("xterm mouse initialization");
     47628-           enable_xterm_mouse(1);
     47629+           enable_xterm_mouse(sp, 1);
     47630            break;
     47631 #if USE_GPM_SUPPORT
     47632        case M_GPM:
     47633-           if (enable_gpm_mouse(1)) {
     47634-               SP->_mouse_fd = *(my_gpm_fd);
     47635-               T(("GPM mouse_fd %d", SP->_mouse_fd));
     47636+           if (enable_gpm_mouse(sp, 1)) {
     47637+               sp->_mouse_fd = *(my_gpm_fd);
     47638+               T(("GPM mouse_fd %d", sp->_mouse_fd));
     47639            }
     47640            break;
     47641 #endif
     47642 #if USE_SYSMOUSE
     47643        case M_SYSMOUSE:
     47644            signal(SIGUSR2, handle_sysmouse);
     47645-           SP->_mouse_active = TRUE;
     47646+           sp->_mouse_active = TRUE;
     47647            break;
     47648 #endif
     47649        case M_NONE:
     47650@@ -899,27 +906,27 @@
     47651        /* Make runtime binding to cut down on object size of applications that
     47652         * do not use the mouse (e.g., 'clear').
     47653         */
     47654-       SP->_mouse_event = _nc_mouse_event;
     47655-       SP->_mouse_inline = _nc_mouse_inline;
     47656-       SP->_mouse_parse = _nc_mouse_parse;
     47657-       SP->_mouse_resume = _nc_mouse_resume;
     47658-       SP->_mouse_wrap = _nc_mouse_wrap;
     47659+       sp->_mouse_event = _nc_mouse_event;
     47660+       sp->_mouse_inline = _nc_mouse_inline;
     47661+       sp->_mouse_parse = _nc_mouse_parse;
     47662+       sp->_mouse_resume = _nc_mouse_resume;
     47663+       sp->_mouse_wrap = _nc_mouse_wrap;
     47664     } else {
     47665 
     47666-       switch (SP->_mouse_type) {
     47667+       switch (sp->_mouse_type) {
     47668        case M_XTERM:
     47669            TPUTS_TRACE("xterm mouse deinitialization");
     47670-           enable_xterm_mouse(0);
     47671+           enable_xterm_mouse(sp, 0);
     47672            break;
     47673 #if USE_GPM_SUPPORT
     47674        case M_GPM:
     47675-           enable_gpm_mouse(0);
     47676+           enable_gpm_mouse(sp, 0);
     47677            break;
     47678 #endif
     47679 #if USE_SYSMOUSE
     47680        case M_SYSMOUSE:
     47681            signal(SIGUSR2, SIG_IGN);
     47682-           SP->_mouse_active = FALSE;
     47683+           sp->_mouse_active = FALSE;
     47684            break;
     47685 #endif
     47686        case M_NONE:
     47687@@ -936,10 +943,10 @@
     47688  **************************************************************************/
     47689 
     47690 static bool
     47691-_nc_mouse_parse(int runcount)
     47692+_nc_mouse_parse(SCREEN *sp, int runcount)
     47693 /* parse a run of atomic mouse events into a gesture */
     47694 {
     47695-    MEVENT *eventp = SP->_mouse_eventp;
     47696+    MEVENT *eventp = sp->_mouse_eventp;
     47697     MEVENT *ep, *runp, *next, *prev = PREV(eventp);
     47698     int n;
     47699     int b;
     47700@@ -971,10 +978,10 @@
     47701     if (runcount == 1) {
     47702        TR(MY_TRACE,
     47703           ("_nc_mouse_parse: returning simple mouse event %s at slot %ld",
     47704-           _tracemouse(prev),
     47705-           (long) (prev - SP->_mouse_events)));
     47706+           _nc_tracemouse(sp, prev),
     47707+           (long) (prev - sp->_mouse_events)));
     47708        return (prev->id >= NORMAL_EVENT)
     47709-           ? ((prev->bstate & SP->_mouse_mask) ? TRUE : FALSE)
     47710+           ? ((prev->bstate & sp->_mouse_mask) ? TRUE : FALSE)
     47711            : FALSE;
     47712     }
     47713 
     47714@@ -985,12 +992,13 @@
    4360147715     }
    4360247716 
    4360347717 #ifdef TRACE
    4360447718-    if (_nc_tracing & TRACE_IEVENT) {
     47719-       _trace_slot("before mouse press/release merge:");
    4360547720+    if (USE_TRACEF(TRACE_IEVENT)) {
    43606         _trace_slot("before mouse press/release merge:");
     47721+       _trace_slot(sp, "before mouse press/release merge:");
    4360747722        _tracef("_nc_mouse_parse: run starts at %ld, ends at %ld, count %d",
    43608                 (long) (runp - SP->_mouse_events),
    43609                 (long) ((eventp - SP->_mouse_events) + (EV_MAX - 1)) % EV_MAX,
     47723-               (long) (runp - SP->_mouse_events),
     47724-               (long) ((eventp - SP->_mouse_events) + (EV_MAX - 1)) % EV_MAX,
     47725+               (long) (runp - sp->_mouse_events),
     47726+               (long) ((eventp - sp->_mouse_events) + (EV_MAX - 1)) % EV_MAX,
    4361047727                runcount);
    4361147728+       _nc_unlock_global(tracef);
     
    4361347730 #endif /* TRACE */
    4361447731 
    43615 @@ -1028,12 +1029,13 @@
     47732@@ -1013,7 +1021,7 @@
     47733 #endif
     47734                ) {
     47735                for (b = 1; b <= MAX_BUTTONS; ++b) {
     47736-                   if ((SP->_mouse_mask & MASK_CLICK(b))
     47737+                   if ((sp->_mouse_mask & MASK_CLICK(b))
     47738                        && (ep->bstate & MASK_PRESS(b))) {
     47739                        ep->bstate &= ~MASK_PRESS(b);
     47740                        ep->bstate |= MASK_CLICK(b);
     47741@@ -1028,12 +1036,13 @@
    4361647742        (merge);
    4361747743 
    4361847744 #ifdef TRACE
    4361947745-    if (_nc_tracing & TRACE_IEVENT) {
     47746-       _trace_slot("before mouse click merge:");
    4362047747+    if (USE_TRACEF(TRACE_IEVENT)) {
    43621         _trace_slot("before mouse click merge:");
     47748+       _trace_slot(sp, "before mouse click merge:");
    4362247749        _tracef("_nc_mouse_parse: run starts at %ld, ends at %ld, count %d",
    43623                 (long) (runp - SP->_mouse_events),
    43624                 (long) ((eventp - SP->_mouse_events) + (EV_MAX - 1)) % EV_MAX,
     47750-               (long) (runp - SP->_mouse_events),
     47751-               (long) ((eventp - SP->_mouse_events) + (EV_MAX - 1)) % EV_MAX,
     47752+               (long) (runp - sp->_mouse_events),
     47753+               (long) ((eventp - sp->_mouse_events) + (EV_MAX - 1)) % EV_MAX,
    4362547754                runcount);
    4362647755+       _nc_unlock_global(tracef);
     
    4362847757 #endif /* TRACE */
    4362947758 
    43630 @@ -1099,12 +1101,13 @@
     47759@@ -1069,7 +1078,7 @@
     47760                if ((ep->bstate & BUTTON_CLICKED)
     47761                    && (follower->bstate & BUTTON_CLICKED)) {
     47762                    for (b = 1; b <= MAX_BUTTONS; ++b) {
     47763-                       if ((SP->_mouse_mask & MASK_DOUBLE_CLICK(b))
     47764+                       if ((sp->_mouse_mask & MASK_DOUBLE_CLICK(b))
     47765                            && (follower->bstate & MASK_CLICK(b))) {
     47766                            follower->bstate &= ~MASK_CLICK(b);
     47767                            follower->bstate |= MASK_DOUBLE_CLICK(b);
     47768@@ -1084,7 +1093,7 @@
     47769                if ((ep->bstate & BUTTON_DOUBLE_CLICKED)
     47770                    && (follower->bstate & BUTTON_CLICKED)) {
     47771                    for (b = 1; b <= MAX_BUTTONS; ++b) {
     47772-                       if ((SP->_mouse_mask & MASK_TRIPLE_CLICK(b))
     47773+                       if ((sp->_mouse_mask & MASK_TRIPLE_CLICK(b))
     47774                            && (follower->bstate & MASK_CLICK(b))) {
     47775                            follower->bstate &= ~MASK_CLICK(b);
     47776                            follower->bstate |= MASK_TRIPLE_CLICK(b);
     47777@@ -1099,12 +1108,13 @@
    4363147778        (merge);
    4363247779 
    4363347780 #ifdef TRACE
    4363447781-    if (_nc_tracing & TRACE_IEVENT) {
     47782-       _trace_slot("before mouse event queue compaction:");
    4363547783+    if (USE_TRACEF(TRACE_IEVENT)) {
    43636         _trace_slot("before mouse event queue compaction:");
     47784+       _trace_slot(sp, "before mouse event queue compaction:");
    4363747785        _tracef("_nc_mouse_parse: run starts at %ld, ends at %ld, count %d",
    43638                 (long) (runp - SP->_mouse_events),
    43639                 (long) ((eventp - SP->_mouse_events) + (EV_MAX - 1)) % EV_MAX,
     47786-               (long) (runp - SP->_mouse_events),
     47787-               (long) ((eventp - SP->_mouse_events) + (EV_MAX - 1)) % EV_MAX,
     47788+               (long) (runp - sp->_mouse_events),
     47789+               (long) ((eventp - sp->_mouse_events) + (EV_MAX - 1)) % EV_MAX,
    4364047790                runcount);
    4364147791+       _nc_unlock_global(tracef);
     
    4364347793 #endif /* TRACE */
    4364447794 
    43645 @@ -1117,12 +1120,13 @@
    43646             SP->_mouse_eventp = eventp = prev;
     47795@@ -1113,23 +1123,24 @@
     47796      * don't match the current event mask.
     47797      */
     47798     for (; runcount; prev = PREV(eventp), runcount--)
     47799-       if (prev->id == INVALID_EVENT || !(prev->bstate & SP->_mouse_mask)) {
     47800-           SP->_mouse_eventp = eventp = prev;
     47801+       if (prev->id == INVALID_EVENT || !(prev->bstate & sp->_mouse_mask)) {
     47802+           sp->_mouse_eventp = eventp = prev;
    4364747803        }
    4364847804 #ifdef TRACE
    4364947805-    if (_nc_tracing & TRACE_IEVENT) {
     47806-       _trace_slot("after mouse event queue compaction:");
    4365047807+    if (USE_TRACEF(TRACE_IEVENT)) {
    43651         _trace_slot("after mouse event queue compaction:");
     47808+       _trace_slot(sp, "after mouse event queue compaction:");
    4365247809        _tracef("_nc_mouse_parse: run starts at %ld, ends at %ld, count %d",
    43653                 (long) (runp - SP->_mouse_events),
    43654                 (long) ((eventp - SP->_mouse_events) + (EV_MAX - 1)) % EV_MAX,
     47810-               (long) (runp - SP->_mouse_events),
     47811-               (long) ((eventp - SP->_mouse_events) + (EV_MAX - 1)) % EV_MAX,
     47812+               (long) (runp - sp->_mouse_events),
     47813+               (long) ((eventp - sp->_mouse_events) + (EV_MAX - 1)) % EV_MAX,
    4365547814                runcount);
    4365647815+       _nc_unlock_global(tracef);
     
    4365847817     for (ep = runp; ep != eventp; ep = NEXT(ep))
    4365947818        if (ep->id != INVALID_EVENT)
     47819            TR(MY_TRACE,
     47820               ("_nc_mouse_parse: returning composite mouse event %s at slot %ld",
     47821-               _tracemouse(ep),
     47822-               (long) (ep - SP->_mouse_events)));
     47823+               _nc_tracemouse(sp, ep),
     47824+               (long) (ep - sp->_mouse_events)));
     47825 #endif /* TRACE */
     47826 
     47827     /* after all this, do we have a valid event? */
     47828@@ -1137,26 +1148,26 @@
     47829 }
     47830 
     47831 static void
     47832-_nc_mouse_wrap(SCREEN *sp GCC_UNUSED)
     47833+_nc_mouse_wrap(SCREEN *sp)
     47834 /* release mouse -- called by endwin() before shellout/exit */
     47835 {
     47836     TR(MY_TRACE, ("_nc_mouse_wrap() called"));
     47837 
     47838-    switch (SP->_mouse_type) {
     47839+    switch (sp->_mouse_type) {
     47840     case M_XTERM:
     47841-       if (SP->_mouse_mask)
     47842-           mouse_activate(FALSE);
     47843+       if (sp->_mouse_mask)
     47844+           mouse_activate(sp, FALSE);
     47845        break;
     47846 #if USE_GPM_SUPPORT
     47847        /* GPM: pass all mouse events to next client */
     47848     case M_GPM:
     47849-       if (SP->_mouse_mask)
     47850-           mouse_activate(FALSE);
     47851+       if (sp->_mouse_mask)
     47852+           mouse_activate(sp, FALSE);
     47853        break;
     47854 #endif
     47855 #if USE_SYSMOUSE
     47856     case M_SYSMOUSE:
     47857-       mouse_activate(FALSE);
     47858+       mouse_activate(sp, FALSE);
     47859        break;
     47860 #endif
     47861     case M_NONE:
     47862@@ -1165,29 +1176,29 @@
     47863 }
     47864 
     47865 static void
     47866-_nc_mouse_resume(SCREEN *sp GCC_UNUSED)
     47867+_nc_mouse_resume(SCREEN *sp)
     47868 /* re-connect to mouse -- called by doupdate() after shellout */
     47869 {
     47870     TR(MY_TRACE, ("_nc_mouse_resume() called"));
     47871 
     47872-    switch (SP->_mouse_type) {
     47873+    switch (sp->_mouse_type) {
     47874     case M_XTERM:
     47875        /* xterm: re-enable reporting */
     47876-       if (SP->_mouse_mask)
     47877-           mouse_activate(TRUE);
     47878+       if (sp->_mouse_mask)
     47879+           mouse_activate(sp, TRUE);
     47880        break;
     47881 
     47882 #if USE_GPM_SUPPORT
     47883     case M_GPM:
     47884        /* GPM: reclaim our event set */
     47885-       if (SP->_mouse_mask)
     47886-           mouse_activate(TRUE);
     47887+       if (sp->_mouse_mask)
     47888+           mouse_activate(sp, TRUE);
     47889        break;
     47890 #endif
     47891 
     47892 #if USE_SYSMOUSE
     47893     case M_SYSMOUSE:
     47894-       mouse_activate(TRUE);
     47895+       mouse_activate(sp, TRUE);
     47896        break;
     47897 #endif
     47898     case M_NONE:
     47899@@ -1201,14 +1212,13 @@
     47900  *
     47901  **************************************************************************/
     47902 
     47903-NCURSES_EXPORT(int)
     47904-getmouse(MEVENT * aevent)
     47905-/* grab a copy of the current mouse event */
     47906+static int
     47907+_nc_getmouse(SCREEN *sp, MEVENT * aevent)
     47908 {
     47909     T((T_CALLED("getmouse(%p)"), aevent));
     47910 
     47911-    if ((aevent != 0) && (SP != 0) && (SP->_mouse_type != M_NONE)) {
     47912-       MEVENT *eventp = SP->_mouse_eventp;
     47913+    if ((aevent != 0) && (sp != 0) && (sp->_mouse_type != M_NONE)) {
     47914+       MEVENT *eventp = sp->_mouse_eventp;
     47915        /* compute the current-event pointer */
     47916        MEVENT *prev = PREV(eventp);
     47917 
     47918@@ -1216,8 +1226,8 @@
     47919        *aevent = *prev;
     47920 
     47921        TR(TRACE_IEVENT, ("getmouse: returning event %s from slot %ld",
     47922-                         _tracemouse(prev),
     47923-                         (long) (prev - SP->_mouse_events)));
     47924+                         _nc_tracemouse(sp, prev),
     47925+                         (long) (prev - sp->_mouse_events)));
     47926 
     47927        prev->id = INVALID_EVENT;       /* so the queue slot becomes free */
     47928        returnCode(OK);
     47929@@ -1225,29 +1235,42 @@
     47930     returnCode(ERR);
     47931 }
     47932 
     47933+/* grab a copy of the current mouse event */
     47934 NCURSES_EXPORT(int)
     47935-ungetmouse(MEVENT * aevent)
     47936-/* enqueue a synthesized mouse event to be seen by the next wgetch() */
     47937+getmouse(MEVENT * aevent)
     47938+{
     47939+    return _nc_getmouse(SP, aevent);
     47940+}
     47941+
     47942+static int
     47943+_nc_ungetmouse(SCREEN *sp, MEVENT * aevent)
     47944 {
     47945     int result = ERR;
     47946 
     47947     T((T_CALLED("ungetmouse(%p)"), aevent));
     47948 
     47949-    if (aevent != 0 && SP != 0) {
     47950-       MEVENT *eventp = SP->_mouse_eventp;
     47951+    if (aevent != 0 && sp != 0) {
     47952+       MEVENT *eventp = sp->_mouse_eventp;
     47953 
     47954        /* stick the given event in the next-free slot */
     47955        *eventp = *aevent;
     47956 
     47957        /* bump the next-free pointer into the circular list */
     47958-       SP->_mouse_eventp = NEXT(eventp);
     47959+       sp->_mouse_eventp = NEXT(eventp);
     47960 
     47961        /* push back the notification event on the keyboard queue */
     47962-       result = ungetch(KEY_MOUSE);
     47963+       result = _nc_ungetch(sp, KEY_MOUSE);
     47964     }
     47965     returnCode(result);
     47966 }
     47967 
     47968+/* enqueue a synthesized mouse event to be seen by the next wgetch() */
     47969+NCURSES_EXPORT(int)
     47970+ungetmouse(MEVENT * aevent)
     47971+{
     47972+    return _nc_ungetmouse(SP, aevent);
     47973+}
     47974+
     47975 NCURSES_EXPORT(mmask_t)
     47976 mousemask(mmask_t newmask, mmask_t * oldmask)
     47977 /* set the mouse event mask */
     47978@@ -1261,7 +1284,7 @@
     47979            *oldmask = SP->_mouse_mask;
     47980 
     47981        if (newmask || SP->_mouse_initialized) {
     47982-           _nc_mouse_init();
     47983+           _nc_mouse_init(SP);
     47984            if (SP->_mouse_type != M_NONE) {
     47985                result = newmask &
     47986                    (REPORT_MOUSE_POSITION
     47987@@ -1274,7 +1297,7 @@
     47988                     | BUTTON_DOUBLE_CLICKED
     47989                     | BUTTON_TRIPLE_CLICKED);
     47990 
     47991-               mouse_activate((bool) (result != 0));
     47992+               mouse_activate(SP, (bool) (result != 0));
     47993 
     47994                SP->_mouse_mask = result;
     47995            }
    4366047996diff -Naur ncurses-5.6.orig/ncurses/base/lib_newterm.c ncurses-5.6/ncurses/base/lib_newterm.c
    4366147997--- ncurses-5.6.orig/ncurses/base/lib_newterm.c 2006-01-14 10:36:24.000000000 -0500
    43662 +++ ncurses-5.6/ncurses/base/lib_newterm.c      2007-12-21 00:02:36.000000000 -0500
     47998+++ ncurses-5.6/ncurses/base/lib_newterm.c      2008-06-18 06:49:51.000000000 -0400
    4366347999@@ -1,5 +1,5 @@
    4366448000 /****************************************************************************
    4366548001- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    43666 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     48002+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4366748003  *                                                                          *
    4366848004  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    4367348009 
    4367448010-MODULE_ID("$Id: lib_newterm.c,v 1.64 2006/01/14 15:36:24 tom Exp $")
    43675 +MODULE_ID("$Id: lib_newterm.c,v 1.67 2007/04/21 20:47:32 tom Exp $")
     48011+MODULE_ID("$Id: lib_newterm.c,v 1.70 2008/06/07 14:00:23 tom Exp $")
    4367648012 
    4367748013 #ifndef ONLCR                  /* Allows compilation under the QNX 4.2 OS */
     
    4370248038 }
    4370348039 #endif
    43704 @@ -132,13 +130,6 @@
     48040@@ -125,31 +123,34 @@
     48041 {
     48042     int value;
     48043     int errret;
     48044-    int slk_format = _nc_slk_format;
     48045     SCREEN *current;
     48046     SCREEN *result = 0;
     48047 
    4370548048     START_TRACE();
    4370648049     T((T_CALLED("newterm(\"%s\",%p,%p)"), name, ofp, ifp));
     
    4371348056-    }
    4371448057-
     48058+    _nc_lock_global(curses);
    4371548059     /* this loads the capability entry, then sets LINES and COLS */
    43716      if (setupterm(name, fileno(ofp), &errret) == ERR) {
    43717         result = 0;
    43718 @@ -149,7 +140,21 @@
     48060-    if (setupterm(name, fileno(ofp), &errret) == ERR) {
     48061-       result = 0;
     48062-    } else {
     48063+    if (setupterm(name, fileno(ofp), &errret) != ERR) {
     48064+       int slk_format = _nc_globals.slk_format;
     48065+
     48066        /*
     48067         * This actually allocates the screen structure, and saves the original
     48068         * terminal settings.
    4371948069         */
    4372048070        current = SP;
     
    4372448074+       /* allow user to set maximum escape delay from the environment */
    4372548075+       if ((value = _nc_getenv_num("ESCDELAY")) >= 0) {
    43726 +#if USE_REENTRANT
    43727 +           SP->_ESCDELAY = value;
    43728 +#else
    43729 +           ESCDELAY = value;
    43730 +#endif
     48076+           set_escdelay(value);
    4373148077+       }
    4373248078+
     
    4373948085            result = 0;
    4374048086        } else {
    43741 @@ -211,6 +216,5 @@
     48087@@ -211,6 +212,6 @@
    4374248088            result = SP;
    4374348089        }
    4374448090     }
    4374548091-    _nc_handle_sigwinch(1);
     48092+    _nc_unlock_global(curses);
    4374648093     returnSP(result);
    4374748094 }
    4374848095diff -Naur ncurses-5.6.orig/ncurses/base/lib_newwin.c ncurses-5.6/ncurses/base/lib_newwin.c
    4374948096--- ncurses-5.6.orig/ncurses/base/lib_newwin.c  2006-10-14 16:31:19.000000000 -0400
    43750 +++ ncurses-5.6/ncurses/base/lib_newwin.c       2007-12-21 00:02:36.000000000 -0500
     48097+++ ncurses-5.6/ncurses/base/lib_newwin.c       2008-06-18 06:49:51.000000000 -0400
    4375148098@@ -1,5 +1,5 @@
    4375248099 /****************************************************************************
    4375348100- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    43754 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     48101+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4375548102  *                                                                          *
    4375648103  * Permission is hereby granted, free of charge, to any person obtaining a  *
    4375748104  * copy of this software and associated documentation files (the            *
    43758 @@ -41,7 +41,7 @@
     48105@@ -40,36 +40,39 @@
     48106 */
    4375948107 
    4376048108 #include <curses.priv.h>
     48109+#include <stddef.h>
    4376148110 
    4376248111-MODULE_ID("$Id: lib_newwin.c,v 1.38 2006/10/14 20:31:19 tom Exp $")
    43763 +MODULE_ID("$Id: lib_newwin.c,v 1.41 2007/10/20 20:56:07 tom Exp $")
    43764  
    43765  static WINDOW *
     48112+MODULE_ID("$Id: lib_newwin.c,v 1.52 2008/06/07 13:58:09 tom Exp $")
     48113 
     48114-static WINDOW *
     48115+#define window_is(name) ((sp)->_##name == win)
     48116+
     48117+#if USE_REENTRANT
     48118+#define remove_window(name) \
     48119+               sp->_##name = 0
     48120+#else
     48121+#define remove_window(name) \
     48122+               sp->_##name = 0; \
     48123+               if (win == name) \
     48124+                   name = 0
     48125+#endif
     48126+
     48127+static void
    4376648128 remove_window_from_screen(WINDOW *win)
    43767 @@ -52,16 +52,22 @@
    43768         SCREEN *sp = *scan;
    43769         if (sp->_curscr == win) {
    43770             sp->_curscr = 0;
    43771 +#if !USE_REENTRANT
    43772             if (win == curscr)
    43773                 curscr = 0;
    43774 +#endif
    43775         } else if (sp->_stdscr == win) {
    43776             sp->_stdscr = 0;
    43777 +#if !USE_REENTRANT
    43778             if (win == stdscr)
    43779                 stdscr = 0;
    43780 +#endif
    43781         } else if (sp->_newscr == win) {
    43782             sp->_newscr = 0;
    43783 +#if !USE_REENTRANT
    43784             if (win == newscr)
    43785                 newscr = 0;
    43786 +#endif
    43787         } else {
    43788             scan = &(*scan)->_next_screen;
    43789             continue;
    43790 @@ -208,22 +214,31 @@
     48129 {
     48130-    SCREEN **scan = &_nc_screen_chain;
     48131+    SCREEN *sp;
     48132 
     48133-    while (*scan) {
     48134-       SCREEN *sp = *scan;
     48135-       if (sp->_curscr == win) {
     48136-           sp->_curscr = 0;
     48137-           if (win == curscr)
     48138-               curscr = 0;
     48139-       } else if (sp->_stdscr == win) {
     48140-           sp->_stdscr = 0;
     48141-           if (win == stdscr)
     48142-               stdscr = 0;
     48143-       } else if (sp->_newscr == win) {
     48144-           sp->_newscr = 0;
     48145-           if (win == newscr)
     48146-               newscr = 0;
     48147-       } else {
     48148-           scan = &(*scan)->_next_screen;
     48149-           continue;
     48150+    for (each_screen(sp)) {
     48151+       if (window_is(curscr)) {
     48152+           remove_window(curscr);
     48153+           break;
     48154+       } else if (window_is(stdscr)) {
     48155+           remove_window(stdscr);
     48156+           break;
     48157+       } else if (window_is(newscr)) {
     48158+           remove_window(newscr);
     48159+           break;
     48160        }
     48161-       break;
     48162     }
     48163-
     48164-    return 0;
     48165 }
     48166 
     48167 NCURSES_EXPORT(int)
     48168@@ -79,29 +82,36 @@
     48169     int i;
     48170     int result = ERR;
     48171 
     48172+    T((T_CALLED("_nc_freewin(%p)"), win));
     48173+
     48174     if (win != 0) {
     48175-       for (p = _nc_windows, q = 0; p != 0; q = p, p = p->next) {
     48176-           if (&(p->win) == win) {
     48177-               remove_window_from_screen(win);
     48178-               if (q == 0)
     48179-                   _nc_windows = p->next;
     48180-               else
     48181-                   q->next = p->next;
     48182-
     48183-               if (!(win->_flags & _SUBWIN)) {
     48184-                   for (i = 0; i <= win->_maxy; i++)
     48185-                       FreeIfNeeded(win->_line[i].text);
     48186+       if (_nc_try_global(curses) == 0) {
     48187+           q = 0;
     48188+           for (each_window(p)) {
     48189+               if (&(p->win) == win) {
     48190+                   remove_window_from_screen(win);
     48191+                   if (q == 0)
     48192+                       _nc_windows = p->next;
     48193+                   else
     48194+                       q->next = p->next;
     48195+
     48196+                   if (!(win->_flags & _SUBWIN)) {
     48197+                       for (i = 0; i <= win->_maxy; i++)
     48198+                           FreeIfNeeded(win->_line[i].text);
     48199+                   }
     48200+                   free(win->_line);
     48201+                   free(p);
     48202+
     48203+                   result = OK;
     48204+                   T(("...deleted win=%p", win));
     48205+                   break;
     48206                }
     48207-               free(win->_line);
     48208-               free(p);
     48209-
     48210-               result = OK;
     48211-               T(("...deleted win=%p", win));
     48212-               break;
     48213+               q = p;
     48214            }
     48215+           _nc_unlock_global(curses);
     48216        }
     48217     }
     48218-    return result;
     48219+    returnCode(result);
     48220 }
     48221 
     48222 NCURSES_EXPORT(WINDOW *)
     48223@@ -208,24 +218,26 @@
    4379148224     WINDOW *win;
    4379248225     bool is_pad = (flags & _ISPAD);
     
    4380648239-       return 0;
    4380748240+       returnWin(0);
    43808 +
    43809 +#ifdef USE_PTHREADS
    43810 +    {
    43811 +       pthread_mutexattr_t recattr;
    43812 +       memset(&recattr, 0, sizeof(recattr));
    43813 +       pthread_mutexattr_settype(&recattr, PTHREAD_MUTEX_RECURSIVE);
    43814 +       pthread_mutex_init(&(wp->mutex_use_window), &recattr);
    43815 +    }
    43816 +#endif
    4381748241 
    4381848242     win = &(wp->win);
     
    4382448248     }
    4382548249 
     48250+    _nc_lock_global(curses);
     48251+
    4382648252     win->_curx = 0;
    43827 @@ -303,5 +318,5 @@
     48253     win->_cury = 0;
     48254     win->_maxy = num_lines - 1;
     48255@@ -299,9 +311,28 @@
     48256     }
     48257 
     48258     wp->next = _nc_windows;
     48259+    wp->screen = SP;
     48260     _nc_windows = wp;
    4382848261 
    4382948262     T((T_CREATE("window %p"), win));
    4383048263 
    4383148264-    return (win);
     48265+    _nc_unlock_global(curses);
    4383248266+    returnWin(win);
     48267+}
     48268+
     48269+/*
     48270+ * wgetch() and other functions with a WINDOW* parameter may use a SCREEN*
     48271+ * internally, and it is useful to allow those to be invoked without switching
     48272+ * SCREEN's, e.g., for multi-threaded applications.
     48273+ */
     48274+NCURSES_EXPORT(SCREEN *)
     48275+_nc_screen_of(WINDOW *win)
     48276+{
     48277+    SCREEN *sp = 0;
     48278+
     48279+    if (win != 0) {
     48280+       WINDOWLIST *wp = (WINDOWLIST *) win;
     48281+       sp = wp->screen;
     48282+    }
     48283+    return (sp);
    4383348284 }
    4383448285diff -Naur ncurses-5.6.orig/ncurses/base/lib_overlay.c ncurses-5.6/ncurses/base/lib_overlay.c
    4383548286--- ncurses-5.6.orig/ncurses/base/lib_overlay.c 2006-10-14 16:43:31.000000000 -0400
    43836 +++ ncurses-5.6/ncurses/base/lib_overlay.c      2007-12-21 00:02:36.000000000 -0500
     48287+++ ncurses-5.6/ncurses/base/lib_overlay.c      2008-06-18 06:49:51.000000000 -0400
    4383748288@@ -1,5 +1,5 @@
    4383848289 /****************************************************************************
    4383948290- * Copyright (c) 1998-2002,2006 Free Software Foundation, Inc.              *
    43840 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     48291+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4384148292  *                                                                          *
    4384248293  * Permission is hereby granted, free of charge, to any person obtaining a  *
    4384348294  * copy of this software and associated documentation files (the            *
    43844 @@ -40,7 +40,7 @@
     48295@@ -40,46 +40,45 @@
    4384548296 
    4384648297 #include <curses.priv.h>
    4384748298 
    4384848299-MODULE_ID("$Id: lib_overlay.c,v 1.22 2006/10/14 20:43:31 tom Exp $")
    43849 +MODULE_ID("$Id: lib_overlay.c,v 1.23 2007/04/07 17:13:52 tom Exp $")
     48300+MODULE_ID("$Id: lib_overlay.c,v 1.27 2008/06/07 23:30:34 tom Exp $")
    4385048301 
    4385148302 static int
    43852  overlap(const WINDOW *const s, WINDOW *const d, int const flag)
    43853 @@ -139,8 +139,8 @@
     48303-overlap(const WINDOW *const s, WINDOW *const d, int const flag)
     48304+overlap(const WINDOW *const src, WINDOW *const dst, int const flag)
    4385448305 {
     48306+    int rc = ERR;
     48307     int sx1, sy1, sx2, sy2;
     48308     int dx1, dy1, dx2, dy2;
     48309     int sminrow, smincol;
     48310     int dminrow, dmincol;
     48311     int dmaxrow, dmaxcol;
     48312 
     48313-    T((T_CALLED("overlap(%p,%p,%d)"), s, d, flag));
     48314+    T((T_CALLED("overlap(%p,%p,%d)"), src, dst, flag));
     48315+
     48316+    if (src != 0 && dst != 0) {
     48317+       _nc_lock_global(curses);
     48318 
     48319-    if (s == 0 || d == 0) {
     48320-       returnCode(ERR);
     48321-    } else {
     48322        T(("src : begy %ld, begx %ld, maxy %ld, maxx %ld",
     48323-          (long) s->_begy,
     48324-          (long) s->_begx,
     48325-          (long) s->_maxy,
     48326-          (long) s->_maxx));
     48327+          (long) src->_begy,
     48328+          (long) src->_begx,
     48329+          (long) src->_maxy,
     48330+          (long) src->_maxx));
     48331        T(("dst : begy %ld, begx %ld, maxy %ld, maxx %ld",
     48332-          (long) d->_begy,
     48333-          (long) d->_begx,
     48334-          (long) d->_maxy,
     48335-          (long) d->_maxx));
     48336-
     48337-       sx1 = s->_begx;
     48338-       sy1 = s->_begy;
     48339-       sx2 = sx1 + s->_maxx;
     48340-       sy2 = sy1 + s->_maxy;
     48341-
     48342-       dx1 = d->_begx;
     48343-       dy1 = d->_begy;
     48344-       dx2 = dx1 + d->_maxx;
     48345-       dy2 = dy1 + d->_maxy;
     48346-
     48347-       if (dx2 < sx1 || dx1 > sx2 || dy2 < sy1 || dy1 > sy2) {
     48348-           returnCode(ERR);    /* No intersection */
     48349-       } else {
     48350+          (long) dst->_begy,
     48351+          (long) dst->_begx,
     48352+          (long) dst->_maxy,
     48353+          (long) dst->_maxx));
     48354+
     48355+       sx1 = src->_begx;
     48356+       sy1 = src->_begy;
     48357+       sx2 = sx1 + src->_maxx;
     48358+       sy2 = sy1 + src->_maxy;
     48359+
     48360+       dx1 = dst->_begx;
     48361+       dy1 = dst->_begy;
     48362+       dx2 = dx1 + dst->_maxx;
     48363+       dy2 = dy1 + dst->_maxy;
     48364+
     48365+       if (dx2 >= sx1 && dx1 <= sx2 && dy2 >= sy1 && dy1 <= sy2) {
     48366            sminrow = max(sy1, dy1) - sy1;
     48367            smincol = max(sx1, dx1) - sx1;
     48368            dminrow = max(sy1, dy1) - dy1;
     48369@@ -87,13 +86,15 @@
     48370            dmaxrow = min(sy2, dy2) - dy1;
     48371            dmaxcol = min(sx2, dx2) - dx1;
     48372 
     48373-           returnCode(copywin(s, d,
     48374-                              sminrow, smincol,
     48375-                              dminrow, dmincol,
     48376-                              dmaxrow, dmaxcol,
     48377-                              flag));
     48378+           rc = copywin(src, dst,
     48379+                        sminrow, smincol,
     48380+                        dminrow, dmincol,
     48381+                        dmaxrow, dmaxcol,
     48382+                        flag);
     48383        }
     48384+       _nc_unlock_global(curses);
     48385     }
     48386+    returnCode(rc);
     48387 }
     48388 
     48389 /*
     48390@@ -137,54 +138,69 @@
     48391        int dmaxrow, int dmaxcol,
     48392        int over)
     48393 {
     48394+    int rc = ERR;
    4385548395     int sx, sy, dx, dy;
    4385648396     bool touched;
     
    4386248402     T((T_CALLED("copywin(%p, %p, %d, %d, %d, %d, %d, %d, %d)"),
    4386348403        src, dst, sminrow, smincol, dminrow, dmincol, dmaxrow, dmaxcol, over));
    43864 @@ -148,6 +148,9 @@
    43865      if (!src || !dst)
    43866         returnCode(ERR);
    43867  
    43868 +    bk = AttrOf(dst->_nc_bkgd);
    43869 +    mask = ~(attr_t) ((bk & A_COLOR) ? A_COLOR : 0);
    43870 +
    43871      /* make sure rectangle exists in source */
    43872      if ((sminrow + dmaxrow - dminrow) > (src->_maxy + 1) ||
    43873         (smincol + dmaxcol - dmincol) > (src->_maxx + 1)) {
     48404 
     48405-    if (!src || !dst)
     48406-       returnCode(ERR);
     48407+    if (src && dst) {
     48408+       _nc_lock_global(curses);
     48409 
     48410-    /* make sure rectangle exists in source */
     48411-    if ((sminrow + dmaxrow - dminrow) > (src->_maxy + 1) ||
     48412-       (smincol + dmaxcol - dmincol) > (src->_maxx + 1)) {
     48413-       returnCode(ERR);
     48414-    }
     48415+       bk = AttrOf(dst->_nc_bkgd);
     48416+       mask = ~(attr_t) ((bk & A_COLOR) ? A_COLOR : 0);
     48417 
     48418-    T(("rectangle exists in source"));
     48419-
     48420-    /* make sure rectangle fits in destination */
     48421-    if (dmaxrow > dst->_maxy || dmaxcol > dst->_maxx) {
     48422-       returnCode(ERR);
     48423-    }
     48424-
     48425-    T(("rectangle fits in destination"));
     48426-
     48427-    for (dy = dminrow, sy = sminrow; dy <= dmaxrow; sy++, dy++) {
     48428-       touched = FALSE;
     48429-       for (dx = dmincol, sx = smincol; dx <= dmaxcol; sx++, dx++) {
     48430-           if (over) {
     48431-               if ((CharOf(src->_line[sy].text[sx]) != L(' ')) &&
     48432-                   (!CharEq(dst->_line[dy].text[dx], src->_line[sy].text[sx]))) {
     48433-                   dst->_line[dy].text[dx] = src->_line[sy].text[sx];
     48434-                   SetAttr(dst->_line[dy].text[dx],
     48435-                           (AttrOf(src->_line[sy].text[sx]) & mask) | bk);
     48436-                   touched = TRUE;
     48437-               }
     48438-           } else {
     48439-               if (!CharEq(dst->_line[dy].text[dx], src->_line[sy].text[sx])) {
     48440-                   dst->_line[dy].text[dx] = src->_line[sy].text[sx];
     48441-                   touched = TRUE;
     48442+       /* make sure rectangle exists in source */
     48443+       if ((sminrow + dmaxrow - dminrow) <= (src->_maxy + 1) &&
     48444+           (smincol + dmaxcol - dmincol) <= (src->_maxx + 1)) {
     48445+
     48446+           T(("rectangle exists in source"));
     48447+
     48448+           /* make sure rectangle fits in destination */
     48449+           if (dmaxrow <= dst->_maxy && dmaxcol <= dst->_maxx) {
     48450+
     48451+               T(("rectangle fits in destination"));
     48452+
     48453+               for (dy = dminrow, sy = sminrow;
     48454+                    dy <= dmaxrow;
     48455+                    sy++, dy++) {
     48456+
     48457+                   touched = FALSE;
     48458+                   for (dx = dmincol, sx = smincol;
     48459+                        dx <= dmaxcol;
     48460+                        sx++, dx++) {
     48461+                       if (over) {
     48462+                           if ((CharOf(src->_line[sy].text[sx]) != L(' ')) &&
     48463+                               (!CharEq(dst->_line[dy].text[dx],
     48464+                                        src->_line[sy].text[sx]))) {
     48465+                               dst->_line[dy].text[dx] =
     48466+                                   src->_line[sy].text[sx];
     48467+                               SetAttr(dst->_line[dy].text[dx],
     48468+                                       ((AttrOf(src->_line[sy].text[sx]) &
     48469+                                         mask) | bk));
     48470+                               touched = TRUE;
     48471+                           }
     48472+                       } else {
     48473+                           if (!CharEq(dst->_line[dy].text[dx],
     48474+                                       src->_line[sy].text[sx])) {
     48475+                               dst->_line[dy].text[dx] =
     48476+                                   src->_line[sy].text[sx];
     48477+                               touched = TRUE;
     48478+                           }
     48479+                       }
     48480+                   }
     48481+                   if (touched) {
     48482+                       touchline(dst, dminrow, (dmaxrow - dminrow + 1));
     48483+                   }
     48484                }
     48485+               T(("finished copywin"));
     48486+               rc = OK;
     48487            }
     48488        }
     48489-       if (touched) {
     48490-           touchline(dst, dminrow, (dmaxrow - dminrow + 1));
     48491-       }
     48492+       _nc_unlock_global(curses);
     48493     }
     48494-    T(("finished copywin"));
     48495-    returnCode(OK);
     48496+    returnCode(rc);
     48497 }
    4387448498diff -Naur ncurses-5.6.orig/ncurses/base/lib_redrawln.c ncurses-5.6/ncurses/base/lib_redrawln.c
    4387548499--- ncurses-5.6.orig/ncurses/base/lib_redrawln.c        2006-11-04 18:08:47.000000000 -0500
    43876 +++ ncurses-5.6/ncurses/base/lib_redrawln.c     2007-12-21 00:02:36.000000000 -0500
     48500+++ ncurses-5.6/ncurses/base/lib_redrawln.c     2008-06-18 06:49:44.000000000 -0400
    4387748501@@ -1,5 +1,5 @@
    4387848502 /****************************************************************************
     
    4391548539diff -Naur ncurses-5.6.orig/ncurses/base/lib_refresh.c ncurses-5.6/ncurses/base/lib_refresh.c
    4391648540--- ncurses-5.6.orig/ncurses/base/lib_refresh.c 2006-05-27 15:21:19.000000000 -0400
    43917 +++ ncurses-5.6/ncurses/base/lib_refresh.c      2007-12-21 00:02:36.000000000 -0500
     48541+++ ncurses-5.6/ncurses/base/lib_refresh.c      2008-06-18 06:49:44.000000000 -0400
    4391848542@@ -1,5 +1,5 @@
    4391948543 /****************************************************************************
     
    4412448748diff -Naur ncurses-5.6.orig/ncurses/base/lib_restart.c ncurses-5.6/ncurses/base/lib_restart.c
    4412548749--- ncurses-5.6.orig/ncurses/base/lib_restart.c 2006-01-14 10:58:23.000000000 -0500
    44126 +++ ncurses-5.6/ncurses/base/lib_restart.c      2007-12-21 00:02:36.000000000 -0500
     48750+++ ncurses-5.6/ncurses/base/lib_restart.c      2008-06-18 06:49:50.000000000 -0400
    4412748751@@ -1,5 +1,5 @@
    4412848752 /****************************************************************************
    4412948753- * Copyright (c) 1998-2002,2006 Free Software Foundation, Inc.              *
    44130 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     48754+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4413148755  *                                                                          *
    4413248756  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    4413748761 
    4413848762-MODULE_ID("$Id: lib_restart.c,v 1.6 2006/01/14 15:58:23 tom Exp $")
    44139 +MODULE_ID("$Id: lib_restart.c,v 1.8 2007/10/13 19:59:47 tom Exp $")
     48763+MODULE_ID("$Id: lib_restart.c,v 1.9 2008/05/03 22:43:52 tom Exp $")
    4414048764 
    4414148765 NCURSES_EXPORT(int)
     
    4416248786        if (saveecho)
    4416348787            echo();
    44164 @@ -93,7 +92,8 @@
     48788@@ -89,11 +88,12 @@
     48789        reset_prog_mode();
     48790 
     48791 #if USE_SIZECHANGE
     48792-       _nc_update_screensize();
     48793+       _nc_update_screensize(SP);
    4416548794 #endif
    4416648795 
     
    4417448803diff -Naur ncurses-5.6.orig/ncurses/base/lib_screen.c ncurses-5.6/ncurses/base/lib_screen.c
    4417548804--- ncurses-5.6.orig/ncurses/base/lib_screen.c  2006-05-27 15:21:38.000000000 -0400
    44176 +++ ncurses-5.6/ncurses/base/lib_screen.c       2007-12-21 00:02:36.000000000 -0500
     48805+++ ncurses-5.6/ncurses/base/lib_screen.c       2008-06-18 06:49:44.000000000 -0400
    4417748806@@ -1,5 +1,5 @@
    4417848807 /****************************************************************************
     
    4422948858diff -Naur ncurses-5.6.orig/ncurses/base/lib_set_term.c ncurses-5.6/ncurses/base/lib_set_term.c
    4423048859--- ncurses-5.6.orig/ncurses/base/lib_set_term.c        2006-05-20 10:58:02.000000000 -0400
    44231 +++ ncurses-5.6/ncurses/base/lib_set_term.c     2007-12-21 00:02:36.000000000 -0500
     48860+++ ncurses-5.6/ncurses/base/lib_set_term.c     2008-06-18 06:49:51.000000000 -0400
    4423248861@@ -1,5 +1,5 @@
    4423348862 /****************************************************************************
    4423448863- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    44235 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     48864+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4423648865  *                                                                          *
    4423748866  * Permission is hereby granted, free of charge, to any person obtaining a  *
    4423848867  * copy of this software and associated documentation files (the            *
    44239 @@ -44,7 +44,7 @@
     48868@@ -44,31 +44,50 @@
    4424048869 #include <term.h>              /* cur_term */
    4424148870 #include <tic.h>
    4424248871 
    4424348872-MODULE_ID("$Id: lib_set_term.c,v 1.91 2006/05/20 14:58:02 tom Exp $")
    44244 +MODULE_ID("$Id: lib_set_term.c,v 1.100 2007/09/08 21:23:43 tom Exp $")
     48873+MODULE_ID("$Id: lib_set_term.c,v 1.112 2008/06/07 22:29:07 tom Exp $")
    4424548874 
    4424648875 NCURSES_EXPORT(SCREEN *)
    4424748876 set_term(SCREEN *screenp)
    44248 @@ -53,22 +53,28 @@
     48877 {
     48878     SCREEN *oldSP;
     48879+    SCREEN *newSP;
    4424948880 
    4425048881     T((T_CALLED("set_term(%p)"), screenp));
    4425148882 
    44252 +    _nc_lock_global(set_SP);
     48883+    _nc_lock_global(curses);
    4425348884+
    4425448885     oldSP = SP;
    4425548886     _nc_set_screen(screenp);
    44256  
    44257      set_curterm(SP->_term);
     48887+    newSP = SP;
     48888 
     48889-    set_curterm(SP->_term);
     48890-    curscr = SP->_curscr;
     48891-    newscr = SP->_newscr;
     48892-    stdscr = SP->_stdscr;
     48893-    COLORS = SP->_color_count;
     48894-    COLOR_PAIRS = SP->_pair_count;
     48895+    if (newSP != 0) {
     48896+       set_curterm(newSP->_term);
    4425848897+#if !USE_REENTRANT
    44259      curscr = SP->_curscr;
    44260      newscr = SP->_newscr;
    44261      stdscr = SP->_stdscr;
    44262      COLORS = SP->_color_count;
    44263      COLOR_PAIRS = SP->_pair_count;
     48898+       curscr = newSP->_curscr;
     48899+       newscr = newSP->_newscr;
     48900+       stdscr = newSP->_stdscr;
     48901+       COLORS = newSP->_color_count;
     48902+       COLOR_PAIRS = newSP->_pair_count;
    4426448903+#endif
    44265 +
    44266 +    _nc_unlock_global(set_SP);
     48904+    } else {
     48905+       set_curterm(0);
     48906+#if !USE_REENTRANT
     48907+       curscr = 0;
     48908+       newscr = 0;
     48909+       stdscr = 0;
     48910+       COLORS = 0;
     48911+       COLOR_PAIRS = 0;
     48912+#endif
     48913+    }
     48914+
     48915+    _nc_unlock_global(curses);
    4426748916 
    4426848917     T((T_RETURN("%p"), oldSP));
     
    4427648925     if (kt != 0) {
    4427748926        _nc_free_keytry(kt->child);
    44278 @@ -88,6 +94,7 @@
     48927@@ -77,95 +96,114 @@
     48928     }
     48929 }
     48930 
     48931+static bool
     48932+delink_screen(SCREEN *sp)
     48933+{
     48934+    SCREEN *last = 0;
     48935+    SCREEN *temp;
     48936+    bool result = FALSE;
     48937+
     48938+    for (each_screen(temp)) {
     48939+       if (temp == sp) {
     48940+           if (last)
     48941+               last = sp->_next_screen;
     48942+           else
     48943+               _nc_screen_chain = sp->_next_screen;
     48944+           result = TRUE;
     48945+           break;
     48946+       }
     48947+       last = temp;
     48948+    }
     48949+    return result;
     48950+}
     48951+
     48952 /*
     48953  * Free the storage associated with the given SCREEN sp.
     48954  */
     48955 NCURSES_EXPORT(void)
     48956 delscreen(SCREEN *sp)
     48957 {
     48958-    SCREEN **scan = &_nc_screen_chain;
     48959     int i;
    4427948960 
    4428048961     T((T_CALLED("delscreen(%p)"), sp));
    4428148962 
    44282 +    _nc_lock_global(set_SP);
    44283      while (*scan) {
    44284         if (*scan == sp) {
    44285             *scan = sp->_next_screen;
    44286 @@ -152,20 +159,20 @@
    44287       * multiple references in different screens).
    44288       */
    44289      if (sp == SP) {
     48963-    while (*scan) {
     48964-       if (*scan == sp) {
     48965-           *scan = sp->_next_screen;
     48966-           break;
     48967-       }
     48968-       scan = &(*scan)->_next_screen;
     48969-    }
     48970+    _nc_lock_global(curses);
     48971+    if (delink_screen(sp)) {
     48972 
     48973-    (void) _nc_freewin(sp->_curscr);
     48974-    (void) _nc_freewin(sp->_newscr);
     48975-    (void) _nc_freewin(sp->_stdscr);
     48976-
     48977-    if (sp->_slk != 0) {
     48978-       if (sp->_slk->ent != 0) {
     48979-           for (i = 0; i < sp->_slk->labcnt; ++i) {
     48980-               FreeIfNeeded(sp->_slk->ent[i].ent_text);
     48981-               FreeIfNeeded(sp->_slk->ent[i].form_text);
     48982+       (void) _nc_freewin(sp->_curscr);
     48983+       (void) _nc_freewin(sp->_newscr);
     48984+       (void) _nc_freewin(sp->_stdscr);
     48985+
     48986+       if (sp->_slk != 0) {
     48987+           if (sp->_slk->ent != 0) {
     48988+               for (i = 0; i < sp->_slk->labcnt; ++i) {
     48989+                   FreeIfNeeded(sp->_slk->ent[i].ent_text);
     48990+                   FreeIfNeeded(sp->_slk->ent[i].form_text);
     48991+               }
     48992+               free(sp->_slk->ent);
     48993            }
     48994-           free(sp->_slk->ent);
     48995+           free(sp->_slk);
     48996+           sp->_slk = 0;
     48997        }
     48998-       free(sp->_slk);
     48999-       sp->_slk = 0;
     49000-    }
     49001 
     49002-    _nc_free_keytry(sp->_keytry);
     49003-    sp->_keytry = 0;
     49004+       _nc_free_keytry(sp->_keytry);
     49005+       sp->_keytry = 0;
     49006 
     49007-    _nc_free_keytry(sp->_key_ok);
     49008-    sp->_key_ok = 0;
     49009+       _nc_free_keytry(sp->_key_ok);
     49010+       sp->_key_ok = 0;
     49011 
     49012-    FreeIfNeeded(sp->_current_attr);
     49013+       FreeIfNeeded(sp->_current_attr);
     49014 
     49015-    FreeIfNeeded(sp->_color_table);
     49016-    FreeIfNeeded(sp->_color_pairs);
     49017+       FreeIfNeeded(sp->_color_table);
     49018+       FreeIfNeeded(sp->_color_pairs);
     49019 
     49020-    FreeIfNeeded(sp->oldhash);
     49021-    FreeIfNeeded(sp->newhash);
     49022-    FreeIfNeeded(sp->hashtab);
     49023+       FreeIfNeeded(sp->oldhash);
     49024+       FreeIfNeeded(sp->newhash);
     49025+       FreeIfNeeded(sp->hashtab);
     49026 
     49027-    FreeIfNeeded(sp->_acs_map);
     49028-    FreeIfNeeded(sp->_screen_acs_map);
     49029+       FreeIfNeeded(sp->_acs_map);
     49030+       FreeIfNeeded(sp->_screen_acs_map);
     49031 
     49032-    del_curterm(sp->_term);
     49033+#if 0
     49034+       /* FIXME - this should be a copy of the struct, not a pointer */
     49035+       del_curterm(sp->_term);
     49036+#endif
     49037 
     49038-    /*
     49039-     * If the associated output stream has been closed, we can discard the
     49040-     * set-buffer.  Limit the error check to EBADF, since fflush may fail
     49041-     * for other reasons than trying to operate upon a closed stream.
     49042-     */
     49043-    if (sp->_ofp != 0
     49044-       && sp->_setbuf != 0
     49045-       && fflush(sp->_ofp) != 0
     49046-       && errno == EBADF) {
     49047-       free(sp->_setbuf);
     49048-    }
     49049+       /*
     49050+        * If the associated output stream has been closed, we can discard the
     49051+        * set-buffer.  Limit the error check to EBADF, since fflush may fail
     49052+        * for other reasons than trying to operate upon a closed stream.
     49053+        */
     49054+       if (sp->_ofp != 0
     49055+           && sp->_setbuf != 0
     49056+           && fflush(sp->_ofp) != 0
     49057+           && errno == EBADF) {
     49058+           free(sp->_setbuf);
     49059+       }
     49060 
     49061-    free(sp);
     49062+       free(sp);
     49063 
     49064-    /*
     49065-     * If this was the current screen, reset everything that the
     49066-     * application might try to use (except cur_term, which may have
     49067-     * multiple references in different screens).
     49068-     */
     49069-    if (sp == SP) {
     49070-       curscr = 0;
     49071-       newscr = 0;
     49072-       stdscr = 0;
     49073-       COLORS = 0;
     49074-       COLOR_PAIRS = 0;
     49075-       _nc_set_screen(0);
     49076+       /*
     49077+        * If this was the current screen, reset everything that the
     49078+        * application might try to use (except cur_term, which may have
     49079+        * multiple references in different screens).
     49080+        */
     49081+       if (sp == SP) {
    4429049082+#if !USE_REENTRANT
    44291         curscr = 0;
    44292         newscr = 0;
    44293         stdscr = 0;
    44294         COLORS = 0;
    44295         COLOR_PAIRS = 0;
     49083+           curscr = 0;
     49084+           newscr = 0;
     49085+           stdscr = 0;
     49086+           COLORS = 0;
     49087+           COLOR_PAIRS = 0;
    4429649088+#endif
    44297         _nc_set_screen(0);
     49089+           _nc_set_screen(0);
     49090+       }
    4429849091     }
    44299 +    _nc_unlock_global(set_SP);
     49092+    _nc_unlock_global(curses);
    4430049093+
    4430149094     returnVoid;
     
    4430949102 no_mouse_event(SCREEN *sp GCC_UNUSED)
    4431049103 {
    44311 @@ -214,17 +221,20 @@
     49104@@ -179,7 +217,7 @@
    4431249105 }
    44313  #endif
    44314  
    44315 +#define ripoff_sp      _nc_prescreen.rsp
    44316 +#define ripoff_stack   _nc_prescreen.rippedoff
    44317 +
     49106 
     49107 static bool
     49108-no_mouse_parse(int code GCC_UNUSED)
     49109+no_mouse_parse(SCREEN *sp GCC_UNUSED, int code GCC_UNUSED)
     49110 {
     49111     return TRUE;
     49112 }
     49113@@ -216,15 +254,16 @@
     49114 
    4431849115 /* OS-independent screen initializations */
    4431949116 NCURSES_EXPORT(int)
     
    4432649123                int slk_format)
    4432749124 {
     49125+    char *env;
    4432849126     int bottom_stolen = 0;
    4432949127-    int i;
     
    4433349131     T((T_CALLED("_nc_setupscreen(%d, %d, %p, %d, %d)"),
    4433449132        slines, scolumns, output, filtered, slk_format));
    44335 @@ -243,12 +253,20 @@
     49133@@ -243,12 +282,20 @@
    4433649134     if ((SP->_current_attr = typeCalloc(NCURSES_CH_T, 1)) == 0)
    4433749135        returnCode(ERR);
     
    4434049138+     * We should always check the screensize, just in case.
    4434149139+     */
    44342 +    _nc_get_screensize(&slines, &scolumns);
     49140+    _nc_get_screensize(SP, &slines, &scolumns);
    4434349141+    SET_LINES(slines);
    4434449142+    SET_COLS(scolumns);
     
    4435649154        cursor_down = parm_down_cursor = 0;
    4435749155        cursor_address = 0;
    44358 @@ -258,18 +276,6 @@
     49156@@ -258,18 +305,6 @@
    4435949157        cursor_home = carriage_return;
    4436049158        T(("filter screensize %dx%d", LINES, COLS));
     
    4437549173     T(("setting output mode to binary"));
    4437649174     fflush(output);
    44377 @@ -484,6 +490,15 @@
     49175@@ -484,37 +519,45 @@
    4437849176     }
    4437949177 
     
    4439149189 #if USE_WIDEC_SUPPORT
    4439249190     _nc_init_wacs();
    44393 @@ -506,15 +521,17 @@
     49191 
     49192     SP->_screen_acs_fix = (_nc_unicode_locale() && _nc_locale_breaks_acs());
     49193-    {
     49194-       char *env = _nc_get_locale();
     49195-       SP->_legacy_coding = ((env == 0)
     49196-                             || !strcmp(env, "C")
     49197-                             || !strcmp(env, "POSIX"));
     49198-    }
     49199 #endif
     49200+    env = _nc_get_locale();
     49201+    SP->_legacy_coding = ((env == 0)
     49202+                         || !strcmp(env, "C")
     49203+                         || !strcmp(env, "POSIX"));
     49204+    T(("legacy-coding %d", SP->_legacy_coding));
     49205 
     49206     _nc_idcok = TRUE;
     49207     _nc_idlok = FALSE;
     49208 
     49209-    _nc_windows = 0;           /* no windows yet */
     49210-
     49211     SP->oldhash = 0;
    4439449212     SP->newhash = 0;
    4439549213 
     
    4441349231     SP->_resize = resizeterm;
    4441449232 #endif
    44415 @@ -525,46 +542,63 @@
     49233@@ -525,46 +568,65 @@
    4441649234     def_shell_mode();
    4441749235     def_prog_mode();
     
    4443149249-           if (SP->_rippedoff[i].w != 0)
    4443249250-               SP->_rippedoff[i].hook(SP->_rippedoff[i].w, scolumns);
     49251-           else
    4443349252+    for (rop = ripoff_stack;
    4443449253+        rop != ripoff_sp && (rop - ripoff_stack) < N_RIPS;
     
    4445749276+                       : 0),
    4445849277+                      0);
    44459 +           if (w)
     49278+           if (w) {
     49279+               rop->win = w;
    4446049280+               rop->hook(w, scolumns);
    44461             else
     49281+           } else {
    4446249282                returnCode(ERR);
    4446349283-           if (rsp->line < 0)
     49284+           }
    4446449285+           if (rop->line < 0)
    4446549286                bottom_stolen += count;
     
    4450049321 _nc_ripoffline(int line, int (*init) (WINDOW *, int))
    4450149322 {
    44502 @@ -572,13 +606,14 @@
     49323@@ -572,13 +634,14 @@
    4450349324 
    4450449325     if (line != 0) {
     
    4452049341 
    4452149342     returnCode(OK);
     49343@@ -587,6 +650,7 @@
     49344 NCURSES_EXPORT(int)
     49345 ripoffline(int line, int (*init) (WINDOW *, int))
     49346 {
     49347+    START_TRACE();
     49348     T((T_CALLED("ripoffline(%d,%p)"), line, init));
     49349 
     49350     if (line == 0)
     49351diff -Naur ncurses-5.6.orig/ncurses/base/lib_slk.c ncurses-5.6/ncurses/base/lib_slk.c
     49352--- ncurses-5.6.orig/ncurses/base/lib_slk.c     2005-01-08 16:56:36.000000000 -0500
     49353+++ ncurses-5.6/ncurses/base/lib_slk.c  2008-06-18 06:49:51.000000000 -0400
     49354@@ -1,5 +1,5 @@
     49355 /****************************************************************************
     49356- * Copyright (c) 1998-2004,2005 Free Software Foundation, Inc.              *
     49357+ * Copyright (c) 1998-2005,2008 Free Software Foundation, Inc.              *
     49358  *                                                                          *
     49359  * Permission is hereby granted, free of charge, to any person obtaining a  *
     49360  * copy of this software and associated documentation files (the            *
     49361@@ -45,7 +45,7 @@
     49362 #include <ctype.h>
     49363 #include <term.h>              /* num_labels, label_*, plab_norm */
     49364 
     49365-MODULE_ID("$Id: lib_slk.c,v 1.30 2005/01/08 21:56:36 tom Exp $")
     49366+MODULE_ID("$Id: lib_slk.c,v 1.33 2008/05/31 22:05:57 tom Exp $")
     49367 
     49368 /*
     49369  * We'd like to move these into the screen context structure, but cannot,
     49370@@ -56,19 +56,20 @@
     49371 
     49372 /*
     49373  * Paint the info line for the PC style SLK emulation.
     49374- *
     49375  */
     49376 static void
     49377 slk_paint_info(WINDOW *win)
     49378 {
     49379-    if (win && SP->slk_format == 4) {
     49380+    SCREEN *sp = _nc_screen_of(win);
     49381+
     49382+    if (win && sp && (sp->slk_format == 4)) {
     49383        int i;
     49384 
     49385        mvwhline(win, 0, 0, 0, getmaxx(win));
     49386        wmove(win, 0, 0);
     49387 
     49388-       for (i = 0; i < SP->_slk->maxlab; i++) {
     49389-           mvwprintw(win, 0, SP->_slk->ent[i].ent_x, "F%d", i + 1);
     49390+       for (i = 0; i < sp->_slk->maxlab; i++) {
     49391+           mvwprintw(win, 0, sp->_slk->ent[i].ent_x, "F%d", i + 1);
     49392        }
     49393     }
     49394 }
     49395@@ -119,12 +120,12 @@
     49396 
     49397     SP->_slk->maxlab = ((num_labels > 0)
     49398                        ? num_labels
     49399-                       : MAX_SKEY(_nc_slk_format));
     49400+                       : MAX_SKEY(_nc_globals.slk_format));
     49401     SP->_slk->maxlen = ((num_labels > 0)
     49402                        ? label_width * label_height
     49403-                       : MAX_SKEY_LEN(_nc_slk_format));
     49404-    SP->_slk->labcnt = ((SP->_slk->maxlab < MAX_SKEY(_nc_slk_format))
     49405-                       ? MAX_SKEY(_nc_slk_format)
     49406+                       : MAX_SKEY_LEN(_nc_globals.slk_format));
     49407+    SP->_slk->labcnt = ((SP->_slk->maxlab < MAX_SKEY(_nc_globals.slk_format))
     49408+                       ? MAX_SKEY(_nc_globals.slk_format)
     49409                        : SP->_slk->maxlab);
     49410 
     49411     if (SP->_slk->maxlen <= 0
     49412@@ -148,7 +149,7 @@
     49413        memset(SP->_slk->ent[i].form_text, ' ', max_length);
     49414        SP->_slk->ent[i].visible = (i < SP->_slk->maxlab);
     49415     }
     49416-    if (_nc_slk_format >= 3) { /* PC style */
     49417+    if (_nc_globals.slk_format >= 3) { /* PC style */
     49418        int gap = (cols - 3 * (3 + 4 * max_length)) / 2;
     49419 
     49420        if (gap < 1)
     49421@@ -161,7 +162,7 @@
     49422        }
     49423        slk_paint_info(stwin);
     49424     } else {
     49425-       if (_nc_slk_format == 2) {      /* 4-4 */
     49426+       if (_nc_globals.slk_format == 2) {      /* 4-4 */
     49427            int gap = cols - (SP->_slk->maxlab * max_length) - 6;
     49428 
     49429            if (gap < 1)
     49430@@ -172,7 +173,7 @@
     49431                x += (i == 3) ? gap : 1;
     49432            }
     49433        } else {
     49434-           if (_nc_slk_format == 1) {  /* 1 -> 3-2-3 */
     49435+           if (_nc_globals.slk_format == 1) {  /* 1 -> 3-2-3 */
     49436                int gap = (cols - (SP->_slk->maxlab * max_length) - 5)
     49437                / 2;
     49438 
     49439@@ -196,8 +197,8 @@
     49440      * per default no SLK keys and may call slk_init again to
     49441      * define a new layout. (juergen 03-Mar-1999)
     49442      */
     49443-    SP->slk_format = _nc_slk_format;
     49444-    _nc_slk_format = 0;
     49445+    SP->slk_format = _nc_globals.slk_format;
     49446+    _nc_globals.slk_format = 0;
     49447     returnCode(res);
     49448 }
     49449 
     49450diff -Naur ncurses-5.6.orig/ncurses/base/lib_slkclear.c ncurses-5.6/ncurses/base/lib_slkclear.c
     49451--- ncurses-5.6.orig/ncurses/base/lib_slkclear.c        2006-05-27 15:21:19.000000000 -0400
     49452+++ ncurses-5.6/ncurses/base/lib_slkclear.c     2008-06-18 06:49:45.000000000 -0400
     49453@@ -1,5 +1,5 @@
     49454 /****************************************************************************
     49455- * Copyright (c) 1998-2001,2006 Free Software Foundation, Inc.              *
     49456+ * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     49457  *                                                                          *
     49458  * Permission is hereby granted, free of charge, to any person obtaining a  *
     49459  * copy of this software and associated documentation files (the            *
     49460@@ -29,6 +29,8 @@
     49461 /****************************************************************************
     49462  *  Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995               *
     49463  *     and: Eric S. Raymond <esr@snark.thyrsus.com>                         *
     49464+ *     and: Juergen Pfeifer                         1996-1999               *
     49465+ *     and: Thomas E. Dickey                        1996-on                 *
     49466  ****************************************************************************/
     49467 
     49468 /*
     49469@@ -38,24 +40,27 @@
     49470  */
     49471 #include <curses.priv.h>
     49472 
     49473-MODULE_ID("$Id: lib_slkclear.c,v 1.9 2006/05/27 19:21:19 tom Exp $")
     49474+MODULE_ID("$Id: lib_slkclear.c,v 1.10 2007/12/29 17:51:47 tom Exp $")
     49475 
     49476 NCURSES_EXPORT(int)
     49477 slk_clear(void)
     49478 {
     49479+    int rc = ERR;
     49480+
     49481     T((T_CALLED("slk_clear()")));
     49482 
     49483-    if (SP == NULL || SP->_slk == NULL)
     49484-       returnCode(ERR);
     49485-    SP->_slk->hidden = TRUE;
     49486-    /* For simulated SLK's it's looks much more natural to
     49487-       inherit those attributes from the standard screen */
     49488-    SP->_slk->win->_nc_bkgd = stdscr->_nc_bkgd;
     49489-    WINDOW_ATTRS(SP->_slk->win) = WINDOW_ATTRS(stdscr);
     49490-    if (SP->_slk->win == stdscr) {
     49491-       returnCode(OK);
     49492-    } else {
     49493-       werase(SP->_slk->win);
     49494-       returnCode(wrefresh(SP->_slk->win));
     49495+    if (SP != NULL && SP->_slk != NULL) {
     49496+       SP->_slk->hidden = TRUE;
     49497+       /* For simulated SLK's it looks much more natural to
     49498+          inherit those attributes from the standard screen */
     49499+       SP->_slk->win->_nc_bkgd = stdscr->_nc_bkgd;
     49500+       WINDOW_ATTRS(SP->_slk->win) = WINDOW_ATTRS(stdscr);
     49501+       if (SP->_slk->win == stdscr) {
     49502+           rc = OK;
     49503+       } else {
     49504+           werase(SP->_slk->win);
     49505+           rc = wrefresh(SP->_slk->win);
     49506+       }
     49507     }
     49508+    returnCode(rc);
     49509 }
    4452249510diff -Naur ncurses-5.6.orig/ncurses/base/lib_slkinit.c ncurses-5.6/ncurses/base/lib_slkinit.c
    4452349511--- ncurses-5.6.orig/ncurses/base/lib_slkinit.c 2000-12-09 21:43:27.000000000 -0500
    44524 +++ ncurses-5.6/ncurses/base/lib_slkinit.c      2007-12-21 00:02:36.000000000 -0500
     49512+++ ncurses-5.6/ncurses/base/lib_slkinit.c      2008-06-18 06:49:46.000000000 -0400
    4452549513@@ -1,5 +1,5 @@
    4452649514 /****************************************************************************
    4452749515- * Copyright (c) 1998,2000 Free Software Foundation, Inc.                   *
    44528 + * Copyright (c) 1998-2000,2007 Free Software Foundation, Inc.              *
     49516+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4452949517  *                                                                          *
    4453049518  * Permission is hereby granted, free of charge, to any person obtaining a  *
    4453149519  * copy of this software and associated documentation files (the            *
    44532 @@ -38,14 +38,17 @@
     49520@@ -29,6 +29,7 @@
     49521 /****************************************************************************
     49522  *  Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995               *
     49523  *     and: Eric S. Raymond <esr@snark.thyrsus.com>                         *
     49524+ *     and: Thomas E. Dickey                        1996-on                 *
     49525  ****************************************************************************/
     49526 
     49527 /*
     49528@@ -38,14 +39,17 @@
    4453349529  */
    4453449530 #include <curses.priv.h>
    4453549531 
    4453649532-MODULE_ID("$Id: lib_slkinit.c,v 1.5 2000/12/10 02:43:27 tom Exp $")
    44537 +MODULE_ID("$Id: lib_slkinit.c,v 1.6 2007/05/12 18:14:21 tom Exp $")
     49533+MODULE_ID("$Id: lib_slkinit.c,v 1.7 2008/01/12 20:23:39 tom Exp $")
    4453849534 
    4453949535 NCURSES_EXPORT(int)
     
    4454749543-    _nc_slk_format = 1 + format;
    4454849544-    returnCode(OK);
    44549 +    if (format >= 0 && format <= 3 && !_nc_slk_format) {
    44550 +       _nc_slk_format = 1 + format;
    44551 +       code = _nc_ripoffline(-SLK_LINES(_nc_slk_format), _nc_slk_initialize);
     49545+    if (format >= 0 && format <= 3 && !_nc_globals.slk_format) {
     49546+       _nc_globals.slk_format = 1 + format;
     49547+       code = _nc_ripoffline(-SLK_LINES(_nc_globals.slk_format), _nc_slk_initialize);
    4455249548+    }
    4455349549+    returnCode(code);
     
    4455549551diff -Naur ncurses-5.6.orig/ncurses/base/lib_slkset.c ncurses-5.6/ncurses/base/lib_slkset.c
    4455649552--- ncurses-5.6.orig/ncurses/base/lib_slkset.c  2006-12-17 14:47:09.000000000 -0500
    44557 +++ ncurses-5.6/ncurses/base/lib_slkset.c       2007-12-21 00:02:36.000000000 -0500
     49553+++ ncurses-5.6/ncurses/base/lib_slkset.c       2008-06-18 06:49:44.000000000 -0400
    4455849554@@ -1,5 +1,5 @@
    4455949555 /****************************************************************************
     
    4459449590diff -Naur ncurses-5.6.orig/ncurses/base/lib_ungetch.c ncurses-5.6/ncurses/base/lib_ungetch.c
    4459549591--- ncurses-5.6.orig/ncurses/base/lib_ungetch.c 2002-08-24 18:08:48.000000000 -0400
    44596 +++ ncurses-5.6/ncurses/base/lib_ungetch.c      2007-12-21 00:02:36.000000000 -0500
     49592+++ ncurses-5.6/ncurses/base/lib_ungetch.c      2008-06-18 06:49:51.000000000 -0400
    4459749593@@ -1,5 +1,5 @@
    4459849594 /****************************************************************************
    4459949595- * Copyright (c) 1998-2001,2002 Free Software Foundation, Inc.              *
    44600 + * Copyright (c) 1998-2002,2007 Free Software Foundation, Inc.              *
     49596+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4460149597  *                                                                          *
    4460249598  * Permission is hereby granted, free of charge, to any person obtaining a  *
    4460349599  * copy of this software and associated documentation files (the            *
    44604 @@ -40,7 +40,7 @@
     49600@@ -29,6 +29,7 @@
     49601 /****************************************************************************
     49602  *  Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995               *
     49603  *     and: Eric S. Raymond <esr@snark.thyrsus.com>                         *
     49604+ *     and: Thomas E. Dickey                        1996-on                 *
     49605  ****************************************************************************/
     49606 
     49607 /*
     49608@@ -40,40 +41,50 @@
    4460549609 
    4460649610 #include <curses.priv.h>
    4460749611 
    4460849612-MODULE_ID("$Id: lib_ungetch.c,v 1.8 2002/08/24 22:08:48 tom Exp $")
    44609 +MODULE_ID("$Id: lib_ungetch.c,v 1.9 2007/09/29 21:49:56 tom Exp $")
     49613+MODULE_ID("$Id: lib_ungetch.c,v 1.11 2008/05/31 16:44:54 tom Exp $")
    4461049614 
    4461149615 #include <fifo_defs.h>
    4461249616 
    44613 @@ -72,8 +72,10 @@
    44614      SP->_fifo[head] = ch;
    44615      T(("ungetch %s ok", _tracechar(ch)));
     49617 #ifdef TRACE
     49618 NCURSES_EXPORT(void)
     49619-_nc_fifo_dump(void)
     49620+_nc_fifo_dump(SCREEN *sp)
     49621 {
     49622     int i;
     49623     T(("head = %d, tail = %d, peek = %d", head, tail, peek));
     49624     for (i = 0; i < 10; i++)
     49625-       T(("char %d = %s", i, _tracechar(SP->_fifo[i])));
     49626+       T(("char %d = %s", i, _nc_tracechar(sp, sp->_fifo[i])));
     49627 }
     49628 #endif /* TRACE */
     49629 
     49630 NCURSES_EXPORT(int)
     49631-ungetch(int ch)
     49632+_nc_ungetch(SCREEN *sp, int ch)
     49633 {
     49634-    T((T_CALLED("ungetch(%s)"), _tracechar(ch)));
     49635+    int rc = ERR;
     49636 
     49637-    if (tail == -1)
     49638-       returnCode(ERR);
     49639-    if (head == -1) {
     49640-       head = 0;
     49641-       t_inc()
     49642+    if (tail != -1) {
     49643+       if (head == -1) {
     49644+           head = 0;
     49645+           t_inc();
     49646            peek = tail;        /* no raw keys */
     49647-    } else
     49648-       h_dec();
     49649+       } else
     49650+           h_dec();
     49651 
     49652-    SP->_fifo[head] = ch;
     49653-    T(("ungetch %s ok", _tracechar(ch)));
     49654+       sp->_fifo[head] = ch;
     49655+       T(("ungetch %s ok", _nc_tracechar(sp, ch)));
    4461649656 #ifdef TRACE
    4461749657-    if (_nc_tracing & TRACE_IEVENT)
    44618 +    if (USE_TRACEF(TRACE_IEVENT)) {
    44619         _nc_fifo_dump();
    44620 +       _nc_unlock_global(tracef);
     49658-       _nc_fifo_dump();
     49659+       if (USE_TRACEF(TRACE_IEVENT)) {
     49660+           _nc_fifo_dump(sp);
     49661+           _nc_unlock_global(tracef);
     49662+       }
     49663 #endif
     49664-    returnCode(OK);
     49665+       rc = OK;
    4462149666+    }
    44622  #endif
    44623      returnCode(OK);
     49667+    return rc;
     49668+}
     49669+
     49670+NCURSES_EXPORT(int)
     49671+ungetch(int ch)
     49672+{
     49673+    T((T_CALLED("ungetch(%s)"), _nc_tracechar(SP, ch)));
     49674+    returnCode(_nc_ungetch(SP, ch));
    4462449675 }
    4462549676diff -Naur ncurses-5.6.orig/ncurses/base/lib_window.c ncurses-5.6/ncurses/base/lib_window.c
    4462649677--- ncurses-5.6.orig/ncurses/base/lib_window.c  2006-05-27 15:21:19.000000000 -0400
    44627 +++ ncurses-5.6/ncurses/base/lib_window.c       2007-12-21 00:02:36.000000000 -0500
     49678+++ ncurses-5.6/ncurses/base/lib_window.c       2008-06-18 06:49:51.000000000 -0400
    4462849679@@ -1,5 +1,5 @@
    4462949680 /****************************************************************************
    4463049681- * Copyright (c) 1998-2002,2006 Free Software Foundation, Inc.              *
    44631 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     49682+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4463249683  *                                                                          *
    4463349684  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    4463849689 
    4463949690-MODULE_ID("$Id: lib_window.c,v 1.22 2006/05/27 19:21:19 tom Exp $")
    44640 +MODULE_ID("$Id: lib_window.c,v 1.23 2007/06/30 23:36:11 tom Exp $")
     49691+MODULE_ID("$Id: lib_window.c,v 1.25 2008/06/07 14:12:56 tom Exp $")
    4464149692 
    4464249693 NCURSES_EXPORT(void)
     
    4465149702                    left = 0;
    4465249703                if (right > win->_maxx)
     49704@@ -186,6 +186,7 @@
     49705 
     49706     if (win != 0) {
     49707 
     49708+       _nc_lock_global(curses);
     49709        if (win->_flags & _ISPAD) {
     49710            nwin = newpad(win->_maxy + 1,
     49711                          win->_maxx + 1);
     49712@@ -243,6 +244,7 @@
     49713                nwin->_line[i].lastchar = win->_line[i].lastchar;
     49714            }
     49715        }
     49716+       _nc_unlock_global(curses);
     49717     }
     49718     returnWin(nwin);
     49719 }
    4465349720diff -Naur ncurses-5.6.orig/ncurses/base/memmove.c ncurses-5.6/ncurses/base/memmove.c
    4465449721--- ncurses-5.6.orig/ncurses/base/memmove.c     2000-12-09 21:43:28.000000000 -0500
    44655 +++ ncurses-5.6/ncurses/base/memmove.c  2007-12-21 00:02:36.000000000 -0500
     49722+++ ncurses-5.6/ncurses/base/memmove.c  2008-06-18 06:49:44.000000000 -0400
    4465649723@@ -1,5 +1,5 @@
    4465749724 /****************************************************************************
     
    4468149748diff -Naur ncurses-5.6.orig/ncurses/base/resizeterm.c ncurses-5.6/ncurses/base/resizeterm.c
    4468249749--- ncurses-5.6.orig/ncurses/base/resizeterm.c  2006-10-14 16:43:31.000000000 -0400
    44683 +++ ncurses-5.6/ncurses/base/resizeterm.c       2007-12-21 00:02:36.000000000 -0500
     49750+++ ncurses-5.6/ncurses/base/resizeterm.c       2008-06-18 06:49:51.000000000 -0400
    4468449751@@ -1,5 +1,5 @@
    4468549752 /****************************************************************************
    4468649753- * Copyright (c) 1998-2004,2006 Free Software Foundation, Inc.              *
    44687 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     49754+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4468849755  *                                                                          *
    4468949756  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    4469449761 
    4469549762-MODULE_ID("$Id: resizeterm.c,v 1.18 2006/10/14 20:43:31 tom Exp $")
    44696 +MODULE_ID("$Id: resizeterm.c,v 1.23 2007/10/13 20:12:13 tom Exp $")
     49763+MODULE_ID("$Id: resizeterm.c,v 1.34 2008/06/07 13:58:40 tom Exp $")
    4469749764 
    4469849765 #define stolen_lines (screen_lines - SP->_lines_avail)
     
    4471549782 #ifdef TRACE
    4471649783 static void
    44717 @@ -121,10 +133,10 @@
     49784@@ -54,9 +66,10 @@
     49785 {
     49786     WINDOWLIST *wp;
     49787 
     49788+    _nc_lock_global(curses);
     49789     _tracef("%s resizing: %2d x %2d (%2d x %2d)", name, LINES, COLS,
     49790            screen_lines, screen_columns);
     49791-    for (wp = _nc_windows; wp != 0; wp = wp->next) {
     49792+    for (each_window(wp)) {
     49793        _tracef("  window %p is %2ld x %2ld at %2ld,%2ld",
     49794                &(wp->win),
     49795                (long) wp->win._maxy + 1,
     49796@@ -64,9 +77,14 @@
     49797                (long) wp->win._begy,
     49798                (long) wp->win._begx);
     49799     }
     49800+    _nc_unlock_global(curses);
     49801 }
     49802 #endif
     49803 
     49804+/*
     49805+ * Return true if the given dimensions do not match the internal terminal
     49806+ * structure's size.
     49807+ */
     49808 NCURSES_EXPORT(bool)
     49809 is_term_resized(int ToLines, int ToCols)
     49810 {
     49811@@ -78,6 +96,48 @@
     49812 }
     49813 
     49814 /*
     49815+ */
     49816+static ripoff_t *
     49817+ripped_window(WINDOW *win)
     49818+{
     49819+    ripoff_t *result = 0;
     49820+    ripoff_t *rop;
     49821+
     49822+    if (win != 0) {
     49823+       for (each_ripoff(rop)) {
     49824+           if (rop->win == win && rop->line != 0) {
     49825+               result = rop;
     49826+               break;
     49827+           }
     49828+       }
     49829+    }
     49830+    return result;
     49831+}
     49832+
     49833+/*
     49834+ * Returns the number of lines from the bottom for the beginning of a ripped
     49835+ * off window.
     49836+ */
     49837+static int
     49838+ripped_bottom(WINDOW *win)
     49839+{
     49840+    int result = 0;
     49841+    ripoff_t *rop;
     49842+
     49843+    if (win != 0) {
     49844+       for (each_ripoff(rop)) {
     49845+           if (rop->line < 0) {
     49846+               result -= rop->line;
     49847+               if (rop->win == win) {
     49848+                   break;
     49849+               }
     49850+           }
     49851+       }
     49852+    }
     49853+    return result;
     49854+}
     49855+
     49856+/*
     49857  * Return the number of levels of child-windows under the current window.
     49858  */
     49859 static int
     49860@@ -88,7 +148,7 @@
     49861     if (cmp != 0) {
     49862        WINDOWLIST *wp;
     49863 
     49864-       for (wp = _nc_windows; wp != 0; wp = wp->next) {
     49865+       for (each_window(wp)) {
     49866            WINDOW *tst = &(wp->win);
     49867            if (tst->_parent == cmp) {
     49868                depth = 1 + child_depth(tst);
     49869@@ -121,41 +181,53 @@
    4471849870  * FIXME: must adjust position so it's within the parent!
    4471949871  */
     
    4472749879     int myLines = win->_maxy + 1;
    4472849880     int myCols = win->_maxx + 1;
    44729  
    44730 @@ -134,13 +146,13 @@
    44731         (long) getbegy(win), (long) getbegx(win)));
    44732  
    44733      if (win->_begy >= bottom) {
     49881+    ripoff_t *rop = ripped_window(win);
     49882 
     49883-    T((T_CALLED("adjust_window(%p,%d,%d) currently %ldx%ld at %ld,%ld"),
     49884+    T((T_CALLED("adjust_window(%p,%d,%d)%s depth %d/%d currently %ldx%ld at %ld,%ld"),
     49885        win, ToLines, ToCols,
     49886+       (rop != 0) ? " (rip)" : "",
     49887+       parent_depth(win),
     49888+       child_depth(win),
     49889        (long) getmaxy(win), (long) getmaxx(win),
     49890-       (long) getbegy(win), (long) getbegx(win)));
     49891+       (long) getbegy(win) + win->_yoffset, (long) getbegx(win)));
     49892 
     49893-    if (win->_begy >= bottom) {
    4473449894-       win->_begy += (ToLines - current_lines);
     49895+    if (rop != 0 && rop->line < 0) {
     49896+       /*
     49897+        * If it is a ripped-off window at the bottom of the screen, simply
     49898+        * move it to the same relative position.
     49899+        */
     49900+       win->_begy = ToLines - ripped_bottom(win) - 0 - win->_yoffset;
     49901+    } else if (win->_begy >= bottom) {
     49902+       /*
     49903+        * If it is below the bottom of the new screen, move up by the same
     49904+        * amount that the screen shrank.
     49905+        */
    4473549906+       win->_begy += (ToLines - CurLines);
    4473649907     } else {
    4473749908-       if (myLines == current_lines - stolen
    4473849909-           && ToLines != current_lines)
    44739 +       if (myLines == CurLines - stolen
    44740 +           && ToLines != CurLines)
     49910+       if (myLines == (CurLines - stolen)
     49911+           && ToLines != CurLines) {
    4474149912            myLines = ToLines - stolen;
    4474249913-       else if (myLines == current_lines
    4474349914-                && ToLines != current_lines)
    44744 +       else if (myLines == CurLines
    44745 +                && ToLines != CurLines)
     49915+       } else if (myLines == CurLines
     49916+                  && ToLines != CurLines) {
    4474649917            myLines = ToLines;
     49918+       }
    4474749919     }
    4474849920 
    44749 @@ -150,12 +162,12 @@
     49921-    if (myLines > ToLines)
     49922+    if (myLines > ToLines) {
     49923        myLines = ToLines;
     49924+    }
     49925 
    4475049926     if (myCols > ToCols)
    4475149927        myCols = ToCols;
     
    4475349929-    if (myLines == current_lines
    4475449930-       && ToLines != current_lines)
    44755 +    if (myLines == CurLines
    44756 +       && ToLines != CurLines)
    44757         myLines = ToLines;
    44758  
     49931-       myLines = ToLines;
     49932-
    4475949933-    if (myCols == current_cols
    4476049934-       && ToCols != current_cols)
     
    4476449938 
    4476549939     result = wresize(win, myLines, myCols);
    44766 @@ -167,7 +179,7 @@
     49940@@ -167,7 +239,7 @@
    4476749941  * children, decrease those to fit, then decrease the containing window, etc.
    4476849942  */
     
    4477349947     bool found;
    4477449948     int depth = 0;
    44775 @@ -185,7 +197,8 @@
     49949@@ -179,13 +251,14 @@
     49950        found = FALSE;
     49951        TR(TRACE_UPDATE, ("decreasing size of windows to %dx%d, depth=%d",
     49952                          ToLines, ToCols, depth));
     49953-       for (wp = _nc_windows; wp != 0; wp = wp->next) {
     49954+       for (each_window(wp)) {
     49955            WINDOW *win = &(wp->win);
     49956 
    4477649957            if (!(win->_flags & _ISPAD)) {
    4477749958                if (child_depth(win) == depth) {
     
    4478349964                }
    4478449965            }
    44785 @@ -200,7 +213,7 @@
     49966@@ -200,7 +273,7 @@
    4478649967  * parent, increase those to fit, then increase the contained window, etc.
    4478749968  */
     
    4479249973     bool found;
    4479349974     int depth = 0;
    44794 @@ -218,7 +231,8 @@
     49975@@ -212,13 +285,14 @@
     49976        found = FALSE;
     49977        TR(TRACE_UPDATE, ("increasing size of windows to %dx%d, depth=%d",
     49978                          ToLines, ToCols, depth));
     49979-       for (wp = _nc_windows; wp != 0; wp = wp->next) {
     49980+       for (each_window(wp)) {
     49981            WINDOW *win = &(wp->win);
     49982 
    4479549983            if (!(win->_flags & _ISPAD)) {
    4479649984                if (parent_depth(win) == depth) {
     
    4480249990                }
    4480349991            }
    44804 @@ -235,36 +249,42 @@
     49992@@ -235,36 +309,45 @@
    4480549993 NCURSES_EXPORT(int)
    4480649994 resize_term(int ToLines, int ToCols)
     
    4481850006+       returnCode(ERR);
    4481950007+    }
     50008+
     50009+    _nc_lock_global(curses);
     50010+
    4482050011+    was_stolen = (screen_lines - SP->_lines_avail);
    4482150012     if (is_term_resized(ToLines, ToCols)) {
     
    4485750048 
    4485850049        screen_lines = lines = ToLines;
    44859 @@ -279,10 +299,11 @@
     50050@@ -279,10 +362,11 @@
    4486050051            FreeAndNull(SP->newhash);
    4486150052        }
     
    4487250063 #endif
    4487350064     }
    44874 @@ -291,8 +312,8 @@
     50065@@ -291,8 +375,10 @@
    4487550066      * Always update LINES, to allow for call from lib_doupdate.c which
    4487650067      * needs to have the count adjusted by the stolen (ripped off) lines.
     
    4488050071+    SET_LINES(ToLines - was_stolen);
    4488150072+    SET_COLS(ToCols);
     50073+
     50074+    _nc_unlock_global(curses);
    4488250075 
    4488350076     returnCode(result);
    4488450077 }
    44885 @@ -308,22 +329,25 @@
     50078@@ -308,22 +394,61 @@
    4488650079 NCURSES_EXPORT(int)
    4488750080 resizeterm(int ToLines, int ToCols)
     
    4490050093+       result = OK;
    4490150094+       SP->_sig_winch = FALSE;
    44902 +
     50095 
    4490350096+       if (is_term_resized(ToLines, ToCols)) {
    44904  
    4490550097 #if USE_SIGWINCH
    4490650098-       ungetch(KEY_RESIZE);    /* so application can know this */
    4490750099-       clearok(curscr, TRUE);  /* screen contents are unknown */
    44908 +           ungetch(KEY_RESIZE);        /* so application can know this */
     50100+           ripoff_t *rop;
     50101+           bool slk_visible = (SP != 0
     50102+                               && SP->_slk != 0
     50103+                               && !(SP->_slk->hidden));
     50104+
     50105+           if (slk_visible) {
     50106+               slk_clear();
     50107+           }
     50108 #endif
     50109+           result = resize_term(ToLines, ToCols);
     50110+
     50111+#if USE_SIGWINCH
     50112+           _nc_ungetch(SP, KEY_RESIZE);        /* so application can know this */
    4490950113+           clearok(curscr, TRUE);      /* screen contents are unknown */
    44910  #endif
     50114+
     50115+           /* ripped-off lines are a special case: if we did not lengthen
     50116+            * them, we haven't moved them either.  repaint them, too.
     50117+            *
     50118+            * for the rest - stdscr and other windows - the client has to
     50119+            * decide which to repaint, since without panels, ncurses does
     50120+            * not know which are really on top.
     50121+            */
     50122+           for (each_ripoff(rop)) {
     50123+               if (rop->win != stdscr
     50124+                   && rop->win != 0
     50125+                   && rop->line < 0) {
     50126+
     50127+                   if (rop->hook != _nc_slk_initialize) {
     50128+                       touchwin(rop->win);
     50129+                       wnoutrefresh(rop->win);
     50130+                   }
     50131+               }
     50132+           }
     50133+
     50134+           /* soft-keys are a special case: we _know_ how to repaint them */
     50135+           if (slk_visible) {
     50136+               slk_restore();
     50137+               slk_touch();
    4491150138 
    4491250139-       result = resize_term(ToLines, ToCols);
    44913 +           result = resize_term(ToLines, ToCols);
     50140+               slk_refresh();
     50141+           }
     50142+#endif
    4491450143+       }
    4491550144     }
     
    4491850147diff -Naur ncurses-5.6.orig/ncurses/base/safe_sprintf.c ncurses-5.6/ncurses/base/safe_sprintf.c
    4491950148--- ncurses-5.6.orig/ncurses/base/safe_sprintf.c        2003-08-09 17:52:04.000000000 -0400
    44920 +++ ncurses-5.6/ncurses/base/safe_sprintf.c     2007-12-21 00:02:36.000000000 -0500
     50149+++ ncurses-5.6/ncurses/base/safe_sprintf.c     2008-06-18 06:49:44.000000000 -0400
    4492150150@@ -1,5 +1,5 @@
    4492250151 /****************************************************************************
     
    4502150250diff -Naur ncurses-5.6.orig/ncurses/base/tries.c ncurses-5.6/ncurses/base/tries.c
    4502250251--- ncurses-5.6.orig/ncurses/base/tries.c       2005-11-26 15:09:18.000000000 -0500
    45023 +++ ncurses-5.6/ncurses/base/tries.c    2007-12-21 00:02:36.000000000 -0500
     50252+++ ncurses-5.6/ncurses/base/tries.c    2008-06-18 06:49:51.000000000 -0400
    4502450253@@ -1,5 +1,5 @@
    4502550254 /****************************************************************************
    4502650255- * Copyright (c) 1998-2003,2005 Free Software Foundation, Inc.              *
    45027 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     50256+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4502850257  *                                                                          *
    4502950258  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    4503450263 
    4503550264-MODULE_ID("$Id: tries.c,v 1.22 2005/11/26 20:09:18 tom Exp $")
    45036 +MODULE_ID("$Id: tries.c,v 1.25 2007/09/29 20:37:13 tom Exp $")
     50265+MODULE_ID("$Id: tries.c,v 1.26 2008/05/31 16:54:22 tom Exp $")
    4503750266 
    4503850267 /*
     
    4505850287 #ifdef TRACE
    4505950288-       if (len == 0 && _nc_tracing != 0)
     50289-           _tracef("expand_key %s %s", _tracechar(code), _nc_visbuf(result));
    4506050290+       if (len == 0 && USE_TRACEF(TRACE_MAXIMUM)) {
    45061             _tracef("expand_key %s %s", _tracechar(code), _nc_visbuf(result));
     50291+           _tracef("expand_key %s %s", _nc_tracechar(SP, code), _nc_visbuf(result));
    4506250292+           _nc_unlock_global(tracef);
    4506350293+       }
     
    4510350333diff -Naur ncurses-5.6.orig/ncurses/base/use_window.c ncurses-5.6/ncurses/base/use_window.c
    4510450334--- ncurses-5.6.orig/ncurses/base/use_window.c  1969-12-31 19:00:00.000000000 -0500
    45105 +++ ncurses-5.6/ncurses/base/use_window.c       2007-12-21 00:02:36.000000000 -0500
    45106 @@ -0,0 +1,80 @@
     50335+++ ncurses-5.6/ncurses/base/use_window.c       2008-06-18 06:49:51.000000000 -0400
     50336@@ -0,0 +1,48 @@
    4510750337+/****************************************************************************
    45108 + * Copyright (c) 2007 Free Software Foundation, Inc.                        *
     50338+ * Copyright (c) 2007,2008 Free Software Foundation, Inc.                   *
    4510950339+ *                                                                          *
    4511050340+ * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    4513950369+#include <curses.priv.h>
    4514050370+
    45141 +MODULE_ID("$Id: use_window.c,v 1.2 2007/10/20 19:57:55 tom Exp $")
    45142 +
    45143 +#ifdef USE_PTHREADS
    45144 +NCURSES_EXPORT(void)
    45145 +_nc_lock_window(WINDOW *win)
    45146 +{
    45147 +    WINDOWLIST *p;
    45148 +
    45149 +    _nc_lock_global(windowlist);
    45150 +    for (p = _nc_windows; p != 0; p = p->next) {
    45151 +       if (&(p->win) == win) {
    45152 +           pthread_mutex_lock(&(p->mutex_use_window));
    45153 +           break;
    45154 +       }
    45155 +    }
    45156 +    _nc_unlock_global(windowlist);
    45157 +}
    45158 +
    45159 +NCURSES_EXPORT(void)
    45160 +_nc_unlock_window(WINDOW *win)
    45161 +{
    45162 +    WINDOWLIST *p;
    45163 +
    45164 +    _nc_lock_global(windowlist);
    45165 +    for (p = _nc_windows; p != 0; p = p->next) {
    45166 +       if (&(p->win) == win) {
    45167 +           pthread_mutex_unlock(&(p->mutex_use_window));
    45168 +           break;
    45169 +       }
    45170 +    }
    45171 +    _nc_unlock_global(windowlist);
    45172 +}
    45173 +#endif
     50371+MODULE_ID("$Id: use_window.c,v 1.8 2008/06/07 14:13:46 tom Exp $")
    4517450372+
    4517550373+NCURSES_EXPORT(int)
    45176 +use_window(WINDOW *win, NCURSES_CALLBACK func, void *data)
     50374+use_window(WINDOW *win, NCURSES_WINDOW_CB func, void *data)
    4517750375+{
    4517850376+    int code = OK;
    4517950377+
    4518050378+    T((T_CALLED("use_window(%p,%p,%p)"), win, func, data));
    45181 +    _nc_lock_window(win);
     50379+    _nc_lock_global(curses);
    4518250380+    code = func(win, data);
    45183 +    _nc_unlock_window(win);
     50381+    _nc_unlock_global(curses);
    4518450382+
    4518550383+    returnCode(code);
     
    4518750385diff -Naur ncurses-5.6.orig/ncurses/base/wresize.c ncurses-5.6/ncurses/base/wresize.c
    4518850386--- ncurses-5.6.orig/ncurses/base/wresize.c     2006-10-14 16:43:31.000000000 -0400
    45189 +++ ncurses-5.6/ncurses/base/wresize.c  2007-12-21 00:02:36.000000000 -0500
     50387+++ ncurses-5.6/ncurses/base/wresize.c  2008-06-18 06:49:51.000000000 -0400
    4519050388@@ -1,5 +1,5 @@
    4519150389 /****************************************************************************
    4519250390- * Copyright (c) 1998-2002,2006 Free Software Foundation, Inc.              *
    45193 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     50391+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4519450392  *                                                                          *
    4519550393  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    4520050398 
    4520150399-MODULE_ID("$Id: wresize.c,v 1.24 2006/10/14 20:43:31 tom Exp $")
    45202 +MODULE_ID("$Id: wresize.c,v 1.26 2007/09/29 20:37:13 tom Exp $")
     50400+MODULE_ID("$Id: wresize.c,v 1.29 2008/06/07 13:59:01 tom Exp $")
    4520350401 
    4520450402 static int
     
    4521150409     return ERR;
    4521250410 }
    45213 @@ -96,8 +96,10 @@
     50411@@ -54,7 +54,9 @@
     50412     struct ldat *pline = cmp->_line;
     50413     int row;
     50414 
     50415-    for (wp = _nc_windows; wp != 0; wp = wp->next) {
     50416+    _nc_lock_global(curses);
     50417+
     50418+    for (each_window(wp)) {
     50419        WINDOW *tst = &(wp->win);
     50420 
     50421        if (tst->_parent == cmp) {
     50422@@ -75,6 +77,7 @@
     50423            repair_subwindows(tst);
     50424        }
     50425     }
     50426+    _nc_unlock_global(curses);
     50427 }
     50428 
     50429 /*
     50430@@ -96,8 +99,10 @@
    4521450431                          (long) win->_begy, (long) win->_begx,
    4521550432                          (long) win->_maxy, (long) win->_maxx,
     
    4522350440 #endif
    4522450441 
    45225 @@ -232,8 +234,10 @@
     50442@@ -232,8 +237,10 @@
    4522650443                      (long) win->_begy, (long) win->_begx,
    4522750444                      (long) win->_maxy, (long) win->_maxx,
     
    4523750454diff -Naur ncurses-5.6.orig/ncurses/curses.priv.h ncurses-5.6/ncurses/curses.priv.h
    4523850455--- ncurses-5.6.orig/ncurses/curses.priv.h      2006-12-09 19:55:14.000000000 -0500
    45239 +++ ncurses-5.6/ncurses/curses.priv.h   2007-12-21 00:02:36.000000000 -0500
     50456+++ ncurses-5.6/ncurses/curses.priv.h   2008-06-18 06:49:51.000000000 -0400
    4524050457@@ -1,5 +1,5 @@
    4524150458 /****************************************************************************
    4524250459- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    45243 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     50460+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4524450461  *                                                                          *
    4524550462  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    4525050467 /*
    4525150468- * $Id: curses.priv.h,v 1.314 2006/12/10 00:55:14 tom Exp $
    45252 + * $Id: curses.priv.h,v 1.351 2007/11/25 00:57:29 tom Exp $
     50469+ * $Id: curses.priv.h,v 1.383 2008/06/07 14:13:19 tom Exp $
    4525350470  *
    4525450471  *     curses.priv.h
     
    4529050507 #include <term.h>
    4529150508 #include <term_entry.h>
    45292 @@ -284,6 +292,38 @@
     50509@@ -284,6 +292,70 @@
    4529350510 #define GET_SCREEN_PAIR(s)     GetPair(SCREEN_ATTRS(s))
    4529450511 #define SET_SCREEN_PAIR(s,p)   SetPair(SCREEN_ATTRS(s), p)
    4529550512 
    4529650513+#if USE_REENTRANT
    45297 +#define SET_LINES(value) SP->_LINES = value
    45298 +#define SET_COLS(value)  SP->_COLS = value
     50514+NCURSES_EXPORT(int *) _nc_ptr_Lines (void);
     50515+NCURSES_EXPORT(int *) _nc_ptr_Cols (void);
     50516+#define ptrLines() (SP ? &(SP->_LINES) : &(_nc_prescreen._LINES))
     50517+#define ptrCols()  (SP ? &(SP->_COLS)  : &(_nc_prescreen._COLS))
     50518+#define SET_LINES(value) *_nc_ptr_Lines() = value
     50519+#define SET_COLS(value)  *_nc_ptr_Cols() = value
    4529950520+#else
     50521+#define ptrLines() &LINES
     50522+#define ptrCols()  &COLS
    4530050523+#define SET_LINES(value) LINES = value
    4530150524+#define SET_COLS(value)  COLS = value
    4530250525+#endif
    4530350526+
     50527+#define TR_MUTEX(data) _tracef("%s@%d: me:%08lX COUNT:%2u/%2d/%6d/%2d/%s%9u: " #data, \
     50528+           __FILE__, __LINE__, \
     50529+           (unsigned long) (pthread_self()), \
     50530+           data.__data.__lock, \
     50531+           data.__data.__count, \
     50532+           data.__data.__owner, \
     50533+           data.__data.__kind, \
     50534+           (data.__data.__nusers > 5) ? " OOPS " : "", \
     50535+           data.__data.__nusers)
     50536+#define TR_GLOBAL_MUTEX(name) TR_MUTEX(_nc_globals.mutex_##name)
     50537+
    4530450538+#ifdef USE_PTHREADS
     50539+
    4530550540+#if USE_REENTRANT
    4530650541+#include <pthread.h>
    45307 +#define _nc_lock_global(name)  pthread_mutex_lock(&_nc_globals.mutex_##name)
    45308 +#define _nc_unlock_global(name)        pthread_mutex_unlock(&_nc_globals.mutex_##name)
    45309 +
    45310 +extern NCURSES_EXPORT(void) _nc_lock_window(WINDOW *);
    45311 +extern NCURSES_EXPORT(void) _nc_unlock_window(WINDOW *);
     50542+extern NCURSES_EXPORT(void) _nc_mutex_init(pthread_mutex_t *);
     50543+extern NCURSES_EXPORT(int) _nc_mutex_lock(pthread_mutex_t *);
     50544+extern NCURSES_EXPORT(int) _nc_mutex_trylock(pthread_mutex_t *);
     50545+extern NCURSES_EXPORT(int) _nc_mutex_unlock(pthread_mutex_t *);
     50546+#define _nc_lock_global(name)  _nc_mutex_lock(&_nc_globals.mutex_##name)
     50547+#define _nc_try_global(name)    _nc_mutex_trylock(&_nc_globals.mutex_##name)
     50548+#define _nc_unlock_global(name)        _nc_mutex_unlock(&_nc_globals.mutex_##name)
    4531250549+
    4531350550+#else
    4531450551+#error POSIX threads requires --enable-reentrant option
    4531550552+#endif
     50553+
     50554+#if HAVE_NANOSLEEP
     50555+#undef HAVE_NANOSLEEP
     50556+#define HAVE_NANOSLEEP 0       /* nanosleep suspends all threads */
     50557+#endif
     50558+
     50559+#else /* !USE_PTHREADS */
     50560+
     50561+#define _nc_mutex_init(obj)    /* nothing */
     50562+
     50563+#define _nc_lock_global(name)  /* nothing */
     50564+#define _nc_try_global(name)    0
     50565+#define _nc_unlock_global(name)        /* nothing */
     50566+
     50567+#endif /* USE_PTHREADS */
     50568+
     50569+#if HAVE_GETTIMEOFDAY
     50570+# define PRECISE_GETTIME 1
     50571+# define TimeType struct timeval
    4531650572+#else
    45317 +#define _nc_lock_global(name)  /* nothing */
    45318 +#define _nc_unlock_global(name)        /* nothing */
    45319 +
    45320 +#define _nc_lock_window(name)  TRUE
    45321 +#define _nc_unlock_window(name)        /* nothing */
    45322 +
     50573+# define PRECISE_GETTIME 0
     50574+# define TimeType time_t
    4532350575+#endif
    45324 +
    45325 +#define _nc_lock_screen(name)  /* nothing */
    45326 +#define _nc_unlock_screen(name)        /* nothing */
    4532750576+
    4532850577 /*
    4532950578  * Definitions for color pairs
    4533050579  */
    45331 @@ -366,7 +406,6 @@
     50580@@ -364,9 +436,9 @@
     50581 #endif /* USE_TERMLIB */
     50582 
    4533250583 typedef        struct {
     50584+       WINDOW *win;            /* the window used in the hook      */
    4533350585        int     line;           /* lines to take, < 0 => from bottom*/
    4533450586        int     (*hook)(WINDOW *, int); /* callback for user        */
     
    4533750589 
    4533850590 #if USE_GPM_SUPPORT
    45339 @@ -393,6 +432,186 @@
     50591@@ -393,6 +465,188 @@
    4534050592 #endif /* HAVE_LIBDL */
    4534150593 #endif /* USE_GPM_SUPPORT */
     
    4543550687+       char            **keyname_table;
    4543650688+
     50689+       int             slk_format;
     50690+
    4543750691+       char            *safeprint_buf;
    4543850692+       size_t          safeprint_used;
     
    4544150695+       int             tgetent_index;
    4544250696+       long            tgetent_sequence;
     50697+
     50698+       WINDOWLIST      *_nc_windowlist;
     50699+#define _nc_windows    _nc_globals._nc_windowlist
    4544350700+
    4544450701+#if USE_HOME_TERMINFO
     
    4546850725+       size_t          tracedmp_used;
    4546950726+
    45470 +       char            tracemse_buf[TRACEMSE_MAX];
    45471 +
    4547250727+       unsigned char   *tracetry_buf;
    4547350728+       size_t          tracetry_used;
    4547450729+
    45475 +#ifndef USE_TERMLIB
    4547650730+       char            traceatr_color_buf[2][80];
    4547750731+       int             traceatr_color_sel;
    4547850732+       int             traceatr_color_last;
    45479 +#endif /* USE_TERMLIB */
    4548050733+
    4548150734+#endif /* TRACE */
    4548250735+
    4548350736+#ifdef USE_PTHREADS
    45484 +       pthread_mutex_t mutex_set_SP;
    45485 +       pthread_mutex_t mutex_use_screen;
    45486 +       pthread_mutex_t mutex_use_window;
    45487 +       pthread_mutex_t mutex_windowlist;
     50737+       pthread_mutex_t mutex_curses;
    4548850738+       pthread_mutex_t mutex_tst_tracef;
    4548950739+       pthread_mutex_t mutex_tracef;
     
    4549750747+
    4549850748+/*
    45499 + * Global data which is swept up into a SCREEN when one is created.
     50749+ * Global data which can be swept up into a SCREEN when one is created.
    4550050750+ * It may be modified before the next SCREEN is created.
    4550150751+ */
     
    4551250762+       int             _LINES;
    4551350763+       int             _COLS;
     50764+       TERMINAL        *_cur_term;
    4551450765+#ifdef TRACE
    4551550766+       long            _outchars;
     
    4551950770+} NCURSES_PRESCREEN;
    4552050771+
     50772+#define ripoff_sp      _nc_prescreen.rsp
     50773+#define ripoff_stack   _nc_prescreen.rippedoff
     50774+
    4552150775+extern NCURSES_EXPORT_VAR(NCURSES_PRESCREEN) _nc_prescreen;
    4552250776+
     
    4552450778  * The SCREEN structure.
    4552550779  */
    45526 @@ -405,20 +624,19 @@
     50780@@ -405,20 +659,19 @@
    4552750781        bool            _buffered;      /* setvbuf uses _setbuf data        */
    4552850782        int             _checkfd;       /* filedesc for typeahead check     */
     
    4555250806        bool            _keypad_on;     /* keypad mode is currently on      */
    4555350807 
    45554 @@ -597,12 +815,25 @@
     50808@@ -532,7 +785,7 @@
     50809        int             _maxclick;
     50810        bool            (*_mouse_event) (SCREEN *);
     50811        bool            (*_mouse_inline)(SCREEN *);
     50812-       bool            (*_mouse_parse) (int);
     50813+       bool            (*_mouse_parse) (SCREEN *, int);
     50814        void            (*_mouse_resume)(SCREEN *);
     50815        void            (*_mouse_wrap)  (SCREEN *);
     50816        int             _mouse_fd;      /* file-descriptor, if any */
     50817@@ -583,12 +836,6 @@
     50818         * per screen basis.
     50819         */
     50820        struct panelhook _panelHook;
     50821-       /*
     50822-        * Linked-list of all windows, to support '_nc_resizeall()' and
     50823-        * '_nc_freeall()'
     50824-        */
     50825-       WINDOWLIST      *_nc_sp_windows;
     50826-#define _nc_windows SP->_nc_sp_windows
     50827 
     50828        bool            _sig_winch;
     50829        SCREEN          *_next_screen;
     50830@@ -597,12 +844,30 @@
    4555550831        unsigned long   *oldhash, *newhash;
    4555650832        HASHMAP         *hashtab;
     
    4557150847+       int             _COLS;
    4557250848+#ifdef TRACE
    45573 +       int             _outchars;
     50849+       long            _outchars;
    4557450850+       const char      *_tputs_trace;
    4557550851+#endif
     50852+#endif
     50853+
     50854+#ifdef TRACE
     50855+       char            tracechr_buf[40];
     50856+       char            tracemse_buf[TRACEMSE_MAX];
    4557650857+#endif
    4557750858        /*
    4557850859         * ncurses/ncursesw are the same up to this point.
    4557950860         */
    45580 @@ -615,6 +846,7 @@
     50861@@ -615,10 +880,12 @@
    4558150862 };
    4558250863 
     
    4558550866 
    4558650867        WINDOWLIST {
    45587         WINDOW  win;    /* first, so WINDOW_EXT() works */
    45588 @@ -625,6 +857,9 @@
    45589         int addch_x;            /* x-position for addch_work[] */
    45590         int addch_y;            /* y-position for addch_work[] */
    45591  #endif
    45592 +#ifdef USE_PTHREADS
    45593 +       pthread_mutex_t mutex_use_window;
    45594 +#endif
    45595  };
    45596  
    45597  #define WINDOW_EXT(win,field) (((WINDOWLIST *)(win))->field)
    45598 @@ -691,11 +926,17 @@
     50868-       WINDOW  win;    /* first, so WINDOW_EXT() works */
     50869+       WINDOW  win;            /* first, so WINDOW_EXT() works */
     50870        WINDOWLIST *next;
     50871+       SCREEN *screen;         /* screen containing the window */
     50872 #ifdef _XOPEN_SOURCE_EXTENDED
     50873        char addch_work[(MB_LEN_MAX * 9) + 1];
     50874        unsigned addch_used;    /* number of bytes in addch_work[] */
     50875@@ -691,11 +958,17 @@
    4559950876 #endif
    4560050877 
     
    4561650893 #define ChCharOf(c)    ((c) & (chtype)A_CHARTEXT)
    4561750894 #define ChAttrOf(c)    ((c) & (chtype)A_ATTRIBUTES)
    45618 @@ -705,7 +946,7 @@
     50895@@ -705,7 +978,7 @@
    4561950896 #endif
    4562050897 
     
    4562550902 #define init_mb(state) memset(&state, 0, sizeof(state))
    4562650903 
    45627 @@ -718,12 +959,26 @@
     50904@@ -718,12 +991,26 @@
    4562850905 #define NulChar                0,0,0,0 /* FIXME: see CCHARW_MAX */
    4562950906 #define CharOf(c)      ((c).chars[0])
     
    4565450931                            NCURSES_CH_T *_cp = &ch;                                \
    4565550932                            memset(_cp, 0, sizeof(ch));                             \
    45656 @@ -741,7 +996,7 @@
     50933@@ -741,7 +1028,7 @@
    4565750934 #define PUTC(ch,b)     do { if(!isWidecExt(ch)) {                                  \
    4565850935                        if (Charable(ch)) {                                         \
     
    4566350940                            PUTC_INIT;                                              \
    4566450941                            for (PUTC_i = 0; PUTC_i < CCHARW_MAX; ++PUTC_i) {       \
    45665 @@ -757,11 +1012,11 @@
     50942@@ -757,11 +1044,11 @@
    4566650943                                }                                                   \
    4566750944                                fwrite(PUTC_buf, (unsigned) PUTC_n, 1, b);          \
     
    4567850955 
    4567950956        /*
    45680 @@ -887,6 +1142,12 @@
     50957@@ -877,6 +1164,13 @@
     50958 #endif
     50959 
     50960 /*
     50961+ * Standardize/simplify common loops
     50962+ */
     50963+#define each_screen(p) p = _nc_screen_chain; p != 0; p = (p)->_next_screen
     50964+#define each_window(p) p = _nc_windows; p != 0; p = (p)->next
     50965+#define each_ripoff(p) p = ripoff_stack; (p - ripoff_stack) < N_RIPS; ++p
     50966+
     50967+/*
     50968  * Prefixes for call/return points of library function traces.  We use these to
     50969  * instrument the public functions so that the traces can be easily transformed
     50970  * into regression scripts.
     50971@@ -887,6 +1181,12 @@
    4568150972 
    4568250973 #ifdef TRACE
     
    4569150982        if ((_nc_tracing & TRACE_MAXIMUM) == 0) { \
    4569250983            int t = _nc_getenv_num("NCURSES_TRACE"); \
    45693 @@ -894,9 +1155,21 @@
     50984@@ -894,9 +1194,21 @@
    4569450985                trace((unsigned) t); \
    4569550986        }
     
    4571551006 
    4571651007 #define returnAttr(code)       TRACE_RETURN(code,attr_t)
    45717 @@ -927,8 +1200,19 @@
     51008@@ -926,9 +1238,20 @@
     51009 extern NCURSES_EXPORT(int)              _nc_retrace_int (int);
    4571851010 extern NCURSES_EXPORT(unsigned)         _nc_retrace_unsigned (unsigned);
    4571951011 extern NCURSES_EXPORT(void *)           _nc_retrace_void_ptr (void *);
    45720  extern NCURSES_EXPORT(void)             _nc_fifo_dump (void);
     51012-extern NCURSES_EXPORT(void)             _nc_fifo_dump (void);
     51013+extern NCURSES_EXPORT(void)             _nc_fifo_dump (SCREEN *);
    4572151014+
    4572251015+#if USE_REENTRANT
     
    4573551028 
    4573651029 #if USE_WIDEC_SUPPORT
    45737 @@ -1083,6 +1367,21 @@
     51030@@ -1083,6 +1406,21 @@
    4573851031 extern NCURSES_EXPORT(wint_t) _nc_to_widechar(int);
    4573951032 #endif
     
    4575751050 #if USE_XMC_SUPPORT
    4575851051 extern NCURSES_EXPORT(void) _nc_do_xmc_glitch (attr_t);
    45759 @@ -1141,6 +1440,7 @@
     51052@@ -1141,14 +1479,18 @@
    4576051053 extern NCURSES_EXPORT(int) _nc_unicode_locale(void);
    4576151054 extern NCURSES_EXPORT(int) _nc_locale_breaks_acs(void);
    4576251055 extern NCURSES_EXPORT(int) _nc_setupterm(NCURSES_CONST char *, int, int *, bool);
    45763 +extern NCURSES_EXPORT(void) _nc_get_screensize(int *, int *);
     51056+extern NCURSES_EXPORT(void) _nc_get_screensize(SCREEN *, int *, int *);
    4576451057 
    4576551058 /* lib_tstp.c */
    4576651059 #if USE_SIGWINCH
    45767 @@ -1177,10 +1477,10 @@
     51060-extern NCURSES_EXPORT(int) _nc_handle_sigwinch(int);
     51061+extern NCURSES_EXPORT(int) _nc_handle_sigwinch(SCREEN *);
     51062 #else
     51063 #define _nc_handle_sigwinch(a) /* nothing */
     51064 #endif
     51065 
     51066+/* lib_ungetch.c */
     51067+extern NCURSES_EXPORT(int) _nc_ungetch (SCREEN *, int);
     51068+
     51069 /* lib_wacs.c */
     51070 #if USE_WIDEC_SUPPORT
     51071 extern NCURSES_EXPORT(void) _nc_init_wacs(void);
     51072@@ -1177,32 +1519,37 @@
    4576851073 extern NCURSES_EXPORT(char *) _nc_printf_string (const char *, va_list);
    4576951074 
     
    4577951084 
    4578051085 /* elsewhere ... */
    45781  extern NCURSES_EXPORT(ENTRY *) _nc_delink_entry(ENTRY *, TERMTYPE *);
    45782 @@ -1210,13 +1510,16 @@
     51086-extern NCURSES_EXPORT(ENTRY *) _nc_delink_entry(ENTRY *, TERMTYPE *);
     51087+extern NCURSES_EXPORT(ENTRY *) _nc_delink_entry (ENTRY *, TERMTYPE *);
     51088+extern NCURSES_EXPORT(NCURSES_CONST char *) _nc_keyname (SCREEN *, int);
     51089+extern NCURSES_EXPORT(NCURSES_CONST char *) _nc_unctrl (SCREEN *, chtype);
     51090+extern NCURSES_EXPORT(SCREEN *) _nc_screen_of (WINDOW *);
     51091 extern NCURSES_EXPORT(WINDOW *) _nc_makenew (int, int, int, int, int);
     51092 extern NCURSES_EXPORT(char *) _nc_trace_buf (int, size_t);
     51093 extern NCURSES_EXPORT(char *) _nc_trace_bufcat (int, const char *);
     51094+extern NCURSES_EXPORT(char *) _nc_tracechar (SCREEN *, int);
     51095+extern NCURSES_EXPORT(char *) _nc_tracemouse (SCREEN *, MEVENT const *);
     51096 extern NCURSES_EXPORT(int) _nc_access (const char *, int);
     51097 extern NCURSES_EXPORT(int) _nc_baudrate (int);
     51098 extern NCURSES_EXPORT(int) _nc_freewin (WINDOW *);
     51099 extern NCURSES_EXPORT(int) _nc_getenv_num (const char *);
     51100-extern NCURSES_EXPORT(int) _nc_keypad (bool);
     51101+extern NCURSES_EXPORT(int) _nc_keypad (SCREEN *, bool);
     51102 extern NCURSES_EXPORT(int) _nc_ospeed (int);
     51103 extern NCURSES_EXPORT(int) _nc_outch (int);
     51104 extern NCURSES_EXPORT(int) _nc_read_termcap_entry (const char *const, TERMTYPE *const);
     51105 extern NCURSES_EXPORT(int) _nc_setupscreen (int, int, FILE *, bool, int);
     51106-extern NCURSES_EXPORT(int) _nc_timed_wait(int, int, int * EVENTLIST_2nd(_nc_eventlist *));
     51107+extern NCURSES_EXPORT(int) _nc_timed_wait (SCREEN *, int, int, int * EVENTLIST_2nd(_nc_eventlist *));
     51108 extern NCURSES_EXPORT(void) _nc_do_color (short, short, bool, int (*)(int));
     51109 extern NCURSES_EXPORT(void) _nc_flush (void);
     51110-extern NCURSES_EXPORT(void) _nc_free_entry(ENTRY *, TERMTYPE *);
     51111+extern NCURSES_EXPORT(void) _nc_free_entry (ENTRY *, TERMTYPE *);
     51112 extern NCURSES_EXPORT(void) _nc_freeall (void);
     51113 extern NCURSES_EXPORT(void) _nc_hash_map (void);
     51114-extern NCURSES_EXPORT(void) _nc_init_keytry (void);
     51115+extern NCURSES_EXPORT(void) _nc_init_keytry (SCREEN *);
     51116 extern NCURSES_EXPORT(void) _nc_keep_tic_dir (const char *);
     51117 extern NCURSES_EXPORT(void) _nc_make_oldhash (int i);
     51118 extern NCURSES_EXPORT(void) _nc_scroll_oldhash (int n, int top, int bot);
     51119@@ -1210,13 +1557,16 @@
    4578351120 extern NCURSES_EXPORT(void) _nc_set_buffer (FILE *, bool);
    4578451121 extern NCURSES_EXPORT(void) _nc_signal_handler (bool);
     
    4579851135 #endif
    4579951136 
    45800 @@ -1227,11 +1530,7 @@
     51137@@ -1227,15 +1577,11 @@
    4580151138 #endif
    4580251139 
     
    4581051147 
    4581151148 #if USE_SIZECHANGE
     51149-extern NCURSES_EXPORT(void) _nc_update_screensize (void);
     51150+extern NCURSES_EXPORT(void) _nc_update_screensize (SCREEN *);
     51151 #endif
     51152 
     51153 #if HAVE_RESIZETERM
     51154@@ -1291,7 +1637,6 @@
     51155 #define screen_lines   SP->_lines
     51156 #define screen_columns SP->_columns
     51157 
     51158-extern NCURSES_EXPORT_VAR(int) _nc_slk_format;  /* != 0 if slk_init() called */
     51159 extern NCURSES_EXPORT(int) _nc_slk_initialize (WINDOW *, int);
     51160 
     51161 /*
     51162diff -Naur ncurses-5.6.orig/ncurses/fifo_defs.h ncurses-5.6/ncurses/fifo_defs.h
     51163--- ncurses-5.6.orig/ncurses/fifo_defs.h        2002-03-16 15:47:50.000000000 -0500
     51164+++ ncurses-5.6/ncurses/fifo_defs.h     2008-06-18 06:49:50.000000000 -0400
     51165@@ -34,21 +34,21 @@
     51166 /*
     51167  * Common macros for lib_getch.c, lib_ungetch.c
     51168  *
     51169- * $Id: fifo_defs.h,v 1.4 2002/03/16 20:47:50 tom Exp $
     51170+ * $Id: fifo_defs.h,v 1.5 2008/05/03 20:08:16 tom Exp $
     51171  */
     51172 
     51173 #ifndef FIFO_DEFS_H
     51174 #define FIFO_DEFS_H 1
     51175 
     51176-#define head   SP->_fifohead
     51177-#define tail   SP->_fifotail
     51178+#define head   sp->_fifohead
     51179+#define tail   sp->_fifotail
     51180 /* peek points to next uninterpreted character */
     51181-#define peek   SP->_fifopeek
     51182+#define peek   sp->_fifopeek
     51183 
     51184 #define h_inc() { head == FIFO_SIZE-1 ? head = 0 : head++; if (head == tail) head = -1, tail = 0;}
     51185 #define h_dec() { head == 0 ? head = FIFO_SIZE-1 : head--; if (head == tail) tail = -1;}
     51186 #define t_inc() { tail == FIFO_SIZE-1 ? tail = 0 : tail++; if (tail == head) tail = -1;}
     51187-#define t_dec() { tail == 0 ? tail = FIFO_SIZE-1 : tail--; if (head == tail) fifo_clear();}
     51188+#define t_dec() { tail == 0 ? tail = FIFO_SIZE-1 : tail--; if (head == tail) fifo_clear(sp);}
     51189 #define p_inc() { peek == FIFO_SIZE-1 ? peek = 0 : peek++;}
     51190 
     51191 #define cooked_key_in_fifo()   ((head != -1) && (peek != head))
    4581251192diff -Naur ncurses-5.6.orig/ncurses/llib-lncurses ncurses-5.6/ncurses/llib-lncurses
    4581351193--- ncurses-5.6.orig/ncurses/llib-lncurses      2006-10-28 18:20:51.000000000 -0400
    45814 +++ ncurses-5.6/ncurses/llib-lncurses   2007-12-21 00:02:36.000000000 -0500
     51194+++ ncurses-5.6/ncurses/llib-lncurses   2008-06-18 06:49:44.000000000 -0400
    4581551195@@ -1,5 +1,5 @@
    4581651196 /****************************************************************************
     
    4651451894 
    4651551895 #undef _nc_set_writedir
     51896diff -Naur ncurses-5.6.orig/ncurses/llib-lncursest ncurses-5.6/ncurses/llib-lncursest
     51897--- ncurses-5.6.orig/ncurses/llib-lncursest     1969-12-31 19:00:00.000000000 -0500
     51898+++ ncurses-5.6/ncurses/llib-lncursest  2008-06-18 06:49:51.000000000 -0400
     51899@@ -0,0 +1,3562 @@
     51900+/****************************************************************************
     51901+ * Copyright (c) 2008 Free Software Foundation, Inc.                        *
     51902+ *                                                                          *
     51903+ * Permission is hereby granted, free of charge, to any person obtaining a  *
     51904+ * copy of this software and associated documentation files (the            *
     51905+ * "Software"), to deal in the Software without restriction, including      *
     51906+ * without limitation the rights to use, copy, modify, merge, publish,      *
     51907+ * distribute, distribute with modifications, sublicense, and/or sell       *
     51908+ * copies of the Software, and to permit persons to whom the Software is    *
     51909+ * furnished to do so, subject to the following conditions:                 *
     51910+ *                                                                          *
     51911+ * The above copyright notice and this permission notice shall be included  *
     51912+ * in all copies or substantial portions of the Software.                   *
     51913+ *                                                                          *
     51914+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
     51915+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
     51916+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
     51917+ * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
     51918+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
     51919+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
     51920+ * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
     51921+ *                                                                          *
     51922+ * Except as contained in this notice, the name(s) of the above copyright   *
     51923+ * holders shall not be used in advertising or otherwise to promote the     *
     51924+ * sale, use or other dealings in this Software without prior written       *
     51925+ * authorization.                                                           *
     51926+ ****************************************************************************/
     51927+
     51928+/****************************************************************************
     51929+ *  Author: Thomas E. Dickey 2008                                           *
     51930+ ****************************************************************************/
     51931+/* LINTLIBRARY */
     51932+
     51933+/* ./tty/hardscroll.c */
     51934+
     51935+#include <curses.priv.h>
     51936+
     51937+#undef _nc_oldnums
     51938+int    *_nc_oldnums;
     51939+
     51940+#undef _nc_scroll_optimize
     51941+void   _nc_scroll_optimize(void)
     51942+               { /* void */ }
     51943+
     51944+#undef _nc_linedump
     51945+void   _nc_linedump(void)
     51946+               { /* void */ }
     51947+
     51948+/* ./tty/hashmap.c */
     51949+
     51950+#include <term.h>
     51951+
     51952+#undef _nc_hash_map
     51953+void   _nc_hash_map(void)
     51954+               { /* void */ }
     51955+
     51956+#undef _nc_make_oldhash
     51957+void   _nc_make_oldhash(
     51958+               int     i)
     51959+               { /* void */ }
     51960+
     51961+#undef _nc_scroll_oldhash
     51962+void   _nc_scroll_oldhash(
     51963+               int     n,
     51964+               int     top,
     51965+               int     bot)
     51966+               { /* void */ }
     51967+
     51968+/* ./base/lib_addch.c */
     51969+
     51970+#include <ctype.h>
     51971+
     51972+#undef _nc_render
     51973+chtype _nc_render(
     51974+               WINDOW  *win,
     51975+               chtype  ch)
     51976+               { return(*(chtype *)0); }
     51977+
     51978+#undef _nc_waddch_nosync
     51979+int    _nc_waddch_nosync(
     51980+               WINDOW  *win,
     51981+               const chtype c)
     51982+               { return(*(int *)0); }
     51983+
     51984+#undef waddch
     51985+int    waddch(
     51986+               WINDOW  *win,
     51987+               const chtype ch)
     51988+               { return(*(int *)0); }
     51989+
     51990+#undef wechochar
     51991+int    wechochar(
     51992+               WINDOW  *win,
     51993+               const chtype ch)
     51994+               { return(*(int *)0); }
     51995+
     51996+/* ./base/lib_addstr.c */
     51997+
     51998+#undef waddnstr
     51999+int    waddnstr(
     52000+               WINDOW  *win,
     52001+               const char *astr,
     52002+               int     n)
     52003+               { return(*(int *)0); }
     52004+
     52005+#undef waddchnstr
     52006+int    waddchnstr(
     52007+               WINDOW  *win,
     52008+               const chtype *astr,
     52009+               int     n)
     52010+               { return(*(int *)0); }
     52011+
     52012+/* ./base/lib_beep.c */
     52013+
     52014+#undef beep
     52015+int    beep(void)
     52016+               { return(*(int *)0); }
     52017+
     52018+/* ./base/lib_bkgd.c */
     52019+
     52020+#undef wbkgdset
     52021+void   wbkgdset(
     52022+               WINDOW  *win,
     52023+               chtype  ch)
     52024+               { /* void */ }
     52025+
     52026+#undef wbkgd
     52027+int    wbkgd(
     52028+               WINDOW  *win,
     52029+               chtype  ch)
     52030+               { return(*(int *)0); }
     52031+
     52032+/* ./base/lib_box.c */
     52033+
     52034+#undef wborder
     52035+int    wborder(
     52036+               WINDOW  *win,
     52037+               chtype  ls,
     52038+               chtype  rs,
     52039+               chtype  ts,
     52040+               chtype  bs,
     52041+               chtype  tl,
     52042+               chtype  tr,
     52043+               chtype  bl,
     52044+               chtype  br)
     52045+               { return(*(int *)0); }
     52046+
     52047+/* ./base/lib_chgat.c */
     52048+
     52049+#undef wchgat
     52050+int    wchgat(
     52051+               WINDOW  *win,
     52052+               int     n,
     52053+               attr_t  attr,
     52054+               short   color,
     52055+               const void *opts)
     52056+               { return(*(int *)0); }
     52057+
     52058+/* ./base/lib_clear.c */
     52059+
     52060+#undef wclear
     52061+int    wclear(
     52062+               WINDOW  *win)
     52063+               { return(*(int *)0); }
     52064+
     52065+/* ./base/lib_clearok.c */
     52066+
     52067+#undef clearok
     52068+int    clearok(
     52069+               WINDOW  *win,
     52070+               NCURSES_BOOL flag)
     52071+               { return(*(int *)0); }
     52072+
     52073+/* ./base/lib_clrbot.c */
     52074+
     52075+#undef wclrtobot
     52076+int    wclrtobot(
     52077+               WINDOW  *win)
     52078+               { return(*(int *)0); }
     52079+
     52080+/* ./base/lib_clreol.c */
     52081+
     52082+#undef wclrtoeol
     52083+int    wclrtoeol(
     52084+               WINDOW  *win)
     52085+               { return(*(int *)0); }
     52086+
     52087+/* ./base/lib_color.c */
     52088+
     52089+#include <tic.h>
     52090+
     52091+#undef _nc_COLOR_PAIRS
     52092+int    _nc_COLOR_PAIRS(void)
     52093+               { return(*(int *)0); }
     52094+
     52095+#undef _nc_COLORS
     52096+int    _nc_COLORS(void)
     52097+               { return(*(int *)0); }
     52098+
     52099+#undef _nc_reset_colors
     52100+NCURSES_BOOL _nc_reset_colors(void)
     52101+               { return(*(NCURSES_BOOL *)0); }
     52102+
     52103+#undef start_color
     52104+int    start_color(void)
     52105+               { return(*(int *)0); }
     52106+
     52107+#undef init_pair
     52108+int    init_pair(
     52109+               short   pair,
     52110+               short   f,
     52111+               short   b)
     52112+               { return(*(int *)0); }
     52113+
     52114+#undef init_color
     52115+int    init_color(
     52116+               short   color,
     52117+               short   r,
     52118+               short   g,
     52119+               short   b)
     52120+               { return(*(int *)0); }
     52121+
     52122+#undef can_change_color
     52123+NCURSES_BOOL can_change_color(void)
     52124+               { return(*(NCURSES_BOOL *)0); }
     52125+
     52126+#undef has_colors
     52127+NCURSES_BOOL has_colors(void)
     52128+               { return(*(NCURSES_BOOL *)0); }
     52129+
     52130+#undef color_content
     52131+int    color_content(
     52132+               short   color,
     52133+               short   *r,
     52134+               short   *g,
     52135+               short   *b)
     52136+               { return(*(int *)0); }
     52137+
     52138+#undef pair_content
     52139+int    pair_content(
     52140+               short   pair,
     52141+               short   *f,
     52142+               short   *b)
     52143+               { return(*(int *)0); }
     52144+
     52145+#undef _nc_do_color
     52146+void   _nc_do_color(
     52147+               short   old_pair,
     52148+               short   pair,
     52149+               NCURSES_BOOL reverse,
     52150+               int     (*outc)(
     52151+               int     p1))
     52152+               { /* void */ }
     52153+
     52154+/* ./base/lib_colorset.c */
     52155+
     52156+#undef wcolor_set
     52157+int    wcolor_set(
     52158+               WINDOW  *win,
     52159+               short   color_pair_number,
     52160+               void    *opts)
     52161+               { return(*(int *)0); }
     52162+
     52163+/* ./base/lib_delch.c */
     52164+
     52165+#undef wdelch
     52166+int    wdelch(
     52167+               WINDOW  *win)
     52168+               { return(*(int *)0); }
     52169+
     52170+/* ./base/lib_delwin.c */
     52171+
     52172+#undef delwin
     52173+int    delwin(
     52174+               WINDOW  *win)
     52175+               { return(*(int *)0); }
     52176+
     52177+/* ./base/lib_echo.c */
     52178+
     52179+#undef echo
     52180+int    echo(void)
     52181+               { return(*(int *)0); }
     52182+
     52183+#undef noecho
     52184+int    noecho(void)
     52185+               { return(*(int *)0); }
     52186+
     52187+/* ./base/lib_endwin.c */
     52188+
     52189+#undef endwin
     52190+int    endwin(void)
     52191+               { return(*(int *)0); }
     52192+
     52193+/* ./base/lib_erase.c */
     52194+
     52195+#undef werase
     52196+int    werase(
     52197+               WINDOW  *win)
     52198+               { return(*(int *)0); }
     52199+
     52200+/* ./base/lib_flash.c */
     52201+
     52202+#undef flash
     52203+int    flash(void)
     52204+               { return(*(int *)0); }
     52205+
     52206+/* ./lib_gen.c */
     52207+
     52208+#undef addch
     52209+int    addch(
     52210+               const chtype z)
     52211+               { return(*(int *)0); }
     52212+
     52213+#undef addchnstr
     52214+int    addchnstr(
     52215+               const chtype *a1,
     52216+               int     z)
     52217+               { return(*(int *)0); }
     52218+
     52219+#undef addchstr
     52220+int    addchstr(
     52221+               const chtype *z)
     52222+               { return(*(int *)0); }
     52223+
     52224+#undef addnstr
     52225+int    addnstr(
     52226+               const char *a1,
     52227+               int     z)
     52228+               { return(*(int *)0); }
     52229+
     52230+#undef addstr
     52231+int    addstr(
     52232+               const char *z)
     52233+               { return(*(int *)0); }
     52234+
     52235+#undef attroff
     52236+int    attroff(
     52237+               NCURSES_ATTR_T  z)
     52238+               { return(*(int *)0); }
     52239+
     52240+#undef attron
     52241+int    attron(
     52242+               NCURSES_ATTR_T  z)
     52243+               { return(*(int *)0); }
     52244+
     52245+#undef attrset
     52246+int    attrset(
     52247+               NCURSES_ATTR_T  z)
     52248+               { return(*(int *)0); }
     52249+
     52250+#undef attr_get
     52251+int    attr_get(
     52252+               attr_t  *a1,
     52253+               short   *a2,
     52254+               void    *z)
     52255+               { return(*(int *)0); }
     52256+
     52257+#undef attr_off
     52258+int    attr_off(
     52259+               attr_t  a1,
     52260+               void    *z)
     52261+               { return(*(int *)0); }
     52262+
     52263+#undef attr_on
     52264+int    attr_on(
     52265+               attr_t  a1,
     52266+               void    *z)
     52267+               { return(*(int *)0); }
     52268+
     52269+#undef attr_set
     52270+int    attr_set(
     52271+               attr_t  a1,
     52272+               short   a2,
     52273+               void    *z)
     52274+               { return(*(int *)0); }
     52275+
     52276+#undef bkgd
     52277+int    bkgd(
     52278+               chtype  z)
     52279+               { return(*(int *)0); }
     52280+
     52281+#undef bkgdset
     52282+void   bkgdset(
     52283+               chtype  z)
     52284+               { /* void */ }
     52285+
     52286+#undef border
     52287+int    border(
     52288+               chtype  a1,
     52289+               chtype  a2,
     52290+               chtype  a3,
     52291+               chtype  a4,
     52292+               chtype  a5,
     52293+               chtype  a6,
     52294+               chtype  a7,
     52295+               chtype  z)
     52296+               { return(*(int *)0); }
     52297+
     52298+#undef box
     52299+int    box(
     52300+               WINDOW  *a1,
     52301+               chtype  a2,
     52302+               chtype  z)
     52303+               { return(*(int *)0); }
     52304+
     52305+#undef chgat
     52306+int    chgat(
     52307+               int     a1,
     52308+               attr_t  a2,
     52309+               short   a3,
     52310+               const void *z)
     52311+               { return(*(int *)0); }
     52312+
     52313+#undef clear
     52314+int    clear(void)
     52315+               { return(*(int *)0); }
     52316+
     52317+#undef clrtobot
     52318+int    clrtobot(void)
     52319+               { return(*(int *)0); }
     52320+
     52321+#undef clrtoeol
     52322+int    clrtoeol(void)
     52323+               { return(*(int *)0); }
     52324+
     52325+#undef color_set
     52326+int    color_set(
     52327+               short   a1,
     52328+               void    *z)
     52329+               { return(*(int *)0); }
     52330+
     52331+#undef COLOR_PAIR
     52332+int    COLOR_PAIR(
     52333+               int     z)
     52334+               { return(*(int *)0); }
     52335+
     52336+#undef delch
     52337+int    delch(void)
     52338+               { return(*(int *)0); }
     52339+
     52340+#undef deleteln
     52341+int    deleteln(void)
     52342+               { return(*(int *)0); }
     52343+
     52344+#undef echochar
     52345+int    echochar(
     52346+               const chtype z)
     52347+               { return(*(int *)0); }
     52348+
     52349+#undef erase
     52350+int    erase(void)
     52351+               { return(*(int *)0); }
     52352+
     52353+#undef getbkgd
     52354+chtype getbkgd(
     52355+               WINDOW  *z)
     52356+               { return(*(chtype *)0); }
     52357+
     52358+#undef getch
     52359+int    getch(void)
     52360+               { return(*(int *)0); }
     52361+
     52362+#undef getnstr
     52363+int    getnstr(
     52364+               char    *a1,
     52365+               int     z)
     52366+               { return(*(int *)0); }
     52367+
     52368+#undef getstr
     52369+int    getstr(
     52370+               char    *z)
     52371+               { return(*(int *)0); }
     52372+
     52373+#undef hline
     52374+int    hline(
     52375+               chtype  a1,
     52376+               int     z)
     52377+               { return(*(int *)0); }
     52378+
     52379+#undef inch
     52380+chtype inch(void)
     52381+               { return(*(chtype *)0); }
     52382+
     52383+#undef inchnstr
     52384+int    inchnstr(
     52385+               chtype  *a1,
     52386+               int     z)
     52387+               { return(*(int *)0); }
     52388+
     52389+#undef inchstr
     52390+int    inchstr(
     52391+               chtype  *z)
     52392+               { return(*(int *)0); }
     52393+
     52394+#undef innstr
     52395+int    innstr(
     52396+               char    *a1,
     52397+               int     z)
     52398+               { return(*(int *)0); }
     52399+
     52400+#undef insch
     52401+int    insch(
     52402+               chtype  z)
     52403+               { return(*(int *)0); }
     52404+
     52405+#undef insdelln
     52406+int    insdelln(
     52407+               int     z)
     52408+               { return(*(int *)0); }
     52409+
     52410+#undef insertln
     52411+int    insertln(void)
     52412+               { return(*(int *)0); }
     52413+
     52414+#undef insnstr
     52415+int    insnstr(
     52416+               const char *a1,
     52417+               int     z)
     52418+               { return(*(int *)0); }
     52419+
     52420+#undef insstr
     52421+int    insstr(
     52422+               const char *z)
     52423+               { return(*(int *)0); }
     52424+
     52425+#undef instr
     52426+int    instr(
     52427+               char    *z)
     52428+               { return(*(int *)0); }
     52429+
     52430+#undef move
     52431+int    move(
     52432+               int     a1,
     52433+               int     z)
     52434+               { return(*(int *)0); }
     52435+
     52436+#undef mvaddch
     52437+int    mvaddch(
     52438+               int     a1,
     52439+               int     a2,
     52440+               const chtype z)
     52441+               { return(*(int *)0); }
     52442+
     52443+#undef mvaddchnstr
     52444+int    mvaddchnstr(
     52445+               int     a1,
     52446+               int     a2,
     52447+               const chtype *a3,
     52448+               int     z)
     52449+               { return(*(int *)0); }
     52450+
     52451+#undef mvaddchstr
     52452+int    mvaddchstr(
     52453+               int     a1,
     52454+               int     a2,
     52455+               const chtype *z)
     52456+               { return(*(int *)0); }
     52457+
     52458+#undef mvaddnstr
     52459+int    mvaddnstr(
     52460+               int     a1,
     52461+               int     a2,
     52462+               const char *a3,
     52463+               int     z)
     52464+               { return(*(int *)0); }
     52465+
     52466+#undef mvaddstr
     52467+int    mvaddstr(
     52468+               int     a1,
     52469+               int     a2,
     52470+               const char *z)
     52471+               { return(*(int *)0); }
     52472+
     52473+#undef mvchgat
     52474+int    mvchgat(
     52475+               int     a1,
     52476+               int     a2,
     52477+               int     a3,
     52478+               attr_t  a4,
     52479+               short   a5,
     52480+               const void *z)
     52481+               { return(*(int *)0); }
     52482+
     52483+#undef mvdelch
     52484+int    mvdelch(
     52485+               int     a1,
     52486+               int     z)
     52487+               { return(*(int *)0); }
     52488+
     52489+#undef mvgetch
     52490+int    mvgetch(
     52491+               int     a1,
     52492+               int     z)
     52493+               { return(*(int *)0); }
     52494+
     52495+#undef mvgetnstr
     52496+int    mvgetnstr(
     52497+               int     a1,
     52498+               int     a2,
     52499+               char    *a3,
     52500+               int     z)
     52501+               { return(*(int *)0); }
     52502+
     52503+#undef mvgetstr
     52504+int    mvgetstr(
     52505+               int     a1,
     52506+               int     a2,
     52507+               char    *z)
     52508+               { return(*(int *)0); }
     52509+
     52510+#undef mvhline
     52511+int    mvhline(
     52512+               int     a1,
     52513+               int     a2,
     52514+               chtype  a3,
     52515+               int     z)
     52516+               { return(*(int *)0); }
     52517+
     52518+#undef mvinch
     52519+chtype mvinch(
     52520+               int     a1,
     52521+               int     z)
     52522+               { return(*(chtype *)0); }
     52523+
     52524+#undef mvinchnstr
     52525+int    mvinchnstr(
     52526+               int     a1,
     52527+               int     a2,
     52528+               chtype  *a3,
     52529+               int     z)
     52530+               { return(*(int *)0); }
     52531+
     52532+#undef mvinchstr
     52533+int    mvinchstr(
     52534+               int     a1,
     52535+               int     a2,
     52536+               chtype  *z)
     52537+               { return(*(int *)0); }
     52538+
     52539+#undef mvinnstr
     52540+int    mvinnstr(
     52541+               int     a1,
     52542+               int     a2,
     52543+               char    *a3,
     52544+               int     z)
     52545+               { return(*(int *)0); }
     52546+
     52547+#undef mvinsch
     52548+int    mvinsch(
     52549+               int     a1,
     52550+               int     a2,
     52551+               chtype  z)
     52552+               { return(*(int *)0); }
     52553+
     52554+#undef mvinsnstr
     52555+int    mvinsnstr(
     52556+               int     a1,
     52557+               int     a2,
     52558+               const char *a3,
     52559+               int     z)
     52560+               { return(*(int *)0); }
     52561+
     52562+#undef mvinsstr
     52563+int    mvinsstr(
     52564+               int     a1,
     52565+               int     a2,
     52566+               const char *z)
     52567+               { return(*(int *)0); }
     52568+
     52569+#undef mvinstr
     52570+int    mvinstr(
     52571+               int     a1,
     52572+               int     a2,
     52573+               char    *z)
     52574+               { return(*(int *)0); }
     52575+
     52576+#undef mvvline
     52577+int    mvvline(
     52578+               int     a1,
     52579+               int     a2,
     52580+               chtype  a3,
     52581+               int     z)
     52582+               { return(*(int *)0); }
     52583+
     52584+#undef mvwaddch
     52585+int    mvwaddch(
     52586+               WINDOW  *a1,
     52587+               int     a2,
     52588+               int     a3,
     52589+               const chtype z)
     52590+               { return(*(int *)0); }
     52591+
     52592+#undef mvwaddchnstr
     52593+int    mvwaddchnstr(
     52594+               WINDOW  *a1,
     52595+               int     a2,
     52596+               int     a3,
     52597+               const chtype *a4,
     52598+               int     z)
     52599+               { return(*(int *)0); }
     52600+
     52601+#undef mvwaddchstr
     52602+int    mvwaddchstr(
     52603+               WINDOW  *a1,
     52604+               int     a2,
     52605+               int     a3,
     52606+               const chtype *z)
     52607+               { return(*(int *)0); }
     52608+
     52609+#undef mvwaddnstr
     52610+int    mvwaddnstr(
     52611+               WINDOW  *a1,
     52612+               int     a2,
     52613+               int     a3,
     52614+               const char *a4,
     52615+               int     z)
     52616+               { return(*(int *)0); }
     52617+
     52618+#undef mvwaddstr
     52619+int    mvwaddstr(
     52620+               WINDOW  *a1,
     52621+               int     a2,
     52622+               int     a3,
     52623+               const char *z)
     52624+               { return(*(int *)0); }
     52625+
     52626+#undef mvwchgat
     52627+int    mvwchgat(
     52628+               WINDOW  *a1,
     52629+               int     a2,
     52630+               int     a3,
     52631+               int     a4,
     52632+               attr_t  a5,
     52633+               short   a6,
     52634+               const void *z)
     52635+               { return(*(int *)0); }
     52636+
     52637+#undef mvwdelch
     52638+int    mvwdelch(
     52639+               WINDOW  *a1,
     52640+               int     a2,
     52641+               int     z)
     52642+               { return(*(int *)0); }
     52643+
     52644+#undef mvwgetch
     52645+int    mvwgetch(
     52646+               WINDOW  *a1,
     52647+               int     a2,
     52648+               int     z)
     52649+               { return(*(int *)0); }
     52650+
     52651+#undef mvwgetnstr
     52652+int    mvwgetnstr(
     52653+               WINDOW  *a1,
     52654+               int     a2,
     52655+               int     a3,
     52656+               char    *a4,
     52657+               int     z)
     52658+               { return(*(int *)0); }
     52659+
     52660+#undef mvwgetstr
     52661+int    mvwgetstr(
     52662+               WINDOW  *a1,
     52663+               int     a2,
     52664+               int     a3,
     52665+               char    *z)
     52666+               { return(*(int *)0); }
     52667+
     52668+#undef mvwhline
     52669+int    mvwhline(
     52670+               WINDOW  *a1,
     52671+               int     a2,
     52672+               int     a3,
     52673+               chtype  a4,
     52674+               int     z)
     52675+               { return(*(int *)0); }
     52676+
     52677+#undef mvwinch
     52678+chtype mvwinch(
     52679+               WINDOW  *a1,
     52680+               int     a2,
     52681+               int     z)
     52682+               { return(*(chtype *)0); }
     52683+
     52684+#undef mvwinchnstr
     52685+int    mvwinchnstr(
     52686+               WINDOW  *a1,
     52687+               int     a2,
     52688+               int     a3,
     52689+               chtype  *a4,
     52690+               int     z)
     52691+               { return(*(int *)0); }
     52692+
     52693+#undef mvwinchstr
     52694+int    mvwinchstr(
     52695+               WINDOW  *a1,
     52696+               int     a2,
     52697+               int     a3,
     52698+               chtype  *z)
     52699+               { return(*(int *)0); }
     52700+
     52701+#undef mvwinnstr
     52702+int    mvwinnstr(
     52703+               WINDOW  *a1,
     52704+               int     a2,
     52705+               int     a3,
     52706+               char    *a4,
     52707+               int     z)
     52708+               { return(*(int *)0); }
     52709+
     52710+#undef mvwinsch
     52711+int    mvwinsch(
     52712+               WINDOW  *a1,
     52713+               int     a2,
     52714+               int     a3,
     52715+               chtype  z)
     52716+               { return(*(int *)0); }
     52717+
     52718+#undef mvwinsnstr
     52719+int    mvwinsnstr(
     52720+               WINDOW  *a1,
     52721+               int     a2,
     52722+               int     a3,
     52723+               const char *a4,
     52724+               int     z)
     52725+               { return(*(int *)0); }
     52726+
     52727+#undef mvwinsstr
     52728+int    mvwinsstr(
     52729+               WINDOW  *a1,
     52730+               int     a2,
     52731+               int     a3,
     52732+               const char *z)
     52733+               { return(*(int *)0); }
     52734+
     52735+#undef mvwinstr
     52736+int    mvwinstr(
     52737+               WINDOW  *a1,
     52738+               int     a2,
     52739+               int     a3,
     52740+               char    *z)
     52741+               { return(*(int *)0); }
     52742+
     52743+#undef mvwvline
     52744+int    mvwvline(
     52745+               WINDOW  *a1,
     52746+               int     a2,
     52747+               int     a3,
     52748+               chtype  a4,
     52749+               int     z)
     52750+               { return(*(int *)0); }
     52751+
     52752+#undef PAIR_NUMBER
     52753+int    PAIR_NUMBER(
     52754+               int     z)
     52755+               { return(*(int *)0); }
     52756+
     52757+#undef redrawwin
     52758+int    redrawwin(
     52759+               WINDOW  *z)
     52760+               { return(*(int *)0); }
     52761+
     52762+#undef refresh
     52763+int    refresh(void)
     52764+               { return(*(int *)0); }
     52765+
     52766+#undef scrl
     52767+int    scrl(
     52768+               int     z)
     52769+               { return(*(int *)0); }
     52770+
     52771+#undef scroll
     52772+int    scroll(
     52773+               WINDOW  *z)
     52774+               { return(*(int *)0); }
     52775+
     52776+#undef setscrreg
     52777+int    setscrreg(
     52778+               int     a1,
     52779+               int     z)
     52780+               { return(*(int *)0); }
     52781+
     52782+#undef standout
     52783+int    standout(void)
     52784+               { return(*(int *)0); }
     52785+
     52786+#undef standend
     52787+int    standend(void)
     52788+               { return(*(int *)0); }
     52789+
     52790+#undef timeout
     52791+void   timeout(
     52792+               int     z)
     52793+               { /* void */ }
     52794+
     52795+#undef touchline
     52796+int    touchline(
     52797+               WINDOW  *a1,
     52798+               int     a2,
     52799+               int     z)
     52800+               { return(*(int *)0); }
     52801+
     52802+#undef touchwin
     52803+int    touchwin(
     52804+               WINDOW  *z)
     52805+               { return(*(int *)0); }
     52806+
     52807+#undef untouchwin
     52808+int    untouchwin(
     52809+               WINDOW  *z)
     52810+               { return(*(int *)0); }
     52811+
     52812+#undef vline
     52813+int    vline(
     52814+               chtype  a1,
     52815+               int     z)
     52816+               { return(*(int *)0); }
     52817+
     52818+#undef vw_printw
     52819+int    vw_printw(
     52820+               WINDOW  *a1,
     52821+               const char *a2,
     52822+               va_list z)
     52823+               { return(*(int *)0); }
     52824+
     52825+#undef vw_scanw
     52826+int    vw_scanw(
     52827+               WINDOW  *a1,
     52828+               const char *a2,
     52829+               va_list z)
     52830+               { return(*(int *)0); }
     52831+
     52832+#undef waddchstr
     52833+int    waddchstr(
     52834+               WINDOW  *a1,
     52835+               const chtype *z)
     52836+               { return(*(int *)0); }
     52837+
     52838+#undef waddstr
     52839+int    waddstr(
     52840+               WINDOW  *a1,
     52841+               const char *z)
     52842+               { return(*(int *)0); }
     52843+
     52844+#undef wattron
     52845+int    wattron(
     52846+               WINDOW  *a1,
     52847+               int     z)
     52848+               { return(*(int *)0); }
     52849+
     52850+#undef wattroff
     52851+int    wattroff(
     52852+               WINDOW  *a1,
     52853+               int     z)
     52854+               { return(*(int *)0); }
     52855+
     52856+#undef wattrset
     52857+int    wattrset(
     52858+               WINDOW  *a1,
     52859+               int     z)
     52860+               { return(*(int *)0); }
     52861+
     52862+#undef wattr_get
     52863+int    wattr_get(
     52864+               WINDOW  *a1,
     52865+               attr_t  *a2,
     52866+               short   *a3,
     52867+               void    *z)
     52868+               { return(*(int *)0); }
     52869+
     52870+#undef wattr_set
     52871+int    wattr_set(
     52872+               WINDOW  *a1,
     52873+               attr_t  a2,
     52874+               short   a3,
     52875+               void    *z)
     52876+               { return(*(int *)0); }
     52877+
     52878+#undef wdeleteln
     52879+int    wdeleteln(
     52880+               WINDOW  *z)
     52881+               { return(*(int *)0); }
     52882+
     52883+#undef wgetstr
     52884+int    wgetstr(
     52885+               WINDOW  *a1,
     52886+               char    *z)
     52887+               { return(*(int *)0); }
     52888+
     52889+#undef winchstr
     52890+int    winchstr(
     52891+               WINDOW  *a1,
     52892+               chtype  *z)
     52893+               { return(*(int *)0); }
     52894+
     52895+#undef winsertln
     52896+int    winsertln(
     52897+               WINDOW  *z)
     52898+               { return(*(int *)0); }
     52899+
     52900+#undef winsstr
     52901+int    winsstr(
     52902+               WINDOW  *a1,
     52903+               const char *z)
     52904+               { return(*(int *)0); }
     52905+
     52906+#undef winstr
     52907+int    winstr(
     52908+               WINDOW  *a1,
     52909+               char    *z)
     52910+               { return(*(int *)0); }
     52911+
     52912+#undef wstandout
     52913+int    wstandout(
     52914+               WINDOW  *z)
     52915+               { return(*(int *)0); }
     52916+
     52917+#undef wstandend
     52918+int    wstandend(
     52919+               WINDOW  *z)
     52920+               { return(*(int *)0); }
     52921+
     52922+#undef getattrs
     52923+int    getattrs(
     52924+               const WINDOW *z)
     52925+               { return(*(int *)0); }
     52926+
     52927+#undef getcurx
     52928+int    getcurx(
     52929+               const WINDOW *z)
     52930+               { return(*(int *)0); }
     52931+
     52932+#undef getcury
     52933+int    getcury(
     52934+               const WINDOW *z)
     52935+               { return(*(int *)0); }
     52936+
     52937+#undef getbegx
     52938+int    getbegx(
     52939+               const WINDOW *z)
     52940+               { return(*(int *)0); }
     52941+
     52942+#undef getbegy
     52943+int    getbegy(
     52944+               const WINDOW *z)
     52945+               { return(*(int *)0); }
     52946+
     52947+#undef getmaxx
     52948+int    getmaxx(
     52949+               const WINDOW *z)
     52950+               { return(*(int *)0); }
     52951+
     52952+#undef getmaxy
     52953+int    getmaxy(
     52954+               const WINDOW *z)
     52955+               { return(*(int *)0); }
     52956+
     52957+#undef getparx
     52958+int    getparx(
     52959+               const WINDOW *z)
     52960+               { return(*(int *)0); }
     52961+
     52962+#undef getpary
     52963+int    getpary(
     52964+               const WINDOW *z)
     52965+               { return(*(int *)0); }
     52966+
     52967+#undef wgetparent
     52968+WINDOW *wgetparent(
     52969+               const WINDOW *z)
     52970+               { return(*(WINDOW **)0); }
     52971+
     52972+#undef is_cleared
     52973+NCURSES_BOOL is_cleared(
     52974+               const WINDOW *z)
     52975+               { return(*(NCURSES_BOOL *)0); }
     52976+
     52977+#undef is_idcok
     52978+NCURSES_BOOL is_idcok(
     52979+               const WINDOW *z)
     52980+               { return(*(NCURSES_BOOL *)0); }
     52981+
     52982+#undef is_idlok
     52983+NCURSES_BOOL is_idlok(
     52984+               const WINDOW *z)
     52985+               { return(*(NCURSES_BOOL *)0); }
     52986+
     52987+#undef is_immedok
     52988+NCURSES_BOOL is_immedok(
     52989+               const WINDOW *z)
     52990+               { return(*(NCURSES_BOOL *)0); }
     52991+
     52992+#undef is_keypad
     52993+NCURSES_BOOL is_keypad(
     52994+               const WINDOW *z)
     52995+               { return(*(NCURSES_BOOL *)0); }
     52996+
     52997+#undef is_leaveok
     52998+NCURSES_BOOL is_leaveok(
     52999+               const WINDOW *z)
     53000+               { return(*(NCURSES_BOOL *)0); }
     53001+
     53002+#undef is_nodelay
     53003+NCURSES_BOOL is_nodelay(
     53004+               const WINDOW *z)
     53005+               { return(*(NCURSES_BOOL *)0); }
     53006+
     53007+#undef is_notimeout
     53008+NCURSES_BOOL is_notimeout(
     53009+               const WINDOW *z)
     53010+               { return(*(NCURSES_BOOL *)0); }
     53011+
     53012+#undef is_scrollok
     53013+NCURSES_BOOL is_scrollok(
     53014+               const WINDOW *z)
     53015+               { return(*(NCURSES_BOOL *)0); }
     53016+
     53017+#undef is_syncok
     53018+NCURSES_BOOL is_syncok(
     53019+               const WINDOW *z)
     53020+               { return(*(NCURSES_BOOL *)0); }
     53021+
     53022+#undef wgetscrreg
     53023+int    wgetscrreg(
     53024+               const WINDOW *a1,
     53025+               int     *a2,
     53026+               int     *z)
     53027+               { return(*(int *)0); }
     53028+
     53029+#undef mouse_trafo
     53030+NCURSES_BOOL mouse_trafo(
     53031+               int     *a1,
     53032+               int     *a2,
     53033+               NCURSES_BOOL    z)
     53034+               { return(*(NCURSES_BOOL *)0); }
     53035+
     53036+/* ./base/lib_getch.c */
     53037+
     53038+#include <fifo_defs.h>
     53039+
     53040+#undef _nc_ESCDELAY
     53041+int    _nc_ESCDELAY(void)
     53042+               { return(*(int *)0); }
     53043+
     53044+#undef set_escdelay
     53045+int    set_escdelay(
     53046+               int     value)
     53047+               { return(*(int *)0); }
     53048+
     53049+#undef _nc_wgetch
     53050+int    _nc_wgetch(
     53051+               WINDOW  *win,
     53052+               unsigned long *result,
     53053+               int     use_meta,
     53054+               _nc_eventlist *evl)
     53055+               { return(*(int *)0); }
     53056+
     53057+#undef wgetch_events
     53058+int    wgetch_events(
     53059+               WINDOW  *win,
     53060+               _nc_eventlist *evl)
     53061+               { return(*(int *)0); }
     53062+
     53063+#undef wgetch
     53064+int    wgetch(
     53065+               WINDOW  *win)
     53066+               { return(*(int *)0); }
     53067+
     53068+/* ./base/lib_getstr.c */
     53069+
     53070+#undef wgetnstr_events
     53071+int    wgetnstr_events(
     53072+               WINDOW  *win,
     53073+               char    *str,
     53074+               int     maxlen,
     53075+               _nc_eventlist *evl)
     53076+               { return(*(int *)0); }
     53077+
     53078+#undef wgetnstr
     53079+int    wgetnstr(
     53080+               WINDOW  *win,
     53081+               char    *str,
     53082+               int     maxlen)
     53083+               { return(*(int *)0); }
     53084+
     53085+/* ./base/lib_hline.c */
     53086+
     53087+#undef whline
     53088+int    whline(
     53089+               WINDOW  *win,
     53090+               chtype  ch,
     53091+               int     n)
     53092+               { return(*(int *)0); }
     53093+
     53094+/* ./base/lib_immedok.c */
     53095+
     53096+#undef immedok
     53097+void   immedok(
     53098+               WINDOW  *win,
     53099+               NCURSES_BOOL flag)
     53100+               { /* void */ }
     53101+
     53102+/* ./base/lib_inchstr.c */
     53103+
     53104+#undef winchnstr
     53105+int    winchnstr(
     53106+               WINDOW  *win,
     53107+               chtype  *str,
     53108+               int     n)
     53109+               { return(*(int *)0); }
     53110+
     53111+/* ./base/lib_initscr.c */
     53112+
     53113+#undef initscr
     53114+WINDOW *initscr(void)
     53115+               { return(*(WINDOW **)0); }
     53116+
     53117+/* ./base/lib_insch.c */
     53118+
     53119+#undef _nc_insert_ch
     53120+int    _nc_insert_ch(
     53121+               WINDOW  *win,
     53122+               chtype  ch)
     53123+               { return(*(int *)0); }
     53124+
     53125+#undef winsch
     53126+int    winsch(
     53127+               WINDOW  *win,
     53128+               chtype  c)
     53129+               { return(*(int *)0); }
     53130+
     53131+/* ./base/lib_insdel.c */
     53132+
     53133+#undef winsdelln
     53134+int    winsdelln(
     53135+               WINDOW  *win,
     53136+               int     n)
     53137+               { return(*(int *)0); }
     53138+
     53139+/* ./base/lib_insnstr.c */
     53140+
     53141+#undef winsnstr
     53142+int    winsnstr(
     53143+               WINDOW  *win,
     53144+               const char *s,
     53145+               int     n)
     53146+               { return(*(int *)0); }
     53147+
     53148+/* ./base/lib_instr.c */
     53149+
     53150+#undef winnstr
     53151+int    winnstr(
     53152+               WINDOW  *win,
     53153+               char    *str,
     53154+               int     n)
     53155+               { return(*(int *)0); }
     53156+
     53157+/* ./base/lib_isendwin.c */
     53158+
     53159+#undef isendwin
     53160+NCURSES_BOOL isendwin(void)
     53161+               { return(*(NCURSES_BOOL *)0); }
     53162+
     53163+/* ./base/lib_leaveok.c */
     53164+
     53165+#undef leaveok
     53166+int    leaveok(
     53167+               WINDOW  *win,
     53168+               NCURSES_BOOL flag)
     53169+               { return(*(int *)0); }
     53170+
     53171+/* ./base/lib_mouse.c */
     53172+
     53173+#undef getmouse
     53174+int    getmouse(
     53175+               MEVENT  *aevent)
     53176+               { return(*(int *)0); }
     53177+
     53178+#undef ungetmouse
     53179+int    ungetmouse(
     53180+               MEVENT  *aevent)
     53181+               { return(*(int *)0); }
     53182+
     53183+#undef mousemask
     53184+mmask_t        mousemask(
     53185+               mmask_t newmask,
     53186+               mmask_t *oldmask)
     53187+               { return(*(mmask_t *)0); }
     53188+
     53189+#undef wenclose
     53190+NCURSES_BOOL wenclose(
     53191+               const WINDOW *win,
     53192+               int     y,
     53193+               int     x)
     53194+               { return(*(NCURSES_BOOL *)0); }
     53195+
     53196+#undef mouseinterval
     53197+int    mouseinterval(
     53198+               int     maxclick)
     53199+               { return(*(int *)0); }
     53200+
     53201+#undef _nc_has_mouse
     53202+int    _nc_has_mouse(void)
     53203+               { return(*(int *)0); }
     53204+
     53205+#undef wmouse_trafo
     53206+NCURSES_BOOL wmouse_trafo(
     53207+               const WINDOW *win,
     53208+               int     *pY,
     53209+               int     *pX,
     53210+               NCURSES_BOOL to_screen)
     53211+               { return(*(NCURSES_BOOL *)0); }
     53212+
     53213+/* ./base/lib_move.c */
     53214+
     53215+#undef wmove
     53216+int    wmove(
     53217+               WINDOW  *win,
     53218+               int     y,
     53219+               int     x)
     53220+               { return(*(int *)0); }
     53221+
     53222+/* ./tty/lib_mvcur.c */
     53223+
     53224+#undef _nc_msec_cost
     53225+int    _nc_msec_cost(
     53226+               const char *const cap,
     53227+               int     affcnt)
     53228+               { return(*(int *)0); }
     53229+
     53230+#undef _nc_mvcur_resume
     53231+void   _nc_mvcur_resume(void)
     53232+               { /* void */ }
     53233+
     53234+#undef _nc_mvcur_init
     53235+void   _nc_mvcur_init(void)
     53236+               { /* void */ }
     53237+
     53238+#undef _nc_mvcur_wrap
     53239+void   _nc_mvcur_wrap(void)
     53240+               { /* void */ }
     53241+
     53242+#undef mvcur
     53243+int    mvcur(
     53244+               int     yold,
     53245+               int     xold,
     53246+               int     ynew,
     53247+               int     xnew)
     53248+               { return(*(int *)0); }
     53249+
     53250+#undef _nc_optimize_enable
     53251+int    _nc_optimize_enable;
     53252+
     53253+/* ./base/lib_mvwin.c */
     53254+
     53255+#undef mvwin
     53256+int    mvwin(
     53257+               WINDOW  *win,
     53258+               int     by,
     53259+               int     bx)
     53260+               { return(*(int *)0); }
     53261+
     53262+/* ./base/lib_newterm.c */
     53263+
     53264+#undef filter
     53265+void   filter(void)
     53266+               { /* void */ }
     53267+
     53268+#undef nofilter
     53269+void   nofilter(void)
     53270+               { /* void */ }
     53271+
     53272+#undef newterm
     53273+SCREEN *newterm(
     53274+               const char *name,
     53275+               FILE    *ofp,
     53276+               FILE    *ifp)
     53277+               { return(*(SCREEN **)0); }
     53278+
     53279+/* ./base/lib_newwin.c */
     53280+
     53281+#undef _nc_freewin
     53282+int    _nc_freewin(
     53283+               WINDOW  *win)
     53284+               { return(*(int *)0); }
     53285+
     53286+#undef newwin
     53287+WINDOW *newwin(
     53288+               int     num_lines,
     53289+               int     num_columns,
     53290+               int     begy,
     53291+               int     begx)
     53292+               { return(*(WINDOW **)0); }
     53293+
     53294+#undef derwin
     53295+WINDOW *derwin(
     53296+               WINDOW  *orig,
     53297+               int     num_lines,
     53298+               int     num_columns,
     53299+               int     begy,
     53300+               int     begx)
     53301+               { return(*(WINDOW **)0); }
     53302+
     53303+#undef subwin
     53304+WINDOW *subwin(
     53305+               WINDOW  *w,
     53306+               int     l,
     53307+               int     c,
     53308+               int     y,
     53309+               int     x)
     53310+               { return(*(WINDOW **)0); }
     53311+
     53312+#undef _nc_makenew
     53313+WINDOW *_nc_makenew(
     53314+               int     num_lines,
     53315+               int     num_columns,
     53316+               int     begy,
     53317+               int     begx,
     53318+               int     flags)
     53319+               { return(*(WINDOW **)0); }
     53320+
     53321+#undef _nc_screen_of
     53322+SCREEN *_nc_screen_of(
     53323+               WINDOW  *win)
     53324+               { return(*(SCREEN **)0); }
     53325+
     53326+/* ./base/lib_nl.c */
     53327+
     53328+#undef nl
     53329+int    nl(void)
     53330+               { return(*(int *)0); }
     53331+
     53332+#undef nonl
     53333+int    nonl(void)
     53334+               { return(*(int *)0); }
     53335+
     53336+/* ./base/lib_overlay.c */
     53337+
     53338+#undef overlay
     53339+int    overlay(
     53340+               const WINDOW *win1,
     53341+               WINDOW  *win2)
     53342+               { return(*(int *)0); }
     53343+
     53344+#undef overwrite
     53345+int    overwrite(
     53346+               const WINDOW *win1,
     53347+               WINDOW  *win2)
     53348+               { return(*(int *)0); }
     53349+
     53350+#undef copywin
     53351+int    copywin(
     53352+               const WINDOW *src,
     53353+               WINDOW  *dst,
     53354+               int     sminrow,
     53355+               int     smincol,
     53356+               int     dminrow,
     53357+               int     dmincol,
     53358+               int     dmaxrow,
     53359+               int     dmaxcol,
     53360+               int     over)
     53361+               { return(*(int *)0); }
     53362+
     53363+/* ./base/lib_pad.c */
     53364+
     53365+#undef newpad
     53366+WINDOW *newpad(
     53367+               int     l,
     53368+               int     c)
     53369+               { return(*(WINDOW **)0); }
     53370+
     53371+#undef subpad
     53372+WINDOW *subpad(
     53373+               WINDOW  *orig,
     53374+               int     l,
     53375+               int     c,
     53376+               int     begy,
     53377+               int     begx)
     53378+               { return(*(WINDOW **)0); }
     53379+
     53380+#undef prefresh
     53381+int    prefresh(
     53382+               WINDOW  *win,
     53383+               int     pminrow,
     53384+               int     pmincol,
     53385+               int     sminrow,
     53386+               int     smincol,
     53387+               int     smaxrow,
     53388+               int     smaxcol)
     53389+               { return(*(int *)0); }
     53390+
     53391+#undef pnoutrefresh
     53392+int    pnoutrefresh(
     53393+               WINDOW  *win,
     53394+               int     pminrow,
     53395+               int     pmincol,
     53396+               int     sminrow,
     53397+               int     smincol,
     53398+               int     smaxrow,
     53399+               int     smaxcol)
     53400+               { return(*(int *)0); }
     53401+
     53402+#undef pechochar
     53403+int    pechochar(
     53404+               WINDOW  *pad,
     53405+               const chtype ch)
     53406+               { return(*(int *)0); }
     53407+
     53408+/* ./base/lib_printw.c */
     53409+
     53410+#undef printw
     53411+int    printw(
     53412+               const char *fmt,
     53413+               ...)
     53414+               { return(*(int *)0); }
     53415+
     53416+#undef wprintw
     53417+int    wprintw(
     53418+               WINDOW  *win,
     53419+               const char *fmt,
     53420+               ...)
     53421+               { return(*(int *)0); }
     53422+
     53423+#undef mvprintw
     53424+int    mvprintw(
     53425+               int     y,
     53426+               int     x,
     53427+               const char *fmt,
     53428+               ...)
     53429+               { return(*(int *)0); }
     53430+
     53431+#undef mvwprintw
     53432+int    mvwprintw(
     53433+               WINDOW  *win,
     53434+               int     y,
     53435+               int     x,
     53436+               const char *fmt,
     53437+               ...)
     53438+               { return(*(int *)0); }
     53439+
     53440+#undef vwprintw
     53441+int    vwprintw(
     53442+               WINDOW  *win,
     53443+               const char *fmt,
     53444+               va_list argp)
     53445+               { return(*(int *)0); }
     53446+
     53447+/* ./base/lib_redrawln.c */
     53448+
     53449+#undef wredrawln
     53450+int    wredrawln(
     53451+               WINDOW  *win,
     53452+               int     beg,
     53453+               int     num)
     53454+               { return(*(int *)0); }
     53455+
     53456+/* ./base/lib_refresh.c */
     53457+
     53458+#undef wrefresh
     53459+int    wrefresh(
     53460+               WINDOW  *win)
     53461+               { return(*(int *)0); }
     53462+
     53463+#undef wnoutrefresh
     53464+int    wnoutrefresh(
     53465+               WINDOW  *win)
     53466+               { return(*(int *)0); }
     53467+
     53468+/* ./base/lib_restart.c */
     53469+
     53470+#undef restartterm
     53471+int    restartterm(
     53472+               const char *termp,
     53473+               int     filenum,
     53474+               int     *errret)
     53475+               { return(*(int *)0); }
     53476+
     53477+/* ./base/lib_scanw.c */
     53478+
     53479+#undef vwscanw
     53480+int    vwscanw(
     53481+               WINDOW  *win,
     53482+               const char *fmt,
     53483+               va_list argp)
     53484+               { return(*(int *)0); }
     53485+
     53486+#undef scanw
     53487+int    scanw(
     53488+               const char *fmt,
     53489+               ...)
     53490+               { return(*(int *)0); }
     53491+
     53492+#undef wscanw
     53493+int    wscanw(
     53494+               WINDOW  *win,
     53495+               const char *fmt,
     53496+               ...)
     53497+               { return(*(int *)0); }
     53498+
     53499+#undef mvscanw
     53500+int    mvscanw(
     53501+               int     y,
     53502+               int     x,
     53503+               const char *fmt,
     53504+               ...)
     53505+               { return(*(int *)0); }
     53506+
     53507+#undef mvwscanw
     53508+int    mvwscanw(
     53509+               WINDOW  *win,
     53510+               int     y,
     53511+               int     x,
     53512+               const char *fmt,
     53513+               ...)
     53514+               { return(*(int *)0); }
     53515+
     53516+/* ./base/lib_screen.c */
     53517+
     53518+#undef getwin
     53519+WINDOW *getwin(
     53520+               FILE    *filep)
     53521+               { return(*(WINDOW **)0); }
     53522+
     53523+#undef putwin
     53524+int    putwin(
     53525+               WINDOW  *win,
     53526+               FILE    *filep)
     53527+               { return(*(int *)0); }
     53528+
     53529+#undef scr_restore
     53530+int    scr_restore(
     53531+               const char *file)
     53532+               { return(*(int *)0); }
     53533+
     53534+#undef scr_dump
     53535+int    scr_dump(
     53536+               const char *file)
     53537+               { return(*(int *)0); }
     53538+
     53539+#undef scr_init
     53540+int    scr_init(
     53541+               const char *file)
     53542+               { return(*(int *)0); }
     53543+
     53544+#undef scr_set
     53545+int    scr_set(
     53546+               const char *file)
     53547+               { return(*(int *)0); }
     53548+
     53549+/* ./base/lib_scroll.c */
     53550+
     53551+#undef _nc_scroll_window
     53552+void   _nc_scroll_window(
     53553+               WINDOW  *win,
     53554+               int const n,
     53555+               int const top,
     53556+               int const bottom,
     53557+               chtype  blank)
     53558+               { /* void */ }
     53559+
     53560+#undef wscrl
     53561+int    wscrl(
     53562+               WINDOW  *win,
     53563+               int     n)
     53564+               { return(*(int *)0); }
     53565+
     53566+/* ./base/lib_scrollok.c */
     53567+
     53568+#undef scrollok
     53569+int    scrollok(
     53570+               WINDOW  *win,
     53571+               NCURSES_BOOL flag)
     53572+               { return(*(int *)0); }
     53573+
     53574+/* ./base/lib_scrreg.c */
     53575+
     53576+#undef wsetscrreg
     53577+int    wsetscrreg(
     53578+               WINDOW  *win,
     53579+               int     top,
     53580+               int     bottom)
     53581+               { return(*(int *)0); }
     53582+
     53583+/* ./base/lib_set_term.c */
     53584+
     53585+#undef set_term
     53586+SCREEN *set_term(
     53587+               SCREEN  *screenp)
     53588+               { return(*(SCREEN **)0); }
     53589+
     53590+#undef delscreen
     53591+void   delscreen(
     53592+               SCREEN  *sp)
     53593+               { /* void */ }
     53594+
     53595+#undef _nc_setupscreen
     53596+int    _nc_setupscreen(
     53597+               int     slines,
     53598+               int     scolumns,
     53599+               FILE    *output,
     53600+               NCURSES_BOOL filtered,
     53601+               int     slk_format)
     53602+               { return(*(int *)0); }
     53603+
     53604+#undef _nc_ripoffline
     53605+int    _nc_ripoffline(
     53606+               int     line,
     53607+               int     (*init)(
     53608+               WINDOW  *p1,
     53609+               int     p2))
     53610+               { return(*(int *)0); }
     53611+
     53612+#undef ripoffline
     53613+int    ripoffline(
     53614+               int     line,
     53615+               int     (*init)(
     53616+               WINDOW  *p1,
     53617+               int     p2))
     53618+               { return(*(int *)0); }
     53619+
     53620+/* ./base/lib_slk.c */
     53621+
     53622+#undef _nc_slk_format
     53623+int    _nc_slk_format;
     53624+
     53625+#undef _nc_slk_initialize
     53626+int    _nc_slk_initialize(
     53627+               WINDOW  *stwin,
     53628+               int     cols)
     53629+               { return(*(int *)0); }
     53630+
     53631+#undef slk_restore
     53632+int    slk_restore(void)
     53633+               { return(*(int *)0); }
     53634+
     53635+/* ./base/lib_slkatr_set.c */
     53636+
     53637+#undef slk_attr_set
     53638+int    slk_attr_set(
     53639+               const attr_t attr,
     53640+               short   color_pair_number,
     53641+               void    *opts)
     53642+               { return(*(int *)0); }
     53643+
     53644+/* ./base/lib_slkatrof.c */
     53645+
     53646+#undef slk_attroff
     53647+int    slk_attroff(
     53648+               const chtype attr)
     53649+               { return(*(int *)0); }
     53650+
     53651+/* ./base/lib_slkatron.c */
     53652+
     53653+#undef slk_attron
     53654+int    slk_attron(
     53655+               const chtype attr)
     53656+               { return(*(int *)0); }
     53657+
     53658+/* ./base/lib_slkatrset.c */
     53659+
     53660+#undef slk_attrset
     53661+int    slk_attrset(
     53662+               const chtype attr)
     53663+               { return(*(int *)0); }
     53664+
     53665+/* ./base/lib_slkattr.c */
     53666+
     53667+#undef slk_attr
     53668+attr_t slk_attr(void)
     53669+               { return(*(attr_t *)0); }
     53670+
     53671+/* ./base/lib_slkclear.c */
     53672+
     53673+#undef slk_clear
     53674+int    slk_clear(void)
     53675+               { return(*(int *)0); }
     53676+
     53677+/* ./base/lib_slkcolor.c */
     53678+
     53679+#undef slk_color
     53680+int    slk_color(
     53681+               short   color_pair_number)
     53682+               { return(*(int *)0); }
     53683+
     53684+/* ./base/lib_slkinit.c */
     53685+
     53686+#undef slk_init
     53687+int    slk_init(
     53688+               int     format)
     53689+               { return(*(int *)0); }
     53690+
     53691+/* ./base/lib_slklab.c */
     53692+
     53693+#undef slk_label
     53694+char   *slk_label(
     53695+               int     n)
     53696+               { return(*(char **)0); }
     53697+
     53698+/* ./base/lib_slkrefr.c */
     53699+
     53700+#undef slk_noutrefresh
     53701+int    slk_noutrefresh(void)
     53702+               { return(*(int *)0); }
     53703+
     53704+#undef slk_refresh
     53705+int    slk_refresh(void)
     53706+               { return(*(int *)0); }
     53707+
     53708+/* ./base/lib_slkset.c */
     53709+
     53710+#undef slk_set
     53711+int    slk_set(
     53712+               int     i,
     53713+               const char *astr,
     53714+               int     format)
     53715+               { return(*(int *)0); }
     53716+
     53717+/* ./base/lib_slktouch.c */
     53718+
     53719+#undef slk_touch
     53720+int    slk_touch(void)
     53721+               { return(*(int *)0); }
     53722+
     53723+/* ./base/lib_touch.c */
     53724+
     53725+#undef is_linetouched
     53726+NCURSES_BOOL is_linetouched(
     53727+               WINDOW  *win,
     53728+               int     line)
     53729+               { return(*(NCURSES_BOOL *)0); }
     53730+
     53731+#undef is_wintouched
     53732+NCURSES_BOOL is_wintouched(
     53733+               WINDOW  *win)
     53734+               { return(*(NCURSES_BOOL *)0); }
     53735+
     53736+#undef wtouchln
     53737+int    wtouchln(
     53738+               WINDOW  *win,
     53739+               int     y,
     53740+               int     n,
     53741+               int     changed)
     53742+               { return(*(int *)0); }
     53743+
     53744+/* ./trace/lib_tracedmp.c */
     53745+
     53746+#undef _tracedump
     53747+void   _tracedump(
     53748+               const char *name,
     53749+               WINDOW  *win)
     53750+               { /* void */ }
     53751+
     53752+/* ./trace/lib_tracemse.c */
     53753+
     53754+#undef _nc_tracemouse
     53755+char   *_nc_tracemouse(
     53756+               SCREEN  *sp,
     53757+               MEVENT const *ep)
     53758+               { return(*(char **)0); }
     53759+
     53760+#undef _tracemouse
     53761+char   *_tracemouse(
     53762+               MEVENT const *ep)
     53763+               { return(*(char **)0); }
     53764+
     53765+/* ./tty/lib_tstp.c */
     53766+
     53767+#include <SigAction.h>
     53768+
     53769+#undef _nc_signal_handler
     53770+void   _nc_signal_handler(
     53771+               NCURSES_BOOL enable)
     53772+               { /* void */ }
     53773+
     53774+/* ./base/lib_ungetch.c */
     53775+
     53776+#undef _nc_fifo_dump
     53777+void   _nc_fifo_dump(
     53778+               SCREEN  *sp)
     53779+               { /* void */ }
     53780+
     53781+#undef _nc_ungetch
     53782+int    _nc_ungetch(
     53783+               SCREEN  *sp,
     53784+               int     ch)
     53785+               { return(*(int *)0); }
     53786+
     53787+#undef ungetch
     53788+int    ungetch(
     53789+               int     ch)
     53790+               { return(*(int *)0); }
     53791+
     53792+/* ./tty/lib_vidattr.c */
     53793+
     53794+#undef vidputs
     53795+int    vidputs(
     53796+               chtype  newmode,
     53797+               int     (*outc)(
     53798+               int     p1))
     53799+               { return(*(int *)0); }
     53800+
     53801+#undef vidattr
     53802+int    vidattr(
     53803+               chtype  newmode)
     53804+               { return(*(int *)0); }
     53805+
     53806+#undef termattrs
     53807+chtype termattrs(void)
     53808+               { return(*(chtype *)0); }
     53809+
     53810+/* ./base/lib_vline.c */
     53811+
     53812+#undef wvline
     53813+int    wvline(
     53814+               WINDOW  *win,
     53815+               chtype  ch,
     53816+               int     n)
     53817+               { return(*(int *)0); }
     53818+
     53819+/* ./base/lib_wattroff.c */
     53820+
     53821+#undef wattr_off
     53822+int    wattr_off(
     53823+               WINDOW  *win,
     53824+               attr_t  at,
     53825+               void    *opts)
     53826+               { return(*(int *)0); }
     53827+
     53828+/* ./base/lib_wattron.c */
     53829+
     53830+#undef wattr_on
     53831+int    wattr_on(
     53832+               WINDOW  *win,
     53833+               attr_t  at,
     53834+               void    *opts)
     53835+               { return(*(int *)0); }
     53836+
     53837+/* ./base/lib_winch.c */
     53838+
     53839+#undef winch
     53840+chtype winch(
     53841+               WINDOW  *win)
     53842+               { return(*(chtype *)0); }
     53843+
     53844+/* ./base/lib_window.c */
     53845+
     53846+#undef _nc_synchook
     53847+void   _nc_synchook(
     53848+               WINDOW  *win)
     53849+               { /* void */ }
     53850+
     53851+#undef mvderwin
     53852+int    mvderwin(
     53853+               WINDOW  *win,
     53854+               int     y,
     53855+               int     x)
     53856+               { return(*(int *)0); }
     53857+
     53858+#undef syncok
     53859+int    syncok(
     53860+               WINDOW  *win,
     53861+               NCURSES_BOOL bf)
     53862+               { return(*(int *)0); }
     53863+
     53864+#undef wsyncup
     53865+void   wsyncup(
     53866+               WINDOW  *win)
     53867+               { /* void */ }
     53868+
     53869+#undef wsyncdown
     53870+void   wsyncdown(
     53871+               WINDOW  *win)
     53872+               { /* void */ }
     53873+
     53874+#undef wcursyncup
     53875+void   wcursyncup(
     53876+               WINDOW  *win)
     53877+               { /* void */ }
     53878+
     53879+#undef dupwin
     53880+WINDOW *dupwin(
     53881+               WINDOW  *win)
     53882+               { return(*(WINDOW **)0); }
     53883+
     53884+/* ./base/nc_panel.c */
     53885+
     53886+#undef _nc_panelhook
     53887+struct panelhook *_nc_panelhook(void)
     53888+               { return(*(struct panelhook **)0); }
     53889+
     53890+/* ./base/safe_sprintf.c */
     53891+
     53892+#undef _nc_printf_string
     53893+char   *_nc_printf_string(
     53894+               const char *fmt,
     53895+               va_list ap)
     53896+               { return(*(char **)0); }
     53897+
     53898+/* ./tty/tty_update.c */
     53899+
     53900+#include <sys/time.h>
     53901+#include <sys/times.h>
     53902+
     53903+#undef doupdate
     53904+int    doupdate(void)
     53905+               { return(*(int *)0); }
     53906+
     53907+#undef _nc_scrolln
     53908+int    _nc_scrolln(
     53909+               int     n,
     53910+               int     top,
     53911+               int     bot,
     53912+               int     maxy)
     53913+               { return(*(int *)0); }
     53914+
     53915+#undef _nc_screen_resume
     53916+void   _nc_screen_resume(void)
     53917+               { /* void */ }
     53918+
     53919+#undef _nc_screen_init
     53920+void   _nc_screen_init(void)
     53921+               { /* void */ }
     53922+
     53923+#undef _nc_screen_wrap
     53924+void   _nc_screen_wrap(void)
     53925+               { /* void */ }
     53926+
     53927+#undef _nc_do_xmc_glitch
     53928+void   _nc_do_xmc_glitch(
     53929+               attr_t  previous)
     53930+               { /* void */ }
     53931+
     53932+/* ./trace/varargs.c */
     53933+
     53934+typedef enum {
     53935+    atUnknown = 0, atInteger, atFloat, atPoint, atString
     53936+} ARGTYPE;
     53937+
     53938+#undef _nc_varargs
     53939+char   *_nc_varargs(
     53940+               const char *fmt,
     53941+               va_list ap)
     53942+               { return(*(char **)0); }
     53943+
     53944+/* ./base/memmove.c */
     53945+
     53946+#undef _nc_memmove
     53947+void   _nc_memmove(void)
     53948+               { /* void */ }
     53949+
     53950+/* ./base/vsscanf.c */
     53951+
     53952+#undef _nc_vsscanf
     53953+void   _nc_vsscanf(void)
     53954+               { /* void */ }
     53955+
     53956+/* ./base/lib_freeall.c */
     53957+
     53958+#include <term_entry.h>
     53959+
     53960+#undef _nc_freeall
     53961+void   _nc_freeall(void)
     53962+               { /* void */ }
     53963+
     53964+#undef _nc_free_and_exit
     53965+void   _nc_free_and_exit(
     53966+               int     code)
     53967+               { /* void */ }
     53968+
     53969+/* ./expanded.c */
     53970+
     53971+#undef _nc_expanded
     53972+void   _nc_expanded(void)
     53973+               { /* void */ }
     53974+
     53975+/* ./base/legacy_coding.c */
     53976+
     53977+#undef use_legacy_coding
     53978+int    use_legacy_coding(
     53979+               int     level)
     53980+               { return(*(int *)0); }
     53981+
     53982+/* ./base/lib_dft_fgbg.c */
     53983+
     53984+#undef use_default_colors
     53985+int    use_default_colors(void)
     53986+               { return(*(int *)0); }
     53987+
     53988+#undef assume_default_colors
     53989+int    assume_default_colors(
     53990+               int     fg,
     53991+               int     bg)
     53992+               { return(*(int *)0); }
     53993+
     53994+/* ./tinfo/lib_print.c */
     53995+
     53996+#undef mcprint
     53997+int    mcprint(
     53998+               char    *data,
     53999+               int     len)
     54000+               { return(*(int *)0); }
     54001+
     54002+/* ./base/resizeterm.c */
     54003+
     54004+#undef is_term_resized
     54005+NCURSES_BOOL is_term_resized(
     54006+               int     ToLines,
     54007+               int     ToCols)
     54008+               { return(*(NCURSES_BOOL *)0); }
     54009+
     54010+#undef resize_term
     54011+int    resize_term(
     54012+               int     ToLines,
     54013+               int     ToCols)
     54014+               { return(*(int *)0); }
     54015+
     54016+#undef resizeterm
     54017+int    resizeterm(
     54018+               int     ToLines,
     54019+               int     ToCols)
     54020+               { return(*(int *)0); }
     54021+
     54022+/* ./trace/trace_xnames.c */
     54023+
     54024+#undef _nc_trace_xnames
     54025+void   _nc_trace_xnames(
     54026+               TERMTYPE *tp)
     54027+               { /* void */ }
     54028+
     54029+/* ./tinfo/use_screen.c */
     54030+
     54031+#undef use_screen
     54032+int    use_screen(
     54033+               SCREEN  *screen,
     54034+               NCURSES_SCREEN_CB func,
     54035+               void    *data)
     54036+               { return(*(int *)0); }
     54037+
     54038+/* ./base/use_window.c */
     54039+
     54040+#undef use_window
     54041+int    use_window(
     54042+               WINDOW  *win,
     54043+               NCURSES_WINDOW_CB func,
     54044+               void    *data)
     54045+               { return(*(int *)0); }
     54046+
     54047+/* ./base/wresize.c */
     54048+
     54049+#undef wresize
     54050+int    wresize(
     54051+               WINDOW  *win,
     54052+               int     ToLines,
     54053+               int     ToCols)
     54054+               { return(*(int *)0); }
     54055+
     54056+/* ./tinfo/access.c */
     54057+
     54058+#include <sys/stat.h>
     54059+#include <nc_alloc.h>
     54060+
     54061+#undef _nc_rootname
     54062+char   *_nc_rootname(
     54063+               char    *path)
     54064+               { return(*(char **)0); }
     54065+
     54066+#undef _nc_is_abs_path
     54067+NCURSES_BOOL _nc_is_abs_path(
     54068+               const char *path)
     54069+               { return(*(NCURSES_BOOL *)0); }
     54070+
     54071+#undef _nc_pathlast
     54072+unsigned _nc_pathlast(
     54073+               const char *path)
     54074+               { return(*(unsigned *)0); }
     54075+
     54076+#undef _nc_basename
     54077+char   *_nc_basename(
     54078+               char    *path)
     54079+               { return(*(char **)0); }
     54080+
     54081+#undef _nc_access
     54082+int    _nc_access(
     54083+               const char *path,
     54084+               int     mode)
     54085+               { return(*(int *)0); }
     54086+
     54087+#undef _nc_is_dir_path
     54088+NCURSES_BOOL _nc_is_dir_path(
     54089+               const char *path)
     54090+               { return(*(NCURSES_BOOL *)0); }
     54091+
     54092+#undef _nc_is_file_path
     54093+NCURSES_BOOL _nc_is_file_path(
     54094+               const char *path)
     54095+               { return(*(NCURSES_BOOL *)0); }
     54096+
     54097+/* ./tinfo/add_tries.c */
     54098+
     54099+#undef _nc_add_to_try
     54100+int    _nc_add_to_try(
     54101+               TRIES   **tree,
     54102+               const char *str,
     54103+               unsigned code)
     54104+               { return(*(int *)0); }
     54105+
     54106+/* ./tinfo/alloc_ttype.c */
     54107+
     54108+#undef _nc_align_termtype
     54109+void   _nc_align_termtype(
     54110+               TERMTYPE *to,
     54111+               TERMTYPE *from)
     54112+               { /* void */ }
     54113+
     54114+#undef _nc_copy_termtype
     54115+void   _nc_copy_termtype(
     54116+               TERMTYPE *dst,
     54117+               TERMTYPE *src)
     54118+               { /* void */ }
     54119+
     54120+/* ./codes.c */
     54121+
     54122+#undef _nc_boolcodes
     54123+const char *const *_nc_boolcodes(void)
     54124+               { return(*(const char **)0); }
     54125+
     54126+#undef _nc_numcodes
     54127+const char *const *_nc_numcodes(void)
     54128+               { return(*(const char **)0); }
     54129+
     54130+#undef _nc_strcodes
     54131+const char *const *_nc_strcodes(void)
     54132+               { return(*(const char **)0); }
     54133+
     54134+#undef _nc_codes_leaks
     54135+void   _nc_codes_leaks(void)
     54136+               { /* void */ }
     54137+
     54138+/* ./tinfo/comp_error.c */
     54139+
     54140+#undef _nc_suppress_warnings
     54141+NCURSES_BOOL _nc_suppress_warnings;
     54142+#undef _nc_curr_line
     54143+int    _nc_curr_line;
     54144+#undef _nc_curr_col
     54145+int    _nc_curr_col;
     54146+
     54147+#undef _nc_get_source
     54148+const char *_nc_get_source(void)
     54149+               { return(*(const char **)0); }
     54150+
     54151+#undef _nc_set_source
     54152+void   _nc_set_source(
     54153+               const char *const name)
     54154+               { /* void */ }
     54155+
     54156+#undef _nc_set_type
     54157+void   _nc_set_type(
     54158+               const char *const name)
     54159+               { /* void */ }
     54160+
     54161+#undef _nc_get_type
     54162+void   _nc_get_type(
     54163+               char    *name)
     54164+               { /* void */ }
     54165+
     54166+#undef _nc_warning
     54167+void   _nc_warning(
     54168+               const char *const fmt,
     54169+               ...)
     54170+               { /* void */ }
     54171+
     54172+#undef _nc_err_abort
     54173+void   _nc_err_abort(
     54174+               const char *const fmt,
     54175+               ...)
     54176+               { /* void */ }
     54177+
     54178+#undef _nc_syserr_abort
     54179+void   _nc_syserr_abort(
     54180+               const char *const fmt,
     54181+               ...)
     54182+               { /* void */ }
     54183+
     54184+/* ./tinfo/db_iterator.c */
     54185+
     54186+#undef _nc_tic_dir
     54187+const char *_nc_tic_dir(
     54188+               const char *path)
     54189+               { return(*(const char **)0); }
     54190+
     54191+#undef _nc_keep_tic_dir
     54192+void   _nc_keep_tic_dir(
     54193+               const char *path)
     54194+               { /* void */ }
     54195+
     54196+#undef _nc_last_db
     54197+void   _nc_last_db(void)
     54198+               { /* void */ }
     54199+
     54200+#undef _nc_next_db
     54201+const char *_nc_next_db(
     54202+               DBDIRS  *state,
     54203+               int     *offset)
     54204+               { return(*(const char **)0); }
     54205+
     54206+#undef _nc_first_db
     54207+void   _nc_first_db(
     54208+               DBDIRS  *state,
     54209+               int     *offset)
     54210+               { /* void */ }
     54211+
     54212+/* ./tinfo/doalloc.c */
     54213+
     54214+#undef _nc_doalloc
     54215+void   *_nc_doalloc(
     54216+               void    *oldp,
     54217+               size_t  amount)
     54218+               { return(*(void **)0); }
     54219+
     54220+/* ./tinfo/entries.c */
     54221+
     54222+#undef _nc_head
     54223+ENTRY  *_nc_head;
     54224+#undef _nc_tail
     54225+ENTRY  *_nc_tail;
     54226+
     54227+#undef _nc_free_entry
     54228+void   _nc_free_entry(
     54229+               ENTRY   *headp,
     54230+               TERMTYPE *tterm)
     54231+               { /* void */ }
     54232+
     54233+#undef _nc_free_entries
     54234+void   _nc_free_entries(
     54235+               ENTRY   *headp)
     54236+               { /* void */ }
     54237+
     54238+#undef _nc_delink_entry
     54239+ENTRY  *_nc_delink_entry(
     54240+               ENTRY   *headp,
     54241+               TERMTYPE *tterm)
     54242+               { return(*(ENTRY **)0); }
     54243+
     54244+#undef _nc_leaks_tinfo
     54245+void   _nc_leaks_tinfo(void)
     54246+               { /* void */ }
     54247+
     54248+#undef _nc_free_tinfo
     54249+void   _nc_free_tinfo(
     54250+               int     code)
     54251+               { /* void */ }
     54252+
     54253+/* ./fallback.c */
     54254+
     54255+#undef _nc_fallback
     54256+const TERMTYPE *_nc_fallback(
     54257+               const char *name)
     54258+               { return(*(const TERMTYPE **)0); }
     54259+
     54260+/* ./tinfo/free_ttype.c */
     54261+
     54262+#undef _nc_free_termtype
     54263+void   _nc_free_termtype(
     54264+               TERMTYPE *ptr)
     54265+               { /* void */ }
     54266+
     54267+#undef _nc_user_definable
     54268+NCURSES_BOOL _nc_user_definable;
     54269+
     54270+#undef use_extended_names
     54271+int    use_extended_names(
     54272+               NCURSES_BOOL flag)
     54273+               { return(*(int *)0); }
     54274+
     54275+/* ./tinfo/getenv_num.c */
     54276+
     54277+#undef _nc_getenv_num
     54278+int    _nc_getenv_num(
     54279+               const char *name)
     54280+               { return(*(int *)0); }
     54281+
     54282+/* ./tinfo/home_terminfo.c */
     54283+
     54284+#undef _nc_home_terminfo
     54285+char   *_nc_home_terminfo(void)
     54286+               { return(*(char **)0); }
     54287+
     54288+/* ./tinfo/init_keytry.c */
     54289+
     54290+#if 0
     54291+
     54292+#include <init_keytry.h>
     54293+
     54294+#undef _nc_tinfo_fkeys
     54295+const struct tinfo_fkeys _nc_tinfo_fkeys[] = {0};
     54296+
     54297+#endif
     54298+
     54299+#undef _nc_init_keytry
     54300+void   _nc_init_keytry(
     54301+               SCREEN  *sp)
     54302+               { /* void */ }
     54303+
     54304+/* ./tinfo/lib_acs.c */
     54305+
     54306+#undef _nc_acs_map
     54307+chtype *_nc_acs_map(void)
     54308+               { return(*(chtype **)0); }
     54309+
     54310+#undef _nc_init_acs
     54311+void   _nc_init_acs(void)
     54312+               { /* void */ }
     54313+
     54314+/* ./tinfo/lib_baudrate.c */
     54315+
     54316+#include <termcap.h>
     54317+
     54318+struct speed {
     54319+    int s;
     54320+    int sp;
     54321+};
     54322+
     54323+#undef _nc_baudrate
     54324+int    _nc_baudrate(
     54325+               int     OSpeed)
     54326+               { return(*(int *)0); }
     54327+
     54328+#undef _nc_ospeed
     54329+int    _nc_ospeed(
     54330+               int     BaudRate)
     54331+               { return(*(int *)0); }
     54332+
     54333+#undef baudrate
     54334+int    baudrate(void)
     54335+               { return(*(int *)0); }
     54336+
     54337+/* ./tinfo/lib_cur_term.c */
     54338+
     54339+#undef _nc_cur_term
     54340+TERMINAL *_nc_cur_term(void)
     54341+               { return(*(TERMINAL **)0); }
     54342+
     54343+#undef set_curterm
     54344+TERMINAL *set_curterm(
     54345+               TERMINAL *termp)
     54346+               { return(*(TERMINAL **)0); }
     54347+
     54348+#undef del_curterm
     54349+int    del_curterm(
     54350+               TERMINAL *termp)
     54351+               { return(*(int *)0); }
     54352+
     54353+/* ./tinfo/lib_data.c */
     54354+
     54355+#undef _nc_stdscr
     54356+WINDOW *_nc_stdscr(void)
     54357+               { return(*(WINDOW **)0); }
     54358+
     54359+#undef _nc_curscr
     54360+WINDOW *_nc_curscr(void)
     54361+               { return(*(WINDOW **)0); }
     54362+
     54363+#undef _nc_newscr
     54364+WINDOW *_nc_newscr(void)
     54365+               { return(*(WINDOW **)0); }
     54366+
     54367+#undef _nc_screen_chain
     54368+SCREEN *_nc_screen_chain;
     54369+#undef SP
     54370+SCREEN *SP;
     54371+#undef _nc_globals
     54372+NCURSES_GLOBALS _nc_globals;
     54373+#undef _nc_prescreen
     54374+NCURSES_PRESCREEN _nc_prescreen;
     54375+
     54376+#undef _nc_mutex_init
     54377+void   _nc_mutex_init(
     54378+               pthread_mutex_t *obj)
     54379+               { /* void */ }
     54380+
     54381+#undef _nc_mutex_lock
     54382+int    _nc_mutex_lock(
     54383+               pthread_mutex_t *obj)
     54384+               { return(*(int *)0); }
     54385+
     54386+#undef _nc_mutex_trylock
     54387+int    _nc_mutex_trylock(
     54388+               pthread_mutex_t *obj)
     54389+               { return(*(int *)0); }
     54390+
     54391+#undef _nc_mutex_unlock
     54392+int    _nc_mutex_unlock(
     54393+               pthread_mutex_t *obj)
     54394+               { return(*(int *)0); }
     54395+
     54396+/* ./tinfo/lib_has_cap.c */
     54397+
     54398+#undef has_ic
     54399+NCURSES_BOOL has_ic(void)
     54400+               { return(*(NCURSES_BOOL *)0); }
     54401+
     54402+#undef has_il
     54403+NCURSES_BOOL has_il(void)
     54404+               { return(*(NCURSES_BOOL *)0); }
     54405+
     54406+/* ./tinfo/lib_kernel.c */
     54407+
     54408+#undef erasechar
     54409+char   erasechar(void)
     54410+               { return(*(char *)0); }
     54411+
     54412+#undef killchar
     54413+char   killchar(void)
     54414+               { return(*(char *)0); }
     54415+
     54416+#undef flushinp
     54417+int    flushinp(void)
     54418+               { return(*(int *)0); }
     54419+
     54420+/* ./lib_keyname.c */
     54421+
     54422+struct kn { short offset; int code; };
     54423+
     54424+#undef _nc_keyname
     54425+const char *_nc_keyname(
     54426+               SCREEN  *sp,
     54427+               int     c)
     54428+               { return(*(const char **)0); }
     54429+
     54430+#undef keyname
     54431+const char *keyname(
     54432+               int     c)
     54433+               { return(*(const char **)0); }
     54434+
     54435+#undef _nc_keyname_leaks
     54436+void   _nc_keyname_leaks(void)
     54437+               { /* void */ }
     54438+
     54439+/* ./tinfo/lib_longname.c */
     54440+
     54441+#undef longname
     54442+char   *longname(void)
     54443+               { return(*(char **)0); }
     54444+
     54445+/* ./tinfo/lib_napms.c */
     54446+
     54447+#undef napms
     54448+int    napms(
     54449+               int     ms)
     54450+               { return(*(int *)0); }
     54451+
     54452+/* ./tinfo/lib_options.c */
     54453+
     54454+#undef idlok
     54455+int    idlok(
     54456+               WINDOW  *win,
     54457+               NCURSES_BOOL flag)
     54458+               { return(*(int *)0); }
     54459+
     54460+#undef idcok
     54461+void   idcok(
     54462+               WINDOW  *win,
     54463+               NCURSES_BOOL flag)
     54464+               { /* void */ }
     54465+
     54466+#undef halfdelay
     54467+int    halfdelay(
     54468+               int     t)
     54469+               { return(*(int *)0); }
     54470+
     54471+#undef nodelay
     54472+int    nodelay(
     54473+               WINDOW  *win,
     54474+               NCURSES_BOOL flag)
     54475+               { return(*(int *)0); }
     54476+
     54477+#undef notimeout
     54478+int    notimeout(
     54479+               WINDOW  *win,
     54480+               NCURSES_BOOL f)
     54481+               { return(*(int *)0); }
     54482+
     54483+#undef wtimeout
     54484+void   wtimeout(
     54485+               WINDOW  *win,
     54486+               int     delay)
     54487+               { /* void */ }
     54488+
     54489+#undef keypad
     54490+int    keypad(
     54491+               WINDOW  *win,
     54492+               NCURSES_BOOL flag)
     54493+               { return(*(int *)0); }
     54494+
     54495+#undef meta
     54496+int    meta(
     54497+               WINDOW  *win,
     54498+               NCURSES_BOOL flag)
     54499+               { return(*(int *)0); }
     54500+
     54501+#undef curs_set
     54502+int    curs_set(
     54503+               int     vis)
     54504+               { return(*(int *)0); }
     54505+
     54506+#undef typeahead
     54507+int    typeahead(
     54508+               int     fd)
     54509+               { return(*(int *)0); }
     54510+
     54511+#undef has_key
     54512+int    has_key(
     54513+               int     keycode)
     54514+               { return(*(int *)0); }
     54515+
     54516+#undef _nc_keypad
     54517+int    _nc_keypad(
     54518+               SCREEN  *sp,
     54519+               NCURSES_BOOL flag)
     54520+               { return(*(int *)0); }
     54521+
     54522+/* ./tinfo/lib_raw.c */
     54523+
     54524+#undef raw
     54525+int    raw(void)
     54526+               { return(*(int *)0); }
     54527+
     54528+#undef cbreak
     54529+int    cbreak(void)
     54530+               { return(*(int *)0); }
     54531+
     54532+#undef qiflush
     54533+void   qiflush(void)
     54534+               { /* void */ }
     54535+
     54536+#undef noraw
     54537+int    noraw(void)
     54538+               { return(*(int *)0); }
     54539+
     54540+#undef nocbreak
     54541+int    nocbreak(void)
     54542+               { return(*(int *)0); }
     54543+
     54544+#undef noqiflush
     54545+void   noqiflush(void)
     54546+               { /* void */ }
     54547+
     54548+#undef intrflush
     54549+int    intrflush(
     54550+               WINDOW  *win,
     54551+               NCURSES_BOOL flag)
     54552+               { return(*(int *)0); }
     54553+
     54554+/* ./tinfo/lib_setup.c */
     54555+
     54556+#include <locale.h>
     54557+#include <sys/ioctl.h>
     54558+#include <langinfo.h>
     54559+
     54560+#undef _nc_ttytype
     54561+char   *_nc_ttytype(void)
     54562+               { return(*(char **)0); }
     54563+
     54564+#undef _nc_ptr_Lines
     54565+int    *_nc_ptr_Lines(void)
     54566+               { return(*(int **)0); }
     54567+
     54568+#undef _nc_LINES
     54569+int    _nc_LINES(void)
     54570+               { return(*(int *)0); }
     54571+
     54572+#undef _nc_ptr_Cols
     54573+int    *_nc_ptr_Cols(void)
     54574+               { return(*(int **)0); }
     54575+
     54576+#undef _nc_COLS
     54577+int    _nc_COLS(void)
     54578+               { return(*(int *)0); }
     54579+
     54580+#undef _nc_TABSIZE
     54581+int    _nc_TABSIZE(void)
     54582+               { return(*(int *)0); }
     54583+
     54584+#undef set_tabsize
     54585+int    set_tabsize(
     54586+               int     value)
     54587+               { return(*(int *)0); }
     54588+
     54589+#undef _nc_handle_sigwinch
     54590+int    _nc_handle_sigwinch(
     54591+               SCREEN  *sp)
     54592+               { return(*(int *)0); }
     54593+
     54594+#undef use_env
     54595+void   use_env(
     54596+               NCURSES_BOOL f)
     54597+               { /* void */ }
     54598+
     54599+#undef _nc_get_screensize
     54600+void   _nc_get_screensize(
     54601+               SCREEN  *sp,
     54602+               int     *linep,
     54603+               int     *colp)
     54604+               { /* void */ }
     54605+
     54606+#undef _nc_update_screensize
     54607+void   _nc_update_screensize(
     54608+               SCREEN  *sp)
     54609+               { /* void */ }
     54610+
     54611+#undef _nc_get_locale
     54612+char   *_nc_get_locale(void)
     54613+               { return(*(char **)0); }
     54614+
     54615+#undef _nc_unicode_locale
     54616+int    _nc_unicode_locale(void)
     54617+               { return(*(int *)0); }
     54618+
     54619+#undef _nc_locale_breaks_acs
     54620+int    _nc_locale_breaks_acs(void)
     54621+               { return(*(int *)0); }
     54622+
     54623+#undef _nc_setupterm
     54624+int    _nc_setupterm(
     54625+               const char *tname,
     54626+               int     Filedes,
     54627+               int     *errret,
     54628+               NCURSES_BOOL reuse)
     54629+               { return(*(int *)0); }
     54630+
     54631+#undef setupterm
     54632+int    setupterm(
     54633+               const char *tname,
     54634+               int     Filedes,
     54635+               int     *errret)
     54636+               { return(*(int *)0); }
     54637+
     54638+/* ./tinfo/lib_termcap.c */
     54639+
     54640+#undef UP
     54641+char   *UP;
     54642+#undef BC
     54643+char   *BC;
     54644+
     54645+#undef tgetent
     54646+int    tgetent(
     54647+               char    *bufp,
     54648+               const char *name)
     54649+               { return(*(int *)0); }
     54650+
     54651+#if 0
     54652+
     54653+#include <capdefaults.c>
     54654+
     54655+#endif
     54656+
     54657+#undef tgetflag
     54658+int    tgetflag(
     54659+               const char *id)
     54660+               { return(*(int *)0); }
     54661+
     54662+#undef tgetnum
     54663+int    tgetnum(
     54664+               const char *id)
     54665+               { return(*(int *)0); }
     54666+
     54667+#undef tgetstr
     54668+char   *tgetstr(
     54669+               const char *id,
     54670+               char    **area)
     54671+               { return(*(char **)0); }
     54672+
     54673+#undef _nc_tgetent_leaks
     54674+void   _nc_tgetent_leaks(void)
     54675+               { /* void */ }
     54676+
     54677+/* ./tinfo/lib_termname.c */
     54678+
     54679+#undef termname
     54680+char   *termname(void)
     54681+               { return(*(char **)0); }
     54682+
     54683+/* ./tinfo/lib_tgoto.c */
     54684+
     54685+#undef tgoto
     54686+char   *tgoto(
     54687+               const char *string,
     54688+               int     x,
     54689+               int     y)
     54690+               { return(*(char **)0); }
     54691+
     54692+/* ./tinfo/lib_ti.c */
     54693+
     54694+#undef tigetflag
     54695+int    tigetflag(
     54696+               const char *str)
     54697+               { return(*(int *)0); }
     54698+
     54699+#undef tigetnum
     54700+int    tigetnum(
     54701+               const char *str)
     54702+               { return(*(int *)0); }
     54703+
     54704+#undef tigetstr
     54705+char   *tigetstr(
     54706+               const char *str)
     54707+               { return(*(char **)0); }
     54708+
     54709+/* ./tinfo/lib_tparm.c */
     54710+
     54711+#undef _nc_tparm_err
     54712+int    _nc_tparm_err;
     54713+
     54714+#undef _nc_free_tparm
     54715+void   _nc_free_tparm(void)
     54716+               { /* void */ }
     54717+
     54718+#undef _nc_tparm_analyze
     54719+int    _nc_tparm_analyze(
     54720+               const char *string,
     54721+               char    *p_is_s[9],
     54722+               int     *popcount)
     54723+               { return(*(int *)0); }
     54724+
     54725+#undef tparm
     54726+char   *tparm(
     54727+               const char *string,
     54728+               ...)
     54729+               { return(*(char **)0); }
     54730+
     54731+/* ./tinfo/lib_tputs.c */
     54732+
     54733+#undef PC
     54734+char   PC;
     54735+#undef ospeed
     54736+NCURSES_OSPEED ospeed;
     54737+#undef _nc_nulls_sent
     54738+int    _nc_nulls_sent;
     54739+
     54740+#undef delay_output
     54741+int    delay_output(
     54742+               int     ms)
     54743+               { return(*(int *)0); }
     54744+
     54745+#undef _nc_flush
     54746+void   _nc_flush(void)
     54747+               { /* void */ }
     54748+
     54749+#undef _nc_outch
     54750+int    _nc_outch(
     54751+               int     ch)
     54752+               { return(*(int *)0); }
     54753+
     54754+#undef putp
     54755+int    putp(
     54756+               const char *string)
     54757+               { return(*(int *)0); }
     54758+
     54759+#undef tputs
     54760+int    tputs(
     54761+               const char *string,
     54762+               int     affcnt,
     54763+               int     (*outc)(
     54764+               int     p1))
     54765+               { return(*(int *)0); }
     54766+
     54767+/* ./trace/lib_trace.c */
     54768+
     54769+#undef _nc_tracing
     54770+unsigned _nc_tracing;
     54771+
     54772+#undef _nc__nc_tputs_trace
     54773+const char *_nc__nc_tputs_trace(void)
     54774+               { return(*(const char **)0); }
     54775+
     54776+#undef _nc__nc_outchars
     54777+long   _nc__nc_outchars(void)
     54778+               { return(*(long *)0); }
     54779+
     54780+#undef _nc_set_tputs_trace
     54781+void   _nc_set_tputs_trace(
     54782+               const char *s)
     54783+               { /* void */ }
     54784+
     54785+#undef _nc_count_outchars
     54786+void   _nc_count_outchars(
     54787+               long    increment)
     54788+               { /* void */ }
     54789+
     54790+#undef trace
     54791+void   trace(
     54792+               const unsigned int tracelevel)
     54793+               { /* void */ }
     54794+
     54795+#undef _tracef
     54796+void   _tracef(
     54797+               const char *fmt,
     54798+               ...)
     54799+               { /* void */ }
     54800+
     54801+#undef _nc_retrace_bool
     54802+NCURSES_BOOL _nc_retrace_bool(
     54803+               NCURSES_BOOL code)
     54804+               { return(*(NCURSES_BOOL *)0); }
     54805+
     54806+#undef _nc_retrace_int
     54807+int    _nc_retrace_int(
     54808+               int     code)
     54809+               { return(*(int *)0); }
     54810+
     54811+#undef _nc_retrace_unsigned
     54812+unsigned _nc_retrace_unsigned(
     54813+               unsigned code)
     54814+               { return(*(unsigned *)0); }
     54815+
     54816+#undef _nc_retrace_ptr
     54817+char   *_nc_retrace_ptr(
     54818+               char    *code)
     54819+               { return(*(char **)0); }
     54820+
     54821+#undef _nc_retrace_cptr
     54822+const char *_nc_retrace_cptr(
     54823+               const char *code)
     54824+               { return(*(const char **)0); }
     54825+
     54826+#undef _nc_retrace_cvoid_ptr
     54827+const void *_nc_retrace_cvoid_ptr(
     54828+               const void *code)
     54829+               { return(*(const void **)0); }
     54830+
     54831+#undef _nc_retrace_void_ptr
     54832+void   *_nc_retrace_void_ptr(
     54833+               void    *code)
     54834+               { return(*(void **)0); }
     54835+
     54836+#undef _nc_retrace_sp
     54837+SCREEN *_nc_retrace_sp(
     54838+               SCREEN  *code)
     54839+               { return(*(SCREEN **)0); }
     54840+
     54841+#undef _nc_retrace_win
     54842+WINDOW *_nc_retrace_win(
     54843+               WINDOW  *code)
     54844+               { return(*(WINDOW **)0); }
     54845+
     54846+#undef _nc_use_tracef
     54847+int    _nc_use_tracef(
     54848+               unsigned mask)
     54849+               { return(*(int *)0); }
     54850+
     54851+#undef _nc_locked_tracef
     54852+void   _nc_locked_tracef(
     54853+               const char *fmt,
     54854+               ...)
     54855+               { /* void */ }
     54856+
     54857+/* ./trace/lib_traceatr.c */
     54858+
     54859+#undef _traceattr2
     54860+char   *_traceattr2(
     54861+               int     bufnum,
     54862+               chtype  newmode)
     54863+               { return(*(char **)0); }
     54864+
     54865+#undef _traceattr
     54866+char   *_traceattr(
     54867+               attr_t  newmode)
     54868+               { return(*(char **)0); }
     54869+
     54870+#undef _nc_retrace_attr_t
     54871+attr_t _nc_retrace_attr_t(
     54872+               attr_t  code)
     54873+               { return(*(attr_t *)0); }
     54874+
     54875+#undef _nc_altcharset_name
     54876+const char *_nc_altcharset_name(
     54877+               attr_t  attr,
     54878+               chtype  ch)
     54879+               { return(*(const char **)0); }
     54880+
     54881+#undef _tracechtype2
     54882+char   *_tracechtype2(
     54883+               int     bufnum,
     54884+               chtype  ch)
     54885+               { return(*(char **)0); }
     54886+
     54887+#undef _tracechtype
     54888+char   *_tracechtype(
     54889+               chtype  ch)
     54890+               { return(*(char **)0); }
     54891+
     54892+#undef _nc_retrace_chtype
     54893+chtype _nc_retrace_chtype(
     54894+               chtype  code)
     54895+               { return(*(chtype *)0); }
     54896+
     54897+/* ./trace/lib_tracebits.c */
     54898+
     54899+typedef struct {
     54900+    unsigned int val;
     54901+    const char *name;
     54902+} BITNAMES;
     54903+
     54904+#undef _nc_trace_ttymode
     54905+char   *_nc_trace_ttymode(
     54906+               struct termios *tty)
     54907+               { return(*(char **)0); }
     54908+
     54909+#undef _nc_tracebits
     54910+char   *_nc_tracebits(void)
     54911+               { return(*(char **)0); }
     54912+
     54913+/* ./trace/lib_tracechr.c */
     54914+
     54915+#undef _nc_tracechar
     54916+char   *_nc_tracechar(
     54917+               SCREEN  *sp,
     54918+               int     ch)
     54919+               { return(*(char **)0); }
     54920+
     54921+#undef _tracechar
     54922+char   *_tracechar(
     54923+               int     ch)
     54924+               { return(*(char **)0); }
     54925+
     54926+/* ./tinfo/lib_ttyflags.c */
     54927+
     54928+#undef _nc_get_tty_mode
     54929+int    _nc_get_tty_mode(
     54930+               struct termios *buf)
     54931+               { return(*(int *)0); }
     54932+
     54933+#undef _nc_set_tty_mode
     54934+int    _nc_set_tty_mode(
     54935+               struct termios *buf)
     54936+               { return(*(int *)0); }
     54937+
     54938+#undef def_shell_mode
     54939+int    def_shell_mode(void)
     54940+               { return(*(int *)0); }
     54941+
     54942+#undef def_prog_mode
     54943+int    def_prog_mode(void)
     54944+               { return(*(int *)0); }
     54945+
     54946+#undef reset_prog_mode
     54947+int    reset_prog_mode(void)
     54948+               { return(*(int *)0); }
     54949+
     54950+#undef reset_shell_mode
     54951+int    reset_shell_mode(void)
     54952+               { return(*(int *)0); }
     54953+
     54954+#undef savetty
     54955+int    savetty(void)
     54956+               { return(*(int *)0); }
     54957+
     54958+#undef resetty
     54959+int    resetty(void)
     54960+               { return(*(int *)0); }
     54961+
     54962+/* ./tty/lib_twait.c */
     54963+
     54964+#undef _nc_eventlist_timeout
     54965+int    _nc_eventlist_timeout(
     54966+               _nc_eventlist *evl)
     54967+               { return(*(int *)0); }
     54968+
     54969+#undef _nc_timed_wait
     54970+int    _nc_timed_wait(
     54971+               SCREEN  *sp,
     54972+               int     mode,
     54973+               int     milliseconds,
     54974+               int     *timeleft,
     54975+               _nc_eventlist *evl)
     54976+               { return(*(int *)0); }
     54977+
     54978+/* ./tinfo/name_match.c */
     54979+
     54980+#undef _nc_first_name
     54981+char   *_nc_first_name(
     54982+               const char *const sp)
     54983+               { return(*(char **)0); }
     54984+
     54985+#undef _nc_name_match
     54986+int    _nc_name_match(
     54987+               const char *const namelst,
     54988+               const char *const name,
     54989+               const char *const delim)
     54990+               { return(*(int *)0); }
     54991+
     54992+/* ./names.c */
     54993+
     54994+#undef _nc_boolnames
     54995+const char *const *_nc_boolnames(void)
     54996+               { return(*(const char **)0); }
     54997+
     54998+#undef _nc_boolfnames
     54999+const char *const *_nc_boolfnames(void)
     55000+               { return(*(const char **)0); }
     55001+
     55002+#undef _nc_numnames
     55003+const char *const *_nc_numnames(void)
     55004+               { return(*(const char **)0); }
     55005+
     55006+#undef _nc_numfnames
     55007+const char *const *_nc_numfnames(void)
     55008+               { return(*(const char **)0); }
     55009+
     55010+#undef _nc_strnames
     55011+const char *const *_nc_strnames(void)
     55012+               { return(*(const char **)0); }
     55013+
     55014+#undef _nc_strfnames
     55015+const char *const *_nc_strfnames(void)
     55016+               { return(*(const char **)0); }
     55017+
     55018+#undef _nc_names_leaks
     55019+void   _nc_names_leaks(void)
     55020+               { /* void */ }
     55021+
     55022+/* ./tinfo/read_entry.c */
     55023+
     55024+#include <hashed_db.h>
     55025+
     55026+#undef _nc_read_termtype
     55027+int    _nc_read_termtype(
     55028+               TERMTYPE *ptr,
     55029+               char    *buffer,
     55030+               int     limit)
     55031+               { return(*(int *)0); }
     55032+
     55033+#undef _nc_read_file_entry
     55034+int    _nc_read_file_entry(
     55035+               const char *const filename,
     55036+               TERMTYPE *ptr)
     55037+               { return(*(int *)0); }
     55038+
     55039+#undef _nc_read_entry
     55040+int    _nc_read_entry(
     55041+               const char *const name,
     55042+               char    *const filename,
     55043+               TERMTYPE *const tp)
     55044+               { return(*(int *)0); }
     55045+
     55046+/* ./tinfo/read_termcap.c */
     55047+
     55048+#include <sys/types.h>
     55049+
     55050+#undef _nc_read_termcap
     55051+void   _nc_read_termcap(void)
     55052+               { /* void */ }
     55053+
     55054+/* ./tinfo/setbuf.c */
     55055+
     55056+#undef _nc_set_buffer
     55057+void   _nc_set_buffer(
     55058+               FILE    *ofp,
     55059+               NCURSES_BOOL buffered)
     55060+               { /* void */ }
     55061+
     55062+/* ./tinfo/strings.c */
     55063+
     55064+#undef _nc_str_init
     55065+string_desc *_nc_str_init(
     55066+               string_desc *dst,
     55067+               char    *src,
     55068+               size_t  len)
     55069+               { return(*(string_desc **)0); }
     55070+
     55071+#undef _nc_str_null
     55072+string_desc *_nc_str_null(
     55073+               string_desc *dst,
     55074+               size_t  len)
     55075+               { return(*(string_desc **)0); }
     55076+
     55077+#undef _nc_str_copy
     55078+string_desc *_nc_str_copy(
     55079+               string_desc *dst,
     55080+               string_desc *src)
     55081+               { return(*(string_desc **)0); }
     55082+
     55083+#undef _nc_safe_strcat
     55084+NCURSES_BOOL _nc_safe_strcat(
     55085+               string_desc *dst,
     55086+               const char *src)
     55087+               { return(*(NCURSES_BOOL *)0); }
     55088+
     55089+#undef _nc_safe_strcpy
     55090+NCURSES_BOOL _nc_safe_strcpy(
     55091+               string_desc *dst,
     55092+               const char *src)
     55093+               { return(*(NCURSES_BOOL *)0); }
     55094+
     55095+/* ./trace/trace_buf.c */
     55096+
     55097+#undef _nc_trace_buf
     55098+char   *_nc_trace_buf(
     55099+               int     bufnum,
     55100+               size_t  want)
     55101+               { return(*(char **)0); }
     55102+
     55103+#undef _nc_trace_bufcat
     55104+char   *_nc_trace_bufcat(
     55105+               int     bufnum,
     55106+               const char *value)
     55107+               { return(*(char **)0); }
     55108+
     55109+/* ./trace/trace_tries.c */
     55110+
     55111+#undef _nc_trace_tries
     55112+void   _nc_trace_tries(
     55113+               TRIES   *tree)
     55114+               { /* void */ }
     55115+
     55116+/* ./base/tries.c */
     55117+
     55118+#undef _nc_expand_try
     55119+char   *_nc_expand_try(
     55120+               TRIES   *tree,
     55121+               unsigned code,
     55122+               int     *count,
     55123+               size_t  len)
     55124+               { return(*(char **)0); }
     55125+
     55126+#undef _nc_remove_key
     55127+int    _nc_remove_key(
     55128+               TRIES   **tree,
     55129+               unsigned code)
     55130+               { return(*(int *)0); }
     55131+
     55132+#undef _nc_remove_string
     55133+int    _nc_remove_string(
     55134+               TRIES   **tree,
     55135+               const char *string)
     55136+               { return(*(int *)0); }
     55137+
     55138+/* ./tinfo/trim_sgr0.c */
     55139+
     55140+#undef _nc_trim_sgr0
     55141+char   *_nc_trim_sgr0(
     55142+               TERMTYPE *tp)
     55143+               { return(*(char **)0); }
     55144+
     55145+/* ./unctrl.c */
     55146+
     55147+#undef _nc_unctrl
     55148+const char *_nc_unctrl(
     55149+               SCREEN  *sp,
     55150+               chtype  ch)
     55151+               { return(*(const char **)0); }
     55152+
     55153+#undef unctrl
     55154+const char *unctrl(
     55155+               chtype  ch)
     55156+               { return(*(const char **)0); }
     55157+
     55158+/* ./trace/visbuf.c */
     55159+
     55160+#undef _nc_visbuf2
     55161+const char *_nc_visbuf2(
     55162+               int     bufnum,
     55163+               const char *buf)
     55164+               { return(*(const char **)0); }
     55165+
     55166+#undef _nc_visbuf
     55167+const char *_nc_visbuf(
     55168+               const char *buf)
     55169+               { return(*(const char **)0); }
     55170+
     55171+#undef _nc_visbufn
     55172+const char *_nc_visbufn(
     55173+               const char *buf,
     55174+               int     len)
     55175+               { return(*(const char **)0); }
     55176+
     55177+#undef _nc_viscbuf2
     55178+const char *_nc_viscbuf2(
     55179+               int     bufnum,
     55180+               const chtype *buf,
     55181+               int     len)
     55182+               { return(*(const char **)0); }
     55183+
     55184+#undef _nc_viscbuf
     55185+const char *_nc_viscbuf(
     55186+               const chtype *buf,
     55187+               int     len)
     55188+               { return(*(const char **)0); }
     55189+
     55190+/* ./tinfo/alloc_entry.c */
     55191+
     55192+#undef _nc_init_entry
     55193+void   _nc_init_entry(
     55194+               TERMTYPE *const tp)
     55195+               { /* void */ }
     55196+
     55197+#undef _nc_copy_entry
     55198+ENTRY  *_nc_copy_entry(
     55199+               ENTRY   *oldp)
     55200+               { return(*(ENTRY **)0); }
     55201+
     55202+#undef _nc_save_str
     55203+char   *_nc_save_str(
     55204+               const char *const string)
     55205+               { return(*(char **)0); }
     55206+
     55207+#undef _nc_wrap_entry
     55208+void   _nc_wrap_entry(
     55209+               ENTRY   *const ep,
     55210+               NCURSES_BOOL copy_strings)
     55211+               { /* void */ }
     55212+
     55213+#undef _nc_merge_entry
     55214+void   _nc_merge_entry(
     55215+               TERMTYPE *const to,
     55216+               TERMTYPE *const from)
     55217+               { /* void */ }
     55218+
     55219+#undef _nc_alloc_entry_leaks
     55220+void   _nc_alloc_entry_leaks(void)
     55221+               { /* void */ }
     55222+
     55223+/* ./tinfo/captoinfo.c */
     55224+
     55225+#undef _nc_captoinfo
     55226+char   *_nc_captoinfo(
     55227+               const char *cap,
     55228+               const char *s,
     55229+               int const parameterized)
     55230+               { return(*(char **)0); }
     55231+
     55232+#undef _nc_infotocap
     55233+char   *_nc_infotocap(
     55234+               const char *cap,
     55235+               const char *str,
     55236+               int const parameterized)
     55237+               { return(*(char **)0); }
     55238+
     55239+#undef _nc_captoinfo_leaks
     55240+void   _nc_captoinfo_leaks(void)
     55241+               { /* void */ }
     55242+
     55243+/* ./comp_captab.c */
     55244+
     55245+#include <hashsize.h>
     55246+
     55247+#undef _nc_get_table
     55248+const struct name_table_entry *_nc_get_table(
     55249+               NCURSES_BOOL termcap)
     55250+               { return(*(const struct name_table_entry **)0); }
     55251+
     55252+#undef _nc_get_hash_table
     55253+const short *_nc_get_hash_table(
     55254+               NCURSES_BOOL termcap)
     55255+               { return(*(const short **)0); }
     55256+
     55257+#undef _nc_get_alias_table
     55258+const struct alias *_nc_get_alias_table(
     55259+               NCURSES_BOOL termcap)
     55260+               { return(*(const struct alias **)0); }
     55261+
     55262+#undef _nc_comp_captab_leaks
     55263+void   _nc_comp_captab_leaks(void)
     55264+               { /* void */ }
     55265+
     55266+/* ./tinfo/comp_expand.c */
     55267+
     55268+#undef _nc_tic_expand
     55269+char   *_nc_tic_expand(
     55270+               const char *srcp,
     55271+               NCURSES_BOOL tic_format,
     55272+               int     numbers)
     55273+               { return(*(char **)0); }
     55274+
     55275+/* ./tinfo/comp_hash.c */
     55276+
     55277+#undef _nc_find_entry
     55278+struct name_table_entry const *_nc_find_entry(
     55279+               const char *string,
     55280+               const short *hash_table)
     55281+               { return(*(struct name_table_entry const **)0); }
     55282+
     55283+#undef _nc_find_type_entry
     55284+struct name_table_entry const *_nc_find_type_entry(
     55285+               const char *string,
     55286+               int     type,
     55287+               const struct name_table_entry *table)
     55288+               { return(*(struct name_table_entry const **)0); }
     55289+
     55290+/* ./tinfo/comp_parse.c */
     55291+
     55292+#undef _nc_check_termtype2
     55293+void   (*_nc_check_termtype2)(
     55294+               TERMTYPE *p1,
     55295+               NCURSES_BOOL p2);
     55296+#undef _nc_check_termtype
     55297+void   (*_nc_check_termtype)(
     55298+               TERMTYPE *p1);
     55299+
     55300+#undef _nc_entry_match
     55301+NCURSES_BOOL _nc_entry_match(
     55302+               char    *n1,
     55303+               char    *n2)
     55304+               { return(*(NCURSES_BOOL *)0); }
     55305+
     55306+#undef _nc_read_entry_source
     55307+void   _nc_read_entry_source(
     55308+               FILE    *fp,
     55309+               char    *buf,
     55310+               int     literal,
     55311+               NCURSES_BOOL silent,
     55312+               NCURSES_BOOL (*hook)(
     55313+               ENTRY   *p1))
     55314+               { /* void */ }
     55315+
     55316+#undef _nc_resolve_uses2
     55317+int    _nc_resolve_uses2(
     55318+               NCURSES_BOOL fullresolve,
     55319+               NCURSES_BOOL literal)
     55320+               { return(*(int *)0); }
     55321+
     55322+#undef _nc_resolve_uses
     55323+int    _nc_resolve_uses(
     55324+               NCURSES_BOOL fullresolve)
     55325+               { return(*(int *)0); }
     55326+
     55327+#undef _nc_leaks_tic
     55328+void   _nc_leaks_tic(void)
     55329+               { /* void */ }
     55330+
     55331+#undef _nc_free_tic
     55332+void   _nc_free_tic(
     55333+               int     code)
     55334+               { /* void */ }
     55335+
     55336+/* ./tinfo/comp_scan.c */
     55337+
     55338+#undef _nc_syntax
     55339+int    _nc_syntax;
     55340+#undef _nc_curr_file_pos
     55341+long   _nc_curr_file_pos;
     55342+#undef _nc_comment_start
     55343+long   _nc_comment_start;
     55344+#undef _nc_comment_end
     55345+long   _nc_comment_end;
     55346+#undef _nc_start_line
     55347+long   _nc_start_line;
     55348+#undef _nc_curr_token
     55349+struct token _nc_curr_token;
     55350+#undef _nc_disable_period
     55351+NCURSES_BOOL _nc_disable_period;
     55352+
     55353+#undef _nc_reset_input
     55354+void   _nc_reset_input(
     55355+               FILE    *fp,
     55356+               char    *buf)
     55357+               { /* void */ }
     55358+
     55359+#undef _nc_get_token
     55360+int    _nc_get_token(
     55361+               NCURSES_BOOL silent)
     55362+               { return(*(int *)0); }
     55363+
     55364+#undef _nc_trans_string
     55365+int    _nc_trans_string(
     55366+               char    *ptr,
     55367+               char    *last)
     55368+               { return(*(int *)0); }
     55369+
     55370+#undef _nc_push_token
     55371+void   _nc_push_token(
     55372+               int     tokclass)
     55373+               { /* void */ }
     55374+
     55375+#undef _nc_panic_mode
     55376+void   _nc_panic_mode(
     55377+               char    ch)
     55378+               { /* void */ }
     55379+
     55380+#undef _nc_comp_scan_leaks
     55381+void   _nc_comp_scan_leaks(void)
     55382+               { /* void */ }
     55383+
     55384+/* ./tinfo/parse_entry.c */
     55385+
     55386+#undef _nc_parse_entry
     55387+int    _nc_parse_entry(
     55388+               struct entry *entryp,
     55389+               int     literal,
     55390+               NCURSES_BOOL silent)
     55391+               { return(*(int *)0); }
     55392+
     55393+#undef _nc_capcmp
     55394+int    _nc_capcmp(
     55395+               const char *s,
     55396+               const char *t)
     55397+               { return(*(int *)0); }
     55398+
     55399+typedef struct {
     55400+    const char *from;
     55401+    const char *to;
     55402+} assoc;
     55403+
     55404+/* ./tinfo/write_entry.c */
     55405+
     55406+#undef _nc_set_writedir
     55407+void   _nc_set_writedir(
     55408+               char    *dir)
     55409+               { /* void */ }
     55410+
     55411+#undef _nc_write_entry
     55412+void   _nc_write_entry(
     55413+               TERMTYPE *const tp)
     55414+               { /* void */ }
     55415+
     55416+#undef _nc_tic_written
     55417+int    _nc_tic_written(void)
     55418+               { return(*(int *)0); }
     55419+
     55420+/* ./base/define_key.c */
     55421+
     55422+#undef define_key
     55423+int    define_key(
     55424+               const char *str,
     55425+               int     keycode)
     55426+               { return(*(int *)0); }
     55427+
     55428+/* ./tinfo/hashed_db.c */
     55429+
     55430+#undef _nc_hashed_db
     55431+void   _nc_hashed_db(void)
     55432+               { /* void */ }
     55433+
     55434+/* ./base/key_defined.c */
     55435+
     55436+#undef key_defined
     55437+int    key_defined(
     55438+               const char *str)
     55439+               { return(*(int *)0); }
     55440+
     55441+/* ./base/keybound.c */
     55442+
     55443+#undef keybound
     55444+char   *keybound(
     55445+               int     code,
     55446+               int     count)
     55447+               { return(*(char **)0); }
     55448+
     55449+/* ./base/keyok.c */
     55450+
     55451+#undef keyok
     55452+int    keyok(
     55453+               int     c,
     55454+               NCURSES_BOOL flag)
     55455+               { return(*(int *)0); }
     55456+
     55457+/* ./base/version.c */
     55458+
     55459+#undef curses_version
     55460+const char *curses_version(void)
     55461+               { return(*(const char **)0); }
    4651655462diff -Naur ncurses-5.6.orig/ncurses/llib-lncursesw ncurses-5.6/ncurses/llib-lncursesw
    4651755463--- ncurses-5.6.orig/ncurses/llib-lncursesw     2006-12-17 12:37:36.000000000 -0500
    46518 +++ ncurses-5.6/ncurses/llib-lncursesw  2007-12-21 00:02:36.000000000 -0500
     55464+++ ncurses-5.6/ncurses/llib-lncursesw  2008-06-18 06:49:44.000000000 -0400
    4651955465@@ -1066,6 +1066,11 @@
    4652055466                WINDOW  *z)
     
    4725956205diff -Naur ncurses-5.6.orig/ncurses/modules ncurses-5.6/ncurses/modules
    4726056206--- ncurses-5.6.orig/ncurses/modules    2006-08-12 10:19:44.000000000 -0400
    47261 +++ ncurses-5.6/ncurses/modules 2007-12-21 00:02:36.000000000 -0500
     56207+++ ncurses-5.6/ncurses/modules 2008-06-18 06:49:44.000000000 -0400
    4726256208@@ -1,6 +1,6 @@
    4726356209-# $Id: modules,v 1.107 2006/08/12 14:19:44 tom Exp $
     
    4734856294diff -Naur ncurses-5.6.orig/ncurses/tinfo/MKcaptab.awk ncurses-5.6/ncurses/tinfo/MKcaptab.awk
    4734956295--- ncurses-5.6.orig/ncurses/tinfo/MKcaptab.awk 2006-04-22 17:46:17.000000000 -0400
    47350 +++ ncurses-5.6/ncurses/tinfo/MKcaptab.awk      2007-12-21 00:02:36.000000000 -0500
     56296+++ ncurses-5.6/ncurses/tinfo/MKcaptab.awk      2008-06-18 06:49:44.000000000 -0400
    4735156297@@ -1,6 +1,5 @@
    4735256298-#!/bin/sh
     
    4749756443diff -Naur ncurses-5.6.orig/ncurses/tinfo/MKcaptab.sh ncurses-5.6/ncurses/tinfo/MKcaptab.sh
    4749856444--- ncurses-5.6.orig/ncurses/tinfo/MKcaptab.sh  1969-12-31 19:00:00.000000000 -0500
    47499 +++ ncurses-5.6/ncurses/tinfo/MKcaptab.sh       2007-12-21 00:02:36.000000000 -0500
     56445+++ ncurses-5.6/ncurses/tinfo/MKcaptab.sh       2008-06-18 06:49:44.000000000 -0400
    4750056446@@ -0,0 +1,149 @@
    4750156447+#!/bin/sh
     
    4765056596diff -Naur ncurses-5.6.orig/ncurses/tinfo/MKcodes.awk ncurses-5.6/ncurses/tinfo/MKcodes.awk
    4765156597--- ncurses-5.6.orig/ncurses/tinfo/MKcodes.awk  1969-12-31 19:00:00.000000000 -0500
    47652 +++ ncurses-5.6/ncurses/tinfo/MKcodes.awk       2007-12-21 00:02:36.000000000 -0500
     56598+++ ncurses-5.6/ncurses/tinfo/MKcodes.awk       2008-06-18 06:49:44.000000000 -0400
    4765356599@@ -0,0 +1,161 @@
    4765456600+##############################################################################
     
    4781556761diff -Naur ncurses-5.6.orig/ncurses/tinfo/MKnames.awk ncurses-5.6/ncurses/tinfo/MKnames.awk
    4781656762--- ncurses-5.6.orig/ncurses/tinfo/MKnames.awk  2006-04-22 17:46:17.000000000 -0400
    47817 +++ ncurses-5.6/ncurses/tinfo/MKnames.awk       2007-12-21 00:02:36.000000000 -0500
     56763+++ ncurses-5.6/ncurses/tinfo/MKnames.awk       2008-06-18 06:49:44.000000000 -0400
    4781856764@@ -1,5 +1,5 @@
    4781956765 ##############################################################################
     
    4806857014diff -Naur ncurses-5.6.orig/ncurses/tinfo/access.c ncurses-5.6/ncurses/tinfo/access.c
    4806957015--- ncurses-5.6.orig/ncurses/tinfo/access.c     2006-08-05 13:18:14.000000000 -0400
    48070 +++ ncurses-5.6/ncurses/tinfo/access.c  2007-12-21 00:02:36.000000000 -0500
     57016+++ ncurses-5.6/ncurses/tinfo/access.c  2008-06-18 06:49:44.000000000 -0400
    4807157017@@ -1,5 +1,5 @@
    4807257018 /****************************************************************************
     
    4811057056diff -Naur ncurses-5.6.orig/ncurses/tinfo/add_tries.c ncurses-5.6/ncurses/tinfo/add_tries.c
    4811157057--- ncurses-5.6.orig/ncurses/tinfo/add_tries.c  2005-11-19 20:32:48.000000000 -0500
    48112 +++ ncurses-5.6/ncurses/tinfo/add_tries.c       2007-12-21 00:02:36.000000000 -0500
     57058+++ ncurses-5.6/ncurses/tinfo/add_tries.c       2008-06-18 06:49:44.000000000 -0400
    4811357059@@ -1,5 +1,5 @@
    4811457060 /****************************************************************************
     
    4822057166diff -Naur ncurses-5.6.orig/ncurses/tinfo/comp_error.c ncurses-5.6/ncurses/tinfo/comp_error.c
    4822157167--- ncurses-5.6.orig/ncurses/tinfo/comp_error.c 2005-11-26 10:28:47.000000000 -0500
    48222 +++ ncurses-5.6/ncurses/tinfo/comp_error.c      2007-12-21 00:02:36.000000000 -0500
     57168+++ ncurses-5.6/ncurses/tinfo/comp_error.c      2008-06-18 06:49:44.000000000 -0400
    4822357169@@ -1,5 +1,5 @@
    4822457170 /****************************************************************************
     
    4830957255diff -Naur ncurses-5.6.orig/ncurses/tinfo/comp_hash.c ncurses-5.6/ncurses/tinfo/comp_hash.c
    4831057256--- ncurses-5.6.orig/ncurses/tinfo/comp_hash.c  2005-08-20 15:58:18.000000000 -0400
    48311 +++ ncurses-5.6/ncurses/tinfo/comp_hash.c       2007-12-21 00:02:36.000000000 -0500
     57257+++ ncurses-5.6/ncurses/tinfo/comp_hash.c       2008-06-18 06:49:44.000000000 -0400
    4831257258@@ -1,5 +1,5 @@
    4831357259 /****************************************************************************
     
    4850057446diff -Naur ncurses-5.6.orig/ncurses/tinfo/comp_parse.c ncurses-5.6/ncurses/tinfo/comp_parse.c
    4850157447--- ncurses-5.6.orig/ncurses/tinfo/comp_parse.c 2006-07-08 14:55:14.000000000 -0400
    48502 +++ ncurses-5.6/ncurses/tinfo/comp_parse.c      2007-12-21 00:02:36.000000000 -0500
     57448+++ ncurses-5.6/ncurses/tinfo/comp_parse.c      2008-06-18 06:49:44.000000000 -0400
    4850357449@@ -1,5 +1,5 @@
    4850457450 /****************************************************************************
     
    4862957575diff -Naur ncurses-5.6.orig/ncurses/tinfo/db_iterator.c ncurses-5.6/ncurses/tinfo/db_iterator.c
    4863057576--- ncurses-5.6.orig/ncurses/tinfo/db_iterator.c        2006-12-16 14:06:42.000000000 -0500
    48631 +++ ncurses-5.6/ncurses/tinfo/db_iterator.c     2007-12-21 00:02:36.000000000 -0500
     57577+++ ncurses-5.6/ncurses/tinfo/db_iterator.c     2008-06-18 06:49:44.000000000 -0400
    4863257578@@ -1,5 +1,5 @@
    4863357579 /****************************************************************************
     
    4876357709diff -Naur ncurses-5.6.orig/ncurses/tinfo/entries.c ncurses-5.6/ncurses/tinfo/entries.c
    4876457710--- ncurses-5.6.orig/ncurses/tinfo/entries.c    1969-12-31 19:00:00.000000000 -0500
    48765 +++ ncurses-5.6/ncurses/tinfo/entries.c 2007-12-21 00:02:36.000000000 -0500
     57711+++ ncurses-5.6/ncurses/tinfo/entries.c 2008-06-18 06:49:44.000000000 -0400
    4876657712@@ -0,0 +1,144 @@
    4876757713+/****************************************************************************
     
    4891157857diff -Naur ncurses-5.6.orig/ncurses/tinfo/home_terminfo.c ncurses-5.6/ncurses/tinfo/home_terminfo.c
    4891257858--- ncurses-5.6.orig/ncurses/tinfo/home_terminfo.c      2005-07-02 15:43:38.000000000 -0400
    48913 +++ ncurses-5.6/ncurses/tinfo/home_terminfo.c   2007-12-21 00:02:36.000000000 -0500
     57859+++ ncurses-5.6/ncurses/tinfo/home_terminfo.c   2008-06-18 06:49:44.000000000 -0400
    4891457860@@ -1,5 +1,5 @@
    4891557861 /****************************************************************************
     
    4897157917diff -Naur ncurses-5.6.orig/ncurses/tinfo/init_keytry.c ncurses-5.6/ncurses/tinfo/init_keytry.c
    4897257918--- ncurses-5.6.orig/ncurses/tinfo/init_keytry.c        2006-01-21 18:43:28.000000000 -0500
    48973 +++ ncurses-5.6/ncurses/tinfo/init_keytry.c     2007-12-21 00:02:36.000000000 -0500
     57919+++ ncurses-5.6/ncurses/tinfo/init_keytry.c     2008-06-18 06:49:51.000000000 -0400
     57920@@ -1,5 +1,5 @@
     57921 /****************************************************************************
     57922- * Copyright (c) 1999-2005,2006 Free Software Foundation, Inc.              *
     57923+ * Copyright (c) 1999-2006,2008 Free Software Foundation, Inc.              *
     57924  *                                                                          *
     57925  * Permission is hereby granted, free of charge, to any person obtaining a  *
     57926  * copy of this software and associated documentation files (the            *
    4897457927@@ -36,7 +36,7 @@
    4897557928 
     
    4897757930 
    4897857931-MODULE_ID("$Id: init_keytry.c,v 1.8 2006/01/21 23:43:28 tom Exp $")
    48979 +MODULE_ID("$Id: init_keytry.c,v 1.10 2007/04/29 22:57:50 tom Exp $")
     57932+MODULE_ID("$Id: init_keytry.c,v 1.12 2008/05/24 21:44:51 tom Exp $")
    4898057933 
    4898157934 /*
    4898257935 **      _nc_init_keytry()
    48983 @@ -56,7 +56,7 @@
     57936@@ -45,6 +45,13 @@
     57937 **
     57938 */
     57939 
     57940+/*
     57941+ * Internal entrypoints use SCREEN* parameter to obtain capabilities rather
     57942+ * than cur_term.
     57943+ */
     57944+#undef CUR
     57945+#define CUR (sp->_term)->type.
     57946+
     57947 #if    BROKEN_LINKER
     57948 #undef _nc_tinfo_fkeys
     57949 #endif
     57950@@ -56,7 +63,7 @@
    4898457951 #endif*/
    4898557952 
     
    4899057957 {
    4899157958     return _nc_tinfo_fkeys;
    48992 @@ -76,9 +76,9 @@
    48993      if (SP != 0) {
     57959@@ -64,21 +71,21 @@
     57960 #endif
     57961 
     57962 NCURSES_EXPORT(void)
     57963-_nc_init_keytry(void)
     57964+_nc_init_keytry(SCREEN *sp)
     57965 {
     57966     size_t n;
     57967 
     57968-    /* The SP->_keytry value is initialized in newterm(), where the SP
     57969+    /* The sp->_keytry value is initialized in newterm(), where the sp
     57970      * structure is created, because we can not tell where keypad() or
     57971      * mouse_activate() (which will call keyok()) are first called.
     57972      */
     57973 
     57974-    if (SP != 0) {
     57975+    if (sp != 0) {
    4899457976        for (n = 0; _nc_tinfo_fkeys[n].code; n++) {
    4899557977            if (_nc_tinfo_fkeys[n].offset < STRCOUNT) {
     
    4899757979-                              CUR Strings[_nc_tinfo_fkeys[n].offset],
    4899857980-                              _nc_tinfo_fkeys[n].code);
    48999 +               (void) _nc_add_to_try(&(SP->_keytry),
     57981+               (void) _nc_add_to_try(&(sp->_keytry),
    4900057982+                                     CUR Strings[_nc_tinfo_fkeys[n].offset],
    4900157983+                                     _nc_tinfo_fkeys[n].code);
     
    4900357985        }
    4900457986 #if NCURSES_XNAMES
    49005 @@ -96,9 +96,9 @@
     57987@@ -88,7 +95,7 @@
     57988         * names.
     57989         */
     57990        {
     57991-           TERMTYPE *tp = &(SP->_term->type);
     57992+           TERMTYPE *tp = &(sp->_term->type);
     57993            for (n = STRCOUNT; n < NUM_STRINGS(tp); ++n) {
     57994                const char *name = ExtStrname(tp, n, strnames);
     57995                char *value = tp->Strings[n];
     57996@@ -96,15 +103,15 @@
    4900657997                    && *name == 'k'
    4900757998                    && value != 0
     
    4901058001-                                  value,
    4901158002-                                  n - STRCOUNT + KEY_MAX);
    49012 +                   (void) _nc_add_to_try(&(SP->_keytry),
     58003+                   (void) _nc_add_to_try(&(sp->_keytry),
    4901358004+                                         value,
    4901458005+                                         n - STRCOUNT + KEY_MAX);
     
    4901658007            }
    4901758008        }
     58009 #endif
     58010 #ifdef TRACE
     58011-       _nc_trace_tries(SP->_keytry);
     58012+       _nc_trace_tries(sp->_keytry);
     58013 #endif
     58014     }
     58015 }
    4901858016diff -Naur ncurses-5.6.orig/ncurses/tinfo/lib_acs.c ncurses-5.6/ncurses/tinfo/lib_acs.c
    4901958017--- ncurses-5.6.orig/ncurses/tinfo/lib_acs.c    2006-01-07 16:27:15.000000000 -0500
    49020 +++ ncurses-5.6/ncurses/tinfo/lib_acs.c 2007-12-21 00:02:36.000000000 -0500
     58018+++ ncurses-5.6/ncurses/tinfo/lib_acs.c 2008-06-18 06:49:44.000000000 -0400
    4902158019@@ -1,5 +1,5 @@
    4902258020 /****************************************************************************
     
    4908758085diff -Naur ncurses-5.6.orig/ncurses/tinfo/lib_baudrate.c ncurses-5.6/ncurses/tinfo/lib_baudrate.c
    4908858086--- ncurses-5.6.orig/ncurses/tinfo/lib_baudrate.c       2002-01-19 18:07:53.000000000 -0500
    49089 +++ ncurses-5.6/ncurses/tinfo/lib_baudrate.c    2007-12-21 00:02:36.000000000 -0500
     58087+++ ncurses-5.6/ncurses/tinfo/lib_baudrate.c    2008-06-18 06:49:44.000000000 -0400
    4909058088@@ -1,5 +1,5 @@
    4909158089 /****************************************************************************
     
    4916958167     return (result);
    4917058168 }
     58169diff -Naur ncurses-5.6.orig/ncurses/tinfo/lib_cur_term.c ncurses-5.6/ncurses/tinfo/lib_cur_term.c
     58170--- ncurses-5.6.orig/ncurses/tinfo/lib_cur_term.c       2003-12-27 13:21:30.000000000 -0500
     58171+++ ncurses-5.6/ncurses/tinfo/lib_cur_term.c    2008-06-18 06:49:51.000000000 -0400
     58172@@ -1,5 +1,5 @@
     58173 /****************************************************************************
     58174- * Copyright (c) 1998-2000,2003 Free Software Foundation, Inc.              *
     58175+ * Copyright (c) 1998-2003,2008 Free Software Foundation, Inc.              *
     58176  *                                                                          *
     58177  * Permission is hereby granted, free of charge, to any person obtaining a  *
     58178  * copy of this software and associated documentation files (the            *
     58179@@ -40,21 +40,45 @@
     58180 #include <term_entry.h>                /* TTY, cur_term */
     58181 #include <termcap.h>           /* ospeed */
     58182 
     58183-MODULE_ID("$Id: lib_cur_term.c,v 1.13 2003/12/27 18:21:30 tom Exp $")
     58184+MODULE_ID("$Id: lib_cur_term.c,v 1.16 2008/06/07 22:22:16 tom Exp $")
     58185 
     58186+#undef CUR
     58187+#define CUR termp->type.
     58188+
     58189+#if USE_REENTRANT
     58190+NCURSES_EXPORT(TERMINAL *)
     58191+NCURSES_PUBLIC_VAR(cur_term) (void)
     58192+{
     58193+    return (SP != 0 && SP->_term != 0) ? SP->_term : _nc_prescreen._cur_term;
     58194+}
     58195+#else
     58196 NCURSES_EXPORT_VAR(TERMINAL *) cur_term = 0;
     58197+#endif
     58198 
     58199 NCURSES_EXPORT(TERMINAL *)
     58200 set_curterm(TERMINAL * termp)
     58201 {
     58202-    TERMINAL *oldterm = cur_term;
     58203+    TERMINAL *oldterm;
     58204 
     58205     T((T_CALLED("set_curterm(%p)"), termp));
     58206 
     58207-    if ((cur_term = termp) != 0) {
     58208-       ospeed = _nc_ospeed(cur_term->_baudrate);
     58209-       PC = (pad_char != NULL) ? pad_char[0] : 0;
     58210+    _nc_lock_global(curses);
     58211+    oldterm = cur_term;
     58212+    if (SP)
     58213+       SP->_term = termp;
     58214+#if USE_REENTRANT
     58215+    _nc_prescreen._cur_term = termp;
     58216+#else
     58217+    cur_term = termp;
     58218+#endif
     58219+    if (termp != 0) {
     58220+       ospeed = _nc_ospeed(termp->_baudrate);
     58221+       if (termp->type.Strings) {
     58222+           PC = (pad_char != NULL) ? pad_char[0] : 0;
     58223+       }
     58224     }
     58225+    _nc_unlock_global(curses);
     58226+
     58227     T((T_RETURN("%p"), oldterm));
     58228     return (oldterm);
     58229 }
     58230@@ -62,15 +86,20 @@
     58231 NCURSES_EXPORT(int)
     58232 del_curterm(TERMINAL * termp)
     58233 {
     58234+    int rc = ERR;
     58235+
     58236     T((T_CALLED("del_curterm(%p)"), termp));
     58237 
     58238+    _nc_lock_global(curses);
     58239     if (termp != 0) {
     58240        _nc_free_termtype(&(termp->type));
     58241        FreeIfNeeded(termp->_termname);
     58242        free(termp);
     58243        if (termp == cur_term)
     58244-           cur_term = 0;
     58245-       returnCode(OK);
     58246+           set_curterm(0);
     58247+       rc = OK;
     58248     }
     58249-    returnCode(ERR);
     58250+    _nc_unlock_global(curses);
     58251+
     58252+    returnCode(rc);
     58253 }
    4917158254diff -Naur ncurses-5.6.orig/ncurses/tinfo/lib_data.c ncurses-5.6/ncurses/tinfo/lib_data.c
    4917258255--- ncurses-5.6.orig/ncurses/tinfo/lib_data.c   2005-01-22 12:39:22.000000000 -0500
    49173 +++ ncurses-5.6/ncurses/tinfo/lib_data.c        2007-12-21 00:02:36.000000000 -0500
     58256+++ ncurses-5.6/ncurses/tinfo/lib_data.c        2008-06-18 06:49:51.000000000 -0400
    4917458257@@ -1,5 +1,5 @@
    4917558258 /****************************************************************************
    4917658259- * Copyright (c) 1998-2000,2005 Free Software Foundation, Inc.              *
    49177 + * Copyright (c) 1998-2005,2007 Free Software Foundation, Inc.              *
     58260+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4917858261  *                                                                          *
    4917958262  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    4918458267 
    4918558268-MODULE_ID("$Id: lib_data.c,v 1.17 2005/01/22 17:39:22 tom Exp $")
    49186 +MODULE_ID("$Id: lib_data.c,v 1.34 2007/10/20 21:49:10 tom Exp $")
     58269+MODULE_ID("$Id: lib_data.c,v 1.48 2008/06/07 14:03:15 tom Exp $")
    4918758270 
    4918858271 /*
     
    4921458297 NCURSES_EXPORT_VAR(SCREEN *) _nc_screen_chain = 0;
    4921558298 
    49216 @@ -87,3 +105,129 @@
     58299@@ -87,3 +105,183 @@
    4921758300 #else
    4921858301 NCURSES_EXPORT_VAR(SCREEN *) SP = NULL; /* Some linkers require initialized data... */
     
    4922258305+
    4922358306+#define TGETENT_0 { 0L, FALSE, NULL, NULL, NULL }
    49224 +#define TGETENT_0s { TGETENT_0, TGETENT_0, TGETENT_0, TGETENT_0 } 
     58307+#define TGETENT_0s { TGETENT_0, TGETENT_0, TGETENT_0, TGETENT_0 }
    4922558308+
    4922658309+NCURSES_EXPORT_VAR(NCURSES_GLOBALS) _nc_globals = {
     
    4924458327+    NULL,                      /* keyname_table */
    4924558328+
     58329+    0,                         /* slk_format */
     58330+
    4924658331+    NULL,                      /* safeprint_buf */
    4924758332+    0,                         /* safeprint_used */
     
    4925058335+    0,                         /* tgetent_index */
    4925158336+    0,                         /* tgetent_sequence */
     58337+
     58338+    0,                         /* _nc_windowlist */
    4925258339+
    4925358340+#if USE_HOME_TERMINFO
     
    4927758364+    0,                         /* tracedmp_used */
    4927858365+
    49279 +    CHARS_0s,                  /* tracemse_buf */
    49280 +
    4928158366+    NULL,                      /* tracetry_buf */
    4928258367+    0,                         /* tracetry_used */
    4928358368+
    49284 +#ifndef USE_TERMLIB
    4928558369+    { CHARS_0s, CHARS_0s },    /* traceatr_color_buf */
    4928658370+    0,                         /* traceatr_color_sel */
    4928758371+    -1,                                /* traceatr_color_last */
    49288 +#endif /* USE_TERMLIB */
    4928958372+
    4929058373+#endif /* TRACE */
    4929158374+#ifdef USE_PTHREADS
    49292 +    PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,    /* mutex_set_SP */
    49293 +    PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,    /* mutex_use_screen */
    49294 +    PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,    /* mutex_use_window */
    49295 +    PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP,    /* mutex_windowlist */
     58375+    PTHREAD_MUTEX_INITIALIZER, /* mutex_curses */
    4929658376+    PTHREAD_MUTEX_INITIALIZER, /* mutex_tst_tracef */
    4929758377+    PTHREAD_MUTEX_INITIALIZER, /* mutex_tracef */
     
    4930458384+#define NUM_VARS_0s    { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
    4930558385+
    49306 +#define RIPOFF_0       { 0,0 }
     58386+#define RIPOFF_0       { 0,0,0 }
    4930758387+#define RIPOFF_0s      { RIPOFF_0 }
    4930858388+
     
    4933758417+    0,                         /* LINES */
    4933858418+    0,                         /* COLS */
     58419+    0,                         /* cur_term */
    4933958420+#ifdef TRACE
    4934058421+    0L,                                /* _outchars */
     
    4934458425+};
    4934558426+/* *INDENT-ON* */
     58427+
     58428+/******************************************************************************/
     58429+#ifdef USE_PTHREADS
     58430+static void
     58431+init_global_mutexes(void)
     58432+{
     58433+    static bool initialized = FALSE;
     58434+
     58435+    if (!initialized) {
     58436+       initialized = TRUE;
     58437+       _nc_mutex_init(&_nc_globals.mutex_curses);
     58438+       _nc_mutex_init(&_nc_globals.mutex_tst_tracef);
     58439+       _nc_mutex_init(&_nc_globals.mutex_tracef);
     58440+    }
     58441+}
     58442+
     58443+/*
     58444+ * Use recursive mutexes if we have them - they're part of Unix98.
     58445+ * For the cases where we do not, _nc_mutex_trylock() is used to avoid a
     58446+ * deadlock, at the expense of memory leaks and unexpected failures that
     58447+ * may not be handled by typical clients.
     58448+ *
     58449+ * FIXME - need configure check for PTHREAD_MUTEX_RECURSIVE, define it to
     58450+ * PTHREAD_MUTEX_NORMAL if not supported.
     58451+ */
     58452+NCURSES_EXPORT(void)
     58453+_nc_mutex_init(pthread_mutex_t * obj)
     58454+{
     58455+    pthread_mutexattr_t recattr;
     58456+
     58457+    memset(&recattr, 0, sizeof(recattr));
     58458+    pthread_mutexattr_settype(&recattr, PTHREAD_MUTEX_RECURSIVE);
     58459+    pthread_mutex_init(obj, &recattr);
     58460+}
     58461+
     58462+NCURSES_EXPORT(int)
     58463+_nc_mutex_lock(pthread_mutex_t * obj)
     58464+{
     58465+    init_global_mutexes();
     58466+    return pthread_mutex_lock(obj);
     58467+}
     58468+
     58469+NCURSES_EXPORT(int)
     58470+_nc_mutex_trylock(pthread_mutex_t * obj)
     58471+{
     58472+    init_global_mutexes();
     58473+    return pthread_mutex_trylock(obj);
     58474+}
     58475+
     58476+NCURSES_EXPORT(int)
     58477+_nc_mutex_unlock(pthread_mutex_t * obj)
     58478+{
     58479+    init_global_mutexes();
     58480+    return pthread_mutex_unlock(obj);
     58481+}
     58482+#endif /* USE_PTHREADS */
     58483diff -Naur ncurses-5.6.orig/ncurses/tinfo/lib_napms.c ncurses-5.6/ncurses/tinfo/lib_napms.c
     58484--- ncurses-5.6.orig/ncurses/tinfo/lib_napms.c  2005-04-03 09:58:14.000000000 -0400
     58485+++ ncurses-5.6/ncurses/tinfo/lib_napms.c       2008-06-18 06:49:50.000000000 -0400
     58486@@ -1,5 +1,5 @@
     58487 /****************************************************************************
     58488- * Copyright (c) 1998-2003,2005 Free Software Foundation, Inc.              *
     58489+ * Copyright (c) 1998-2005,2008 Free Software Foundation, Inc.              *
     58490  *                                                                          *
     58491  * Permission is hereby granted, free of charge, to any person obtaining a  *
     58492  * copy of this software and associated documentation files (the            *
     58493@@ -49,7 +49,7 @@
     58494 #endif
     58495 #endif
     58496 
     58497-MODULE_ID("$Id: lib_napms.c,v 1.15 2005/04/03 13:58:14 tom Exp $")
     58498+MODULE_ID("$Id: lib_napms.c,v 1.17 2008/05/03 21:34:13 tom Exp $")
     58499 
     58500 NCURSES_EXPORT(int)
     58501 napms(int ms)
     58502@@ -67,7 +67,7 @@
     58503        }
     58504     }
     58505 #else
     58506-    _nc_timed_wait(0, ms, (int *) 0 EVENTLIST_2nd(0));
     58507+    _nc_timed_wait(0, 0, ms, (int *) 0 EVENTLIST_2nd(0));
     58508 #endif
     58509 
     58510     returnCode(OK);
    4934658511diff -Naur ncurses-5.6.orig/ncurses/tinfo/lib_options.c ncurses-5.6/ncurses/tinfo/lib_options.c
    4934758512--- ncurses-5.6.orig/ncurses/tinfo/lib_options.c        2006-03-04 14:28:25.000000000 -0500
    49348 +++ ncurses-5.6/ncurses/tinfo/lib_options.c     2007-12-21 00:02:36.000000000 -0500
    49349 @@ -43,7 +43,7 @@
     58513+++ ncurses-5.6/ncurses/tinfo/lib_options.c     2008-06-18 06:49:51.000000000 -0400
     58514@@ -1,5 +1,5 @@
     58515 /****************************************************************************
     58516- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
     58517+ * Copyright (c) 1998-2006,2008 Free Software Foundation, Inc.              *
     58518  *                                                                          *
     58519  * Permission is hereby granted, free of charge, to any person obtaining a  *
     58520  * copy of this software and associated documentation files (the            *
     58521@@ -43,7 +43,10 @@
    4935058522 
    4935158523 #include <term.h>
    4935258524 
    4935358525-MODULE_ID("$Id: lib_options.c,v 1.49 2006/03/04 19:28:25 tom Exp $")
    49354 +MODULE_ID("$Id: lib_options.c,v 1.50 2006/12/30 16:03:27 tom Exp $")
     58526+MODULE_ID("$Id: lib_options.c,v 1.56 2008/06/07 14:01:46 tom Exp $")
     58527+
     58528+static int _nc_curs_set(SCREEN *, int);
     58529+static int _nc_meta(SCREEN *, bool);
    4935558530 
    4935658531 NCURSES_EXPORT(int)
    4935758532 idlok(WINDOW *win, bool flag)
    49358 @@ -220,7 +220,7 @@
     58533@@ -126,7 +129,7 @@
     58534 
     58535     if (win) {
     58536        win->_use_keypad = flag;
     58537-       returnCode(_nc_keypad(flag));
     58538+       returnCode(_nc_keypad(SP, flag));
     58539     } else
     58540        returnCode(ERR);
     58541 }
     58542@@ -134,23 +137,11 @@
     58543 NCURSES_EXPORT(int)
     58544 meta(WINDOW *win GCC_UNUSED, bool flag)
     58545 {
     58546-    int result = ERR;
     58547+    int result;
     58548 
     58549     /* Ok, we stay relaxed and don't signal an error if win is NULL */
     58550     T((T_CALLED("meta(%p,%d)"), win, flag));
     58551-
     58552-    if (SP != 0) {
     58553-       SP->_use_meta = flag;
     58554-
     58555-       if (flag && meta_on) {
     58556-           TPUTS_TRACE("meta_on");
     58557-           putp(meta_on);
     58558-       } else if (!flag && meta_off) {
     58559-           TPUTS_TRACE("meta_off");
     58560-           putp(meta_off);
     58561-       }
     58562-       result = OK;
     58563-    }
     58564+    result = _nc_meta(SP, flag);
     58565     returnCode(result);
     58566 }
     58567 
     58568@@ -159,43 +150,10 @@
     58569 NCURSES_EXPORT(int)
     58570 curs_set(int vis)
     58571 {
     58572-    int result = ERR;
     58573+    int result;
     58574 
     58575     T((T_CALLED("curs_set(%d)"), vis));
     58576-    if (SP != 0 && vis >= 0 && vis <= 2) {
     58577-       int cursor = SP->_cursor;
     58578-
     58579-       if (vis == cursor) {
     58580-           result = cursor;
     58581-       } else {
     58582-           result = (cursor == -1 ? 1 : cursor);
     58583-           switch (vis) {
     58584-           case 2:
     58585-               if (cursor_visible) {
     58586-                   TPUTS_TRACE("cursor_visible");
     58587-                   putp(cursor_visible);
     58588-               } else
     58589-                   result = ERR;
     58590-               break;
     58591-           case 1:
     58592-               if (cursor_normal) {
     58593-                   TPUTS_TRACE("cursor_normal");
     58594-                   putp(cursor_normal);
     58595-               } else
     58596-                   result = ERR;
     58597-               break;
     58598-           case 0:
     58599-               if (cursor_invisible) {
     58600-                   TPUTS_TRACE("cursor_invisible");
     58601-                   putp(cursor_invisible);
     58602-               } else
     58603-                   result = ERR;
     58604-               break;
     58605-           }
     58606-           SP->_cursor = vis;
     58607-           _nc_flush();
     58608-       }
     58609-    }
     58610+    result = _nc_curs_set(SP, vis);
     58611     returnCode(result);
     58612 }
     58613 
     58614@@ -220,7 +178,7 @@
    4935958615 
    4936058616 #if NCURSES_EXT_FUNCS
    4936158617 static int
    4936258618-has_key_internal(int keycode, struct tries *tp)
    49363 +has_key_internal(int keycode, TRIES *tp)
     58619+has_key_internal(int keycode, TRIES * tp)
    4936458620 {
    4936558621     if (tp == 0)
    4936658622        return (FALSE);
     58623@@ -239,6 +197,35 @@
     58624 }
     58625 #endif /* NCURSES_EXT_FUNCS */
     58626 
     58627+/*
     58628+ * Internal entrypoints use SCREEN* parameter to obtain capabilities rather
     58629+ * than cur_term.
     58630+ */
     58631+#undef CUR
     58632+#define CUR (sp->_term)->type.
     58633+
     58634+static int
     58635+_nc_putp(const char *name GCC_UNUSED, const char *value)
     58636+{
     58637+    int rc = ERR;
     58638+
     58639+    if (value) {
     58640+       TPUTS_TRACE(name);
     58641+       rc = putp(value);
     58642+    }
     58643+    return rc;
     58644+}
     58645+
     58646+static int
     58647+_nc_putp_flush(const char *name, const char *value)
     58648+{
     58649+    int rc = _nc_putp(name, value);
     58650+    if (rc != ERR) {
     58651+       _nc_flush();
     58652+    }
     58653+    return rc;
     58654+}
     58655+
     58656 /* Turn the keypad on/off
     58657  *
     58658  * Note:  we flush the output because changing this mode causes some terminals
     58659@@ -247,24 +234,94 @@
     58660  * the terminal state _before_ switching modes.
     58661  */
     58662 NCURSES_EXPORT(int)
     58663-_nc_keypad(bool flag)
     58664+_nc_keypad(SCREEN *sp, bool flag)
     58665 {
     58666-    if (flag && keypad_xmit) {
     58667-       TPUTS_TRACE("keypad_xmit");
     58668-       putp(keypad_xmit);
     58669-       _nc_flush();
     58670-    } else if (!flag && keypad_local) {
     58671-       TPUTS_TRACE("keypad_local");
     58672-       putp(keypad_local);
     58673-       _nc_flush();
     58674+    int rc = ERR;
     58675+
     58676+    if (sp != 0) {
     58677+#ifdef USE_PTHREADS
     58678+       /*
     58679+        * We might have this situation in a multithreaded application that
     58680+        * has wgetch() reading in more than one thread.  putp() and below
     58681+        * may use SP explicitly.
     58682+        */
     58683+       if (sp != SP) {
     58684+           SCREEN *save_sp;
     58685+
     58686+           /* cannot use use_screen(), since that is not in tinfo library */
     58687+           _nc_lock_global(curses);
     58688+           save_sp = SP;
     58689+           SP = sp;
     58690+           rc = _nc_keypad(sp, flag);
     58691+           SP = save_sp;
     58692+           _nc_unlock_global(curses);
     58693+       } else
     58694+#endif
     58695+       {
     58696+           if (flag) {
     58697+               (void) _nc_putp_flush("keypad_xmit", keypad_xmit);
     58698+           } else if (!flag && keypad_local) {
     58699+               (void) _nc_putp_flush("keypad_local", keypad_local);
     58700+           }
     58701+
     58702+           if (flag && !sp->_tried) {
     58703+               _nc_init_keytry(sp);
     58704+               sp->_tried = TRUE;
     58705+           }
     58706+           sp->_keypad_on = flag;
     58707+           rc = OK;
     58708+       }
     58709     }
     58710+    return (rc);
     58711+}
     58712+
     58713+static int
     58714+_nc_curs_set(SCREEN *sp, int vis)
     58715+{
     58716+    int result = ERR;
     58717+
     58718+    T((T_CALLED("curs_set(%d)"), vis));
     58719+    if (sp != 0 && vis >= 0 && vis <= 2) {
     58720+       int cursor = sp->_cursor;
     58721+
     58722+       if (vis == cursor) {
     58723+           result = cursor;
     58724+       } else {
     58725+           switch (vis) {
     58726+           case 2:
     58727+               result = _nc_putp_flush("cursor_visible", cursor_visible);
     58728+               break;
     58729+           case 1:
     58730+               result = _nc_putp_flush("cursor_normal", cursor_normal);
     58731+               break;
     58732+           case 0:
     58733+               result = _nc_putp_flush("cursor_invisible", cursor_invisible);
     58734+               break;
     58735+           }
     58736+           if (result != ERR)
     58737+               result = (cursor == -1 ? 1 : cursor);
     58738+           sp->_cursor = vis;
     58739+       }
     58740+    }
     58741+    returnCode(result);
     58742+}
     58743+
     58744+static int
     58745+_nc_meta(SCREEN *sp, bool flag)
     58746+{
     58747+    int result = ERR;
     58748+
     58749+    /* Ok, we stay relaxed and don't signal an error if win is NULL */
     58750 
     58751     if (SP != 0) {
     58752-       if (flag && !SP->_tried) {
     58753-           _nc_init_keytry();
     58754-           SP->_tried = TRUE;
     58755+       SP->_use_meta = flag;
     58756+
     58757+       if (flag) {
     58758+           _nc_putp("meta_on", meta_on);
     58759+       } else {
     58760+           _nc_putp("meta_off", meta_off);
     58761        }
     58762-       SP->_keypad_on = flag;
     58763+       result = OK;
     58764     }
     58765-    return (OK);
     58766+    return result;
     58767 }
    4936758768diff -Naur ncurses-5.6.orig/ncurses/tinfo/lib_raw.c ncurses-5.6/ncurses/tinfo/lib_raw.c
    4936858769--- ncurses-5.6.orig/ncurses/tinfo/lib_raw.c    2002-07-06 18:00:45.000000000 -0400
    49369 +++ ncurses-5.6/ncurses/tinfo/lib_raw.c 2007-12-21 00:02:36.000000000 -0500
     58770+++ ncurses-5.6/ncurses/tinfo/lib_raw.c 2008-06-18 06:49:44.000000000 -0400
    4937058771@@ -1,5 +1,5 @@
    4937158772 /****************************************************************************
     
    4939758798diff -Naur ncurses-5.6.orig/ncurses/tinfo/lib_setup.c ncurses-5.6/ncurses/tinfo/lib_setup.c
    4939858799--- ncurses-5.6.orig/ncurses/tinfo/lib_setup.c  2006-07-28 18:58:13.000000000 -0400
    49399 +++ ncurses-5.6/ncurses/tinfo/lib_setup.c       2007-12-21 00:02:36.000000000 -0500
     58800+++ ncurses-5.6/ncurses/tinfo/lib_setup.c       2008-06-18 06:49:51.000000000 -0400
    4940058801@@ -1,5 +1,5 @@
    4940158802 /****************************************************************************
    4940258803- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    49403 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     58804+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    4940458805  *                                                                          *
    4940558806  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    4941958820 
    4942058821-MODULE_ID("$Id: lib_setup.c,v 1.95 2006/07/28 22:58:13 tom Exp $")
    49421 +MODULE_ID("$Id: lib_setup.c,v 1.100 2007/09/01 20:58:26 tom Exp $")
     58822+MODULE_ID("$Id: lib_setup.c,v 1.107 2008/06/07 22:22:58 tom Exp $")
    4942258823 
    4942358824 /****************************************************************************
    4942458825  *
    49425 @@ -99,55 +99,57 @@
     58826@@ -99,55 +99,84 @@
    4942658827 # endif
    4942758828 #endif
    4942858829 
     58830+/*
     58831+ * Wrap global variables in this module.
     58832+ */
    4942958833+#if USE_REENTRANT
    4943058834+NCURSES_EXPORT(char *)
     
    4943458838+    return cur_term ? cur_term->type.term_names : empty;
    4943558839+}
     58840+NCURSES_EXPORT(int *)
     58841+_nc_ptr_Lines(void)
     58842+{
     58843+    return ptrLines();
     58844+}
    4943658845+NCURSES_EXPORT(int)
    4943758846+NCURSES_PUBLIC_VAR(LINES) (void)
    4943858847+{
    49439 +    return (SP ? SP->_LINES : _nc_prescreen._LINES);
     58848+    return *_nc_ptr_Lines();
     58849+}
     58850+NCURSES_EXPORT(int *)
     58851+_nc_ptr_Cols(void)
     58852+{
     58853+    return ptrCols();
    4944058854+}
    4944158855+NCURSES_EXPORT(int)
    4944258856+NCURSES_PUBLIC_VAR(COLS) (void)
    4944358857+{
    49444 +    return SP ? SP->_COLS : _nc_prescreen._COLS;
     58858+    return *_nc_ptr_Cols();
    4944558859+}
    4944658860+NCURSES_EXPORT(int)
     
    4945458868 NCURSES_EXPORT_VAR(int) COLS = 0;
    4945558869 NCURSES_EXPORT_VAR(int) TABSIZE = 0;
    49456 -
     58870+#endif
     58871 
    4945758872-static int _use_env = TRUE;
     58873+#if NCURSES_EXT_FUNCS
     58874+NCURSES_EXPORT(int)
     58875+set_tabsize(int value)
     58876+{
     58877+    int code = OK;
     58878+#if USE_REENTRANT
     58879+    if (SP) {
     58880+       SP->_TABSIZE = value;
     58881+    } else {
     58882+       code = ERR;
     58883+    }
     58884+#else
     58885+    TABSIZE = value;
     58886+#endif
     58887+    return code;
     58888+}
    4945858889+#endif
    4945958890 
     
    4946558896+ */
    4946658897+NCURSES_EXPORT(int)
    49467 +_nc_handle_sigwinch(int update)
     58898+_nc_handle_sigwinch(SCREEN *sp)
    4946858899 {
    4946958900-    static int have_sigwinch = 0;      /* initially no SIGWINCH's */
     
    4948658917-       break;
    4948758918-    }
    49488 +    (void) update;             /* no longer used */
     58919+    if (_nc_globals.have_sigwinch) {
     58920+       _nc_globals.have_sigwinch = 0;
    4948958921 
    4949058922-    /*
     
    4950058932-           }
    4950158933-           have_sigwinch = 0;
    49502 +    if (_nc_globals.have_sigwinch) {
    49503 +       _nc_globals.have_sigwinch = 0;
    49504 +
    49505 +       scan = _nc_screen_chain;
    49506 +       while (scan) {
     58934+       for (each_screen(scan)) {
    4950758935+           scan->_sig_winch = TRUE;
    49508 +           scan = scan->_next_screen;
    4950958936        }
    4951058937     }
     
    4951358940 
    4951458941-    return result;
    49515 +    return (SP ? SP->_sig_winch : 0);
     58942+    return (sp ? sp->_sig_winch : 0);
    4951658943 }
    4951758944 
    4951858945 #endif
    49519 @@ -156,19 +158,20 @@
     58946@@ -156,19 +185,20 @@
    4952058947 use_env(bool f)
    4952158948 {
     
    4952758954 
    4952858955-static void
     58956-_nc_get_screensize(int *linep, int *colp)
    4952958957+NCURSES_EXPORT(void)
    49530  _nc_get_screensize(int *linep, int *colp)
     58958+_nc_get_screensize(SCREEN *sp, int *linep, int *colp)
    4953158959 /* Obtain lines/columns values from the environment and/or terminfo entry */
    4953258960 {
     
    4954258970        *colp = (int) columns;
    4954358971     } else {                   /* usually want to query LINES and COLUMNS from environment */
    49544 @@ -246,14 +249,20 @@
     58972@@ -214,7 +244,7 @@
     58973                 * environment variable.
     58974                 */
     58975                if (*linep <= 0)
     58976-                   *linep = (SP != 0 && SP->_filtered) ? 1 : WINSIZE_ROWS(size);
     58977+                   *linep = (sp != 0 && sp->_filtered) ? 1 : WINSIZE_ROWS(size);
     58978                if (*colp <= 0)
     58979                    *colp = WINSIZE_COLS(size);
     58980            }
     58981@@ -246,38 +276,44 @@
    4954558982        lines = (short) (*linep);
    4954658983        columns = (short) (*colp);
     
    4955858995+
    4955958996+#if USE_REENTRANT
    49560 +    if (SP != 0)
    49561 +       SP->_TABSIZE = my_tabsize;
     58997+    if (sp != 0)
     58998+       sp->_TABSIZE = my_tabsize;
    4956258999+#else
    4956359000+    TABSIZE = my_tabsize;
     
    4956659003 }
    4956759004 
    49568 @@ -536,8 +545,10 @@
     59005 #if USE_SIZECHANGE
     59006 NCURSES_EXPORT(void)
     59007-_nc_update_screensize(void)
     59008+_nc_update_screensize(SCREEN *sp)
     59009 {
     59010     int old_lines = lines;
     59011     int new_lines;
     59012     int old_cols = columns;
     59013     int new_cols;
     59014 
     59015-    _nc_get_screensize(&new_lines, &new_cols);
     59016+    _nc_get_screensize(sp, &new_lines, &new_cols);
     59017 
     59018     /*
     59019      * See is_term_resized() and resizeterm().
     59020      * We're doing it this way because those functions belong to the upper
     59021      * ncurses library, while this resides in the lower terminfo library.
     59022      */
     59023-    if (SP != 0
     59024-       && SP->_resize != 0) {
     59025+    if (sp != 0
     59026+       && sp->_resize != 0) {
     59027        if ((new_lines != old_lines) || (new_cols != old_cols))
     59028-           SP->_resize(new_lines, new_cols);
     59029-       SP->_sig_winch = FALSE;
     59030+           sp->_resize(new_lines, new_cols);
     59031+       sp->_sig_winch = FALSE;
     59032     }
     59033 }
     59034 #endif
     59035@@ -530,18 +566,19 @@
     59036                ret_error(status, "'%s': unknown terminal type.\n", tname);
     59037            }
     59038        }
     59039+#if !USE_REENTRANT
     59040+       strncpy(ttytype, term_ptr->type.term_names, NAMESIZE - 1);
     59041+       ttytype[NAMESIZE - 1] = '\0';
     59042+#endif
     59043+
     59044+       term_ptr->Filedes = Filedes;
     59045+       term_ptr->_termname = strdup(tname);
     59046 
     59047        set_curterm(term_ptr);
     59048 
    4956959049        if (command_character && getenv("CC"))
    4957059050            do_prototype();
    4957159051 
    49572 +#if !USE_REENTRANT
    49573         strncpy(ttytype, cur_term->type.term_names, NAMESIZE - 1);
    49574         ttytype[NAMESIZE - 1] = '\0';
    49575 +#endif
    49576  
    49577         cur_term->Filedes = Filedes;
    49578         cur_term->_termname = strdup(tname);
    49579 @@ -557,13 +568,16 @@
     59052-       strncpy(ttytype, cur_term->type.term_names, NAMESIZE - 1);
     59053-       ttytype[NAMESIZE - 1] = '\0';
     59054-
     59055-       cur_term->Filedes = Filedes;
     59056-       cur_term->_termname = strdup(tname);
     59057-
     59058        /*
     59059         * If an application calls setupterm() rather than initscr() or
     59060         * newterm(), we will not have the def_prog_mode() call in
     59061@@ -557,13 +594,11 @@
    4958059062     /*
    4958159063      * We should always check the screensize, just in case.
    4958259064      */
    49583 +#if USE_REENTRANT
    49584 +    _nc_get_screensize(SP ? &(SP->_LINES) : &(_nc_prescreen._LINES),
    49585 +                      SP ? &(SP->_COLS) : &(_nc_prescreen._COLS));
    49586 +#else
    49587      _nc_get_screensize(&LINES, &COLS);
    49588 +#endif
     59065-    _nc_get_screensize(&LINES, &COLS);
     59066+    _nc_get_screensize(SP, ptrLines(), ptrCols());
    4958959067 
    4959059068     if (errret)
     
    4959859076diff -Naur ncurses-5.6.orig/ncurses/tinfo/lib_termcap.c ncurses-5.6/ncurses/tinfo/lib_termcap.c
    4959959077--- ncurses-5.6.orig/ncurses/tinfo/lib_termcap.c        2006-09-02 15:39:46.000000000 -0400
    49600 +++ ncurses-5.6/ncurses/tinfo/lib_termcap.c     2007-12-21 00:02:36.000000000 -0500
     59078+++ ncurses-5.6/ncurses/tinfo/lib_termcap.c     2008-06-18 06:49:44.000000000 -0400
    4960159079@@ -1,5 +1,5 @@
    4960259080 /****************************************************************************
     
    4973059208diff -Naur ncurses-5.6.orig/ncurses/tinfo/lib_tparm.c ncurses-5.6/ncurses/tinfo/lib_tparm.c
    4973159209--- ncurses-5.6.orig/ncurses/tinfo/lib_tparm.c  2006-11-25 20:12:56.000000000 -0500
    49732 +++ ncurses-5.6/ncurses/tinfo/lib_tparm.c       2007-12-21 00:02:36.000000000 -0500
     59210+++ ncurses-5.6/ncurses/tinfo/lib_tparm.c       2008-06-18 06:49:44.000000000 -0400
    4973359211@@ -1,5 +1,5 @@
    4973459212 /****************************************************************************
     
    5008259560diff -Naur ncurses-5.6.orig/ncurses/tinfo/lib_tputs.c ncurses-5.6/ncurses/tinfo/lib_tputs.c
    5008359561--- ncurses-5.6.orig/ncurses/tinfo/lib_tputs.c  2003-08-23 17:39:20.000000000 -0400
    50084 +++ ncurses-5.6/ncurses/tinfo/lib_tputs.c       2007-12-21 00:02:36.000000000 -0500
     59562+++ ncurses-5.6/ncurses/tinfo/lib_tputs.c       2008-06-18 06:49:44.000000000 -0400
    5008559563@@ -1,5 +1,5 @@
    5008659564 /****************************************************************************
     
    5013759615diff -Naur ncurses-5.6.orig/ncurses/tinfo/lib_ttyflags.c ncurses-5.6/ncurses/tinfo/lib_ttyflags.c
    5013859616--- ncurses-5.6.orig/ncurses/tinfo/lib_ttyflags.c       2006-12-09 20:31:54.000000000 -0500
    50139 +++ ncurses-5.6/ncurses/tinfo/lib_ttyflags.c    2007-12-21 00:02:36.000000000 -0500
     59617+++ ncurses-5.6/ncurses/tinfo/lib_ttyflags.c    2008-06-18 06:49:50.000000000 -0400
    5014059618@@ -1,5 +1,5 @@
    5014159619 /****************************************************************************
    5014259620- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    50143 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     59621+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    5014459622  *                                                                          *
    5014559623  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    5015059628 
    5015159629-MODULE_ID("$Id: lib_ttyflags.c,v 1.13 2006/12/10 01:31:54 tom Exp $")
    50152 +MODULE_ID("$Id: lib_ttyflags.c,v 1.15 2007/05/26 18:54:25 tom Exp $")
     59630+MODULE_ID("$Id: lib_ttyflags.c,v 1.16 2008/05/03 22:39:03 tom Exp $")
    5015359631 
    5015459632 NCURSES_EXPORT(int)
     
    5023259710 }
    5023359711 
     59712@@ -139,7 +147,7 @@
     59713        if (_nc_set_tty_mode(&cur_term->Nttyb) == OK) {
     59714            if (SP) {
     59715                if (SP->_keypad_on)
     59716-                   _nc_keypad(TRUE);
     59717+                   _nc_keypad(SP, TRUE);
     59718                NC_BUFFERED(TRUE);
     59719            }
     59720            returnCode(OK);
     59721@@ -155,7 +163,7 @@
     59722 
     59723     if (cur_term != 0) {
     59724        if (SP) {
     59725-           _nc_keypad(FALSE);
     59726+           _nc_keypad(SP, FALSE);
     59727            _nc_flush();
     59728            NC_BUFFERED(FALSE);
     59729        }
    5023459730@@ -164,19 +172,33 @@
    5023559731     returnCode(ERR);
     
    5027859774diff -Naur ncurses-5.6.orig/ncurses/tinfo/make_keys.c ncurses-5.6/ncurses/tinfo/make_keys.c
    5027959775--- ncurses-5.6.orig/ncurses/tinfo/make_keys.c  2005-08-20 15:58:18.000000000 -0400
    50280 +++ ncurses-5.6/ncurses/tinfo/make_keys.c       2007-12-21 00:02:36.000000000 -0500
     59776+++ ncurses-5.6/ncurses/tinfo/make_keys.c       2008-06-18 06:49:44.000000000 -0400
    5028159777@@ -1,5 +1,5 @@
    5028259778 /****************************************************************************
     
    5030659802diff -Naur ncurses-5.6.orig/ncurses/tinfo/name_match.c ncurses-5.6/ncurses/tinfo/name_match.c
    5030759803--- ncurses-5.6.orig/ncurses/tinfo/name_match.c 2005-01-22 16:47:25.000000000 -0500
    50308 +++ ncurses-5.6/ncurses/tinfo/name_match.c      2007-12-21 00:02:36.000000000 -0500
     59804+++ ncurses-5.6/ncurses/tinfo/name_match.c      2008-06-18 06:49:44.000000000 -0400
    5030959805@@ -1,5 +1,5 @@
    5031059806 /****************************************************************************
     
    5036659862diff -Naur ncurses-5.6.orig/ncurses/tinfo/parse_entry.c ncurses-5.6/ncurses/tinfo/parse_entry.c
    5036759863--- ncurses-5.6.orig/ncurses/tinfo/parse_entry.c        2006-06-17 13:57:50.000000000 -0400
    50368 +++ ncurses-5.6/ncurses/tinfo/parse_entry.c     2007-12-21 00:02:36.000000000 -0500
     59864+++ ncurses-5.6/ncurses/tinfo/parse_entry.c     2008-06-18 06:49:44.000000000 -0400
    5036959865@@ -1,5 +1,5 @@
    5037059866 /****************************************************************************
     
    5044259938diff -Naur ncurses-5.6.orig/ncurses/tinfo/read_entry.c ncurses-5.6/ncurses/tinfo/read_entry.c
    5044359939--- ncurses-5.6.orig/ncurses/tinfo/read_entry.c 2006-08-19 11:58:50.000000000 -0400
    50444 +++ ncurses-5.6/ncurses/tinfo/read_entry.c      2007-12-21 00:02:36.000000000 -0500
     59940+++ ncurses-5.6/ncurses/tinfo/read_entry.c      2008-06-18 06:49:44.000000000 -0400
    5044559941@@ -1,5 +1,5 @@
    5044659942 /****************************************************************************
     
    5047059966diff -Naur ncurses-5.6.orig/ncurses/tinfo/setbuf.c ncurses-5.6/ncurses/tinfo/setbuf.c
    5047159967--- ncurses-5.6.orig/ncurses/tinfo/setbuf.c     2003-11-15 18:55:34.000000000 -0500
    50472 +++ ncurses-5.6/ncurses/tinfo/setbuf.c  2007-12-21 00:02:36.000000000 -0500
     59968+++ ncurses-5.6/ncurses/tinfo/setbuf.c  2008-06-18 06:49:44.000000000 -0400
    5047359969@@ -1,5 +1,5 @@
    5047459970 /****************************************************************************
     
    5049859994diff -Naur ncurses-5.6.orig/ncurses/tinfo/strings.c ncurses-5.6/ncurses/tinfo/strings.c
    5049959995--- ncurses-5.6.orig/ncurses/tinfo/strings.c    2003-08-16 19:46:00.000000000 -0400
    50500 +++ ncurses-5.6/ncurses/tinfo/strings.c 2007-12-21 00:02:36.000000000 -0500
     59996+++ ncurses-5.6/ncurses/tinfo/strings.c 2008-06-18 06:49:44.000000000 -0400
    5050159997@@ -1,5 +1,5 @@
    5050259998 /****************************************************************************
     
    5052660022diff -Naur ncurses-5.6.orig/ncurses/tinfo/trim_sgr0.c ncurses-5.6/ncurses/tinfo/trim_sgr0.c
    5052760023--- ncurses-5.6.orig/ncurses/tinfo/trim_sgr0.c  2006-12-02 14:37:57.000000000 -0500
    50528 +++ ncurses-5.6/ncurses/tinfo/trim_sgr0.c       2007-12-21 00:02:36.000000000 -0500
     60024+++ ncurses-5.6/ncurses/tinfo/trim_sgr0.c       2008-06-18 06:49:44.000000000 -0400
    5052960025@@ -1,5 +1,5 @@
    5053060026 /****************************************************************************
     
    5056660062diff -Naur ncurses-5.6.orig/ncurses/tinfo/use_screen.c ncurses-5.6/ncurses/tinfo/use_screen.c
    5056760063--- ncurses-5.6.orig/ncurses/tinfo/use_screen.c 1969-12-31 19:00:00.000000000 -0500
    50568 +++ ncurses-5.6/ncurses/tinfo/use_screen.c      2007-12-21 00:02:36.000000000 -0500
    50569 @@ -0,0 +1,60 @@
     60064+++ ncurses-5.6/ncurses/tinfo/use_screen.c      2008-06-18 06:49:51.000000000 -0400
     60065@@ -0,0 +1,58 @@
    5057060066+/****************************************************************************
    50571 + * Copyright (c) 2007 Free Software Foundation, Inc.                        *
     60067+ * Copyright (c) 2007,2008 Free Software Foundation, Inc.                   *
    5057260068+ *                                                                          *
    5057360069+ * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    5060260098+#include <curses.priv.h>
    5060360099+
    50604 +MODULE_ID("$Id: use_screen.c,v 1.2 2007/09/08 21:46:48 tom Exp $")
     60100+MODULE_ID("$Id: use_screen.c,v 1.6 2008/06/07 19:16:56 tom Exp $")
    5060560101+
    5060660102+NCURSES_EXPORT(int)
    50607 +use_screen(SCREEN *screen, NCURSES_CALLBACK func, void *data)
     60103+use_screen(SCREEN *screen, NCURSES_SCREEN_CB func, void *data)
    5060860104+{
    5060960105+    SCREEN *save_SP;
     
    5061660112+     * recurred through this point, return an error if so.
    5061760113+     */
    50618 +    _nc_lock_global(use_screen);
     60114+    _nc_lock_global(curses);
    5061960115+    save_SP = SP;
    5062060116+    set_term(screen);
    5062160117+
    50622 +    code = func(screen->_stdscr, data);
     60118+    code = func(screen, data);
    5062360119+
    5062460120+    set_term(save_SP);
    50625 +    _nc_unlock_global(use_screen);
     60121+    _nc_unlock_global(curses);
    5062660122+    returnCode(code);
    50627 +
    50628 +    return 0;
    5062960123+}
    5063060124diff -Naur ncurses-5.6.orig/ncurses/tinfo/write_entry.c ncurses-5.6/ncurses/tinfo/write_entry.c
    5063160125--- ncurses-5.6.orig/ncurses/tinfo/write_entry.c        2006-10-14 16:45:16.000000000 -0400
    50632 +++ ncurses-5.6/ncurses/tinfo/write_entry.c     2007-12-21 00:02:36.000000000 -0500
     60126+++ ncurses-5.6/ncurses/tinfo/write_entry.c     2008-06-18 06:49:44.000000000 -0400
    5063360127@@ -1,5 +1,5 @@
    5063460128 /****************************************************************************
     
    5071660210diff -Naur ncurses-5.6.orig/ncurses/trace/lib_trace.c ncurses-5.6/ncurses/trace/lib_trace.c
    5071760211--- ncurses-5.6.orig/ncurses/trace/lib_trace.c  2006-08-19 08:05:25.000000000 -0400
    50718 +++ ncurses-5.6/ncurses/trace/lib_trace.c       2007-12-21 00:02:36.000000000 -0500
     60212+++ ncurses-5.6/ncurses/trace/lib_trace.c       2008-06-18 06:49:51.000000000 -0400
    5071960213@@ -1,5 +1,5 @@
    5072060214 /****************************************************************************
    5072160215- * Copyright (c) 1998-2004,2005 Free Software Foundation, Inc.              *
    50722 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     60216+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    5072360217  *                                                                          *
    5072460218  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    5072960223 
    5073060224-MODULE_ID("$Id: lib_trace.c,v 1.59 2006/08/19 12:05:25 tom Exp $")
    50731 +MODULE_ID("$Id: lib_trace.c,v 1.65 2007/09/29 21:47:46 tom Exp $")
     60225+MODULE_ID("$Id: lib_trace.c,v 1.67 2008/06/07 20:49:56 tom Exp $")
    5073260226 
    5073360227 NCURSES_EXPORT_VAR(unsigned) _nc_tracing = 0; /* always define this */
     
    5077760271-    static bool been_here = FALSE;
    5077860272-    static char my_name[PATH_MAX];
    50779 -
     60273+    if ((TraceFP == 0) && tracelevel) {
     60274+       const char *mode = _nc_globals.init_trace ? "ab" : "wb";
     60275 
    5078060276-    if ((tracefp == 0) && tracelevel) {
    5078160277-       const char *mode = been_here ? "ab" : "wb";
    50782 +    if ((TraceFP == 0) && tracelevel) {
    50783 +       const char *mode = _nc_globals.init_trace ? "ab" : "wb";
    50784  
     60278-
    5078560279-       if (*my_name == '\0') {
    5078660280-           if (getcwd(my_name, sizeof(my_name) - 10) == 0) {
     
    5086360357                doit &= (TRACE_CALLS | TRACE_CCALLS);
    5086460358            else
    50865 @@ -134,25 +165,34 @@
     60359@@ -134,25 +165,46 @@
    5086660360     }
    5086760361 
     
    5087160365+       if (TraceFP == 0)
    5087260366+           TraceFP = stderr;
     60367+#ifdef USE_PTHREADS
     60368+       /*
     60369+        * TRACE_ICALLS is "really" needed to show normal use with threaded
     60370+        * applications, since anything can be running during a napms(),
     60371+        * making it appear in the hierarchical trace as it other functions
     60372+        * are being called.
     60373+        *
     60374+        * Rather than add the complication of a per-thread stack, just
     60375+        * show the thread-id in each line of the trace.
     60376+        */
     60377+       fprintf(TraceFP, "%#lx:", (long) pthread_self());
     60378+#endif
    5087360379        if (before || after) {
    5087460380            int n;
     
    5090960415 NCURSES_EXPORT(NCURSES_BOOL)
    5091060416 _nc_retrace_bool(NCURSES_BOOL code)
    50911 @@ -224,4 +264,53 @@
     60417@@ -224,4 +276,53 @@
    5091260418     T((T_RETURN("%p"), code));
    5091360419     return code;
     
    5092960435+    _nc_lock_global(tst_tracef);
    5093060436+    if (!_nc_globals.nested_tracef++) {
    50931 +       if ((result = (_nc_tracing & (mask))) != 0) {
     60437+       if ((result = (_nc_tracing & (mask))) != 0
     60438+           && _nc_try_global(tracef) == 0) {
    5093260439+           /* we will call _nc_locked_tracef(), no nesting so far */
    50933 +           _nc_lock_global(tracef);
    5093460440+       } else {
    5093560441+           /* we will not call _nc_locked_tracef() */
     
    5096560471diff -Naur ncurses-5.6.orig/ncurses/trace/lib_traceatr.c ncurses-5.6/ncurses/trace/lib_traceatr.c
    5096660472--- ncurses-5.6.orig/ncurses/trace/lib_traceatr.c       2006-12-02 16:18:28.000000000 -0500
    50967 +++ ncurses-5.6/ncurses/trace/lib_traceatr.c    2007-12-21 00:02:36.000000000 -0500
     60473+++ ncurses-5.6/ncurses/trace/lib_traceatr.c    2008-06-18 06:49:51.000000000 -0400
    5096860474@@ -1,5 +1,5 @@
    5096960475 /****************************************************************************
    5097060476- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    50971 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     60477+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    5097260478  *                                                                          *
    5097360479  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    5097860484 
    5097960485-MODULE_ID("$Id: lib_traceatr.c,v 1.56 2006/12/02 21:18:28 tom Exp $")
    50980 +MODULE_ID("$Id: lib_traceatr.c,v 1.59 2007/06/09 17:22:10 tom Exp $")
     60486+MODULE_ID("$Id: lib_traceatr.c,v 1.60 2008/05/31 16:53:15 tom Exp $")
    5098160487 
    5098260488 #define COLOR_OF(c) ((c < 0) ? "default" : (c > 7 ? color_of(c) : colors[c].name))
     
    5106260568        for (cp = acs_chars; cp[0] && cp[1]; cp += 2) {
    5106360569            if (ChCharOf(cp[1]) == ChCharOf(ch)) {
     60570@@ -249,7 +255,7 @@
     60571     if ((found = _nc_altcharset_name(ChAttrOf(ch), ch)) != 0) {
     60572        (void) _nc_trace_bufcat(bufnum, found);
     60573     } else
     60574-       (void) _nc_trace_bufcat(bufnum, _tracechar((int)ChCharOf(ch)));
     60575+       (void) _nc_trace_bufcat(bufnum, _nc_tracechar(SP, (int)ChCharOf(ch)));
     60576 
     60577     if (ChAttrOf(ch) != A_NORMAL) {
     60578        (void) _nc_trace_bufcat(bufnum, " | ");
     60579@@ -305,14 +311,14 @@
     60580                if (PUTC_n <= 0) {
     60581                    if (PUTC_ch != L'\0') {
     60582                        /* it could not be a multibyte sequence */
     60583-                       (void) _nc_trace_bufcat(bufnum, _tracechar(UChar(ch->chars[PUTC_i])));
     60584+                       (void) _nc_trace_bufcat(bufnum, _nc_tracechar(SP, UChar(ch->chars[PUTC_i])));
     60585                    }
     60586                    break;
     60587                }
     60588                for (n = 0; n < PUTC_n; n++) {
     60589                    if (n)
     60590                        (void) _nc_trace_bufcat(bufnum, ", ");
     60591-                   (void) _nc_trace_bufcat(bufnum, _tracechar(UChar(PUTC_buf[n])));
     60592+                   (void) _nc_trace_bufcat(bufnum, _nc_tracechar(SP, UChar(PUTC_buf[n])));
     60593                }
     60594            }
     60595            (void) _nc_trace_bufcat(bufnum, " }");
    5106460596diff -Naur ncurses-5.6.orig/ncurses/trace/lib_tracebits.c ncurses-5.6/ncurses/trace/lib_tracebits.c
    5106560597--- ncurses-5.6.orig/ncurses/trace/lib_tracebits.c      2006-12-09 20:33:00.000000000 -0500
    51066 +++ ncurses-5.6/ncurses/trace/lib_tracebits.c   2007-12-21 00:02:36.000000000 -0500
     60598+++ ncurses-5.6/ncurses/trace/lib_tracebits.c   2008-06-18 06:49:44.000000000 -0400
    5106760599@@ -1,5 +1,5 @@
    5106860600 /****************************************************************************
     
    5112560657diff -Naur ncurses-5.6.orig/ncurses/trace/lib_tracechr.c ncurses-5.6/ncurses/trace/lib_tracechr.c
    5112660658--- ncurses-5.6.orig/ncurses/trace/lib_tracechr.c       2005-04-16 12:55:46.000000000 -0400
    51127 +++ ncurses-5.6/ncurses/trace/lib_tracechr.c    2007-12-21 00:02:36.000000000 -0500
     60659+++ ncurses-5.6/ncurses/trace/lib_tracechr.c    2008-06-18 06:49:51.000000000 -0400
    5112860660@@ -1,5 +1,5 @@
    5112960661 /****************************************************************************
     
    5113360665  * Permission is hereby granted, free of charge, to any person obtaining a  *
    5113460666  * copy of this software and associated documentation files (the            *
    51135 @@ -39,34 +39,35 @@
     60667@@ -39,34 +39,43 @@
    5113660668 
    5113760669 #include <ctype.h>
    5113860670 
    5113960671-MODULE_ID("$Id: lib_tracechr.c,v 1.12 2005/04/16 16:55:46 tom Exp $")
    51140 +MODULE_ID("$Id: lib_tracechr.c,v 1.13 2007/04/21 23:16:37 tom Exp $")
     60672+MODULE_ID("$Id: lib_tracechr.c,v 1.17 2008/05/31 19:57:47 tom Exp $")
    5114160673 
    5114260674 #ifdef TRACE
    51143 +#define MyBuffer _nc_globals.tracechr_buf
    5114460675+
    5114560676 NCURSES_EXPORT(char *)
    51146  _tracechar(int ch)
     60677-_tracechar(int ch)
     60678+_nc_tracechar(SCREEN *sp, int ch)
    5114760679 {
    5114860680-    static char result[40];
    5114960681     NCURSES_CONST char *name;
     60682+    char *MyBuffer = ((sp != 0)
     60683+                     ? sp->tracechr_buf
     60684+                     : _nc_globals.tracechr_buf);
    5115060685 
    5115160686     if (ch > KEY_MIN || ch < 0) {
    51152         name = keyname(ch);
     60687-       name = keyname(ch);
     60688+       name = _nc_keyname(sp, ch);
    5115360689        if (name == 0 || *name == '\0')
    5115460690            name = "NULL";
     
    5116460700+       (void) sprintf(MyBuffer, "%#03o", ch);
    5116560701     } else {
    51166         name = unctrl((chtype) ch);
     60702-       name = unctrl((chtype) ch);
     60703+       name = _nc_unctrl(sp, (chtype) ch);
    5116760704        if (name == 0 || *name == 0)
    5116860705            name = "null";      /* shouldn't happen */
     
    5117260709-    return (result);
    5117360710+    return (MyBuffer);
     60711+}
     60712+
     60713+NCURSES_EXPORT(char *)
     60714+_tracechar(int ch)
     60715+{
     60716+    return _nc_tracechar(SP, ch);
    5117460717 }
    5117560718 #else
     
    5117760720diff -Naur ncurses-5.6.orig/ncurses/trace/lib_tracedmp.c ncurses-5.6/ncurses/trace/lib_tracedmp.c
    5117860721--- ncurses-5.6.orig/ncurses/trace/lib_tracedmp.c       2006-10-14 16:43:31.000000000 -0400
    51179 +++ ncurses-5.6/ncurses/trace/lib_tracedmp.c    2007-12-21 00:02:36.000000000 -0500
     60722+++ ncurses-5.6/ncurses/trace/lib_tracedmp.c    2008-06-18 06:49:44.000000000 -0400
    5118060723@@ -1,5 +1,5 @@
    5118160724 /****************************************************************************
     
    5130160844diff -Naur ncurses-5.6.orig/ncurses/trace/lib_tracemse.c ncurses-5.6/ncurses/trace/lib_tracemse.c
    5130260845--- ncurses-5.6.orig/ncurses/trace/lib_tracemse.c       2005-06-11 15:53:50.000000000 -0400
    51303 +++ ncurses-5.6/ncurses/trace/lib_tracemse.c    2007-12-21 00:02:36.000000000 -0500
     60846+++ ncurses-5.6/ncurses/trace/lib_tracemse.c    2008-06-18 06:49:51.000000000 -0400
    5130460847@@ -1,5 +1,5 @@
    5130560848 /****************************************************************************
    5130660849- * Copyright (c) 1998-2002,2005 Free Software Foundation, Inc.              *
    51307 + * Copyright (c) 1998-2005,2007 Free Software Foundation, Inc.              *
     60850+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    5130860851  *                                                                          *
    5130960852  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    5131460857 
    5131560858-MODULE_ID("$Id: lib_tracemse.c,v 1.12 2005/06/11 19:53:50 tom Exp $")
    51316 +MODULE_ID("$Id: lib_tracemse.c,v 1.13 2007/04/21 21:23:00 tom Exp $")
     60859+MODULE_ID("$Id: lib_tracemse.c,v 1.14 2008/05/31 17:20:25 tom Exp $")
    5131760860 
    5131860861 #ifdef TRACE
    5131960862 
    51320 +#define my_buffer _nc_globals.tracemse_buf
     60863+#define my_buffer sp->tracemse_buf
    5132160864+
    5132260865 NCURSES_EXPORT(char *)
    51323  _tracemouse(MEVENT const *ep)
     60866-_tracemouse(MEVENT const *ep)
     60867+_nc_tracemouse(SCREEN *sp, MEVENT const *ep)
    5132460868 {
    5132560869-    /*
     
    5134560889     SHOW(BUTTON1_RELEASED, "release-1");
    5134660890     SHOW(BUTTON1_PRESSED, "press-1");
    51347 @@ -115,10 +108,10 @@
     60891@@ -115,10 +108,16 @@
    5134860892 
    5134960893 #undef SHOW
     
    5135760901+    (void) strcat(my_buffer, "}");
    5135860902+    return (my_buffer);
     60903+}
     60904+
     60905+NCURSES_EXPORT(char *)
     60906+_tracemouse(MEVENT const *ep)
     60907+{
     60908+    return _nc_tracemouse(SP, ep);
    5135960909 }
    5136060910 
     
    5136260912diff -Naur ncurses-5.6.orig/ncurses/trace/trace_buf.c ncurses-5.6/ncurses/trace/trace_buf.c
    5136360913--- ncurses-5.6.orig/ncurses/trace/trace_buf.c  2003-03-15 16:21:36.000000000 -0500
    51364 +++ ncurses-5.6/ncurses/trace/trace_buf.c       2007-12-21 00:02:36.000000000 -0500
     60914+++ ncurses-5.6/ncurses/trace/trace_buf.c       2008-06-18 06:49:44.000000000 -0400
    5136560915@@ -1,5 +1,5 @@
    5136660916 /****************************************************************************
     
    5143760987diff -Naur ncurses-5.6.orig/ncurses/trace/trace_tries.c ncurses-5.6/ncurses/trace/trace_tries.c
    5143860988--- ncurses-5.6.orig/ncurses/trace/trace_tries.c        2001-10-20 18:42:51.000000000 -0400
    51439 +++ ncurses-5.6/ncurses/trace/trace_tries.c     2007-12-21 00:02:36.000000000 -0500
     60989+++ ncurses-5.6/ncurses/trace/trace_tries.c     2008-06-18 06:49:44.000000000 -0400
    5144060990@@ -1,5 +1,5 @@
    5144160991 /****************************************************************************
     
    5150261052diff -Naur ncurses-5.6.orig/ncurses/trace/varargs.c ncurses-5.6/ncurses/trace/varargs.c
    5150361053--- ncurses-5.6.orig/ncurses/trace/varargs.c    2003-05-24 17:10:28.000000000 -0400
    51504 +++ ncurses-5.6/ncurses/trace/varargs.c 2007-12-21 00:02:36.000000000 -0500
     61054+++ ncurses-5.6/ncurses/trace/varargs.c 2008-06-18 06:49:44.000000000 -0400
    5150561055@@ -1,5 +1,5 @@
    5150661056 /****************************************************************************
     
    5158361133diff -Naur ncurses-5.6.orig/ncurses/trace/visbuf.c ncurses-5.6/ncurses/trace/visbuf.c
    5158461134--- ncurses-5.6.orig/ncurses/trace/visbuf.c     2006-12-02 16:20:28.000000000 -0500
    51585 +++ ncurses-5.6/ncurses/trace/visbuf.c  2007-12-21 00:02:36.000000000 -0500
     61135+++ ncurses-5.6/ncurses/trace/visbuf.c  2008-06-18 06:49:44.000000000 -0400
    5158661136@@ -1,5 +1,5 @@
    5158761137 /****************************************************************************
     
    5166461214diff -Naur ncurses-5.6.orig/ncurses/tty/hardscroll.c ncurses-5.6/ncurses/tty/hardscroll.c
    5166561215--- ncurses-5.6.orig/ncurses/tty/hardscroll.c   2001-01-13 19:17:28.000000000 -0500
    51666 +++ ncurses-5.6/ncurses/tty/hardscroll.c        2007-12-21 00:02:36.000000000 -0500
     61216+++ ncurses-5.6/ncurses/tty/hardscroll.c        2008-06-18 06:49:44.000000000 -0400
    5166761217@@ -1,5 +1,5 @@
    5166861218 /****************************************************************************
     
    5177961329diff -Naur ncurses-5.6.orig/ncurses/tty/hashmap.c ncurses-5.6/ncurses/tty/hashmap.c
    5178061330--- ncurses-5.6.orig/ncurses/tty/hashmap.c      2006-03-11 14:33:49.000000000 -0500
    51781 +++ ncurses-5.6/ncurses/tty/hashmap.c   2007-12-21 00:02:36.000000000 -0500
     61331+++ ncurses-5.6/ncurses/tty/hashmap.c   2008-06-18 06:49:44.000000000 -0400
    5178261332@@ -1,5 +1,5 @@
    5178361333 /****************************************************************************
     
    5192561475diff -Naur ncurses-5.6.orig/ncurses/tty/lib_mvcur.c ncurses-5.6/ncurses/tty/lib_mvcur.c
    5192661476--- ncurses-5.6.orig/ncurses/tty/lib_mvcur.c    2006-11-25 17:31:59.000000000 -0500
    51927 +++ ncurses-5.6/ncurses/tty/lib_mvcur.c 2007-12-21 00:02:36.000000000 -0500
     61477+++ ncurses-5.6/ncurses/tty/lib_mvcur.c 2008-06-18 06:49:51.000000000 -0400
    5192861478@@ -1,5 +1,5 @@
    5192961479 /****************************************************************************
    5193061480- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    51931 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     61481+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    5193261482  *                                                                          *
    5193361483  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    5193861488 
    5193961489-MODULE_ID("$Id: lib_mvcur.c,v 1.107 2006/11/25 22:31:59 tom Exp $")
    51940 +MODULE_ID("$Id: lib_mvcur.c,v 1.110 2007/08/11 16:15:57 tom Exp $")
     61490+MODULE_ID("$Id: lib_mvcur.c,v 1.111 2008/05/24 14:36:54 Miroslav.Lichvar Exp $")
    5194161491 
    5194261492 #define WANT_CHAR(y, x)        SP->_newscr->_line[y].text[x]   /* desired state */
    5194361493 #define BAUDRATE       cur_term->_baudrate     /* bits per second */
    51944 @@ -959,6 +959,7 @@
     61494@@ -426,8 +426,11 @@
     61495     mvcur(-1, -1, screen_lines - 1, 0);
     61496 
     61497     /* set cursor to normal mode */
     61498-    if (SP->_cursor != -1)
     61499+    if (SP->_cursor != -1) {
     61500+       int cursor = SP->_cursor;
     61501        curs_set(1);
     61502+       SP->_cursor = cursor;
     61503+    }
     61504 
     61505     if (exit_ca_mode) {
     61506        TPUTS_TRACE("exit_ca_mode");
     61507@@ -959,6 +962,7 @@
    5194561508 
    5194661509 #include <tic.h>
     
    5195061513 NCURSES_EXPORT_VAR(const char *) _nc_progname = "mvcur";
    5195161514 
    51952 @@ -1017,7 +1018,7 @@
     61515@@ -1017,7 +1021,7 @@
    5195361516 int
    5195461517 main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
     
    5195961522     _nc_setupscreen(lines, columns, stdout, FALSE, 0);
    5196061523     baudrate();
    51961 @@ -1088,7 +1089,7 @@
     61524@@ -1088,7 +1092,7 @@
    5196261525            load_term();
    5196361526        } else if (sscanf(buf, "d %s", capname) == 1) {
     
    5196861531            if (np == NULL)
    5196961532                (void) printf("No such capability as \"%s\"\n", capname);
    51970 @@ -1116,7 +1117,7 @@
     61533@@ -1116,7 +1120,7 @@
    5197161534            }
    5197261535        } else if (buf[0] == 'i') {
     
    5197961542diff -Naur ncurses-5.6.orig/ncurses/tty/lib_tstp.c ncurses-5.6/ncurses/tty/lib_tstp.c
    5198061543--- ncurses-5.6.orig/ncurses/tty/lib_tstp.c     2006-04-01 14:31:34.000000000 -0500
    51981 +++ ncurses-5.6/ncurses/tty/lib_tstp.c  2007-12-21 00:02:36.000000000 -0500
     61544+++ ncurses-5.6/ncurses/tty/lib_tstp.c  2008-06-18 06:49:50.000000000 -0400
    5198261545@@ -1,5 +1,5 @@
    5198361546 /****************************************************************************
    5198461547- * Copyright (c) 1998-2002,2006 Free Software Foundation, Inc.              *
    51985 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     61548+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    5198661549  *                                                                          *
    5198761550  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    5199261555 
    5199361556-MODULE_ID("$Id: lib_tstp.c,v 1.32 2006/04/01 19:31:34 tom Exp $")
    51994 +MODULE_ID("$Id: lib_tstp.c,v 1.36 2007/04/21 19:51:29 tom Exp $")
     61557+MODULE_ID("$Id: lib_tstp.c,v 1.37 2008/05/03 16:24:56 tom Exp $")
    5199561558 
    5199661559 #if defined(SIGTSTP) && (HAVE_SIGACTION || HAVE_SIGVEC)
     
    5201261575            || sig == SIGQUIT)) {
    5201361576 #if HAVE_SIGACTION || HAVE_SIGVEC
    52014 @@ -277,7 +275,7 @@
     61577@@ -254,19 +252,17 @@
     61578        if (signal(sig, SIG_IGN) != SIG_ERR)
     61579 #endif
     61580        {
     61581-           SCREEN *scan = _nc_screen_chain;
     61582-           while (scan) {
     61583-               if (SP != 0
     61584-                   && SP->_ofp != 0
     61585-                   && isatty(fileno(SP->_ofp))) {
     61586-                   SP->_cleanup = TRUE;
     61587-                   SP->_outch = _nc_outch;
     61588+           SCREEN *scan;
     61589+           for (each_screen(scan)) {
     61590+               if (scan->_ofp != 0
     61591+                   && isatty(fileno(scan->_ofp))) {
     61592+                   scan->_cleanup = TRUE;
     61593+                   scan->_outch = _nc_outch;
     61594                }
     61595                set_term(scan);
     61596                endwin();
     61597                if (SP)
     61598                    SP->_endwin = FALSE;        /* in case we have an atexit! */
     61599-               scan = scan->_next_screen;
     61600            }
     61601        }
     61602     }
     61603@@ -277,7 +273,7 @@
    5201561604 static void
    5201661605 sigwinch(int sig GCC_UNUSED)
     
    5202161610 #endif /* USE_SIGWINCH */
    5202261611 
    52023 @@ -351,29 +349,27 @@
     61612@@ -351,29 +347,27 @@
    5202461613 NCURSES_EXPORT(void)
    5202561614 _nc_signal_handler(bool enable)
     
    5206261651                ignore_tstp = TRUE;
    5206361652            }
    52064 @@ -381,14 +377,14 @@
     61653@@ -381,14 +375,14 @@
    5206561654     }
    5206661655 #endif /* !USE_SIGTSTP */
     
    5208161670diff -Naur ncurses-5.6.orig/ncurses/tty/lib_twait.c ncurses-5.6/ncurses/tty/lib_twait.c
    5208261671--- ncurses-5.6.orig/ncurses/tty/lib_twait.c    2006-05-27 17:57:43.000000000 -0400
    52083 +++ ncurses-5.6/ncurses/tty/lib_twait.c 2007-12-21 00:02:36.000000000 -0500
     61672+++ ncurses-5.6/ncurses/tty/lib_twait.c 2008-06-18 06:49:51.000000000 -0400
    5208461673@@ -1,5 +1,5 @@
    5208561674 /****************************************************************************
    5208661675- * Copyright (c) 1998-2004,2006 Free Software Foundation, Inc.              *
    52087 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     61676+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    5208861677  *                                                                          *
    5208961678  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    5209761686 
    5209861687 /*
    52099 @@ -61,38 +62,42 @@
     61688@@ -61,38 +62,36 @@
    5210061689 # endif
    5210161690 #endif
    5210261691 
    5210361692-MODULE_ID("$Id: lib_twait.c,v 1.51 2006/05/27 21:57:43 tom Exp $")
    52104 +MODULE_ID("$Id: lib_twait.c,v 1.54 2007/08/11 16:32:48 tom Exp $")
    52105 +
    52106 +#if HAVE_GETTIMEOFDAY
    52107 +# define PRECISE_GETTIME 1
    52108 +# define TimeType struct timeval
    52109 +#else
    52110 +# define PRECISE_GETTIME 0
    52111 +# define TimeType time_t
    52112 +#endif
     61693+#undef CUR
     61694+
     61695+MODULE_ID("$Id: lib_twait.c,v 1.58 2008/05/24 15:08:01 tom Exp $")
    5211361696 
    5211461697 static long
     
    5215561738     TR(TRACE_IEVENT, ("%s time: %ld msec", first ? "get" : "elapsed", res));
    5215661739     return res;
    52157 @@ -147,7 +152,8 @@
     61740@@ -140,14 +139,16 @@
     61741  * descriptors.
     61742  */
     61743 NCURSES_EXPORT(int)
     61744-_nc_timed_wait(int mode,
     61745+_nc_timed_wait(SCREEN *sp,
     61746+              int mode,
     61747               int milliseconds,
     61748               int *timeleft
     61749               EVENTLIST_2nd(_nc_eventlist * evl))
    5215861750 {
    5215961751     int fd;
     
    5216561757 #ifdef NCURSES_WGETCH_EVENTS
    5216661758     int timeout_is_event = 0;
    52167 @@ -160,7 +166,7 @@
     61759@@ -160,7 +161,7 @@
    5216861760     struct pollfd *fds = fd_list;
    5216961761 #elif defined(__BEOS__)
     
    5217461766 
    5217561767     long starttime, returntime;
    52176 @@ -180,10 +186,10 @@
     61768@@ -180,10 +181,10 @@
    5217761769     }
    5217861770 #endif
     
    5218761779     count = 0;
    5218861780 
    52189 @@ -362,7 +368,7 @@
     61781@@ -201,12 +202,12 @@
     61782 #endif
     61783 
     61784     if (mode & 1) {
     61785-       fds[count].fd = SP->_ifd;
     61786+       fds[count].fd = sp->_ifd;
     61787        fds[count].events = POLLIN;
     61788        count++;
     61789     }
     61790     if ((mode & 2)
     61791-       && (fd = SP->_mouse_fd) >= 0) {
     61792+       && (fd = sp->_mouse_fd) >= 0) {
     61793        fds[count].fd = fd;
     61794        fds[count].events = POLLIN;
     61795        count++;
     61796@@ -309,11 +310,11 @@
     61797     FD_ZERO(&set);
     61798 
     61799     if (mode & 1) {
     61800-       FD_SET(SP->_ifd, &set);
     61801-       count = SP->_ifd + 1;
     61802+       FD_SET(sp->_ifd, &set);
     61803+       count = sp->_ifd + 1;
     61804     }
     61805     if ((mode & 2)
     61806-       && (fd = SP->_mouse_fd) >= 0) {
     61807+       && (fd = sp->_mouse_fd) >= 0) {
     61808        FD_SET(fd, &set);
     61809        count = max(fd, count) + 1;
     61810     }
     61811@@ -362,7 +363,7 @@
    5219061812 
    5219161813 #endif /* USE_FUNC_POLL, etc */
     
    5219661818     if (milliseconds >= 0)
    5219761819        milliseconds -= (returntime - starttime);
     61820@@ -426,11 +427,11 @@
     61821            result = 1;         /* redundant, but simple */
     61822 #elif HAVE_SELECT
     61823            if ((mode & 2)
     61824-               && (fd = SP->_mouse_fd) >= 0
     61825+               && (fd = sp->_mouse_fd) >= 0
     61826                && FD_ISSET(fd, &set))
     61827                result |= 2;
     61828            if ((mode & 1)
     61829-               && FD_ISSET(SP->_ifd, &set))
     61830+               && FD_ISSET(sp->_ifd, &set))
     61831                result |= 1;
     61832 #endif
     61833        } else
    5219861834diff -Naur ncurses-5.6.orig/ncurses/tty/lib_vidattr.c ncurses-5.6/ncurses/tty/lib_vidattr.c
    5219961835--- ncurses-5.6.orig/ncurses/tty/lib_vidattr.c  2006-01-21 18:39:40.000000000 -0500
    52200 +++ ncurses-5.6/ncurses/tty/lib_vidattr.c       2007-12-21 00:02:36.000000000 -0500
     61836+++ ncurses-5.6/ncurses/tty/lib_vidattr.c       2008-06-18 06:49:44.000000000 -0400
    5220161837@@ -1,5 +1,5 @@
    5220261838 /****************************************************************************
     
    5233261968diff -Naur ncurses-5.6.orig/ncurses/tty/tty_update.c ncurses-5.6/ncurses/tty/tty_update.c
    5233361969--- ncurses-5.6.orig/ncurses/tty/tty_update.c   2006-11-25 17:33:21.000000000 -0500
    52334 +++ ncurses-5.6/ncurses/tty/tty_update.c        2007-12-21 00:02:36.000000000 -0500
     61970+++ ncurses-5.6/ncurses/tty/tty_update.c        2008-06-18 06:49:50.000000000 -0400
    5233561971@@ -1,5 +1,5 @@
    5233661972 /****************************************************************************
    5233761973- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    52338 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     61974+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    5233961975  *                                                                          *
    5234061976  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    5234561981 
    5234661982-MODULE_ID("$Id: tty_update.c,v 1.238 2006/11/25 22:33:21 tom Exp $")
    52347 +MODULE_ID("$Id: tty_update.c,v 1.243 2007/10/13 20:03:32 tom Exp $")
     61983+MODULE_ID("$Id: tty_update.c,v 1.245 2008/05/03 22:43:04 tom Exp $")
    5234861984 
    5234961985 /*
     
    5238362019 #if USE_SIZECHANGE
    5238462020-    if (SP->_endwin || SP->_sig_winch) {
    52385 +    if (SP->_endwin || _nc_handle_sigwinch(FALSE)) {
     62021+    if (SP->_endwin || _nc_handle_sigwinch(SP)) {
    5238662022        /*
    5238762023         * This is a transparent extension:  XSI does not address it,
    5238862024         * and applications need not know that ncurses can do it.
     62025@@ -649,7 +654,7 @@
     62026         * (this can happen in an xterm, for example), and resize the
     62027         * ncurses data structures accordingly.
     62028         */
     62029-       _nc_update_screensize();
     62030+       _nc_update_screensize(SP);
     62031     }
     62032 #endif
     62033 
    5238962034@@ -666,7 +671,7 @@
    5239062035     }
     
    5243662081diff -Naur ncurses-5.6.orig/ncurses/widechar/lib_cchar.c ncurses-5.6/ncurses/widechar/lib_cchar.c
    5243762082--- ncurses-5.6.orig/ncurses/widechar/lib_cchar.c       2005-01-29 16:29:16.000000000 -0500
    52438 +++ ncurses-5.6/ncurses/widechar/lib_cchar.c    2007-12-21 00:02:36.000000000 -0500
     62083+++ ncurses-5.6/ncurses/widechar/lib_cchar.c    2008-06-18 06:49:44.000000000 -0400
    5243962084@@ -1,5 +1,5 @@
    5244062085 /****************************************************************************
     
    5246762112diff -Naur ncurses-5.6.orig/ncurses/widechar/lib_get_wch.c ncurses-5.6/ncurses/widechar/lib_get_wch.c
    5246862113--- ncurses-5.6.orig/ncurses/widechar/lib_get_wch.c     2006-06-03 13:27:57.000000000 -0400
    52469 +++ ncurses-5.6/ncurses/widechar/lib_get_wch.c  2007-12-21 00:02:36.000000000 -0500
     62114+++ ncurses-5.6/ncurses/widechar/lib_get_wch.c  2008-06-18 06:49:51.000000000 -0400
    5247062115@@ -1,5 +1,5 @@
    5247162116 /****************************************************************************
    5247262117- * Copyright (c) 2002-2005,2006 Free Software Foundation, Inc.              *
    52473 + * Copyright (c) 2002-2006,2007 Free Software Foundation, Inc.              *
     62118+ * Copyright (c) 2002-2007,2008 Free Software Foundation, Inc.              *
    5247462119  *                                                                          *
    5247562120  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    5248062125 
    5248162126-MODULE_ID("$Id: lib_get_wch.c,v 1.13 2006/06/03 17:27:57 tom Exp $")
    52482 +MODULE_ID("$Id: lib_get_wch.c,v 1.14 2007/05/12 19:03:16 tom Exp $")
     62127+MODULE_ID("$Id: lib_get_wch.c,v 1.16 2008/06/07 15:14:33 tom Exp $")
    5248362128 
    5248462129 #if HAVE_MBTOWC && HAVE_MBLEN
    5248562130 #define reset_mbytes(state) mblen(NULL, 0), mbtowc(NULL, NULL, 0)
    52486 @@ -77,7 +77,7 @@
     62131@@ -60,6 +60,7 @@
     62132 NCURSES_EXPORT(int)
     62133 wget_wch(WINDOW *win, wint_t *result)
     62134 {
     62135+    SCREEN *sp;
     62136     int code;
     62137     char buffer[(MB_LEN_MAX * 9) + 1]; /* allow some redundant shifts */
     62138     int status;
     62139@@ -76,44 +77,52 @@
     62140      * We can get a stream of single-byte characters and KEY_xxx codes from
    5248762141      * _nc_wgetch(), while we want to return a wide character or KEY_xxx code.
    5248862142      */
    52489      for (;;) {
     62143-    for (;;) {
    5249062144-       T(("reading %d of %d", count + 1, sizeof(buffer)));
    52491 +       T(("reading %d of %d", (int) count + 1, (int) sizeof(buffer)));
    52492         code = _nc_wgetch(win, &value, TRUE EVENTLIST_2nd((_nc_eventlist *) 0));
    52493         if (code == ERR) {
    52494             break;
     62145-       code = _nc_wgetch(win, &value, TRUE EVENTLIST_2nd((_nc_eventlist *) 0));
     62146-       if (code == ERR) {
     62147-           break;
     62148-       } else if (code == KEY_CODE_YES) {
     62149-           /*
     62150-            * If we were processing an incomplete multibyte character, return
     62151-            * an error since we have a KEY_xxx code which interrupts it.  For
     62152-            * some cases, we could improve this by writing a new version of
     62153-            * lib_getch.c(!), but it is not clear whether the improvement
     62154-            * would be worth the effort.
     62155-            */
     62156-           if (count != 0) {
     62157-               ungetch((int) value);
     62158+    _nc_lock_global(curses);
     62159+    sp = _nc_screen_of(win);
     62160+    if (sp != 0) {
     62161+       for (;;) {
     62162+           T(("reading %d of %d", (int) count + 1, (int) sizeof(buffer)));
     62163+           code = _nc_wgetch(win, &value, TRUE EVENTLIST_2nd((_nc_eventlist
     62164+                                                              *) 0));
     62165+           if (code == ERR) {
     62166+               break;
     62167+           } else if (code == KEY_CODE_YES) {
     62168+               /*
     62169+                * If we were processing an incomplete multibyte character,
     62170+                * return an error since we have a KEY_xxx code which
     62171+                * interrupts it.  For some cases, we could improve this by
     62172+                * writing a new version of lib_getch.c(!), but it is not clear
     62173+                * whether the improvement would be worth the effort.
     62174+                */
     62175+               if (count != 0) {
     62176+                   _nc_ungetch(sp, (int) value);
     62177+                   code = ERR;
     62178+               }
     62179+               break;
     62180+           } else if (count + 1 >= sizeof(buffer)) {
     62181+               _nc_ungetch(sp, (int) value);
     62182                code = ERR;
     62183-           }
     62184-           break;
     62185-       } else if (count + 1 >= sizeof(buffer)) {
     62186-           ungetch((int) value);
     62187-           code = ERR;
     62188-           break;
     62189-       } else {
     62190-           buffer[count++] = UChar(value);
     62191-           reset_mbytes(state);
     62192-           status = count_mbytes(buffer, count, state);
     62193-           if (status >= 0) {
     62194+               break;
     62195+           } else {
     62196+               buffer[count++] = UChar(value);
     62197                reset_mbytes(state);
     62198-               if (check_mbytes(wch, buffer, count, state) != status) {
     62199-                   code = ERR; /* the two calls should match */
     62200-                   ungetch((int) value);
     62201+               status = count_mbytes(buffer, count, state);
     62202+               if (status >= 0) {
     62203+                   reset_mbytes(state);
     62204+                   if (check_mbytes(wch, buffer, count, state) != status) {
     62205+                       code = ERR;     /* the two calls should match */
     62206+                       _nc_ungetch(sp, (int) value);
     62207+                   }
     62208+                   value = wch;
     62209+                   break;
     62210                }
     62211-               value = wch;
     62212-               break;
     62213            }
     62214        }
     62215+    } else {
     62216+       code = ERR;
     62217     }
     62218     *result = value;
     62219+    _nc_unlock_global(curses);
     62220     T(("result %#lo", value));
     62221     returnCode(code);
     62222 }
     62223diff -Naur ncurses-5.6.orig/ncurses/widechar/lib_get_wstr.c ncurses-5.6/ncurses/widechar/lib_get_wstr.c
     62224--- ncurses-5.6.orig/ncurses/widechar/lib_get_wstr.c    2004-10-16 17:55:36.000000000 -0400
     62225+++ ncurses-5.6/ncurses/widechar/lib_get_wstr.c 2008-06-18 06:49:51.000000000 -0400
     62226@@ -1,5 +1,5 @@
     62227 /****************************************************************************
     62228- * Copyright (c) 2002-2003,2004 Free Software Foundation, Inc.              *
     62229+ * Copyright (c) 2002-2004,2008 Free Software Foundation, Inc.              *
     62230  *                                                                          *
     62231  * Permission is hereby granted, free of charge, to any person obtaining a  *
     62232  * copy of this software and associated documentation files (the            *
     62233@@ -40,7 +40,7 @@
     62234 #include <curses.priv.h>
     62235 #include <term.h>
     62236 
     62237-MODULE_ID("$Id: lib_get_wstr.c,v 1.8 2004/10/16 21:55:36 tom Exp $")
     62238+MODULE_ID("$Id: lib_get_wstr.c,v 1.9 2008/06/07 14:50:11 tom Exp $")
     62239 
     62240 static int
     62241 wadd_wint(WINDOW *win, wint_t *src)
     62242@@ -86,6 +86,7 @@
     62243 NCURSES_EXPORT(int)
     62244 wgetn_wstr(WINDOW *win, wint_t *str, int maxlen)
     62245 {
     62246+    SCREEN *sp = _nc_screen_of(win);
     62247     TTY buf;
     62248     bool oldnl, oldecho, oldraw, oldcbreak;
     62249     wint_t erasec;
     62250@@ -102,10 +103,10 @@
     62251 
     62252     _nc_get_tty_mode(&buf);
     62253 
     62254-    oldnl = SP->_nl;
     62255-    oldecho = SP->_echo;
     62256-    oldraw = SP->_raw;
     62257-    oldcbreak = SP->_cbreak;
     62258+    oldnl = sp->_nl;
     62259+    oldecho = sp->_echo;
     62260+    oldraw = sp->_raw;
     62261+    oldcbreak = sp->_cbreak;
     62262     nl();
     62263     noecho();
     62264     noraw();
     62265@@ -209,10 +210,10 @@
     62266     /* Restore with a single I/O call, to fix minor asymmetry between
     62267      * raw/noraw, etc.
     62268      */
     62269-    SP->_nl = oldnl;
     62270-    SP->_echo = oldecho;
     62271-    SP->_raw = oldraw;
     62272-    SP->_cbreak = oldcbreak;
     62273+    sp->_nl = oldnl;
     62274+    sp->_echo = oldecho;
     62275+    sp->_raw = oldraw;
     62276+    sp->_cbreak = oldcbreak;
     62277 
     62278     (void) _nc_set_tty_mode(&buf);
     62279 
    5249562280diff -Naur ncurses-5.6.orig/ncurses/widechar/lib_in_wchnstr.c ncurses-5.6/ncurses/widechar/lib_in_wchnstr.c
    5249662281--- ncurses-5.6.orig/ncurses/widechar/lib_in_wchnstr.c  2004-05-15 20:12:30.000000000 -0400
    52497 +++ ncurses-5.6/ncurses/widechar/lib_in_wchnstr.c       2007-12-21 00:02:36.000000000 -0500
     62282+++ ncurses-5.6/ncurses/widechar/lib_in_wchnstr.c       2008-06-18 06:49:44.000000000 -0400
    5249862283@@ -1,5 +1,5 @@
    5249962284 /****************************************************************************
     
    5255762342diff -Naur ncurses-5.6.orig/ncurses/widechar/lib_key_name.c ncurses-5.6/ncurses/widechar/lib_key_name.c
    5255862343--- ncurses-5.6.orig/ncurses/widechar/lib_key_name.c    1969-12-31 19:00:00.000000000 -0500
    52559 +++ ncurses-5.6/ncurses/widechar/lib_key_name.c 2007-12-21 00:02:36.000000000 -0500
     62344+++ ncurses-5.6/ncurses/widechar/lib_key_name.c 2008-06-18 06:49:44.000000000 -0400
    5256062345@@ -0,0 +1,62 @@
    5256162346+/****************************************************************************
     
    5262362408diff -Naur ncurses-5.6.orig/ncurses/widechar/lib_unget_wch.c ncurses-5.6/ncurses/widechar/lib_unget_wch.c
    5262462409--- ncurses-5.6.orig/ncurses/widechar/lib_unget_wch.c   2004-12-04 20:21:31.000000000 -0500
    52625 +++ ncurses-5.6/ncurses/widechar/lib_unget_wch.c        2007-12-21 00:02:36.000000000 -0500
     62410+++ ncurses-5.6/ncurses/widechar/lib_unget_wch.c        2008-06-18 06:49:51.000000000 -0400
    5262662411@@ -1,5 +1,5 @@
    5262762412 /****************************************************************************
    5262862413- * Copyright (c) 2002-2003,2004 Free Software Foundation, Inc.              *
    52629 + * Copyright (c) 2002-2004,2007 Free Software Foundation, Inc.              *
     62414+ * Copyright (c) 2002-2007,2008 Free Software Foundation, Inc.              *
    5263062415  *                                                                          *
    5263162416  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    5263662421 
    5263762422-MODULE_ID("$Id: lib_unget_wch.c,v 1.7 2004/12/05 01:21:31 tom Exp $")
    52638 +MODULE_ID("$Id: lib_unget_wch.c,v 1.9 2007/11/25 00:57:00 tom Exp $")
     62423+MODULE_ID("$Id: lib_unget_wch.c,v 1.10 2008/06/07 14:50:37 tom Exp $")
    5263962424 
    5264062425-#ifdef linux
     
    5266962454 NCURSES_EXPORT(int)
    5267062455 unget_wch(const wchar_t wch)
     62456@@ -82,7 +86,7 @@
     62457            wcrtomb(string, wch, &state);
     62458 
     62459            for (n = (int) (length - 1); n >= 0; --n) {
     62460-               if (ungetch(string[n]) != OK) {
     62461+               if (_nc_ungetch(SP, string[n]) != OK) {
     62462                    result = ERR;
     62463                    break;
     62464                }
    5267162465diff -Naur ncurses-5.6.orig/ncurses/widechar/lib_vid_attr.c ncurses-5.6/ncurses/widechar/lib_vid_attr.c
    5267262466--- ncurses-5.6.orig/ncurses/widechar/lib_vid_attr.c    2006-11-25 19:26:00.000000000 -0500
    52673 +++ ncurses-5.6/ncurses/widechar/lib_vid_attr.c 2007-12-21 00:02:36.000000000 -0500
     62467+++ ncurses-5.6/ncurses/widechar/lib_vid_attr.c 2008-06-18 06:49:44.000000000 -0400
    5267462468@@ -1,5 +1,5 @@
    5267562469 /****************************************************************************
     
    5269862492diff -Naur ncurses-5.6.orig/ncurses/widechar/lib_wunctrl.c ncurses-5.6/ncurses/widechar/lib_wunctrl.c
    5269962493--- ncurses-5.6.orig/ncurses/widechar/lib_wunctrl.c     2005-04-16 14:10:44.000000000 -0400
    52700 +++ ncurses-5.6/ncurses/widechar/lib_wunctrl.c  2007-12-21 00:02:36.000000000 -0500
     62494+++ ncurses-5.6/ncurses/widechar/lib_wunctrl.c  2008-06-18 06:49:44.000000000 -0400
    5270162495@@ -1,5 +1,5 @@
    5270262496 /****************************************************************************
     
    5273862532diff -Naur ncurses-5.6.orig/ncurses-5.6-20071201-patch.sh ncurses-5.6/ncurses-5.6-20071201-patch.sh
    5273962533--- ncurses-5.6.orig/ncurses-5.6-20071201-patch.sh      1969-12-31 19:00:00.000000000 -0500
    52740 +++ ncurses-5.6/ncurses-5.6-20071201-patch.sh   2007-12-21 00:02:35.000000000 -0500
     62534+++ ncurses-5.6/ncurses-5.6-20071201-patch.sh   2008-06-18 06:49:44.000000000 -0400
    5274162535@@ -0,0 +1,60468 @@
    5274262536+#!/bin/sh
     
    113210123004diff -Naur ncurses-5.6.orig/panel/Makefile.in ncurses-5.6/panel/Makefile.in
    113211123005--- ncurses-5.6.orig/panel/Makefile.in  2006-10-14 16:40:36.000000000 -0400
    113212 +++ ncurses-5.6/panel/Makefile.in       2007-12-21 00:02:36.000000000 -0500
     123006+++ ncurses-5.6/panel/Makefile.in       2008-06-18 06:49:44.000000000 -0400
    113213123007@@ -1,6 +1,6 @@
    113214123008-# $Id: Makefile.in,v 1.47 2006/10/14 20:40:36 tom Exp $
     
    113258123052diff -Naur ncurses-5.6.orig/panel/headers ncurses-5.6/panel/headers
    113259123053--- ncurses-5.6.orig/panel/headers      1998-02-11 07:14:01.000000000 -0500
    113260 +++ ncurses-5.6/panel/headers   2007-12-21 00:02:36.000000000 -0500
     123054+++ ncurses-5.6/panel/headers   2008-06-18 06:49:44.000000000 -0400
    113261123055@@ -1,5 +1,5 @@
    113262123056 ##############################################################################
     
    113273123067diff -Naur ncurses-5.6.orig/panel/modules ncurses-5.6/panel/modules
    113274123068--- ncurses-5.6.orig/panel/modules      1998-02-11 07:14:02.000000000 -0500
    113275 +++ ncurses-5.6/panel/modules   2007-12-21 00:02:36.000000000 -0500
     123069+++ ncurses-5.6/panel/modules   2008-06-18 06:49:44.000000000 -0400
    113276123070@@ -1,5 +1,6 @@
    113277123071+# $Id: modules,v 1.9 2006/12/24 00:53:17 tom Exp $
     
    113298123092diff -Naur ncurses-5.6.orig/progs/Makefile.in ncurses-5.6/progs/Makefile.in
    113299123093--- ncurses-5.6.orig/progs/Makefile.in  2006-12-17 10:55:48.000000000 -0500
    113300 +++ ncurses-5.6/progs/Makefile.in       2007-12-21 00:02:36.000000000 -0500
     123094+++ ncurses-5.6/progs/Makefile.in       2008-06-18 06:49:44.000000000 -0400
    113301123095@@ -1,6 +1,6 @@
    113302123096-# $Id: Makefile.in,v 1.70 2006/12/17 15:55:48 tom Exp $
     
    113393123187diff -Naur ncurses-5.6.orig/progs/clear.c ncurses-5.6/progs/clear.c
    113394123188--- ncurses-5.6.orig/progs/clear.c      2006-05-20 13:47:47.000000000 -0400
    113395 +++ ncurses-5.6/progs/clear.c   2007-12-21 00:02:36.000000000 -0500
     123189+++ ncurses-5.6/progs/clear.c   2008-06-18 06:49:44.000000000 -0400
    113396123190@@ -1,5 +1,5 @@
    113397123191 /****************************************************************************
     
    113415123209diff -Naur ncurses-5.6.orig/progs/dump_entry.c ncurses-5.6/progs/dump_entry.c
    113416123210--- ncurses-5.6.orig/progs/dump_entry.c 2006-09-30 16:18:15.000000000 -0400
    113417 +++ ncurses-5.6/progs/dump_entry.c      2007-12-21 00:02:36.000000000 -0500
     123211+++ ncurses-5.6/progs/dump_entry.c      2008-06-18 06:49:50.000000000 -0400
    113418123212@@ -1,5 +1,5 @@
    113419123213 /****************************************************************************
    113420123214- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    113421 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     123215+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    113422123216  *                                                                          *
    113423123217  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    113428123222 
    113429123223-MODULE_ID("$Id: dump_entry.c,v 1.79 2006/09/30 20:18:15 tom Exp $")
    113430 +MODULE_ID("$Id: dump_entry.c,v 1.81 2007/08/25 20:05:35 tom Exp $")
     123224+MODULE_ID("$Id: dump_entry.c,v 1.82 2008/04/19 22:27:04 tom Exp $")
    113431123225 
    113432123226 #define INDENT                 8
     
    113453123247        break;
    113454123248     }
    113455 @@ -788,11 +791,11 @@
     123249@@ -536,6 +539,10 @@
     123250            params = FALSE;
     123251            percent = FALSE;
     123252            break;
     123253+       case ' ':
     123254+           strncpy_DYN(&tmpbuf, "\\s", 2);
     123255+           ++src;
     123256+           continue;
     123257        default:
     123258            percent = FALSE;
     123259            break;
     123260@@ -788,11 +795,11 @@
    113456123261      * Much more work should be done on this to support dumping termcaps.
    113457123262      */
     
    113467123272            WRAP_CONCAT;
    113468123273        }
    113469 @@ -1223,7 +1226,7 @@
     123274@@ -1223,7 +1230,7 @@
    113470123275        bool fix_needed = FALSE;
    113471123276 
     
    113476123281                fix_needed = TRUE;
    113477123282                break;
    113478 @@ -1235,7 +1238,7 @@
     123283@@ -1235,7 +1242,7 @@
    113479123284        if (fix_needed) {
    113480123285            memset(mapped, 0, sizeof(mapped));
     
    113487123292diff -Naur ncurses-5.6.orig/progs/infocmp.c ncurses-5.6/progs/infocmp.c
    113488123293--- ncurses-5.6.orig/progs/infocmp.c    2006-08-19 17:20:37.000000000 -0400
    113489 +++ ncurses-5.6/progs/infocmp.c 2007-12-21 00:02:36.000000000 -0500
     123294+++ ncurses-5.6/progs/infocmp.c 2008-06-18 06:49:46.000000000 -0400
    113490123295@@ -1,5 +1,5 @@
    113491123296 /****************************************************************************
    113492123297- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    113493 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     123298+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    113494123299  *                                                                          *
    113495123300  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    113507123312 
    113508123313-MODULE_ID("$Id: infocmp.c,v 1.85 2006/08/19 21:20:37 tom Exp $")
    113509 +MODULE_ID("$Id: infocmp.c,v 1.94 2007/11/17 23:34:26 tom Exp $")
     123314+MODULE_ID("$Id: infocmp.c,v 1.96 2008/01/19 21:08:07 tom Exp $")
    113510123315 
    113511123316 #define L_CURL "{"
     
    113574123379                          string_variable(ExtStrname(term, n, strnames)), buf);
    113575123380        }
    113576 @@ -1237,7 +1239,8 @@
     123381@@ -1213,6 +1215,8 @@
     123382                  NUM_STRINGS(term) - STRCOUNT);
     123383 
     123384     (void) printf("#endif /* NCURSES_XNAMES */\n");
     123385+#else
     123386+    (void) term;
     123387 #endif /* NCURSES_XNAMES */
     123388     (void) printf("\t%s\n", R_CURL);
     123389 }
     123390@@ -1237,7 +1241,8 @@
    113577123391 
    113578123392     if ((terminal = getenv("TERM")) == 0) {
     
    113584123398     }
    113585123399     return terminal;
    113586 @@ -1252,10 +1255,15 @@
     123400@@ -1252,10 +1257,15 @@
    113587123401 int
    113588123402 main(int argc, char *argv[])
     
    113602123416     bool formatted = FALSE;
    113603123417     bool filecompare = FALSE;
    113604 @@ -1270,9 +1278,16 @@
     123418@@ -1270,9 +1280,16 @@
    113605123419     use_extended_names(FALSE);
    113606123420 #endif
     
    113620123434        case '1':
    113621123435            mwidth = 0;
    113622 @@ -1373,7 +1388,6 @@
     123436@@ -1373,7 +1390,6 @@
    113623123437 
    113624123438        case 'r':
     
    113628123442 
    113629123443        case 's':
    113630 @@ -1387,7 +1401,8 @@
     123444@@ -1387,7 +1403,8 @@
    113631123445                sortmode = S_TERMCAP;
    113632123446            else {
     
    113638123452            }
    113639123453            break;
    113640 @@ -1435,6 +1450,18 @@
     123454@@ -1435,6 +1452,18 @@
    113641123455        }
    113642123456     }
    113643123457 
    113644 +    maxterms = (argc + 1 - optind);
     123458+    maxterms = (argc + 2 - optind);
    113645123459+    tfile = typeMalloc(path, maxterms);
    113646123460+    tname = typeCalloc(char *, maxterms);
     
    113657123471     if (sortmode == S_DEFAULT)
    113658123472        sortmode = S_TERMINFO;
    113659 @@ -1458,53 +1485,56 @@
     123473@@ -1458,53 +1487,56 @@
    113660123474        /* grab the entries */
    113661123475        termcount = 0;
     
    113753123567 
    113754123568 #if NCURSES_XNAMES
    113755 @@ -1542,7 +1572,8 @@
     123569@@ -1542,7 +1574,8 @@
    113756123570            case C_DEFAULT:
    113757123571                if (itrace)
     
    113763123577                (void) printf("#\tReconstructed via infocmp from file: %s\n",
    113764123578                              tfile[0]);
    113765 @@ -1553,12 +1584,12 @@
     123579@@ -1553,12 +1586,12 @@
    113766123580                           NULL);
    113767123581                len = show_entry();
     
    113778123592                compare_entry(compare_predicate, &entries->tterm, quiet);
    113779123593                break;
    113780 @@ -1566,7 +1597,8 @@
     123594@@ -1566,7 +1599,8 @@
    113781123595            case C_COMMON:
    113782123596                if (itrace)
     
    113788123602                compare_entry(compare_predicate, &entries->tterm, quiet);
    113789123603                break;
    113790 @@ -1574,14 +1606,15 @@
     123604@@ -1574,14 +1608,15 @@
    113791123605            case C_NAND:
    113792123606                if (itrace)
     
    113806123620                           suppress_untranslatable,
    113807123621                           limited,
    113808 @@ -1592,7 +1625,7 @@
     123622@@ -1592,7 +1627,7 @@
    113809123623                                          || outform == F_TCONVERR));
    113810123624                len = show_entry();
     
    113815123629            }
    113816123630        }
    113817 @@ -1606,7 +1639,11 @@
     123631@@ -1606,7 +1641,11 @@
    113818123632     else
    113819123633        file_comparison(argc - optind, argv + optind);
     
    113829123643diff -Naur ncurses-5.6.orig/progs/modules ncurses-5.6/progs/modules
    113830123644--- ncurses-5.6.orig/progs/modules      2005-09-24 20:54:22.000000000 -0400
    113831 +++ ncurses-5.6/progs/modules   2007-12-21 00:02:36.000000000 -0500
     123645+++ ncurses-5.6/progs/modules   2008-06-18 06:49:44.000000000 -0400
    113832123646@@ -1,7 +1,7 @@
    113833123647-# $Id: modules,v 1.12 2005/09/25 00:54:22 tom Exp $
     
    113857123671diff -Naur ncurses-5.6.orig/progs/progs.priv.h ncurses-5.6/progs/progs.priv.h
    113858123672--- ncurses-5.6.orig/progs/progs.priv.h 2006-11-25 19:28:01.000000000 -0500
    113859 +++ ncurses-5.6/progs/progs.priv.h      2007-12-21 00:02:36.000000000 -0500
     123673+++ ncurses-5.6/progs/progs.priv.h      2008-06-18 06:49:44.000000000 -0400
    113860123674@@ -1,5 +1,5 @@
    113861123675 /****************************************************************************
     
    113893123707diff -Naur ncurses-5.6.orig/progs/tic.c ncurses-5.6/progs/tic.c
    113894123708--- ncurses-5.6.orig/progs/tic.c        2006-12-02 17:13:17.000000000 -0500
    113895 +++ ncurses-5.6/progs/tic.c     2007-12-21 00:02:36.000000000 -0500
     123709+++ ncurses-5.6/progs/tic.c     2008-06-18 06:49:44.000000000 -0400
    113896123710@@ -1,5 +1,5 @@
    113897123711 /****************************************************************************
     
    114004123818diff -Naur ncurses-5.6.orig/progs/toe.c ncurses-5.6/progs/toe.c
    114005123819--- ncurses-5.6.orig/progs/toe.c        2006-08-19 14:18:09.000000000 -0400
    114006 +++ ncurses-5.6/progs/toe.c     2007-12-21 00:02:36.000000000 -0500
     123820+++ ncurses-5.6/progs/toe.c     2008-06-18 06:49:45.000000000 -0400
    114007123821@@ -1,5 +1,5 @@
    114008123822 /****************************************************************************
    114009123823- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    114010 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     123824+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    114011123825  *                                                                          *
    114012123826  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    114023123837 
    114024123838-MODULE_ID("$Id: toe.c,v 1.41 2006/08/19 18:18:09 tom Exp $")
    114025 +MODULE_ID("$Id: toe.c,v 1.46 2007/10/13 22:26:38 tom Exp $")
     123839+MODULE_ID("$Id: toe.c,v 1.48 2008/01/05 20:41:26 tom Exp $")
    114026123840 
    114027123841 #define isDotname(name) (!strcmp(name, ".") || !strcmp(name, ".."))
     
    114037123851 #endif
    114038123852 
    114039 @@ -326,7 +323,7 @@
     123853@@ -319,6 +316,7 @@
     123854     bool direct_dependencies = FALSE;
     123855     bool invert_dependencies = FALSE;
     123856     bool header = FALSE;
     123857+    char *report_file = 0;
     123858     int i;
     123859     int code;
     123860     int this_opt, last_opt = '?';
     123861@@ -326,7 +324,7 @@
    114040123862 
    114041123863     _nc_progname = _nc_rootname(argv[0]);
    114042123864 
    114043123865-    while ((this_opt = getopt(argc, argv, "0123456789ahuvUV")) != EOF) {
    114044 +    while ((this_opt = getopt(argc, argv, "0123456789ahuvUV")) != -1) {
     123866+    while ((this_opt = getopt(argc, argv, "0123456789ahu:vU:V")) != -1) {
    114045123867        /* handle optional parameter */
    114046123868        if (isdigit(this_opt)) {
    114047123869            switch (last_opt) {
     123870@@ -352,12 +350,14 @@
     123871            break;
     123872        case 'u':
     123873            direct_dependencies = TRUE;
     123874+           report_file = optarg;
     123875            break;
     123876        case 'v':
     123877            v_opt = 1;
     123878            break;
     123879        case 'U':
     123880            invert_dependencies = TRUE;
     123881+           report_file = optarg;
     123882            break;
     123883        case 'V':
     123884            puts(curses_version());
     123885@@ -368,15 +368,15 @@
     123886     }
     123887     set_trace_level(v_opt);
     123888 
     123889-    if (direct_dependencies || invert_dependencies) {
     123890-       if (freopen(argv[optind], "r", stdin) == 0) {
     123891+    if (report_file != 0) {
     123892+       if (freopen(report_file, "r", stdin) == 0) {
     123893            (void) fflush(stdout);
     123894-           fprintf(stderr, "%s: can't open %s\n", _nc_progname, argv[optind]);
     123895+           fprintf(stderr, "%s: can't open %s\n", _nc_progname, report_file);
     123896            ExitProgram(EXIT_FAILURE);
     123897        }
     123898 
     123899        /* parse entries out of the source file */
     123900-       _nc_set_source(argv[optind]);
     123901+       _nc_set_source(report_file);
     123902        _nc_read_entry_source(stdin, 0, FALSE, FALSE, NULLHOOK);
     123903     }
     123904 
    114048123905diff -Naur ncurses-5.6.orig/progs/tput.c ncurses-5.6/progs/tput.c
    114049123906--- ncurses-5.6.orig/progs/tput.c       2006-11-25 19:27:47.000000000 -0500
    114050 +++ ncurses-5.6/progs/tput.c    2007-12-21 00:02:36.000000000 -0500
     123907+++ ncurses-5.6/progs/tput.c    2008-06-18 06:49:44.000000000 -0400
    114051123908@@ -1,5 +1,5 @@
    114052123909 /****************************************************************************
     
    114092123949diff -Naur ncurses-5.6.orig/progs/tset.c ncurses-5.6/progs/tset.c
    114093123950--- ncurses-5.6.orig/progs/tset.c       2006-09-16 13:51:10.000000000 -0400
    114094 +++ ncurses-5.6/progs/tset.c    2007-12-21 00:02:36.000000000 -0500
     123951+++ ncurses-5.6/progs/tset.c    2008-06-18 06:49:44.000000000 -0400
    114095123952@@ -1,5 +1,5 @@
    114096123953 /****************************************************************************
     
    127250137107diff -Naur ncurses-5.6.orig/test/Makefile.in ncurses-5.6/test/Makefile.in
    127251137108--- ncurses-5.6.orig/test/Makefile.in   2006-10-21 18:56:03.000000000 -0400
    127252 +++ ncurses-5.6/test/Makefile.in        2007-12-21 00:02:36.000000000 -0500
     137109+++ ncurses-5.6/test/Makefile.in        2008-06-18 06:49:49.000000000 -0400
    127253137110@@ -1,6 +1,6 @@
    127254137111-# $Id: Makefile.in,v 1.92 2006/10/21 22:56:03 tom Exp $
    127255 +# $Id: Makefile.in,v 1.97 2007/04/28 15:28:28 tom Exp $
     137112+# $Id: Makefile.in,v 1.98 2008/04/12 20:44:47 tom Exp $
    127256137113 ##############################################################################
    127257137114-# Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.                #
    127258 +# Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.                #
     137115+# Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.                #
    127259137116 #                                                                            #
    127260137117 # Permission is hereby granted, free of charge, to any person obtaining a    #
    127261137118 # copy of this software and associated documentation files (the "Software"), #
    127262 @@ -77,7 +77,7 @@
     137119@@ -75,9 +75,10 @@
     137120 LOCAL_LIBDIR   = @top_builddir@/lib
     137121 LOCAL_LIBS     = @TEST_DEPS@
    127263137122 MATH_LIB       = @MATH_LIB@
     137123+TEST_LIBS      = @TEST_LIBS@
    127264137124 
    127265137125 LD             = @LD@
     
    127269137129 LDFLAGS                = @LD_MODEL@ @LOCAL_LDFLAGS@ @LDFLAGS@
    127270137130 
    127271 @@ -87,16 +87,18 @@
     137131@@ -87,16 +88,18 @@
    127272137132 LDFLAGS_PROFILE        = $(LDFLAGS) $(CFLAGS_PROFILE)
    127273137133 LDFLAGS_SHARED = $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
     
    127277137137 # use these for linking with all of the libraries
    127278137138-LIBS_DEFAULT   = @TEST_ARGS@ @LIBS@ $(MATH_LIB)
    127279 +LIBS_DEFAULT   = $(TEST_ARGS) @LIBS@ $(MATH_LIB)
     137139+LIBS_DEFAULT   = $(TEST_ARGS) @LIBS@ $(TEST_LIBS) $(MATH_LIB)
    127280137140 LDFLAGS_DEFAULT        = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_DEFAULT)
    127281137141 
    127282137142 # use these for linking with the (n)curses library
    127283137143-LIBS_CURSES    = `echo "@TEST_ARGS@ @LIBS@" | sed -e 's/-lform.*-lpanel[^ ]*//'` $(MATH_LIB)
    127284 +LIBS_CURSES    = `echo "$(TEST_ARGS) @LIBS@" | sed -e 's/-lform.*-lpanel[^ ]*//'` $(MATH_LIB)
     137144+LIBS_CURSES    = `echo "$(TEST_ARGS) @LIBS@" | sed -e 's/-lform.*-lpanel[^ ]*//'` $(TEST_LIBS) $(MATH_LIB)
    127285137145 LDFLAGS_CURSES = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_CURSES)
    127286137146 
    127287137147 # use these for linking with the tinfo library if we have it, or curses library if not
    127288137148-LIBS_TINFO     = @TINFO_ARGS@ @LIBS@ $(MATH_LIB)
    127289 +LIBS_TINFO     = @LDFLAGS_STATIC@ @TINFO_ARGS@ @LDFLAGS_SHARED@ @LIBS@ $(MATH_LIB)
     137149+LIBS_TINFO     = @LDFLAGS_STATIC@ @TINFO_ARGS@ @LDFLAGS_SHARED@ @LIBS@ $(TEST_LIBS) $(MATH_LIB)
    127290137150 LDFLAGS_TINFO  = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_TINFO)
    127291137151 
     
    127293137153diff -Naur ncurses-5.6.orig/test/README ncurses-5.6/test/README
    127294137154--- ncurses-5.6.orig/test/README        2006-11-04 20:10:56.000000000 -0500
    127295 +++ ncurses-5.6/test/README     2007-12-21 00:02:36.000000000 -0500
     137155+++ ncurses-5.6/test/README     2008-06-18 06:49:49.000000000 -0400
    127296137156@@ -1,5 +1,5 @@
    127297137157 -------------------------------------------------------------------------------
     
    127306137166 -------------------------------------------------------------------------------
    127307137167--- $Id: README,v 1.28 2006/11/05 01:10:56 tom Exp $
    127308 +-- $Id: README,v 1.35 2007/08/18 23:12:24 tom Exp $
     137168+-- $Id: README,v 1.36 2008/04/05 16:24:14 tom Exp $
    127309137169 -------------------------------------------------------------------------------
    127310137170 
     
    127332137192 acs_map                                test: gdc ins_wide inserts knight movewindow ncurses newdemo testcurs
    127333137193-add_wch                                test: ncurses
     137194-add_wchnstr                    test: ncurses
    127334137195+add_wch                                test: demo_panels ncurses
    127335  add_wchnstr                    test: ncurses
     137196+add_wchnstr                    -
    127336137197 add_wchstr                     test: view
    127337137198-addch                          test: blue bs ditto echochar hashtest ncurses testaddch view worm
    127338 +addch                          test: blue bs ditto echochar hashtest ncurses savescreen testaddch view worm
     137199+addch                          test: blue bs echochar hashtest ncurses savescreen testaddch view worm
    127339137200 addchnstr                      -
    127340137201 addchstr                       -
    127341137202 addnstr                                -
    127342  addnwstr                       -
     137203-addnwstr                       -
    127343137204-addstr                         test: blue bs cardfile gdc hanoi lrtest ncurses
    127344 +addstr                         test: blue bs cardfile gdc hanoi lrtest ncurses savescreen
     137205+addnwstr                       test: ncurses
     137206+addstr                         test: blue bs cardfile ditto gdc hanoi lrtest ncurses savescreen
    127345137207 addwstr                                test: ncurses
    127346137208 assume_default_colors          test: ncurses
     
    127397137259-derwin                         test: cardfile chgat demo_forms demo_menus ins_wide inserts movewindow ncurses
    127398137260-doupdate                       test: cardfile demo_menus edit_field ins_wide inserts knight movewindow ncurses redraw
    127399 +delscreen                      test: dots_mvcur
     137261+delscreen                      test: ditto dots_mvcur
    127400137262+delwin                         test: cardfile chgat demo_forms demo_menus demo_panels edit_field inch_wide inchs ins_wide inserts movewindow ncurses newdemo redraw test_get_wstr test_getstr test_instr test_inwstr test_opaque testcurs
    127401137263+derwin                         test: cardfile chgat demo_forms demo_menus inch_wide inchs ins_wide inserts movewindow ncurses test_get_wstr test_getstr test_instr test_inwstr test_opaque
     
    127430137292-getmaxx                                test: chgat movewindow ncurses newdemo redraw testcurs
    127431137293-getmaxy                                test: chgat demo_forms movewindow ncurses newdemo redraw testcurs
    127432 +getch                          test: background blue bs chgat color_set demo_altkeys ditto filter firework firstlast foldkeys hanoi hashtest lrtest rain savescreen tclock testaddch testcurs view worm xmas
     137294+getch                          test: background blue bs chgat color_set demo_altkeys ditto filter firework firstlast foldkeys hanoi hashtest lrtest savescreen tclock testaddch testcurs view xmas
    127433137295+getcurx                                test: bs chgat demo_altkeys demo_defkey demo_panels foldkeys movewindow ncurses redraw savescreen test_get_wstr test_getstr testcurs
    127434137296+getcury                                test: bs chgat demo_altkeys demo_defkey demo_panels edit_field foldkeys movewindow ncurses redraw savescreen testcurs
     
    127496137358+is_idlok                       test: test_opaque
    127497137359+is_immedok                     test: test_opaque
    127498 +is_keypad                      test: ncurses test_opaque
     137360+is_keypad                      test: test_opaque
    127499137361+is_leaveok                     test: test_opaque
    127500137362 is_linetouched                 lib: form
    127501137363+is_nodelay                     test: test_opaque
    127502137364+is_notimeout                   test: test_opaque
    127503 +is_scrollok                    test: ncurses test_opaque
     137365+is_scrollok                    test: test_opaque
    127504137366+is_syncok                      test: test_opaque
    127505137367 is_term_resized                        -
     
    127526137388-move                           test: blue bs cardfile chgat demo_altkeys demo_menus echochar foldkeys gdc hanoi hashtest ins_wide inserts knight lrtest movewindow ncurses testscanw view worm xmas
    127527137389+mousemask                      test: bs demo_forms demo_menus knight movewindow ncurses
    127528 +move                           test: blue bs cardfile chgat demo_altkeys demo_menus echochar foldkeys gdc hanoi hashtest inch_wide inchs ins_wide inserts knight lrtest movewindow ncurses savescreen test_get_wstr test_getstr test_instr test_inwstr testscanw view worm xmas
     137390+move                           test: blue bs cardfile chgat demo_altkeys demo_menus echochar foldkeys gdc hanoi hashtest inch_wide inchs ins_wide inserts knight lrtest movewindow ncurses savescreen test_get_wstr test_getstr test_instr test_inwstr testscanw view xmas
    127529137391 mvadd_wch                      test: ncurses
    127530137392 mvadd_wchnstr                  -
     
    127642137504 mvwvline_set                   -
    127643137505-napms                          test: dots echochar firework gdc hanoi lrtest ncurses newdemo railroad rain tclock testcurs view worm xmas progs: tset
    127644 +napms                          test: demo_panels dots dots_mvcur echochar firework gdc hanoi lrtest ncurses railroad rain tclock test_opaque testcurs view worm xmas progs: tset
     137506+napms                          test: demo_panels ditto dots dots_mvcur echochar firework gdc hanoi lrtest ncurses railroad rain tclock test_opaque testcurs view worm xmas progs: tset
    127645137507 newpad                         test: edit_field ncurses testcurs
    127646137508 newscr                         lib: ncurses
     
    127653137515-nodelay                                test: firework gdc lrtest ncurses newdemo rain tclock view xmas
    127654137516-noecho                         test: background bs cardfile chgat color_set demo_altkeys demo_defkey demo_forms demo_keyok demo_menus ditto firework firstlast foldkeys gdc hanoi hashtest ins_wide inserts knight lrtest movewindow ncurses rain redraw tclock testcurs view worm xmas
    127655 +nodelay                                test: firework gdc lrtest ncurses newdemo rain tclock test_opaque view xmas
     137517+nodelay                                test: ditto firework gdc lrtest ncurses newdemo rain tclock test_opaque view worm xmas
    127656137518+noecho                         test: background bs cardfile chgat color_set demo_altkeys demo_defkey demo_forms demo_keyok demo_menus demo_panels ditto firework firstlast foldkeys gdc hanoi hashtest inch_wide inchs ins_wide inserts knight lrtest movewindow ncurses rain redraw savescreen tclock test_get_wstr test_getstr test_instr test_inwstr test_opaque testcurs view worm xmas
    127657137519 nofilter                       -
     
    127684137546 redrawwin                      test: redraw
    127685137547-refresh                                test: blue bs demo_defkey demo_forms demo_keyok demo_menus ditto echochar filter firstlast gdc hanoi hashtest lrtest movewindow ncurses tclock testcurs view worm xmas
    127686 +refresh                                test: blue bs demo_defkey demo_forms demo_keyok demo_menus demo_panels ditto echochar filter firstlast gdc hanoi hashtest lrtest movewindow ncurses savescreen tclock testcurs view worm xmas
     137548+refresh                                test: blue bs demo_defkey demo_forms demo_keyok demo_menus demo_panels ditto echochar filter firstlast gdc hanoi hashtest lrtest movewindow ncurses savescreen tclock testcurs view xmas
    127687137549 reset_prog_mode                        test: filter ncurses
    127688137550-reset_shell_mode               test: bs filter
     
    127691137553 resize_term                    test: view
    127692137554 resizeterm                     lib: ncurses
    127693 @@ -484,16 +495,16 @@
     137555@@ -484,16 +495,18 @@
    127694137556 ripoffline                     test: demo_menus ncurses
    127695137557 savetty                                -
     
    127709137571+scrollok                       test: demo_altkeys demo_defkey demo_keyok demo_panels ditto foldkeys hashtest knight ncurses redraw test_opaque testcurs testscanw view
    127710137572 set_curterm                    lib: ncurses
    127711  set_term                       test: ditto
     137573-set_term                       test: ditto
    127712137574-setcchar                       test: ins_wide ncurses view
     137575+set_escdelay                   -
     137576+set_tabsize                    -
     137577+set_term                       lib: ncurses
    127713137578+setcchar                       test: demo_panels ins_wide ncurses view
    127714137579 setscrreg                      test: view
    127715137580 setupterm                      test: dots progs: clear tput tset
    127716137581 slk_attr                       -
    127717 @@ -515,14 +526,14 @@
     137582@@ -507,22 +520,22 @@
     137583 slk_color                      test: ncurses
     137584 slk_init                       test: ncurses
     137585 slk_label                      test: ncurses
     137586-slk_noutrefresh                        test: ncurses
     137587+slk_noutrefresh                        -
     137588 slk_refresh                    test: ncurses
     137589 slk_restore                    test: ncurses
     137590 slk_set                                test: ncurses
     137591-slk_touch                      test: ncurses
     137592+slk_touch                      lib: ncurses
    127718137593 slk_wset                       test: ncurses
    127719  standend                       test: blue gdc ncurses worm
     137594-standend                       test: blue gdc ncurses worm
     137595+standend                       test: blue gdc ncurses
    127720137596 standout                       test: blue ncurses
    127721137597-start_color                    test: background blue bs cardfile chgat color_set demo_forms demo_menus echochar filter firework gdc hanoi ins_wide inserts knight ncurses newdemo rain tclock testaddch testcurs view worm xmas
     
    127725137601-strnames                       test: foldkeys progs: dump_entry infocmp tic
    127726137602+start_color                    test: background blue bs cardfile chgat color_set demo_forms demo_menus demo_panels echochar filter firework gdc hanoi ins_wide inserts knight ncurses newdemo rain savescreen tclock testaddch testcurs view worm xmas
    127727 +stdscr                         test: bs chgat demo_altkeys demo_forms demo_menus demo_panels ditto filter firework foldkeys gdc hanoi hashtest inch_wide inchs ins_wide inserts keynames knight lrtest movewindow ncurses rain redraw savescreen tclock test_get_wstr test_getstr test_instr test_inwstr test_opaque testcurs testscanw view xmas
     137603+stdscr                         test: bs chgat demo_altkeys demo_forms demo_menus demo_panels ditto filter firework foldkeys gdc hanoi hashtest inch_wide inchs ins_wide inserts keynames knight lrtest movewindow ncurses rain redraw savescreen tclock test_get_wstr test_getstr test_instr test_inwstr test_opaque testcurs testscanw view worm xmas
    127728137604+strcodes                       test: test_arrays progs: dump_entry
    127729137605+strfnames                      test: test_arrays progs: dump_entry
     
    127736137612 termattrs                      test: ncurses testcurs
    127737137613 termname                       test: testcurs
    127738 @@ -534,11 +545,11 @@
     137614@@ -534,11 +547,11 @@
    127739137615 tigetflag                      progs: tput
    127740137616 tigetnum                       test: ncurses progs: tput
     
    127752137628 ttytype                                lib: ncurses
    127753137629 typeahead                      test: testcurs
    127754 @@ -561,58 +572,60 @@
     137630@@ -551,6 +564,8 @@
     137631 use_env                                progs: tput
     137632 use_extended_names             progs: infocmp tic
     137633 use_legacy_coding              -
     137634+use_screen                     test: ditto
     137635+use_window                     test: rain worm
     137636 vid_attr                       -
     137637 vid_puts                       -
     137638 vidattr                                lib: ncurses
     137639@@ -561,58 +576,60 @@
    127755137640 vw_scanw                       -
    127756137641 vwprintw                       test: movewindow
     
    127761137646 wadd_wchstr                    -
    127762137647-waddch                         test: demo_forms firstlast knight ncurses
    127763 +waddch                         test: demo_forms demo_panels firstlast inch_wide inchs knight ncurses test_get_wstr test_getstr test_instr test_inwstr test_opaque
     137648+waddch                         test: demo_forms demo_panels firstlast inch_wide inchs knight ncurses test_get_wstr test_getstr test_instr test_inwstr test_opaque worm
    127764137649 waddchnstr                     lib: ncurses
    127765137650 waddchstr                      -
     
    127811137696-wgetnstr                       test: ncurses
    127812137697-wgetstr                                -
    127813 +wgetch                         test: cardfile chgat demo_defkey demo_keyok demo_menus demo_panels edit_field gdc inserts knight movewindow ncurses newdemo redraw test_opaque testcurs
     137698+wgetch                         test: cardfile chgat demo_defkey demo_keyok demo_menus demo_panels edit_field gdc inserts knight movewindow ncurses newdemo rain redraw test_opaque testcurs worm
    127814137699+wgetn_wstr                     test: ncurses test_get_wstr
    127815137700+wgetnstr                       test: ncurses test_getstr
     
    127838137723 wins_wch                       test: ins_wide
    127839137724 wins_wstr                      test: ins_wide
    127840 @@ -621,42 +634,42 @@
     137725@@ -621,42 +638,42 @@
    127841137726 winsertln                      test: testcurs
    127842137727 winsnstr                       test: inserts
     
    127851137736+winwstr                                test: test_inwstr
    127852137737+wmouse_trafo                   lib: form
    127853 +wmove                          test: chgat demo_altkeys demo_defkey demo_keyok demo_menus demo_panels firstlast foldkeys inch_wide inchs ins_wide inserts knight movewindow ncurses newdemo redraw test_get_wstr test_getstr test_instr test_inwstr test_opaque testcurs
     137738+wmove                          test: chgat demo_altkeys demo_defkey demo_keyok demo_menus demo_panels firstlast foldkeys inch_wide inchs ins_wide inserts knight movewindow ncurses newdemo redraw test_get_wstr test_getstr test_instr test_inwstr test_opaque testcurs worm
    127854137739+wnoutrefresh                   test: demo_menus edit_field inch_wide inchs ins_wide inserts knight movewindow ncurses redraw test_get_wstr test_getstr test_instr test_inwstr test_opaque
    127855137740+wprintw                                test: chgat demo_defkey demo_forms demo_keyok demo_menus demo_panels edit_field inch_wide inchs ins_wide inserts knight movewindow ncurses test_get_wstr test_getstr test_instr test_inwstr test_opaque testcurs
    127856137741 wredrawln                      test: redraw
    127857137742-wrefresh                       test: chgat demo_forms demo_keyok demo_menus edit_field firstlast knight lrtest movewindow ncurses newdemo redraw tclock testcurs view xmas
    127858 +wrefresh                       test: chgat demo_forms demo_keyok demo_menus demo_panels edit_field firstlast knight lrtest movewindow ncurses newdemo redraw savescreen tclock testcurs view xmas
     137743+wrefresh                       test: chgat demo_forms demo_keyok demo_menus demo_panels edit_field firstlast knight lrtest movewindow ncurses newdemo redraw savescreen tclock testcurs view worm xmas
    127859137744 wresize                                test: cardfile ncurses
    127860137745 wscanw                         test: testcurs
     
    127909137794diff -Naur ncurses-5.6.orig/test/aclocal.m4 ncurses-5.6/test/aclocal.m4
    127910137795--- ncurses-5.6.orig/test/aclocal.m4    2006-12-02 19:10:15.000000000 -0500
    127911 +++ ncurses-5.6/test/aclocal.m4 2007-12-21 00:02:36.000000000 -0500
     137796+++ ncurses-5.6/test/aclocal.m4 2008-06-18 06:49:47.000000000 -0400
     137797@@ -1,5 +1,5 @@
     137798 dnl***************************************************************************
     137799-dnl Copyright (c) 2003-2005,2006 Free Software Foundation, Inc.              *
     137800+dnl Copyright (c) 2003-2007,2008 Free Software Foundation, Inc.              *
     137801 dnl                                                                          *
     137802 dnl Permission is hereby granted, free of charge, to any person obtaining a  *
     137803 dnl copy of this software and associated documentation files (the            *
    127912137804@@ -26,7 +26,7 @@
    127913137805 dnl authorization.                                                           *
     
    127915137807 dnl
    127916137808-dnl $Id: aclocal.m4,v 1.17 2006/12/03 00:10:15 tom Exp $
    127917 +dnl $Id: aclocal.m4,v 1.19 2007/06/09 20:01:31 tom Exp $
     137809+dnl $Id: aclocal.m4,v 1.22 2008/02/09 18:22:17 tom Exp $
    127918137810 dnl
    127919137811 dnl Author: Thomas E. Dickey
    127920137812 dnl
    127921 @@ -230,6 +230,12 @@
     137813@@ -122,42 +122,119 @@
     137814 
     137815 ])dnl
     137816 dnl ---------------------------------------------------------------------------
     137817-dnl CF_ADD_INCDIR version: 4 updated: 2002/12/21 14:25:52
     137818+dnl CF_ADD_INCDIR version: 9 updated: 2008/02/09 13:15:34
     137819 dnl -------------
     137820 dnl Add an include-directory to $CPPFLAGS.  Don't add /usr/include, since it's
     137821 dnl redundant.  We don't normally need to add -I/usr/local/include for gcc,
     137822 dnl but old versions (and some misinstalled ones) need that.  To make things
     137823-dnl worse, gcc 3.x gives error messages if -I/usr/local/include is added to
     137824+dnl worse, gcc 3.x may give error messages if -I/usr/local/include is added to
     137825 dnl the include-path).
     137826 AC_DEFUN([CF_ADD_INCDIR],
     137827 [
     137828-for cf_add_incdir in $1
     137829-do
     137830-       while true
     137831+if test -n "$1" ; then
     137832+  for cf_add_incdir in $1
     137833+  do
     137834+       while test $cf_add_incdir != /usr/include
     137835        do
     137836-               case $cf_add_incdir in
     137837-               /usr/include) # (vi
     137838-                       ;;
     137839-               /usr/local/include) # (vi
     137840+         if test -d $cf_add_incdir
     137841+         then
     137842+               cf_have_incdir=no
     137843+               if test -n "$CFLAGS$CPPFLAGS" ; then
     137844+                 # a loop is needed to ensure we can add subdirs of existing dirs
     137845+                 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
     137846+                       if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
     137847+                         cf_have_incdir=yes; break
     137848+                       fi
     137849+                 done
     137850+               fi
     137851+
     137852+               if test "$cf_have_incdir" = no ; then
     137853+          if test "$cf_add_incdir" = /usr/local/include ; then
     137854                        if test "$GCC" = yes
     137855                        then
     137856-                               cf_save_CPPFLAGS="$CPPFLAGS"
     137857-                               CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     137858-                               AC_TRY_COMPILE([#include <stdio.h>],
     137859-                                               [printf("Hello")],
     137860-                                               [],
     137861-                                               [CPPFLAGS="$cf_save_CPPFLAGS"])
     137862+                         cf_save_CPPFLAGS=$CPPFLAGS
     137863+                         CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     137864+                         AC_TRY_COMPILE([#include <stdio.h>],
     137865+                                 [printf("Hello")],
     137866+                                 [],
     137867+                                 [cf_have_incdir=yes])
     137868+                         CPPFLAGS=$cf_save_CPPFLAGS
     137869                        fi
     137870-                       ;;
     137871-               *) # (vi
     137872-                       CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     137873-                       ;;
     137874-               esac
     137875-               cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
     137876-               test "$cf_top_incdir" = "$cf_add_incdir" && break
     137877-               cf_add_incdir="$cf_top_incdir"
     137878+                 fi
     137879+               fi
     137880+
     137881+               if test "$cf_have_incdir" = no ; then
     137882+                 CF_VERBOSE(adding $cf_add_incdir to include-path)
     137883+                 ifelse($2,,CPPFLAGS,$2)="-I$cf_add_incdir $ifelse($2,,CPPFLAGS,[$]$2)"
     137884+
     137885+          cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
     137886+          test "$cf_top_incdir" = "$cf_add_incdir" && break
     137887+          cf_add_incdir="$cf_top_incdir"
     137888+               else
     137889+                 break
     137890+               fi
     137891+         fi
     137892        done
     137893-done
     137894+  done
     137895+fi
     137896+])dnl
     137897+dnl ---------------------------------------------------------------------------
     137898+dnl CF_ADD_LIBDIR version: 6 updated: 2008/02/09 13:15:34
     137899+dnl -------------
     137900+dnl    Adds to the library-path
     137901+dnl
     137902+dnl    Some machines have trouble with multiple -L options.
     137903+dnl
     137904+dnl $1 is the (list of) directory(s) to add
     137905+dnl $2 is the optional name of the variable to update (default LDFLAGS)
     137906+dnl
     137907+AC_DEFUN([CF_ADD_LIBDIR],
     137908+[
     137909+if test -n "$1" ; then
     137910+  for cf_add_libdir in $1
     137911+  do
     137912+    if test $cf_add_libdir = /usr/lib ; then
     137913+      :
     137914+    elif test -d $cf_add_libdir
     137915+    then
     137916+      cf_have_libdir=no
     137917+      if test -n "$LDFLAGS$LIBS" ; then
     137918+        # a loop is needed to ensure we can add subdirs of existing dirs
     137919+        for cf_test_libdir in $LDFLAGS $LIBS ; do
     137920+          if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
     137921+            cf_have_libdir=yes; break
     137922+          fi
     137923+        done
     137924+      fi
     137925+      if test "$cf_have_libdir" = no ; then
     137926+        CF_VERBOSE(adding $cf_add_libdir to library-path)
     137927+        ifelse($2,,LDFLAGS,$2)="-L$cf_add_libdir $ifelse($2,,LDFLAGS,[$]$2)"
     137928+      fi
     137929+    fi
     137930+  done
     137931+fi
     137932+])dnl
     137933+dnl ---------------------------------------------------------------------------
     137934+dnl CF_ADD_SUBDIR_PATH version: 2 updated: 2007/07/29 10:12:59
     137935+dnl ------------------
     137936+dnl Append to a search-list for a nonstandard header/lib-file
     137937+dnl    $1 = the variable to return as result
     137938+dnl    $2 = the package name
     137939+dnl    $3 = the subdirectory, e.g., bin, include or lib
     137940+dnl $4 = the directory under which we will test for subdirectories
     137941+dnl $5 = a directory that we do not want $4 to match
     137942+AC_DEFUN([CF_ADD_SUBDIR_PATH],
     137943+[
     137944+test "$4" != "$5" && \
     137945+test -d "$4" && \
     137946+ifelse([$5],NONE,,[(test $5 = NONE || test -d $5) &&]) {
     137947+       test -n "$verbose" && echo "    ... testing for $3-directories under $4"
     137948+       test -d $4/$3 &&          $1="[$]$1 $4/$3"
     137949+       test -d $4/$3/$2 &&       $1="[$]$1 $4/$3/$2"
     137950+       test -d $4/$3/$2/$3 &&    $1="[$]$1 $4/$3/$2/$3"
     137951+       test -d $4/$2/$3 &&       $1="[$]$1 $4/$2/$3"
     137952+       test -d $4/$2/$3/$2 &&    $1="[$]$1 $4/$2/$3/$2"
     137953+}
     137954 ])dnl
     137955 dnl ---------------------------------------------------------------------------
     137956 dnl CF_ANSI_CC_CHECK version: 9 updated: 2001/12/30 17:53:34
     137957@@ -230,6 +307,12 @@
    127922137958 fi
    127923137959 ])dnl
     
    127932137968 dnl -------------
    127933137969 dnl Allow user to enable a normally-off option.
    127934 @@ -537,6 +543,43 @@
     137970@@ -383,6 +466,60 @@
     137971 CF_TERM_HEADER
     137972 ])dnl
     137973 dnl ---------------------------------------------------------------------------
     137974+dnl CF_CURSES_FUNCS version: 13 updated: 2007/04/28 09:15:55
     137975+dnl ---------------
     137976+dnl Curses-functions are a little complicated, since a lot of them are macros.
     137977+AC_DEFUN([CF_CURSES_FUNCS],
     137978+[
     137979+AC_REQUIRE([CF_CURSES_CPPFLAGS])dnl
     137980+AC_REQUIRE([CF_XOPEN_CURSES])
     137981+AC_REQUIRE([CF_CURSES_TERM_H])
     137982+for cf_func in $1
     137983+do
     137984+       CF_UPPER(cf_tr_func,$cf_func)
     137985+       AC_MSG_CHECKING(for ${cf_func})
     137986+       CF_MSG_LOG(${cf_func})
     137987+       AC_CACHE_VAL(cf_cv_func_$cf_func,[
     137988+               eval cf_result='$ac_cv_func_'$cf_func
     137989+               if test ".$cf_result" != ".no"; then
     137990+                       AC_TRY_LINK([
     137991+#ifdef HAVE_XCURSES
     137992+#include <xcurses.h>
     137993+char * XCursesProgramName = "test";
     137994+#else
     137995+#include <${cf_cv_ncurses_header-curses.h}>
     137996+#if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
     137997+#include <ncursesw/term.h>
     137998+#else
     137999+#if defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
     138000+#include <ncurses/term.h>
     138001+#else
     138002+#ifdef HAVE_TERM_H
     138003+#include <term.h>
     138004+#endif
     138005+#endif
     138006+#endif
     138007+#endif],
     138008+                       [
     138009+#ifndef ${cf_func}
     138010+long foo = (long)(&${cf_func});
     138011+${cf_cv_main_return-return}(foo == 0);
     138012+#endif
     138013+                       ],
     138014+                       [cf_result=yes],
     138015+                       [cf_result=no])
     138016+               fi
     138017+               eval 'cf_cv_func_'$cf_func'=$cf_result'
     138018+       ])
     138019+       # use the computed/retrieved cache-value:
     138020+       eval 'cf_result=$cf_cv_func_'$cf_func
     138021+       AC_MSG_RESULT($cf_result)
     138022+       if test $cf_result != no; then
     138023+               AC_DEFINE_UNQUOTED(HAVE_${cf_tr_func})
     138024+       fi
     138025+done
     138026+])dnl
     138027+dnl ---------------------------------------------------------------------------
     138028 dnl CF_CURSES_HEADER version: 1 updated: 2005/12/31 13:28:25
     138029 dnl ----------------
     138030 dnl Find a "curses" header file, e.g,. "curses.h", or one of the more common
     138031@@ -412,7 +549,7 @@
     138032 AC_CHECK_HEADERS($cf_cv_ncurses_header)
     138033 ])dnl
     138034 dnl ---------------------------------------------------------------------------
     138035-dnl CF_CURSES_LIBS version: 24 updated: 2006/02/04 19:44:43
     138036+dnl CF_CURSES_LIBS version: 26 updated: 2007/07/29 10:32:40
     138037 dnl --------------
     138038 dnl Look for the curses libraries.  Older curses implementations may require
     138039 dnl termcap/termlib to be linked as well.  Call CF_CURSES_CPPFLAGS first.
     138040@@ -421,97 +558,139 @@
     138041 AC_REQUIRE([CF_CURSES_CPPFLAGS])dnl
     138042 AC_MSG_CHECKING(if we have identified curses libraries)
     138043 AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
     138044-       [initscr(); tgoto("?", 0,0)],
     138045-       cf_result=yes,
     138046-       cf_result=no)
     138047+    [initscr(); tgoto("?", 0,0)],
     138048+    cf_result=yes,
     138049+    cf_result=no)
     138050 AC_MSG_RESULT($cf_result)
     138051 
     138052 if test "$cf_result" = no ; then
     138053 case $host_os in #(vi
     138054 freebsd*) #(vi
     138055-       AC_CHECK_LIB(mytinfo,tgoto,[LIBS="-lmytinfo $LIBS"])
     138056-       ;;
     138057+    AC_CHECK_LIB(mytinfo,tgoto,[LIBS="-lmytinfo $LIBS"])
     138058+    ;;
     138059 hpux10.*) #(vi
     138060-       AC_CHECK_LIB(cur_colr,initscr,[
     138061-               LIBS="-lcur_colr $LIBS"
     138062-               ac_cv_func_initscr=yes
     138063-               ],[
     138064-       AC_CHECK_LIB(Hcurses,initscr,[
     138065-               # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
     138066-               LIBS="-lHcurses $LIBS"
     138067-               CPPFLAGS="-D__HP_CURSES -D_HP_CURSES $CPPFLAGS"
     138068-               ac_cv_func_initscr=yes
     138069-               ])])
     138070-       ;;
     138071+    AC_CHECK_LIB(cur_colr,initscr,[
     138072+        LIBS="-lcur_colr $LIBS"
     138073+        ac_cv_func_initscr=yes
     138074+        ],[
     138075+    AC_CHECK_LIB(Hcurses,initscr,[
     138076+        # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
     138077+        LIBS="-lHcurses $LIBS"
     138078+        CPPFLAGS="-D__HP_CURSES -D_HP_CURSES $CPPFLAGS"
     138079+        ac_cv_func_initscr=yes
     138080+        ])])
     138081+    ;;
     138082 linux*) # Suse Linux does not follow /usr/lib convention
     138083-       LIBS="$LIBS -L/lib"
     138084-       ;;
     138085+    CF_ADD_LIBDIR(/lib)
     138086+    ;;
     138087 sunos3*|sunos4*)
     138088-       test -d /usr/5lib && \
     138089-       LIBS="$LIBS -L/usr/5lib -lcurses -ltermcap"
     138090-       ac_cv_func_initscr=yes
     138091-       ;;
     138092+    if test -d /usr/5lib ; then
     138093+      CF_ADD_LIBDIR(/usr/5lib)
     138094+      LIBS="$LIBS -lcurses -ltermcap"
     138095+    fi
     138096+    ac_cv_func_initscr=yes
     138097+    ;;
     138098 esac
     138099 
     138100 if test ".$ac_cv_func_initscr" != .yes ; then
     138101-       cf_save_LIBS="$LIBS"
     138102-       cf_term_lib=""
     138103-       cf_curs_lib=""
     138104-
     138105-       if test ".${cf_cv_ncurses_version-no}" != .no
     138106-       then
     138107-               cf_check_list="ncurses curses cursesX"
     138108-       else
     138109-               cf_check_list="cursesX curses ncurses"
     138110-       fi
     138111-
     138112-       # Check for library containing tgoto.  Do this before curses library
     138113-       # because it may be needed to link the test-case for initscr.
     138114-       AC_CHECK_FUNC(tgoto,[cf_term_lib=predefined],[
     138115-               for cf_term_lib in $cf_check_list termcap termlib unknown
     138116-               do
     138117-                       AC_CHECK_LIB($cf_term_lib,tgoto,[break])
     138118-               done
     138119-       ])
     138120-
     138121-       # Check for library containing initscr
     138122-       test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
     138123-       for cf_curs_lib in $cf_check_list xcurses jcurses unknown
     138124-       do
     138125-               AC_CHECK_LIB($cf_curs_lib,initscr,[break])
     138126-       done
     138127-       test $cf_curs_lib = unknown && AC_ERROR(no curses library found)
     138128-
     138129-       LIBS="-l$cf_curs_lib $cf_save_LIBS"
     138130-       if test "$cf_term_lib" = unknown ; then
     138131-               AC_MSG_CHECKING(if we can link with $cf_curs_lib library)
     138132-               AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
     138133-                       [initscr()],
     138134-                       [cf_result=yes],
     138135-                       [cf_result=no])
     138136-               AC_MSG_RESULT($cf_result)
     138137-               test $cf_result = no && AC_ERROR(Cannot link curses library)
     138138-       elif test "$cf_curs_lib" = "$cf_term_lib" ; then
     138139-               :
     138140-       elif test "$cf_term_lib" != predefined ; then
     138141-               AC_MSG_CHECKING(if we need both $cf_curs_lib and $cf_term_lib libraries)
     138142-               AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
     138143-                       [initscr(); tgoto((char *)0, 0, 0);],
     138144-                       [cf_result=no],
     138145-                       [
     138146-                       LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
     138147-                       AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
     138148-                               [initscr()],
     138149-                               [cf_result=yes],
     138150-                               [cf_result=error])
     138151-                       ])
     138152-               AC_MSG_RESULT($cf_result)
     138153-       fi
     138154+    cf_save_LIBS="$LIBS"
     138155+    cf_term_lib=""
     138156+    cf_curs_lib=""
     138157+
     138158+    if test ".${cf_cv_ncurses_version-no}" != .no
     138159+    then
     138160+        cf_check_list="ncurses curses cursesX"
     138161+    else
     138162+        cf_check_list="cursesX curses ncurses"
     138163+    fi
     138164+
     138165+    # Check for library containing tgoto.  Do this before curses library
     138166+    # because it may be needed to link the test-case for initscr.
     138167+    AC_CHECK_FUNC(tgoto,[cf_term_lib=predefined],[
     138168+        for cf_term_lib in $cf_check_list termcap termlib unknown
     138169+        do
     138170+            AC_CHECK_LIB($cf_term_lib,tgoto,[break])
     138171+        done
     138172+    ])
     138173+
     138174+    # Check for library containing initscr
     138175+    test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
     138176+    for cf_curs_lib in $cf_check_list xcurses jcurses unknown
     138177+    do
     138178+        AC_CHECK_LIB($cf_curs_lib,initscr,[break])
     138179+    done
     138180+    test $cf_curs_lib = unknown && AC_ERROR(no curses library found)
     138181+
     138182+    LIBS="-l$cf_curs_lib $cf_save_LIBS"
     138183+    if test "$cf_term_lib" = unknown ; then
     138184+        AC_MSG_CHECKING(if we can link with $cf_curs_lib library)
     138185+        AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
     138186+            [initscr()],
     138187+            [cf_result=yes],
     138188+            [cf_result=no])
     138189+        AC_MSG_RESULT($cf_result)
     138190+        test $cf_result = no && AC_ERROR(Cannot link curses library)
     138191+    elif test "$cf_curs_lib" = "$cf_term_lib" ; then
     138192+        :
     138193+    elif test "$cf_term_lib" != predefined ; then
     138194+        AC_MSG_CHECKING(if we need both $cf_curs_lib and $cf_term_lib libraries)
     138195+        AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
     138196+            [initscr(); tgoto((char *)0, 0, 0);],
     138197+            [cf_result=no],
     138198+            [
     138199+            LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
     138200+            AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
     138201+                [initscr()],
     138202+                [cf_result=yes],
     138203+                [cf_result=error])
     138204+            ])
     138205+        AC_MSG_RESULT($cf_result)
     138206+    fi
     138207 fi
     138208 fi
     138209 
     138210 ])dnl
     138211 dnl ---------------------------------------------------------------------------
     138212+dnl CF_CURSES_TERM_H version: 6 updated: 2003/11/06 19:59:57
     138213+dnl ----------------
     138214+dnl SVr4 curses should have term.h as well (where it puts the definitions of
     138215+dnl the low-level interface).  This may not be true in old/broken implementations,
     138216+dnl as well as in misconfigured systems (e.g., gcc configured for Solaris 2.4
     138217+dnl running with Solaris 2.5.1).
     138218+AC_DEFUN([CF_CURSES_TERM_H],
     138219+[
     138220+AC_CACHE_CHECK(for term.h, cf_cv_term_header,[
     138221+
     138222+AC_REQUIRE([CF_CURSES_CPPFLAGS])dnl
     138223+# If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
     138224+# for <term.h> if we do not find the variant.
     138225+for cf_header in \
     138226+       `echo ${cf_cv_ncurses_header-curses.h} | sed -e 's%/.*%/%'`term.h \
     138227+       term.h
     138228+do
     138229+       AC_TRY_COMPILE([
     138230+#include <${cf_cv_ncurses_header-curses.h}>
     138231+#include <${cf_header}>],
     138232+       [WINDOW *x],
     138233+       [cf_cv_term_header=$cf_header
     138234+        break],
     138235+       [cf_cv_term_header=no])
     138236+done
     138237+])
     138238+
     138239+case $cf_cv_term_header in #(vi
     138240+term.h) #(vi
     138241+       AC_DEFINE(HAVE_TERM_H)
     138242+       ;;
     138243+ncurses/term.h)
     138244+       AC_DEFINE(HAVE_NCURSES_TERM_H)
     138245+       ;;
     138246+ncursesw/term.h)
     138247+       AC_DEFINE(HAVE_NCURSESW_TERM_H)
     138248+       ;;
     138249+esac
     138250+])dnl
     138251+dnl ---------------------------------------------------------------------------
     138252 dnl CF_CURSES_WACS_MAP version: 3 updated: 2003/05/17 22:19:02
     138253 dnl ------------------
     138254 dnl Check for likely values of wacs_map[]:
     138255@@ -537,6 +716,43 @@
    127935138256 dnl "dirname" is not portable, so we fake it with a shell script.
    127936138257 AC_DEFUN([CF_DIRNAME],[$1=`echo $2 | sed -e 's%/[[^/]]*$%%'`])dnl
     
    127976138297 dnl ------------------
    127977138298 dnl Configure-option to enable gcc warnings
    127978 @@ -606,7 +649,7 @@
     138299@@ -606,7 +822,7 @@
    127979138300 ])
    127980138301 ])dnl
     
    127985138306 dnl Solaris has a data item 'curses_version', which confuses AC_CHECK_FUNCS.
    127986138307 dnl It's a character string "SVR4", not documented.
    127987 @@ -619,7 +662,7 @@
     138308@@ -619,7 +835,7 @@
    127988138309 {
    127989138310        char temp[1024];
     
    127994138315 ,[cf_cv_func_curses_version=yes]
    127995138316 ,[cf_cv_func_curses_version=no]
    127996 @@ -1155,7 +1198,7 @@
     138317@@ -628,7 +844,7 @@
     138318 test "$cf_cv_func_curses_version" = yes && AC_DEFINE(HAVE_CURSES_VERSION)
     138319 ])
     138320 dnl ---------------------------------------------------------------------------
     138321-dnl CF_GCC_ATTRIBUTES version: 10 updated: 2005/05/28 13:16:28
     138322+dnl CF_GCC_ATTRIBUTES version: 11 updated: 2007/07/29 09:55:12
     138323 dnl -----------------
     138324 dnl Test for availability of useful gcc __attribute__ directives to quiet
     138325 dnl compiler warnings.  Though useful, not all are supported -- and contrary
     138326@@ -655,7 +871,7 @@
     138327 then
     138328        AC_CHECKING([for $CC __attribute__ directives])
     138329 cat > conftest.$ac_ext <<EOF
     138330-#line __oline__ "configure"
     138331+#line __oline__ "${as_me-configure}"
     138332 #include "confdefs.h"
     138333 #include "conftest.h"
     138334 #include "conftest.i"
     138335@@ -717,7 +933,7 @@
     138336 fi
     138337 ])dnl
     138338 dnl ---------------------------------------------------------------------------
     138339-dnl CF_GCC_WARNINGS version: 20 updated: 2005/08/06 18:37:29
     138340+dnl CF_GCC_WARNINGS version: 22 updated: 2007/07/29 09:55:12
     138341 dnl ---------------
     138342 dnl Check if the compiler supports useful warning options.  There's a few that
     138343 dnl we don't use, simply because they're too noisy:
     138344@@ -742,7 +958,7 @@
     138345 CF_INTEL_COMPILER(GCC,INTEL_COMPILER,CFLAGS)
     138346 
     138347 cat > conftest.$ac_ext <<EOF
     138348-#line __oline__ "configure"
     138349+#line __oline__ "${as_me-configure}"
     138350 int main(int argc, char *argv[[]]) { return (argv[[argc-1]] == 0) ; }
     138351 EOF
     138352 
     138353@@ -763,7 +979,7 @@
     138354        AC_CHECKING([for $CC warning options])
     138355        cf_save_CFLAGS="$CFLAGS"
     138356        EXTRA_CFLAGS="-Wall"
     138357-       for cf_opt in $1 \
     138358+       for cf_opt in \
     138359                wd1419 \
     138360                wd1682 \
     138361                wd1683 \
     138362@@ -930,15 +1146,15 @@
     138363 AC_DEFUN([CF_LIBRARY_PATH],
     138364 [CF_SUBDIR_PATH($1,$2,lib)])dnl
     138365 dnl ---------------------------------------------------------------------------
     138366-dnl CF_MSG_LOG version: 3 updated: 1997/09/07 14:05:52
     138367+dnl CF_MSG_LOG version: 4 updated: 2007/07/29 09:55:12
     138368 dnl ----------
     138369 dnl Write a debug message to config.log, along with the line number in the
     138370 dnl configure script.
     138371 AC_DEFUN([CF_MSG_LOG],[
     138372-echo "(line __oline__) testing $* ..." 1>&AC_FD_CC
     138373+echo "${as_me-configure}:__oline__: testing $* ..." 1>&AC_FD_CC
     138374 ])dnl
     138375 dnl ---------------------------------------------------------------------------
     138376-dnl CF_NCURSES_CC_CHECK version: 3 updated: 2003/01/12 18:59:28
     138377+dnl CF_NCURSES_CC_CHECK version: 4 updated: 2007/07/29 10:39:05
     138378 dnl -------------------
     138379 dnl Check if we can compile with ncurses' header file
     138380 dnl $1 is the cache variable to set
     138381@@ -967,11 +1183,11 @@
     138382 #endif
     138383 #endif
     138384        ]
     138385-       ,[$1=$cf_header]
     138386+       ,[$1=$2]
     138387        ,[$1=no])
     138388 ])dnl
     138389 dnl ---------------------------------------------------------------------------
     138390-dnl CF_NCURSES_CPPFLAGS version: 18 updated: 2005/12/31 13:26:39
     138391+dnl CF_NCURSES_CPPFLAGS version: 19 updated: 2007/07/29 13:35:20
     138392 dnl -------------------
     138393 dnl Look for the SVr4 curses clone 'ncurses' in the standard places, adjusting
     138394 dnl the CPPFLAGS variable so we can include its header.
     138395@@ -999,8 +1215,9 @@
     138396 cf_ncuhdr_root=ifelse($1,,ncurses,$1)
     138397 
     138398 test -n "$cf_cv_curses_dir" && \
     138399-test "$cf_cv_curses_dir" != "no" && \
     138400-CPPFLAGS="-I$cf_cv_curses_dir/include -I$cf_cv_curses_dir/include/$cf_ncuhdr_root $CPPFLAGS"
     138401+test "$cf_cv_curses_dir" != "no" && { \
     138402+  CF_ADD_INCDIR($cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root)
     138403+}
     138404 
     138405 AC_CACHE_CHECK(for $cf_ncuhdr_root header in include-path, cf_cv_ncurses_h,[
     138406        cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
     138407@@ -1087,7 +1304,7 @@
     138408 
     138409 ])dnl
     138410 dnl ---------------------------------------------------------------------------
     138411-dnl CF_NCURSES_LIBS version: 12 updated: 2004/04/27 16:26:05
     138412+dnl CF_NCURSES_LIBS version: 13 updated: 2007/07/29 10:29:20
     138413 dnl ---------------
     138414 dnl Look for the ncurses library.  This is a little complicated on Linux,
     138415 dnl because it may be linked with the gpm (general purpose mouse) library.
     138416@@ -1127,7 +1344,8 @@
     138417 
     138418 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
     138419 then
     138420-       LIBS="-L$cf_cv_curses_dir/lib -l$cf_nculib_root $LIBS"
     138421+       CF_ADD_LIBDIR($cf_cv_curses_dir/lib)
     138422+       LIBS="-l$cf_nculib_root $LIBS"
     138423 else
     138424        CF_FIND_LIBRARY($cf_nculib_root,$cf_nculib_root,
     138425                [#include <${cf_cv_ncurses_header-curses.h}>],
     138426@@ -1155,7 +1373,7 @@
    127997138427 AC_DEFINE_UNQUOTED($cf_nculib_ROOT)
    127998138428 ])dnl
     
    128003138433 dnl Check for the version of ncurses, to aid in reporting bugs, etc.
    128004138434 dnl Call CF_CURSES_CPPFLAGS first, or CF_NCURSES_CPPFLAGS.  We don't use
    128005 @@ -1186,7 +1229,7 @@
     138435@@ -1186,7 +1404,7 @@
    128006138436        make an error
    128007138437 # endif
     
    128012138442        cf_cv_ncurses_version=`cat $cf_tempfile`],,[
    128013138443 
    128014 @@ -1442,6 +1485,41 @@
     138444@@ -1442,7 +1660,42 @@
    128015138445                -e 's/-[[UD]]$3\(=[[^   ]]*\)\?[$]//g'`
    128016138446 ])dnl
    128017138447 dnl ---------------------------------------------------------------------------
     138448-dnl CF_SUBDIR_PATH version: 4 updated: 2006/11/18 17:13:19
    128018138449+dnl CF_SIG_ATOMIC_T version: 2 updated: 2005/09/18 17:27:12
    128019138450+dnl ---------------
     
    128051138482+])dnl
    128052138483+dnl ---------------------------------------------------------------------------
    128053  dnl CF_SUBDIR_PATH version: 4 updated: 2006/11/18 17:13:19
     138484+dnl CF_SUBDIR_PATH version: 5 updated: 2007/07/29 09:55:12
    128054138485 dnl --------------
    128055138486 dnl Construct a search-list for a nonstandard header/lib-file
    128056 @@ -1630,7 +1708,7 @@
     138487 dnl    $1 = the variable to return as result
     138488@@ -1451,59 +1704,11 @@
     138489 AC_DEFUN([CF_SUBDIR_PATH],
     138490 [$1=""
     138491 
     138492-test -d "[$]HOME" && {
     138493-       test -n "$verbose" && echo "    ... testing $3-directories under [$]HOME"
     138494-       test -d "[$]HOME/$3" &&          $1="[$]$1 [$]HOME/$3"
     138495-       test -d "[$]HOME/$3/$2" &&       $1="[$]$1 [$]HOME/$3/$2"
     138496-       test -d "[$]HOME/$3/$2/$3" &&    $1="[$]$1 [$]HOME/$3/$2/$3"
     138497-}
     138498-
     138499-# For other stuff under the home directory, it should be sufficient to put
     138500-# a symbolic link for $HOME/$2 to the actual package location:
     138501-test -d "[$]HOME/$2" && {
     138502-       test -n "$verbose" && echo "    ... testing $3-directories under [$]HOME/$2"
     138503-       test -d "[$]HOME/$2/$3" &&       $1="[$]$1 [$]HOME/$2/$3"
     138504-       test -d "[$]HOME/$2/$3/$2" &&    $1="[$]$1 [$]HOME/$2/$3/$2"
     138505-}
     138506-
     138507-test "$prefix" != /usr/local && \
     138508-test -d /usr/local && {
     138509-       test -n "$verbose" && echo "    ... testing $3-directories under /usr/local"
     138510-       test -d /usr/local/$3 &&       $1="[$]$1 /usr/local/$3"
     138511-       test -d /usr/local/$3/$2 &&    $1="[$]$1 /usr/local/$3/$2"
     138512-       test -d /usr/local/$3/$2/$3 && $1="[$]$1 /usr/local/$3/$2/$3"
     138513-       test -d /usr/local/$2/$3 &&    $1="[$]$1 /usr/local/$2/$3"
     138514-       test -d /usr/local/$2/$3/$2 && $1="[$]$1 /usr/local/$2/$3/$2"
     138515-}
     138516-
     138517-test "$prefix" != NONE && \
     138518-test -d $prefix && {
     138519-       test -n "$verbose" && echo "    ... testing $3-directories under $prefix"
     138520-       test -d $prefix/$3 &&          $1="[$]$1 $prefix/$3"
     138521-       test -d $prefix/$3/$2 &&       $1="[$]$1 $prefix/$3/$2"
     138522-       test -d $prefix/$3/$2/$3 &&    $1="[$]$1 $prefix/$3/$2/$3"
     138523-       test -d $prefix/$2/$3 &&       $1="[$]$1 $prefix/$2/$3"
     138524-       test -d $prefix/$2/$3/$2 &&    $1="[$]$1 $prefix/$2/$3/$2"
     138525-}
     138526-
     138527-test "$prefix" != /opt && \
     138528-test -d /opt && {
     138529-       test -n "$verbose" && echo "    ... testing $3-directories under /opt"
     138530-       test -d /opt/$3 &&             $1="[$]$1 /opt/$3"
     138531-       test -d /opt/$3/$2 &&          $1="[$]$1 /opt/$3/$2"
     138532-       test -d /opt/$3/$2/$3 &&       $1="[$]$1 /opt/$3/$2/$3"
     138533-       test -d /opt/$2/$3 &&          $1="[$]$1 /opt/$2/$3"
     138534-       test -d /opt/$2/$3/$2 &&       $1="[$]$1 /opt/$2/$3/$2"
     138535-}
     138536-
     138537-test "$prefix" != /usr && \
     138538-test -d /usr && {
     138539-       test -n "$verbose" && echo "    ... testing $3-directories under /usr"
     138540-       test -d /usr/$3 &&             $1="[$]$1 /usr/$3"
     138541-       test -d /usr/$3/$2 &&          $1="[$]$1 /usr/$3/$2"
     138542-       test -d /usr/$3/$2/$3 &&       $1="[$]$1 /usr/$3/$2/$3"
     138543-       test -d /usr/$2/$3 &&          $1="[$]$1 /usr/$2/$3"
     138544-}
     138545+CF_ADD_SUBDIR_PATH($1,$2,$3,/usr,$prefix)
     138546+CF_ADD_SUBDIR_PATH($1,$2,$3,$prefix,NONE)
     138547+CF_ADD_SUBDIR_PATH($1,$2,$3,/usr/local,$prefix)
     138548+CF_ADD_SUBDIR_PATH($1,$2,$3,/opt,$prefix)
     138549+CF_ADD_SUBDIR_PATH($1,$2,$3,[$]HOME,$prefix)
     138550 ])dnl
     138551 dnl ---------------------------------------------------------------------------
     138552 dnl CF_SYS_TIME_SELECT version: 4 updated: 2000/10/04 09:18:40
     138553@@ -1611,11 +1816,12 @@
     138554 fi
     138555 ])dnl
     138556 dnl ---------------------------------------------------------------------------
     138557-dnl CF_VERBOSE version: 2 updated: 1997/09/05 10:45:14
     138558+dnl CF_VERBOSE version: 3 updated: 2007/07/29 09:55:12
     138559 dnl ----------
     138560 dnl Use AC_VERBOSE w/o the warnings
     138561 AC_DEFUN([CF_VERBOSE],
     138562 [test -n "$verbose" && echo "  $1" 1>&AC_FD_MSG
     138563+CF_MSG_LOG([$1])
     138564 ])dnl
     138565 dnl ---------------------------------------------------------------------------
     138566 dnl CF_WITH_CURSES_DIR version: 2 updated: 2002/11/10 14:46:59
     138567@@ -1630,7 +1836,37 @@
    128057138568        [cf_cv_curses_dir=no])
    128058138569 ])dnl
    128059138570 dnl ---------------------------------------------------------------------------
    128060138571-dnl CF_XOPEN_SOURCE version: 24 updated: 2006/04/02 16:41:09
     138572+dnl CF_XOPEN_CURSES version: 8 updated: 2003/11/07 19:47:46
     138573+dnl ---------------
     138574+dnl Test if we should define X/Open source for curses, needed on Digital Unix
     138575+dnl 4.x, to see the extended functions, but breaks on IRIX 6.x.
     138576+dnl
     138577+dnl The getbegyx() check is needed for HPUX, which omits legacy macros such
     138578+dnl as getbegy().  The latter is better design, but the former is standard.
     138579+AC_DEFUN([CF_XOPEN_CURSES],
     138580+[
     138581+AC_REQUIRE([CF_CURSES_CPPFLAGS])dnl
     138582+AC_CACHE_CHECK(if we must define _XOPEN_SOURCE_EXTENDED,cf_cv_need_xopen_extension,[
     138583+AC_TRY_LINK([
     138584+#include <stdlib.h>
     138585+#include <${cf_cv_ncurses_header-curses.h}>],[
     138586+       long x = winnstr(stdscr, "", 0);
     138587+       int x1, y1;
     138588+       getbegyx(stdscr, y1, x1)],
     138589+       [cf_cv_need_xopen_extension=no],
     138590+       [AC_TRY_LINK([
     138591+#define _XOPEN_SOURCE_EXTENDED
     138592+#include <stdlib.h>
     138593+#include <${cf_cv_ncurses_header-curses.h}>],[
     138594+       long x = winnstr(stdscr, "", 0);
     138595+       int x1, y1;
     138596+       getbegyx(stdscr, y1, x1)],
     138597+       [cf_cv_need_xopen_extension=yes],
     138598+       [cf_cv_need_xopen_extension=unknown])])])
     138599+test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
     138600+])dnl
     138601+dnl ---------------------------------------------------------------------------
    128061138602+dnl CF_XOPEN_SOURCE version: 25 updated: 2007/01/29 18:36:38
    128062138603 dnl ---------------
    128063138604 dnl Try to get _XOPEN_SOURCE defined properly that we can use POSIX functions,
    128064138605 dnl or adapt to the vendor's definitions to get equivalent functionality,
    128065 @@ -1664,7 +1742,7 @@
     138606@@ -1664,7 +1900,7 @@
    128066138607 irix[[56]].*) #(vi
    128067138608        CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
     
    128074138615diff -Naur ncurses-5.6.orig/test/bs.c ncurses-5.6/test/bs.c
    128075138616--- ncurses-5.6.orig/test/bs.c  2006-05-20 11:38:52.000000000 -0400
    128076 +++ ncurses-5.6/test/bs.c       2007-12-21 00:02:36.000000000 -0500
     138617+++ ncurses-5.6/test/bs.c       2008-06-18 06:49:44.000000000 -0400
    128077138618@@ -1,5 +1,5 @@
    128078138619 /****************************************************************************
     
    128102138643diff -Naur ncurses-5.6.orig/test/cardfile.c ncurses-5.6/test/cardfile.c
    128103138644--- ncurses-5.6.orig/test/cardfile.c    2006-12-09 19:30:09.000000000 -0500
    128104 +++ ncurses-5.6/test/cardfile.c 2007-12-21 00:02:36.000000000 -0500
     138645+++ ncurses-5.6/test/cardfile.c 2008-06-18 06:49:49.000000000 -0400
    128105138646@@ -1,5 +1,5 @@
    128106138647 /****************************************************************************
    128107138648- * Copyright (c) 1999-2004,2006 Free Software Foundation, Inc.              *
    128108 + * Copyright (c) 1999-2006,2007 Free Software Foundation, Inc.              *
     138649+ * Copyright (c) 1999-2007,2008 Free Software Foundation, Inc.              *
    128109138650  *                                                                          *
    128110138651  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    128115138656  *
    128116138657- * $Id: cardfile.c,v 1.28 2006/12/10 00:30:09 tom Exp $
    128117 + * $Id: cardfile.c,v 1.32 2007/08/11 16:34:27 tom Exp $
     138658+ * $Id: cardfile.c,v 1.33 2008/04/12 22:05:53 tom Exp $
    128118138659  *
    128119138660  * File format: text beginning in column 1 is a title; other text is content.
    128120138661  */
    128121 @@ -71,7 +71,7 @@
     138662@@ -71,9 +71,9 @@
    128122138663 #if !HAVE_STRDUP
    128123138664 #define strdup my_strdup
     
    128126138667+strdup(const char *s)
    128127138668 {
    128128      char *p = (char *) malloc(strlen(s) + 1);
     138669-    char *p = (char *) malloc(strlen(s) + 1);
     138670+    char *p = typeMalloc(char, strlen(s) + 1);
    128129138671     if (p)
    128130 @@ -136,13 +136,15 @@
     138672        strcpy(p, s);
     138673     return (p);
     138674@@ -111,7 +111,7 @@
     138675            break;
     138676     }
     138677 
     138678-    card = (CARD *) calloc(1, sizeof(CARD));
     138679+    card = typeCalloc(CARD, 1);
     138680     card->title = strdup(title);
     138681     card->content = strdup("");
     138682 
     138683@@ -135,14 +135,16 @@
     138684     if ((total = strlen(content)) != 0) {
    128131138685        if ((offset = strlen(card->content)) != 0) {
    128132138686            total += 1 + offset;
    128133             card->content = (char *) realloc(card->content, total + 1);
     138687-           card->content = (char *) realloc(card->content, total + 1);
    128134138688-           strcpy(card->content + offset++, " ");
     138689+           card->content = typeRealloc(char, total + 1, card->content);
    128135138690+           if (card->content)
    128136138691+               strcpy(card->content + offset++, " ");
     
    128138138693            if (card->content != 0)
    128139138694                free(card->content);
    128140             card->content = (char *) malloc(total + 1);
     138695-           card->content = (char *) malloc(total + 1);
     138696+           card->content = typeMalloc(char, total + 1);
    128141138697        }
    128142138698-       strcpy(card->content + offset, content);
     
    128157138713 
    128158138714     case KEY_BACKSPACE:
     138715@@ -334,7 +336,7 @@
     138716 static FIELD **
     138717 make_fields(CARD * p, int form_high, int form_wide)
     138718 {
     138719-    FIELD **f = (FIELD **) calloc(3, sizeof(FIELD *));
     138720+    FIELD **f = typeCalloc(FIELD *, 3);
     138721 
     138722     f[0] = new_field(1, form_wide, 0, 0, 0, 0);
     138723     set_field_back(f[0], A_REVERSE);
    128159138724@@ -568,7 +570,7 @@
    128160138725 
     
    128168138733diff -Naur ncurses-5.6.orig/test/chgat.c ncurses-5.6/test/chgat.c
    128169138734--- ncurses-5.6.orig/test/chgat.c       2006-07-15 18:48:27.000000000 -0400
    128170 +++ ncurses-5.6/test/chgat.c    2007-12-21 00:02:36.000000000 -0500
     138735+++ ncurses-5.6/test/chgat.c    2008-06-18 06:49:47.000000000 -0400
    128171138736@@ -1,5 +1,5 @@
    128172138737 /****************************************************************************
    128173138738- * Copyright (c) 2006 Free Software Foundation, Inc.                        *
    128174 + * Copyright (c) 2006,2007 Free Software Foundation, Inc.                   *
     138739+ * Copyright (c) 2006-2007,2008 Free Software Foundation, Inc.              *
    128175138740  *                                                                          *
    128176138741  * Permission is hereby granted, free of charge, to any person obtaining a  *
    128177138742  * copy of this software and associated documentation files (the            *
    128178 @@ -26,7 +26,7 @@
     138743@@ -26,14 +26,14 @@
    128179138744  * authorization.                                                           *
    128180138745  ****************************************************************************/
    128181138746 /*
    128182138747- * $Id: chgat.c,v 1.5 2006/07/15 22:48:27 tom Exp $
    128183 + * $Id: chgat.c,v 1.7 2007/06/30 17:52:17 tom Exp $
     138748+ * $Id: chgat.c,v 1.8 2008/02/09 23:19:13 tom Exp $
    128184138749  *
    128185138750  * test-driver for chgat/wchgat/mvchgat/mvwchgat
    128186138751  */
     138752 
     138753 #include <test.priv.h>
     138754 
     138755-#ifdef HAVE_CHGAT
     138756+#if HAVE_CHGAT
     138757 
     138758 #define SHOW(n) ((n) == ERR ? "ERR" : "OK")
     138759 #define COLOR_DEFAULT (-1)
    128187138760@@ -47,25 +47,26 @@
    128188138761 typedef struct {
     
    128253138826     if (state < SIZEOF(table)) {
    128254138827        *attr = table[state].attr;
     138828diff -Naur ncurses-5.6.orig/test/color_set.c ncurses-5.6/test/color_set.c
     138829--- ncurses-5.6.orig/test/color_set.c   2006-06-03 12:40:10.000000000 -0400
     138830+++ ncurses-5.6/test/color_set.c        2008-06-18 06:49:47.000000000 -0400
     138831@@ -1,5 +1,5 @@
     138832 /****************************************************************************
     138833- * Copyright (c) 2003-2004,2006 Free Software Foundation, Inc.              *
     138834+ * Copyright (c) 2003-2006,2008 Free Software Foundation, Inc.              *
     138835  *                                                                          *
     138836  * Permission is hereby granted, free of charge, to any person obtaining a  *
     138837  * copy of this software and associated documentation files (the            *
     138838@@ -26,12 +26,12 @@
     138839  * authorization.                                                           *
     138840  ****************************************************************************/
     138841 /*
     138842- * $Id: color_set.c,v 1.5 2006/06/03 16:40:10 tom Exp $
     138843+ * $Id: color_set.c,v 1.6 2008/02/10 00:18:01 tom Exp $
     138844  */
     138845 
     138846 #include <test.priv.h>
     138847 
     138848-#ifdef HAVE_COLOR_SET
     138849+#if HAVE_COLOR_SET
     138850 
     138851 #define SHOW(n) ((n) == ERR ? "ERR" : "OK")
     138852 
    128255138853diff -Naur ncurses-5.6.orig/test/configure ncurses-5.6/test/configure
    128256138854--- ncurses-5.6.orig/test/configure     2006-12-02 19:10:59.000000000 -0500
    128257 +++ ncurses-5.6/test/configure  2007-12-21 00:02:36.000000000 -0500
     138855+++ ncurses-5.6/test/configure  2008-06-18 06:49:47.000000000 -0400
    128258138856@@ -183,6 +183,7 @@
    128259138857 EOF
     
    128783139381 cat > conftest.$ac_ext <<EOF
    128784139382-#line 1778 "configure"
    128785 +#line 1610 "configure"
     139383+#line 1610 "${as_me-configure}"
    128786139384 #include "confdefs.h"
    128787139385 #include "conftest.h"
     
    128925139523       
    128926139524-echo "(line 2074) testing if the symbol is already defined go no further ..." 1>&5
    128927 +echo "(line 1906) testing if the symbol is already defined go no further ..." 1>&5
     139525+echo "${as_me-configure}:1906: testing if the symbol is already defined go no further ..." 1>&5
    128928139526 
    128929139527        cat > conftest.$ac_ext <<EOF
     
    128965139563         
    128966139564-echo "(line 2130) testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
    128967 +echo "(line 1962) testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
     139565+echo "${as_me-configure}:1962: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
    128968139566 
    128969139567         CFLAGS="$cf_trim_CFLAGS"
     
    128971139569         
    128972139570-echo "(line 2135) testing if the second compile does not leave our definition intact error ..." 1>&5
    128973 +echo "(line 1967) testing if the second compile does not leave our definition intact error ..." 1>&5
     139571+echo "${as_me-configure}:1967: testing if the second compile does not leave our definition intact error ..." 1>&5
    128974139572 
    128975139573         cat > conftest.$ac_ext <<EOF
     
    128988139586 else
    128989139587   echo "configure: failed program was:" >&5
    128990 @@ -2178,6 +2010,347 @@
     139588@@ -2178,6 +2010,350 @@
    128991139589        ;;
    128992139590 esac
     
    129242139840+
    129243139841+cat > conftest.$ac_ext <<EOF
    129244 +#line 2264 "configure"
     139842+#line 2264 "${as_me-configure}"
    129245139843+int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
    129246139844+EOF
     
    129264139862+       cf_save_CFLAGS="$CFLAGS"
    129265139863+       EXTRA_CFLAGS="-Wall"
    129266 +       for cf_opt in  \
     139864+       for cf_opt in \
    129267139865+               wd1419 \
    129268139866+               wd1682 \
     
    129317139915+                                       test -n "$verbose" && echo "    feature is broken in gcc $GCC_VERSION" 1>&6
    129318139916+
     139917+echo "${as_me-configure}:2339: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
     139918+
     139919+
    129319139920+                                       continue;;
    129320139921+                               esac
     
    129336139937 
    129337139938 
    129338 @@ -2263,7 +2436,7 @@
     139939@@ -2263,7 +2439,7 @@
    129339139940       
    129340139941 
    129341139942 echo $ac_n "checking for extra include directories""... $ac_c" 1>&6
    129342139943-echo "configure:2267: checking for extra include directories" >&5
    129343 +echo "configure:2440: checking for extra include directories" >&5
     139944+echo "configure:2443: checking for extra include directories" >&5
    129344139945 if eval "test \"`echo '$''{'cf_cv_curses_incdir'+set}'`\" = set"; then
    129345139946   echo $ac_n "(cached) $ac_c" 1>&6
    129346139947 else
    129347 @@ -2288,7 +2461,7 @@
     139948@@ -2288,7 +2464,7 @@
    129348139949 
    129349139950 
    129350139951 echo $ac_n "checking if we have identified curses headers""... $ac_c" 1>&6
    129351139952-echo "configure:2292: checking if we have identified curses headers" >&5
    129352 +echo "configure:2465: checking if we have identified curses headers" >&5
     139953+echo "configure:2468: checking if we have identified curses headers" >&5
    129353139954 if eval "test \"`echo '$''{'cf_cv_ncurses_header'+set}'`\" = set"; then
    129354139955   echo $ac_n "(cached) $ac_c" 1>&6
    129355139956 else
    129356 @@ -2301,14 +2474,14 @@
     139957@@ -2301,14 +2477,14 @@
    129357139958        ncurses/ncurses.h
    129358139959 do
    129359139960 cat > conftest.$ac_ext <<EOF
    129360139961-#line 2305 "configure"
    129361 +#line 2478 "configure"
     139962+#line 2481 "configure"
    129362139963 #include "confdefs.h"
    129363139964 #include <${cf_header}>
     
    129367139968 EOF
    129368139969-if { (eval echo configure:2312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    129369 +if { (eval echo configure:2485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     139970+if { (eval echo configure:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    129370139971   rm -rf conftest*
    129371139972   cf_cv_ncurses_header=$cf_header; break
    129372139973 else
    129373 @@ -2331,17 +2504,17 @@
     139974@@ -2331,17 +2507,17 @@
    129374139975 do
    129375139976 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    129376139977 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    129377139978-echo "configure:2335: checking for $ac_hdr" >&5
    129378 +echo "configure:2508: checking for $ac_hdr" >&5
     139979+echo "configure:2511: checking for $ac_hdr" >&5
    129379139980 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    129380139981   echo $ac_n "(cached) $ac_c" 1>&6
     
    129382139983   cat > conftest.$ac_ext <<EOF
    129383139984-#line 2340 "configure"
    129384 +#line 2513 "configure"
     139985+#line 2516 "configure"
    129385139986 #include "confdefs.h"
    129386139987 #include <$ac_hdr>
     
    129388139989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    129389139990-{ (eval echo configure:2345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    129390 +{ (eval echo configure:2518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     139991+{ (eval echo configure:2521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    129391139992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    129392139993 if test -z "$ac_err"; then
    129393139994   rm -rf conftest*
    129394 @@ -2370,7 +2543,7 @@
     139995@@ -2370,7 +2546,7 @@
    129395139996 
    129396139997 
    129397139998 echo $ac_n "checking for terminfo header""... $ac_c" 1>&6
    129398139999-echo "configure:2374: checking for terminfo header" >&5
    129399 +echo "configure:2547: checking for terminfo header" >&5
     140000+echo "configure:2550: checking for terminfo header" >&5
    129400140001 if eval "test \"`echo '$''{'cf_cv_term_header'+set}'`\" = set"; then
    129401140002   echo $ac_n "(cached) $ac_c" 1>&6
    129402140003 else
    129403 @@ -2387,7 +2560,7 @@
     140004@@ -2387,7 +2563,7 @@
    129404140005 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
    129405140006 do
    129406140007 cat > conftest.$ac_ext <<EOF
    129407140008-#line 2391 "configure"
    129408 +#line 2564 "configure"
     140009+#line 2567 "configure"
    129409140010 #include "confdefs.h"
    129410140011 #include <stdio.h>
    129411140012 #include <${cf_cv_ncurses_header-curses.h}>
    129412 @@ -2397,7 +2570,7 @@
     140013@@ -2397,7 +2573,7 @@
    129413140014 int x = auto_left_margin
    129414140015 ; return 0; }
    129415140016 EOF
    129416140017-if { (eval echo configure:2401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    129417 +if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     140018+if { (eval echo configure:2577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    129418140019   rm -rf conftest*
    129419140020   
    129420140021        cf_cv_term_header="$cf_test"
    129421 @@ -2446,7 +2619,7 @@
     140022@@ -2446,7 +2622,7 @@
    129422140023 
    129423140024       
    129424140025 echo $ac_n "checking for ncurses version""... $ac_c" 1>&6
    129425140026-echo "configure:2450: checking for ncurses version" >&5
    129426 +echo "configure:2623: checking for ncurses version" >&5
     140027+echo "configure:2626: checking for ncurses version" >&5
    129427140028 if eval "test \"`echo '$''{'cf_cv_ncurses_version'+set}'`\" = set"; then
    129428140029   echo $ac_n "(cached) $ac_c" 1>&6
    129429140030 else
    129430 @@ -2472,7 +2645,7 @@
     140031@@ -2472,7 +2648,7 @@
    129431140032 #endif
    129432140033 EOF
    129433140034        cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
    129434140035-       { (eval echo configure:2476: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
    129435 +       { (eval echo configure:2649: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
     140036+       { (eval echo configure:2652: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
    129436140037        if test -f conftest.out ; then
    129437140038                cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
    129438140039                test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
    129439 @@ -2481,7 +2654,7 @@
     140040@@ -2481,7 +2657,7 @@
    129440140041 
    129441140042 else
    129442140043   cat > conftest.$ac_ext <<EOF
    129443140044-#line 2485 "configure"
    129444 +#line 2658 "configure"
     140045+#line 2661 "configure"
    129445140046 #include "confdefs.h"
    129446140047 
    129447140048 #include <${cf_cv_ncurses_header-curses.h}>
    129448 @@ -2502,10 +2675,10 @@
     140049@@ -2502,10 +2678,10 @@
    129449140050        make an error
    129450140051 # endif
     
    129455140056 EOF
    129456140057-if { (eval echo configure:2509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    129457 +if { (eval echo configure:2682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     140058+if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    129458140059 then
    129459140060   
    129460140061        cf_cv_ncurses_version=`cat $cf_tempfile`
    129461 @@ -2529,16 +2702,16 @@
     140062@@ -2529,16 +2705,16 @@
    129462140063       
    129463140064 
    129464140065 echo $ac_n "checking if we have identified curses libraries""... $ac_c" 1>&6
    129465140066-echo "configure:2533: checking if we have identified curses libraries" >&5
    129466 +echo "configure:2706: checking if we have identified curses libraries" >&5
     140067+echo "configure:2709: checking if we have identified curses libraries" >&5
    129467140068 cat > conftest.$ac_ext <<EOF
    129468140069-#line 2535 "configure"
    129469 +#line 2708 "configure"
     140070+#line 2711 "configure"
    129470140071 #include "confdefs.h"
    129471140072 #include <${cf_cv_ncurses_header-curses.h}>
     
    129475140076 EOF
    129476140077-if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129477 +if { (eval echo configure:2715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     140078+if { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129478140079   rm -rf conftest*
    129479140080   cf_result=yes
    129480140081 else
    129481 @@ -2554,7 +2727,7 @@
     140082@@ -2553,8 +2729,8 @@
     140083 if test "$cf_result" = no ; then
    129482140084 case $host_os in #(vi
    129483140085 freebsd*) #(vi
    129484         echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
     140086-       echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
    129485140087-echo "configure:2558: checking for tgoto in -lmytinfo" >&5
    129486 +echo "configure:2731: checking for tgoto in -lmytinfo" >&5
     140088+    echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
     140089+echo "configure:2734: checking for tgoto in -lmytinfo" >&5
    129487140090 ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
    129488140091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    129489140092   echo $ac_n "(cached) $ac_c" 1>&6
    129490 @@ -2562,7 +2735,7 @@
     140093@@ -2562,7 +2738,7 @@
    129491140094   ac_save_LIBS="$LIBS"
    129492140095 LIBS="-lmytinfo  $LIBS"
    129493140096 cat > conftest.$ac_ext <<EOF
    129494140097-#line 2566 "configure"
    129495 +#line 2739 "configure"
     140098+#line 2742 "configure"
    129496140099 #include "confdefs.h"
    129497140100 /* Override any gcc2 internal prototype to avoid an error.  */
    129498140101 /* We use char because int might match the return type of a gcc2
    129499 @@ -2573,7 +2746,7 @@
     140102@@ -2573,7 +2749,7 @@
    129500140103 tgoto()
    129501140104 ; return 0; }
    129502140105 EOF
    129503140106-if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129504 +if { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     140107+if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129505140108   rm -rf conftest*
    129506140109   eval "ac_cv_lib_$ac_lib_var=yes"
    129507140110 else
    129508 @@ -2596,7 +2769,7 @@
    129509         ;;
     140111@@ -2593,10 +2769,10 @@
     140112   echo "$ac_t""no" 1>&6
     140113 fi
     140114 
     140115-       ;;
     140116+    ;;
    129510140117 hpux10.*) #(vi
    129511         echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
     140118-       echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
    129512140119-echo "configure:2600: checking for initscr in -lcur_colr" >&5
    129513 +echo "configure:2773: checking for initscr in -lcur_colr" >&5
     140120+    echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
     140121+echo "configure:2776: checking for initscr in -lcur_colr" >&5
    129514140122 ac_lib_var=`echo cur_colr'_'initscr | sed 'y%./+-%__p_%'`
    129515140123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    129516140124   echo $ac_n "(cached) $ac_c" 1>&6
    129517 @@ -2604,7 +2777,7 @@
     140125@@ -2604,7 +2780,7 @@
    129518140126   ac_save_LIBS="$LIBS"
    129519140127 LIBS="-lcur_colr  $LIBS"
    129520140128 cat > conftest.$ac_ext <<EOF
    129521140129-#line 2608 "configure"
    129522 +#line 2781 "configure"
     140130+#line 2784 "configure"
    129523140131 #include "confdefs.h"
    129524140132 /* Override any gcc2 internal prototype to avoid an error.  */
    129525140133 /* We use char because int might match the return type of a gcc2
    129526 @@ -2615,7 +2788,7 @@
     140134@@ -2615,7 +2791,7 @@
    129527140135 initscr()
    129528140136 ; return 0; }
    129529140137 EOF
    129530140138-if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129531 +if { (eval echo configure:2792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     140139+if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129532140140   rm -rf conftest*
    129533140141   eval "ac_cv_lib_$ac_lib_var=yes"
    129534140142 else
    129535 @@ -2638,7 +2811,7 @@
     140143@@ -2631,14 +2807,14 @@
     140144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     140145   echo "$ac_t""yes" 1>&6
     140146   
     140147-               LIBS="-lcur_colr $LIBS"
     140148-               ac_cv_func_initscr=yes
     140149-               
     140150+        LIBS="-lcur_colr $LIBS"
     140151+        ac_cv_func_initscr=yes
     140152+       
     140153 else
    129536140154   echo "$ac_t""no" 1>&6
    129537140155 
    129538         echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
     140156-       echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
    129539140157-echo "configure:2642: checking for initscr in -lHcurses" >&5
    129540 +echo "configure:2815: checking for initscr in -lHcurses" >&5
     140158+    echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
     140159+echo "configure:2818: checking for initscr in -lHcurses" >&5
    129541140160 ac_lib_var=`echo Hcurses'_'initscr | sed 'y%./+-%__p_%'`
    129542140161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    129543140162   echo $ac_n "(cached) $ac_c" 1>&6
    129544 @@ -2646,7 +2819,7 @@
     140163@@ -2646,7 +2822,7 @@
    129545140164   ac_save_LIBS="$LIBS"
    129546140165 LIBS="-lHcurses  $LIBS"
    129547140166 cat > conftest.$ac_ext <<EOF
    129548140167-#line 2650 "configure"
    129549 +#line 2823 "configure"
     140168+#line 2826 "configure"
    129550140169 #include "confdefs.h"
    129551140170 /* Override any gcc2 internal prototype to avoid an error.  */
    129552140171 /* We use char because int might match the return type of a gcc2
    129553 @@ -2657,7 +2830,7 @@
     140172@@ -2657,7 +2833,7 @@
    129554140173 initscr()
    129555140174 ; return 0; }
    129556140175 EOF
    129557140176-if { (eval echo configure:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129558 +if { (eval echo configure:2834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     140177+if { (eval echo configure:2837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129559140178   rm -rf conftest*
    129560140179   eval "ac_cv_lib_$ac_lib_var=yes"
    129561140180 else
    129562 @@ -2710,12 +2883,12 @@
    129563         # Check for library containing tgoto.  Do this before curses library
    129564         # because it may be needed to link the test-case for initscr.
    129565         echo $ac_n "checking for tgoto""... $ac_c" 1>&6
     140181@@ -2673,49 +2849,107 @@
     140182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     140183   echo "$ac_t""yes" 1>&6
     140184   
     140185-               # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
     140186-               LIBS="-lHcurses $LIBS"
     140187-               CPPFLAGS="-D__HP_CURSES -D_HP_CURSES $CPPFLAGS"
     140188-               ac_cv_func_initscr=yes
     140189-               
     140190+        # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
     140191+        LIBS="-lHcurses $LIBS"
     140192+        CPPFLAGS="-D__HP_CURSES -D_HP_CURSES $CPPFLAGS"
     140193+        ac_cv_func_initscr=yes
     140194+       
     140195 else
     140196   echo "$ac_t""no" 1>&6
     140197 fi
     140198 
     140199 fi
     140200 
     140201-       ;;
     140202-linux*) # Suse Linux does not follow /usr/lib convention
     140203-       LIBS="$LIBS -L/lib"
     140204-       ;;
     140205+    ;;
     140206+linux*) # Suse Linux does not follow /usr/lib convention
     140207+   
     140208+if test -n "/lib" ; then
     140209+  for cf_add_libdir in /lib
     140210+  do
     140211+    if test $cf_add_libdir = /usr/lib ; then
     140212+      :
     140213+    elif test -d $cf_add_libdir
     140214+    then
     140215+      cf_have_libdir=no
     140216+      if test -n "$LDFLAGS$LIBS" ; then
     140217+        # a loop is needed to ensure we can add subdirs of existing dirs
     140218+        for cf_test_libdir in $LDFLAGS $LIBS ; do
     140219+          if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
     140220+            cf_have_libdir=yes; break
     140221+          fi
     140222+        done
     140223+      fi
     140224+      if test "$cf_have_libdir" = no ; then
     140225+        test -n "$verbose" && echo "   adding $cf_add_libdir to library-path" 1>&6
     140226+
     140227+echo "${as_me-configure}:2886: testing adding $cf_add_libdir to library-path ..." 1>&5
     140228+
     140229+
     140230+        LDFLAGS="-L$cf_add_libdir $LDFLAGS"
     140231+      fi
     140232+    fi
     140233+  done
     140234+fi
     140235+
     140236+    ;;
     140237 sunos3*|sunos4*)
     140238-       test -d /usr/5lib && \
     140239-       LIBS="$LIBS -L/usr/5lib -lcurses -ltermcap"
     140240-       ac_cv_func_initscr=yes
     140241-       ;;
     140242+    if test -d /usr/5lib ; then
     140243+     
     140244+if test -n "/usr/5lib" ; then
     140245+  for cf_add_libdir in /usr/5lib
     140246+  do
     140247+    if test $cf_add_libdir = /usr/lib ; then
     140248+      :
     140249+    elif test -d $cf_add_libdir
     140250+    then
     140251+      cf_have_libdir=no
     140252+      if test -n "$LDFLAGS$LIBS" ; then
     140253+        # a loop is needed to ensure we can add subdirs of existing dirs
     140254+        for cf_test_libdir in $LDFLAGS $LIBS ; do
     140255+          if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
     140256+            cf_have_libdir=yes; break
     140257+          fi
     140258+        done
     140259+      fi
     140260+      if test "$cf_have_libdir" = no ; then
     140261+        test -n "$verbose" && echo "   adding $cf_add_libdir to library-path" 1>&6
     140262+
     140263+echo "${as_me-configure}:2918: testing adding $cf_add_libdir to library-path ..." 1>&5
     140264+
     140265+
     140266+        LDFLAGS="-L$cf_add_libdir $LDFLAGS"
     140267+      fi
     140268+    fi
     140269+  done
     140270+fi
     140271+
     140272+      LIBS="$LIBS -lcurses -ltermcap"
     140273+    fi
     140274+    ac_cv_func_initscr=yes
     140275+    ;;
     140276 esac
     140277 
     140278 if test ".$ac_cv_func_initscr" != .yes ; then
     140279-       cf_save_LIBS="$LIBS"
     140280-       cf_term_lib=""
     140281-       cf_curs_lib=""
     140282-
     140283-       if test ".${cf_cv_ncurses_version-no}" != .no
     140284-       then
     140285-               cf_check_list="ncurses curses cursesX"
     140286-       else
     140287-               cf_check_list="cursesX curses ncurses"
     140288-       fi
     140289+    cf_save_LIBS="$LIBS"
     140290+    cf_term_lib=""
     140291+    cf_curs_lib=""
     140292+
     140293+    if test ".${cf_cv_ncurses_version-no}" != .no
     140294+    then
     140295+        cf_check_list="ncurses curses cursesX"
     140296+    else
     140297+        cf_check_list="cursesX curses ncurses"
     140298+    fi
     140299 
     140300-       # Check for library containing tgoto.  Do this before curses library
     140301-       # because it may be needed to link the test-case for initscr.
     140302-       echo $ac_n "checking for tgoto""... $ac_c" 1>&6
    129566140303-echo "configure:2714: checking for tgoto" >&5
    129567 +echo "configure:2887: checking for tgoto" >&5
     140304+    # Check for library containing tgoto.  Do this before curses library
     140305+    # because it may be needed to link the test-case for initscr.
     140306+    echo $ac_n "checking for tgoto""... $ac_c" 1>&6
     140307+echo "configure:2948: checking for tgoto" >&5
    129568140308 if eval "test \"`echo '$''{'ac_cv_func_tgoto'+set}'`\" = set"; then
    129569140309   echo $ac_n "(cached) $ac_c" 1>&6
     
    129571140311   cat > conftest.$ac_ext <<EOF
    129572140312-#line 2719 "configure"
    129573 +#line 2892 "configure"
     140313+#line 2953 "configure"
    129574140314 #include "confdefs.h"
    129575140315 /* System header to define __stub macros and hopefully few prototypes,
    129576140316     which can conflict with char tgoto(); below.  */
    129577 @@ -2738,7 +2911,7 @@
     140317@@ -2738,7 +2972,7 @@
    129578140318 
    129579140319 ; return 0; }
    129580140320 EOF
    129581140321-if { (eval echo configure:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129582 +if { (eval echo configure:2915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     140322+if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129583140323   rm -rf conftest*
    129584140324   eval "ac_cv_func_tgoto=yes"
    129585140325 else
    129586 @@ -2759,7 +2932,7 @@
    129587                 for cf_term_lib in $cf_check_list termcap termlib unknown
    129588                 do
    129589                         echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
     140326@@ -2756,10 +2990,10 @@
     140327 else
     140328   echo "$ac_t""no" 1>&6
     140329 
     140330-               for cf_term_lib in $cf_check_list termcap termlib unknown
     140331-               do
     140332-                       echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
    129590140333-echo "configure:2763: checking for tgoto in -l$cf_term_lib" >&5
    129591 +echo "configure:2936: checking for tgoto in -l$cf_term_lib" >&5
     140334+        for cf_term_lib in $cf_check_list termcap termlib unknown
     140335+        do
     140336+            echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
     140337+echo "configure:2997: checking for tgoto in -l$cf_term_lib" >&5
    129592140338 ac_lib_var=`echo $cf_term_lib'_'tgoto | sed 'y%./+-%__p_%'`
    129593140339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    129594140340   echo $ac_n "(cached) $ac_c" 1>&6
    129595 @@ -2767,7 +2940,7 @@
     140341@@ -2767,7 +3001,7 @@
    129596140342   ac_save_LIBS="$LIBS"
    129597140343 LIBS="-l$cf_term_lib  $LIBS"
    129598140344 cat > conftest.$ac_ext <<EOF
    129599140345-#line 2771 "configure"
    129600 +#line 2944 "configure"
     140346+#line 3005 "configure"
    129601140347 #include "confdefs.h"
    129602140348 /* Override any gcc2 internal prototype to avoid an error.  */
    129603140349 /* We use char because int might match the return type of a gcc2
    129604 @@ -2778,7 +2951,7 @@
     140350@@ -2778,7 +3012,7 @@
    129605140351 tgoto()
    129606140352 ; return 0; }
    129607140353 EOF
    129608140354-if { (eval echo configure:2782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129609 +if { (eval echo configure:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     140355+if { (eval echo configure:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129610140356   rm -rf conftest*
    129611140357   eval "ac_cv_lib_$ac_lib_var=yes"
    129612140358 else
    129613 @@ -2808,7 +2981,7 @@
    129614         for cf_curs_lib in $cf_check_list xcurses jcurses unknown
    129615         do
    129616                 echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
     140359@@ -2798,17 +3032,17 @@
     140360   echo "$ac_t""no" 1>&6
     140361 fi
     140362 
     140363-               done
     140364-       
     140365+        done
     140366+   
     140367 fi
     140368 
     140369 
     140370-       # Check for library containing initscr
     140371-       test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
     140372-       for cf_curs_lib in $cf_check_list xcurses jcurses unknown
     140373-       do
     140374-               echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
    129617140375-echo "configure:2812: checking for initscr in -l$cf_curs_lib" >&5
    129618 +echo "configure:2985: checking for initscr in -l$cf_curs_lib" >&5
     140376+    # Check for library containing initscr
     140377+    test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
     140378+    for cf_curs_lib in $cf_check_list xcurses jcurses unknown
     140379+    do
     140380+        echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
     140381+echo "configure:3046: checking for initscr in -l$cf_curs_lib" >&5
    129619140382 ac_lib_var=`echo $cf_curs_lib'_'initscr | sed 'y%./+-%__p_%'`
    129620140383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    129621140384   echo $ac_n "(cached) $ac_c" 1>&6
    129622 @@ -2816,7 +2989,7 @@
     140385@@ -2816,7 +3050,7 @@
    129623140386   ac_save_LIBS="$LIBS"
    129624140387 LIBS="-l$cf_curs_lib  $LIBS"
    129625140388 cat > conftest.$ac_ext <<EOF
    129626140389-#line 2820 "configure"
    129627 +#line 2993 "configure"
     140390+#line 3054 "configure"
    129628140391 #include "confdefs.h"
    129629140392 /* Override any gcc2 internal prototype to avoid an error.  */
    129630140393 /* We use char because int might match the return type of a gcc2
    129631 @@ -2827,7 +3000,7 @@
     140394@@ -2827,7 +3061,7 @@
    129632140395 initscr()
    129633140396 ; return 0; }
    129634140397 EOF
    129635140398-if { (eval echo configure:2831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129636 +if { (eval echo configure:3004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     140399+if { (eval echo configure:3065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129637140400   rm -rf conftest*
    129638140401   eval "ac_cv_lib_$ac_lib_var=yes"
    129639140402 else
    129640 @@ -2853,16 +3026,16 @@
    129641         LIBS="-l$cf_curs_lib $cf_save_LIBS"
    129642         if test "$cf_term_lib" = unknown ; then
    129643                 echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
     140403@@ -2847,22 +3081,22 @@
     140404   echo "$ac_t""no" 1>&6
     140405 fi
     140406 
     140407-       done
     140408-       test $cf_curs_lib = unknown && { echo "configure: error: no curses library found" 1>&2; exit 1; }
     140409+    done
     140410+    test $cf_curs_lib = unknown && { echo "configure: error: no curses library found" 1>&2; exit 1; }
     140411 
     140412-       LIBS="-l$cf_curs_lib $cf_save_LIBS"
     140413-       if test "$cf_term_lib" = unknown ; then
     140414-               echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
    129644140415-echo "configure:2857: checking if we can link with $cf_curs_lib library" >&5
    129645 +echo "configure:3030: checking if we can link with $cf_curs_lib library" >&5
    129646                 cat > conftest.$ac_ext <<EOF
     140416-               cat > conftest.$ac_ext <<EOF
    129647140417-#line 2859 "configure"
    129648 +#line 3032 "configure"
     140418+    LIBS="-l$cf_curs_lib $cf_save_LIBS"
     140419+    if test "$cf_term_lib" = unknown ; then
     140420+        echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
     140421+echo "configure:3091: checking if we can link with $cf_curs_lib library" >&5
     140422+        cat > conftest.$ac_ext <<EOF
     140423+#line 3093 "configure"
    129649140424 #include "confdefs.h"
    129650140425 #include <${cf_cv_ncurses_header-curses.h}>
     
    129654140429 EOF
    129655140430-if { (eval echo configure:2866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129656 +if { (eval echo configure:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     140431+if { (eval echo configure:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129657140432   rm -rf conftest*
    129658140433   cf_result=yes
    129659140434 else
    129660 @@ -2878,16 +3051,16 @@
    129661                 :
    129662         elif test "$cf_term_lib" != predefined ; then
    129663                 echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
     140435@@ -2872,22 +3106,22 @@
     140436   cf_result=no
     140437 fi
     140438 rm -f conftest*
     140439-               echo "$ac_t""$cf_result" 1>&6
     140440-               test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
     140441-       elif test "$cf_curs_lib" = "$cf_term_lib" ; then
     140442-               :
     140443-       elif test "$cf_term_lib" != predefined ; then
     140444-               echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
    129664140445-echo "configure:2882: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
    129665 +echo "configure:3055: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
    129666                 cat > conftest.$ac_ext <<EOF
     140446-               cat > conftest.$ac_ext <<EOF
    129667140447-#line 2884 "configure"
    129668 +#line 3057 "configure"
     140448+        echo "$ac_t""$cf_result" 1>&6
     140449+        test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
     140450+    elif test "$cf_curs_lib" = "$cf_term_lib" ; then
     140451+        :
     140452+    elif test "$cf_term_lib" != predefined ; then
     140453+        echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
     140454+echo "configure:3116: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
     140455+        cat > conftest.$ac_ext <<EOF
     140456+#line 3118 "configure"
    129669140457 #include "confdefs.h"
    129670140458 #include <${cf_cv_ncurses_header-curses.h}>
     
    129674140462 EOF
    129675140463-if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129676 +if { (eval echo configure:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     140464+if { (eval echo configure:3125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129677140465   rm -rf conftest*
    129678140466   cf_result=no
    129679140467 else
    129680 @@ -2897,14 +3070,14 @@
     140468@@ -2895,16 +3129,16 @@
     140469   cat conftest.$ac_ext >&5
     140470   rm -rf conftest*
    129681140471   
    129682                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
    129683                         cat > conftest.$ac_ext <<EOF
     140472-                       LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
     140473-                       cat > conftest.$ac_ext <<EOF
    129684140474-#line 2901 "configure"
    129685 +#line 3074 "configure"
     140475+            LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
     140476+            cat > conftest.$ac_ext <<EOF
     140477+#line 3135 "configure"
    129686140478 #include "confdefs.h"
    129687140479 #include <${cf_cv_ncurses_header-curses.h}>
     
    129691140483 EOF
    129692140484-if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129693 +if { (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     140485+if { (eval echo configure:3142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129694140486   rm -rf conftest*
    129695140487   cf_result=yes
    129696140488 else
    129697 @@ -2934,7 +3107,7 @@
    129698  CPPFLAGS="-I$cf_cv_curses_dir/include -I$cf_cv_curses_dir/include/$cf_ncuhdr_root $CPPFLAGS"
     140489@@ -2914,11 +3148,11 @@
     140490   cf_result=error
     140491 fi
     140492 rm -f conftest*
     140493-                       
     140494+           
     140495 fi
     140496 rm -f conftest*
     140497-               echo "$ac_t""$cf_result" 1>&6
     140498-       fi
     140499+        echo "$ac_t""$cf_result" 1>&6
     140500+    fi
     140501 fi
     140502 fi
     140503 
     140504@@ -2930,11 +3164,76 @@
     140505 cf_ncuhdr_root=ncurses
     140506 
     140507 test -n "$cf_cv_curses_dir" && \
     140508-test "$cf_cv_curses_dir" != "no" && \
     140509-CPPFLAGS="-I$cf_cv_curses_dir/include -I$cf_cv_curses_dir/include/$cf_ncuhdr_root $CPPFLAGS"
     140510+test "$cf_cv_curses_dir" != "no" && { \
     140511
     140512+if test -n "$cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
     140513+  for cf_add_incdir in $cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root
     140514+  do
     140515+       while test $cf_add_incdir != /usr/include
     140516+       do
     140517+         if test -d $cf_add_incdir
     140518+         then
     140519+               cf_have_incdir=no
     140520+               if test -n "$CFLAGS$CPPFLAGS" ; then
     140521+                 # a loop is needed to ensure we can add subdirs of existing dirs
     140522+                 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
     140523+                       if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
     140524+                         cf_have_incdir=yes; break
     140525+                       fi
     140526+                 done
     140527+               fi
     140528+
     140529+               if test "$cf_have_incdir" = no ; then
     140530+          if test "$cf_add_incdir" = /usr/local/include ; then
     140531+                       if test "$GCC" = yes
     140532+                       then
     140533+                         cf_save_CPPFLAGS=$CPPFLAGS
     140534+                         CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     140535+                         cat > conftest.$ac_ext <<EOF
     140536+#line 3194 "configure"
     140537+#include "confdefs.h"
     140538+#include <stdio.h>
     140539+int main() {
     140540+printf("Hello")
     140541+; return 0; }
     140542+EOF
     140543+if { (eval echo configure:3201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     140544+  :
     140545+else
     140546+  echo "configure: failed program was:" >&5
     140547+  cat conftest.$ac_ext >&5
     140548+  rm -rf conftest*
     140549+  cf_have_incdir=yes
     140550+fi
     140551+rm -f conftest*
     140552+                         CPPFLAGS=$cf_save_CPPFLAGS
     140553+                       fi
     140554+                 fi
     140555+               fi
     140556+
     140557+               if test "$cf_have_incdir" = no ; then
     140558+                 test -n "$verbose" && echo "  adding $cf_add_incdir to include-path" 1>&6
     140559+
     140560+echo "${as_me-configure}:3218: testing adding $cf_add_incdir to include-path ..." 1>&5
     140561+
     140562+
     140563+                 CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
     140564+
     140565+          cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
     140566+          test "$cf_top_incdir" = "$cf_add_incdir" && break
     140567+          cf_add_incdir="$cf_top_incdir"
     140568+               else
     140569+                 break
     140570+               fi
     140571+         fi
     140572+       done
     140573+  done
     140574+fi
     140575+
     140576+}
    129699140577 
    129700140578 echo $ac_n "checking for $cf_ncuhdr_root header in include-path""... $ac_c" 1>&6
    129701140579-echo "configure:2938: checking for $cf_ncuhdr_root header in include-path" >&5
    129702 +echo "configure:3111: checking for $cf_ncuhdr_root header in include-path" >&5
     140580+echo "configure:3237: checking for $cf_ncuhdr_root header in include-path" >&5
    129703140581 if eval "test \"`echo '$''{'cf_cv_ncurses_h'+set}'`\" = set"; then
    129704140582   echo $ac_n "(cached) $ac_c" 1>&6
    129705140583 else
    129706 @@ -2945,7 +3118,7 @@
     140584@@ -2945,7 +3244,7 @@
    129707140585        do
    129708140586               
    129709140587        cat > conftest.$ac_ext <<EOF
    129710140588-#line 2949 "configure"
    129711 +#line 3122 "configure"
     140589+#line 3248 "configure"
    129712140590 #include "confdefs.h"
    129713140591 
    129714140592 
    129715 @@ -2966,7 +3139,7 @@
     140593@@ -2966,7 +3265,7 @@
    129716140594       
    129717140595 ; return 0; }
    129718140596 EOF
    129719140597-if { (eval echo configure:2970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    129720 +if { (eval echo configure:3143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     140598+if { (eval echo configure:3269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    129721140599   rm -rf conftest*
    129722140600   cf_cv_ncurses_h=$cf_header
    129723140601       
    129724 @@ -2992,7 +3165,7 @@
     140602@@ -2992,7 +3291,7 @@
    129725140603 else
    129726140604 
    129727140605 echo $ac_n "checking for $cf_ncuhdr_root include-path""... $ac_c" 1>&6
    129728140606-echo "configure:2996: checking for $cf_ncuhdr_root include-path" >&5
    129729 +echo "configure:3169: checking for $cf_ncuhdr_root include-path" >&5
     140607+echo "configure:3295: checking for $cf_ncuhdr_root include-path" >&5
    129730140608 if eval "test \"`echo '$''{'cf_cv_ncurses_h2'+set}'`\" = set"; then
    129731140609   echo $ac_n "(cached) $ac_c" 1>&6
    129732140610 else
    129733 @@ -3087,14 +3260,14 @@
    129734                                 cf_save_CPPFLAGS="$CPPFLAGS"
    129735                                 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
    129736                                 cat > conftest.$ac_ext <<EOF
     140611@@ -3000,34 +3299,23 @@
     140612        test -n "$verbose" && echo
     140613        cf_search=""
     140614 
     140615-test -d "$HOME" && {
     140616-       test -n "$verbose" && echo "    ... testing include-directories under $HOME"
     140617-       test -d "$HOME/include" &&          cf_search="$cf_search $HOME/include"
     140618-       test -d "$HOME/include/$cf_ncuhdr_root" &&       cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
     140619-       test -d "$HOME/include/$cf_ncuhdr_root/include" &&    cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
     140620-}
     140621 
     140622-# For other stuff under the home directory, it should be sufficient to put
     140623-# a symbolic link for $HOME/$cf_ncuhdr_root to the actual package location:
     140624-test -d "$HOME/$cf_ncuhdr_root" && {
     140625-       test -n "$verbose" && echo "    ... testing include-directories under $HOME/$cf_ncuhdr_root"
     140626-       test -d "$HOME/$cf_ncuhdr_root/include" &&       cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
     140627-       test -d "$HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root" &&    cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     140628+test "/usr" != "$prefix" && \
     140629+test -d "/usr" && \
     140630+(test $prefix = NONE || test -d $prefix) && {
     140631+       test -n "$verbose" && echo "    ... testing for include-directories under /usr"
     140632+       test -d /usr/include &&          cf_search="$cf_search /usr/include"
     140633+       test -d /usr/include/$cf_ncuhdr_root &&       cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
     140634+       test -d /usr/include/$cf_ncuhdr_root/include &&    cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
     140635+       test -d /usr/$cf_ncuhdr_root/include &&       cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
     140636+       test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root &&    cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     140637 }
     140638 
     140639-test "$prefix" != /usr/local && \
     140640-test -d /usr/local && {
     140641-       test -n "$verbose" && echo "    ... testing include-directories under /usr/local"
     140642-       test -d /usr/local/include &&       cf_search="$cf_search /usr/local/include"
     140643-       test -d /usr/local/include/$cf_ncuhdr_root &&    cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
     140644-       test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
     140645-       test -d /usr/local/$cf_ncuhdr_root/include &&    cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
     140646-       test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     140647-}
     140648 
     140649-test "$prefix" != NONE && \
     140650-test -d $prefix && {
     140651-       test -n "$verbose" && echo "    ... testing include-directories under $prefix"
     140652+test "$prefix" != "NONE" && \
     140653+test -d "$prefix" && \
     140654+ {
     140655+       test -n "$verbose" && echo "    ... testing for include-directories under $prefix"
     140656        test -d $prefix/include &&          cf_search="$cf_search $prefix/include"
     140657        test -d $prefix/include/$cf_ncuhdr_root &&       cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
     140658        test -d $prefix/include/$cf_ncuhdr_root/include &&    cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
     140659@@ -3035,25 +3323,43 @@
     140660        test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root &&    cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     140661 }
     140662 
     140663-test "$prefix" != /opt && \
     140664-test -d /opt && {
     140665-       test -n "$verbose" && echo "    ... testing include-directories under /opt"
     140666-       test -d /opt/include &&             cf_search="$cf_search /opt/include"
     140667-       test -d /opt/include/$cf_ncuhdr_root &&          cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
     140668-       test -d /opt/include/$cf_ncuhdr_root/include &&       cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
     140669-       test -d /opt/$cf_ncuhdr_root/include &&          cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
     140670-       test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root &&       cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     140671+
     140672+test "/usr/local" != "$prefix" && \
     140673+test -d "/usr/local" && \
     140674+(test $prefix = NONE || test -d $prefix) && {
     140675+       test -n "$verbose" && echo "    ... testing for include-directories under /usr/local"
     140676+       test -d /usr/local/include &&          cf_search="$cf_search /usr/local/include"
     140677+       test -d /usr/local/include/$cf_ncuhdr_root &&       cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
     140678+       test -d /usr/local/include/$cf_ncuhdr_root/include &&    cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
     140679+       test -d /usr/local/$cf_ncuhdr_root/include &&       cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
     140680+       test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root &&    cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     140681+}
     140682+
     140683+
     140684+test "/opt" != "$prefix" && \
     140685+test -d "/opt" && \
     140686+(test $prefix = NONE || test -d $prefix) && {
     140687+       test -n "$verbose" && echo "    ... testing for include-directories under /opt"
     140688+       test -d /opt/include &&          cf_search="$cf_search /opt/include"
     140689+       test -d /opt/include/$cf_ncuhdr_root &&       cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
     140690+       test -d /opt/include/$cf_ncuhdr_root/include &&    cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
     140691+       test -d /opt/$cf_ncuhdr_root/include &&       cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
     140692+       test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root &&    cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     140693 }
     140694 
     140695-test "$prefix" != /usr && \
     140696-test -d /usr && {
     140697-       test -n "$verbose" && echo "    ... testing include-directories under /usr"
     140698-       test -d /usr/include &&             cf_search="$cf_search /usr/include"
     140699-       test -d /usr/include/$cf_ncuhdr_root &&          cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
     140700-       test -d /usr/include/$cf_ncuhdr_root/include &&       cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
     140701-       test -d /usr/$cf_ncuhdr_root/include &&          cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
     140702+
     140703+test "$HOME" != "$prefix" && \
     140704+test -d "$HOME" && \
     140705+(test $prefix = NONE || test -d $prefix) && {
     140706+       test -n "$verbose" && echo "    ... testing for include-directories under $HOME"
     140707+       test -d $HOME/include &&          cf_search="$cf_search $HOME/include"
     140708+       test -d $HOME/include/$cf_ncuhdr_root &&       cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
     140709+       test -d $HOME/include/$cf_ncuhdr_root/include &&    cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
     140710+       test -d $HOME/$cf_ncuhdr_root/include &&       cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
     140711+       test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root &&    cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     140712 }
     140713 
     140714+
     140715 test "$includedir" != NONE && \
     140716 test "$includedir" != "/usr/include" && \
     140717 test -d "$includedir" && {
     140718@@ -3074,46 +3380,69 @@
     140719        for cf_incdir in $cf_search
     140720        do
     140721               
     140722-for cf_add_incdir in $cf_incdir
     140723-do
     140724-       while true
     140725+if test -n "$cf_incdir" ; then
     140726+  for cf_add_incdir in $cf_incdir
     140727+  do
     140728+       while test $cf_add_incdir != /usr/include
     140729        do
     140730-               case $cf_add_incdir in
     140731-               /usr/include) # (vi
     140732-                       ;;
     140733-               /usr/local/include) # (vi
     140734+         if test -d $cf_add_incdir
     140735+         then
     140736+               cf_have_incdir=no
     140737+               if test -n "$CFLAGS$CPPFLAGS" ; then
     140738+                 # a loop is needed to ensure we can add subdirs of existing dirs
     140739+                 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
     140740+                       if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
     140741+                         cf_have_incdir=yes; break
     140742+                       fi
     140743+                 done
     140744+               fi
     140745+
     140746+               if test "$cf_have_incdir" = no ; then
     140747+          if test "$cf_add_incdir" = /usr/local/include ; then
     140748                        if test "$GCC" = yes
     140749                        then
     140750-                               cf_save_CPPFLAGS="$CPPFLAGS"
     140751-                               CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     140752-                               cat > conftest.$ac_ext <<EOF
    129737140753-#line 3091 "configure"
    129738 +#line 3264 "configure"
     140754+                         cf_save_CPPFLAGS=$CPPFLAGS
     140755+                         CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     140756+                         cat > conftest.$ac_ext <<EOF
     140757+#line 3408 "configure"
    129739140758 #include "confdefs.h"
    129740140759 #include <stdio.h>
     
    129744140763 EOF
    129745140764-if { (eval echo configure:3098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    129746 +if { (eval echo configure:3271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     140765+if { (eval echo configure:3415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    129747140766   :
    129748140767 else
    129749140768   echo "configure: failed program was:" >&5
    129750 @@ -3121,7 +3294,7 @@
     140769   cat conftest.$ac_ext >&5
     140770   rm -rf conftest*
     140771-  CPPFLAGS="$cf_save_CPPFLAGS"
     140772+  cf_have_incdir=yes
     140773 fi
     140774 rm -f conftest*
     140775+                         CPPFLAGS=$cf_save_CPPFLAGS
     140776                        fi
     140777-                       ;;
     140778-               *) # (vi
     140779-                       CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     140780-                       ;;
     140781-               esac
     140782-               cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
     140783-               test "$cf_top_incdir" = "$cf_add_incdir" && break
     140784-               cf_add_incdir="$cf_top_incdir"
     140785+                 fi
     140786+               fi
     140787+
     140788+               if test "$cf_have_incdir" = no ; then
     140789+                 test -n "$verbose" && echo "  adding $cf_add_incdir to include-path" 1>&6
     140790+
     140791+echo "${as_me-configure}:3432: testing adding $cf_add_incdir to include-path ..." 1>&5
     140792+
     140793+
     140794+                 CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
     140795+
     140796+          cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
     140797+          test "$cf_top_incdir" = "$cf_add_incdir" && break
     140798+          cf_add_incdir="$cf_top_incdir"
     140799+               else
     140800+                 break
     140801+               fi
     140802+         fi
     140803        done
     140804-done
     140805+  done
     140806+fi
     140807 
     140808                for cf_header in \
     140809                        ncurses.h \
     140810@@ -3121,7 +3450,7 @@
    129751140811                do
    129752140812                       
    129753140813        cat > conftest.$ac_ext <<EOF
    129754140814-#line 3125 "configure"
    129755 +#line 3298 "configure"
     140815+#line 3454 "configure"
    129756140816 #include "confdefs.h"
    129757140817 
    129758140818 
    129759 @@ -3142,7 +3315,7 @@
     140819@@ -3142,7 +3471,7 @@
    129760140820       
    129761140821 ; return 0; }
    129762140822 EOF
    129763140823-if { (eval echo configure:3146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    129764 +if { (eval echo configure:3319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     140824+if { (eval echo configure:3475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    129765140825   rm -rf conftest*
    129766140826   cf_cv_ncurses_h2=$cf_header
    129767140827       
    129768 @@ -3189,14 +3362,14 @@
    129769                                 cf_save_CPPFLAGS="$CPPFLAGS"
    129770                                 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
    129771                                 cat > conftest.$ac_ext <<EOF
     140828@@ -3176,46 +3505,69 @@
     140829                cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
     140830        fi
     140831       
     140832-for cf_add_incdir in $cf_1st_incdir
     140833-do
     140834-       while true
     140835+if test -n "$cf_1st_incdir" ; then
     140836+  for cf_add_incdir in $cf_1st_incdir
     140837+  do
     140838+       while test $cf_add_incdir != /usr/include
     140839        do
     140840-               case $cf_add_incdir in
     140841-               /usr/include) # (vi
     140842-                       ;;
     140843-               /usr/local/include) # (vi
     140844+         if test -d $cf_add_incdir
     140845+         then
     140846+               cf_have_incdir=no
     140847+               if test -n "$CFLAGS$CPPFLAGS" ; then
     140848+                 # a loop is needed to ensure we can add subdirs of existing dirs
     140849+                 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
     140850+                       if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
     140851+                         cf_have_incdir=yes; break
     140852+                       fi
     140853+                 done
     140854+               fi
     140855+
     140856+               if test "$cf_have_incdir" = no ; then
     140857+          if test "$cf_add_incdir" = /usr/local/include ; then
     140858                        if test "$GCC" = yes
     140859                        then
     140860-                               cf_save_CPPFLAGS="$CPPFLAGS"
     140861-                               CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     140862-                               cat > conftest.$ac_ext <<EOF
    129772140863-#line 3193 "configure"
    129773 +#line 3366 "configure"
     140864+                         cf_save_CPPFLAGS=$CPPFLAGS
     140865+                         CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     140866+                         cat > conftest.$ac_ext <<EOF
     140867+#line 3533 "configure"
    129774140868 #include "confdefs.h"
    129775140869 #include <stdio.h>
     
    129779140873 EOF
    129780140874-if { (eval echo configure:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    129781 +if { (eval echo configure:3373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     140875+if { (eval echo configure:3540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    129782140876   :
    129783140877 else
    129784140878   echo "configure: failed program was:" >&5
    129785 @@ -3249,7 +3422,7 @@
     140879   cat conftest.$ac_ext >&5
     140880   rm -rf conftest*
     140881-  CPPFLAGS="$cf_save_CPPFLAGS"
     140882+  cf_have_incdir=yes
     140883 fi
     140884 rm -f conftest*
     140885+                         CPPFLAGS=$cf_save_CPPFLAGS
     140886                        fi
     140887-                       ;;
     140888-               *) # (vi
     140889-                       CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     140890-                       ;;
     140891-               esac
     140892-               cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
     140893-               test "$cf_top_incdir" = "$cf_add_incdir" && break
     140894-               cf_add_incdir="$cf_top_incdir"
     140895+                 fi
     140896+               fi
     140897+
     140898+               if test "$cf_have_incdir" = no ; then
     140899+                 test -n "$verbose" && echo "  adding $cf_add_incdir to include-path" 1>&6
     140900+
     140901+echo "${as_me-configure}:3557: testing adding $cf_add_incdir to include-path ..." 1>&5
     140902+
     140903+
     140904+                 CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
     140905+
     140906+          cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
     140907+          test "$cf_top_incdir" = "$cf_add_incdir" && break
     140908+          cf_add_incdir="$cf_top_incdir"
     140909+               else
     140910+                 break
     140911+               fi
     140912+         fi
     140913        done
     140914-done
     140915+  done
     140916+fi
     140917 
     140918 
     140919 fi
     140920@@ -3249,7 +3601,7 @@
    129786140921 
    129787140922 
    129788140923 echo $ac_n "checking for terminfo header""... $ac_c" 1>&6
    129789140924-echo "configure:3253: checking for terminfo header" >&5
    129790 +echo "configure:3426: checking for terminfo header" >&5
     140925+echo "configure:3605: checking for terminfo header" >&5
    129791140926 if eval "test \"`echo '$''{'cf_cv_term_header'+set}'`\" = set"; then
    129792140927   echo $ac_n "(cached) $ac_c" 1>&6
    129793140928 else
    129794 @@ -3266,7 +3439,7 @@
     140929@@ -3266,7 +3618,7 @@
    129795140930 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
    129796140931 do
    129797140932 cat > conftest.$ac_ext <<EOF
    129798140933-#line 3270 "configure"
    129799 +#line 3443 "configure"
     140934+#line 3622 "configure"
    129800140935 #include "confdefs.h"
    129801140936 #include <stdio.h>
    129802140937 #include <${cf_cv_ncurses_header-curses.h}>
    129803 @@ -3276,7 +3449,7 @@
     140938@@ -3276,7 +3628,7 @@
    129804140939 int x = auto_left_margin
    129805140940 ; return 0; }
    129806140941 EOF
    129807140942-if { (eval echo configure:3280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    129808 +if { (eval echo configure:3453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     140943+if { (eval echo configure:3632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    129809140944   rm -rf conftest*
    129810140945   
    129811140946        cf_cv_term_header="$cf_test"
    129812 @@ -3331,7 +3504,7 @@
     140947@@ -3331,7 +3683,7 @@
    129813140948 
    129814140949 
    129815140950 echo $ac_n "checking for ncurses version""... $ac_c" 1>&6
    129816140951-echo "configure:3335: checking for ncurses version" >&5
    129817 +echo "configure:3508: checking for ncurses version" >&5
     140952+echo "configure:3687: checking for ncurses version" >&5
    129818140953 if eval "test \"`echo '$''{'cf_cv_ncurses_version'+set}'`\" = set"; then
    129819140954   echo $ac_n "(cached) $ac_c" 1>&6
    129820140955 else
    129821 @@ -3357,7 +3530,7 @@
     140956@@ -3357,7 +3709,7 @@
    129822140957 #endif
    129823140958 EOF
    129824140959        cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
    129825140960-       { (eval echo configure:3361: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
    129826 +       { (eval echo configure:3534: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
     140961+       { (eval echo configure:3713: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
    129827140962        if test -f conftest.out ; then
    129828140963                cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
    129829140964                test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
    129830 @@ -3366,7 +3539,7 @@
     140965@@ -3366,7 +3718,7 @@
    129831140966 
    129832140967 else
    129833140968   cat > conftest.$ac_ext <<EOF
    129834140969-#line 3370 "configure"
    129835 +#line 3543 "configure"
     140970+#line 3722 "configure"
    129836140971 #include "confdefs.h"
    129837140972 
    129838140973 #include <${cf_cv_ncurses_header-curses.h}>
    129839 @@ -3387,10 +3560,10 @@
     140974@@ -3387,10 +3739,10 @@
    129840140975        make an error
    129841140976 # endif
     
    129846140981 EOF
    129847140982-if { (eval echo configure:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    129848 +if { (eval echo configure:3567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     140983+if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    129849140984 then
    129850140985   
    129851140986        cf_cv_ncurses_version=`cat $cf_tempfile`
    129852 @@ -3421,7 +3594,7 @@
     140987@@ -3421,7 +3773,7 @@
    129853140988 cf_ncurses_LIBS=""
    129854140989 cf_ncurses_SAVE="$LIBS"
    129855140990 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
    129856140991-echo "configure:3425: checking for Gpm_Open in -lgpm" >&5
    129857 +echo "configure:3598: checking for Gpm_Open in -lgpm" >&5
     140992+echo "configure:3777: checking for Gpm_Open in -lgpm" >&5
    129858140993 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
    129859140994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    129860140995   echo $ac_n "(cached) $ac_c" 1>&6
    129861 @@ -3429,7 +3602,7 @@
     140996@@ -3429,7 +3781,7 @@
    129862140997   ac_save_LIBS="$LIBS"
    129863140998 LIBS="-lgpm  $LIBS"
    129864140999 cat > conftest.$ac_ext <<EOF
    129865141000-#line 3433 "configure"
    129866 +#line 3606 "configure"
     141001+#line 3785 "configure"
    129867141002 #include "confdefs.h"
    129868141003 /* Override any gcc2 internal prototype to avoid an error.  */
    129869141004 /* We use char because int might match the return type of a gcc2
    129870 @@ -3440,7 +3613,7 @@
     141005@@ -3440,7 +3792,7 @@
    129871141006 Gpm_Open()
    129872141007 ; return 0; }
    129873141008 EOF
    129874141009-if { (eval echo configure:3444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129875 +if { (eval echo configure:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     141010+if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129876141011   rm -rf conftest*
    129877141012   eval "ac_cv_lib_$ac_lib_var=yes"
    129878141013 else
    129879 @@ -3456,7 +3629,7 @@
     141014@@ -3456,7 +3808,7 @@
    129880141015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    129881141016   echo "$ac_t""yes" 1>&6
    129882141017   echo $ac_n "checking for initscr in -lgpm""... $ac_c" 1>&6
    129883141018-echo "configure:3460: checking for initscr in -lgpm" >&5
    129884 +echo "configure:3633: checking for initscr in -lgpm" >&5
     141019+echo "configure:3812: checking for initscr in -lgpm" >&5
    129885141020 ac_lib_var=`echo gpm'_'initscr | sed 'y%./+-%__p_%'`
    129886141021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    129887141022   echo $ac_n "(cached) $ac_c" 1>&6
    129888 @@ -3464,7 +3637,7 @@
     141023@@ -3464,7 +3816,7 @@
    129889141024   ac_save_LIBS="$LIBS"
    129890141025 LIBS="-lgpm  $LIBS"
    129891141026 cat > conftest.$ac_ext <<EOF
    129892141027-#line 3468 "configure"
    129893 +#line 3641 "configure"
     141028+#line 3820 "configure"
    129894141029 #include "confdefs.h"
    129895141030 /* Override any gcc2 internal prototype to avoid an error.  */
    129896141031 /* We use char because int might match the return type of a gcc2
    129897 @@ -3475,7 +3648,7 @@
     141032@@ -3475,7 +3827,7 @@
    129898141033 initscr()
    129899141034 ; return 0; }
    129900141035 EOF
    129901141036-if { (eval echo configure:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129902 +if { (eval echo configure:3652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     141037+if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129903141038   rm -rf conftest*
    129904141039   eval "ac_cv_lib_$ac_lib_var=yes"
    129905141040 else
    129906 @@ -3507,7 +3680,7 @@
     141041@@ -3507,7 +3859,7 @@
    129907141042        # version of ncurses (but it should do no harm, since it's static).
    129908141043        if test "$cf_nculib_root" = ncurses ; then
    129909141044                echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
    129910141045-echo "configure:3511: checking for tgoto in -lmytinfo" >&5
    129911 +echo "configure:3684: checking for tgoto in -lmytinfo" >&5
     141046+echo "configure:3863: checking for tgoto in -lmytinfo" >&5
    129912141047 ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
    129913141048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    129914141049   echo $ac_n "(cached) $ac_c" 1>&6
    129915 @@ -3515,7 +3688,7 @@
     141050@@ -3515,7 +3867,7 @@
    129916141051   ac_save_LIBS="$LIBS"
    129917141052 LIBS="-lmytinfo  $LIBS"
    129918141053 cat > conftest.$ac_ext <<EOF
    129919141054-#line 3519 "configure"
    129920 +#line 3692 "configure"
     141055+#line 3871 "configure"
    129921141056 #include "confdefs.h"
    129922141057 /* Override any gcc2 internal prototype to avoid an error.  */
    129923141058 /* We use char because int might match the return type of a gcc2
    129924 @@ -3526,7 +3699,7 @@
     141059@@ -3526,7 +3878,7 @@
    129925141060 tgoto()
    129926141061 ; return 0; }
    129927141062 EOF
    129928141063-if { (eval echo configure:3530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129929 +if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     141064+if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129930141065   rm -rf conftest*
    129931141066   eval "ac_cv_lib_$ac_lib_var=yes"
    129932141067 else
    129933 @@ -3560,12 +3733,12 @@
     141068@@ -3554,18 +3906,47 @@
     141069 
     141070 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
     141071 then
     141072-       LIBS="-L$cf_cv_curses_dir/lib -l$cf_nculib_root $LIBS"
     141073+       
     141074+if test -n "$cf_cv_curses_dir/lib" ; then
     141075+  for cf_add_libdir in $cf_cv_curses_dir/lib
     141076+  do
     141077+    if test $cf_add_libdir = /usr/lib ; then
     141078+      :
     141079+    elif test -d $cf_add_libdir
     141080+    then
     141081+      cf_have_libdir=no
     141082+      if test -n "$LDFLAGS$LIBS" ; then
     141083+        # a loop is needed to ensure we can add subdirs of existing dirs
     141084+        for cf_test_libdir in $LDFLAGS $LIBS ; do
     141085+          if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
     141086+            cf_have_libdir=yes; break
     141087+          fi
     141088+        done
     141089+      fi
     141090+      if test "$cf_have_libdir" = no ; then
     141091+        test -n "$verbose" && echo "   adding $cf_add_libdir to library-path" 1>&6
     141092+
     141093+echo "${as_me-configure}:3930: testing adding $cf_add_libdir to library-path ..." 1>&5
     141094+
     141095+
     141096+        LDFLAGS="-L$cf_add_libdir $LDFLAGS"
     141097+      fi
     141098+    fi
     141099+  done
     141100+fi
     141101+
     141102+       LIBS="-l$cf_nculib_root $LIBS"
     141103 else
     141104       
    129934141105        eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
    129935141106        cf_libdir=""
    129936141107        echo $ac_n "checking for initscr""... $ac_c" 1>&6
    129937141108-echo "configure:3564: checking for initscr" >&5
    129938 +echo "configure:3737: checking for initscr" >&5
     141109+echo "configure:3945: checking for initscr" >&5
    129939141110 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
    129940141111   echo $ac_n "(cached) $ac_c" 1>&6
     
    129942141113   cat > conftest.$ac_ext <<EOF
    129943141114-#line 3569 "configure"
    129944 +#line 3742 "configure"
     141115+#line 3950 "configure"
    129945141116 #include "confdefs.h"
    129946141117 /* System header to define __stub macros and hopefully few prototypes,
    129947141118     which can conflict with char initscr(); below.  */
    129948 @@ -3588,7 +3761,7 @@
     141119@@ -3588,7 +3969,7 @@
    129949141120 
    129950141121 ; return 0; }
    129951141122 EOF
    129952141123-if { (eval echo configure:3592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129953 +if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     141124+if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129954141125   rm -rf conftest*
    129955141126   eval "ac_cv_func_initscr=yes"
    129956141127 else
    129957 @@ -3608,17 +3781,17 @@
     141128@@ -3608,17 +3989,17 @@
    129958141129 
    129959141130                cf_save_LIBS="$LIBS"
    129960141131                echo $ac_n "checking for initscr in -l$cf_nculib_root""... $ac_c" 1>&6
    129961141132-echo "configure:3612: checking for initscr in -l$cf_nculib_root" >&5
    129962 +echo "configure:3785: checking for initscr in -l$cf_nculib_root" >&5
     141133+echo "configure:3993: checking for initscr in -l$cf_nculib_root" >&5
    129963141134                LIBS="-l$cf_nculib_root $LIBS"
    129964141135                cat > conftest.$ac_ext <<EOF
    129965141136-#line 3615 "configure"
    129966 +#line 3788 "configure"
     141137+#line 3996 "configure"
    129967141138 #include "confdefs.h"
    129968141139 #include <${cf_cv_ncurses_header-curses.h}>
     
    129972141143 EOF
    129973141144-if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129974 +if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     141145+if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129975141146   rm -rf conftest*
    129976141147   echo "$ac_t""yes" 1>&6
    129977141148                         eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
    129978 @@ -3687,17 +3860,17 @@
     141149@@ -3630,34 +4011,23 @@
     141150   echo "$ac_t""no" 1>&6
     141151                        cf_search=""
     141152 
     141153-test -d "$HOME" && {
     141154-       test -n "$verbose" && echo "    ... testing lib-directories under $HOME"
     141155-       test -d "$HOME/lib" &&          cf_search="$cf_search $HOME/lib"
     141156-       test -d "$HOME/lib/$cf_nculib_root" &&       cf_search="$cf_search $HOME/lib/$cf_nculib_root"
     141157-       test -d "$HOME/lib/$cf_nculib_root/lib" &&    cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
     141158-}
     141159 
     141160-# For other stuff under the home directory, it should be sufficient to put
     141161-# a symbolic link for $HOME/$cf_nculib_root to the actual package location:
     141162-test -d "$HOME/$cf_nculib_root" && {
     141163-       test -n "$verbose" && echo "    ... testing lib-directories under $HOME/$cf_nculib_root"
     141164-       test -d "$HOME/$cf_nculib_root/lib" &&       cf_search="$cf_search $HOME/$cf_nculib_root/lib"
     141165-       test -d "$HOME/$cf_nculib_root/lib/$cf_nculib_root" &&    cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
     141166+test "/usr" != "$prefix" && \
     141167+test -d "/usr" && \
     141168+(test $prefix = NONE || test -d $prefix) && {
     141169+       test -n "$verbose" && echo "    ... testing for lib-directories under /usr"
     141170+       test -d /usr/lib &&          cf_search="$cf_search /usr/lib"
     141171+       test -d /usr/lib/$cf_nculib_root &&       cf_search="$cf_search /usr/lib/$cf_nculib_root"
     141172+       test -d /usr/lib/$cf_nculib_root/lib &&    cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
     141173+       test -d /usr/$cf_nculib_root/lib &&       cf_search="$cf_search /usr/$cf_nculib_root/lib"
     141174+       test -d /usr/$cf_nculib_root/lib/$cf_nculib_root &&    cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
     141175 }
     141176 
     141177-test "$prefix" != /usr/local && \
     141178-test -d /usr/local && {
     141179-       test -n "$verbose" && echo "    ... testing lib-directories under /usr/local"
     141180-       test -d /usr/local/lib &&       cf_search="$cf_search /usr/local/lib"
     141181-       test -d /usr/local/lib/$cf_nculib_root &&    cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
     141182-       test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
     141183-       test -d /usr/local/$cf_nculib_root/lib &&    cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
     141184-       test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
     141185-}
     141186 
     141187-test "$prefix" != NONE && \
     141188-test -d $prefix && {
     141189-       test -n "$verbose" && echo "    ... testing lib-directories under $prefix"
     141190+test "$prefix" != "NONE" && \
     141191+test -d "$prefix" && \
     141192+ {
     141193+       test -n "$verbose" && echo "    ... testing for lib-directories under $prefix"
     141194        test -d $prefix/lib &&          cf_search="$cf_search $prefix/lib"
     141195        test -d $prefix/lib/$cf_nculib_root &&       cf_search="$cf_search $prefix/lib/$cf_nculib_root"
     141196        test -d $prefix/lib/$cf_nculib_root/lib &&    cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
     141197@@ -3665,39 +4035,57 @@
     141198        test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root &&    cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
     141199 }
     141200 
     141201-test "$prefix" != /opt && \
     141202-test -d /opt && {
     141203-       test -n "$verbose" && echo "    ... testing lib-directories under /opt"
     141204-       test -d /opt/lib &&             cf_search="$cf_search /opt/lib"
     141205-       test -d /opt/lib/$cf_nculib_root &&          cf_search="$cf_search /opt/lib/$cf_nculib_root"
     141206-       test -d /opt/lib/$cf_nculib_root/lib &&       cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
     141207-       test -d /opt/$cf_nculib_root/lib &&          cf_search="$cf_search /opt/$cf_nculib_root/lib"
     141208-       test -d /opt/$cf_nculib_root/lib/$cf_nculib_root &&       cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
     141209+
     141210+test "/usr/local" != "$prefix" && \
     141211+test -d "/usr/local" && \
     141212+(test $prefix = NONE || test -d $prefix) && {
     141213+       test -n "$verbose" && echo "    ... testing for lib-directories under /usr/local"
     141214+       test -d /usr/local/lib &&          cf_search="$cf_search /usr/local/lib"
     141215+       test -d /usr/local/lib/$cf_nculib_root &&       cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
     141216+       test -d /usr/local/lib/$cf_nculib_root/lib &&    cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
     141217+       test -d /usr/local/$cf_nculib_root/lib &&       cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
     141218+       test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root &&    cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
     141219+}
     141220+
     141221+
     141222+test "/opt" != "$prefix" && \
     141223+test -d "/opt" && \
     141224+(test $prefix = NONE || test -d $prefix) && {
     141225+       test -n "$verbose" && echo "    ... testing for lib-directories under /opt"
     141226+       test -d /opt/lib &&          cf_search="$cf_search /opt/lib"
     141227+       test -d /opt/lib/$cf_nculib_root &&       cf_search="$cf_search /opt/lib/$cf_nculib_root"
     141228+       test -d /opt/lib/$cf_nculib_root/lib &&    cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
     141229+       test -d /opt/$cf_nculib_root/lib &&       cf_search="$cf_search /opt/$cf_nculib_root/lib"
     141230+       test -d /opt/$cf_nculib_root/lib/$cf_nculib_root &&    cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
     141231 }
     141232 
     141233-test "$prefix" != /usr && \
     141234-test -d /usr && {
     141235-       test -n "$verbose" && echo "    ... testing lib-directories under /usr"
     141236-       test -d /usr/lib &&             cf_search="$cf_search /usr/lib"
     141237-       test -d /usr/lib/$cf_nculib_root &&          cf_search="$cf_search /usr/lib/$cf_nculib_root"
     141238-       test -d /usr/lib/$cf_nculib_root/lib &&       cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
     141239-       test -d /usr/$cf_nculib_root/lib &&          cf_search="$cf_search /usr/$cf_nculib_root/lib"
     141240+
     141241+test "$HOME" != "$prefix" && \
     141242+test -d "$HOME" && \
     141243+(test $prefix = NONE || test -d $prefix) && {
     141244+       test -n "$verbose" && echo "    ... testing for lib-directories under $HOME"
     141245+       test -d $HOME/lib &&          cf_search="$cf_search $HOME/lib"
     141246+       test -d $HOME/lib/$cf_nculib_root &&       cf_search="$cf_search $HOME/lib/$cf_nculib_root"
     141247+       test -d $HOME/lib/$cf_nculib_root/lib &&    cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
     141248+       test -d $HOME/$cf_nculib_root/lib &&       cf_search="$cf_search $HOME/$cf_nculib_root/lib"
     141249+       test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root &&    cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
     141250 }
     141251 
     141252+
    129979141253                        for cf_libdir in $cf_search
    129980141254                        do
    129981141255                                echo $ac_n "checking for -l$cf_nculib_root in $cf_libdir""... $ac_c" 1>&6
    129982141256-echo "configure:3691: checking for -l$cf_nculib_root in $cf_libdir" >&5
    129983 +echo "configure:3864: checking for -l$cf_nculib_root in $cf_libdir" >&5
     141257+echo "configure:4079: checking for -l$cf_nculib_root in $cf_libdir" >&5
    129984141258                                LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
    129985141259                                cat > conftest.$ac_ext <<EOF
    129986141260-#line 3694 "configure"
    129987 +#line 3867 "configure"
     141261+#line 4082 "configure"
    129988141262 #include "confdefs.h"
    129989141263 #include <${cf_cv_ncurses_header-curses.h}>
     
    129993141267 EOF
    129994141268-if { (eval echo configure:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129995 +if { (eval echo configure:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     141269+if { (eval echo configure:4089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    129996141270   rm -rf conftest*
    129997141271   echo "$ac_t""yes" 1>&6
    129998141272                                         eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
    129999 @@ -3728,7 +3901,7 @@
     141273@@ -3728,7 +4116,7 @@
    130000141274 
    130001141275 if test -n "$cf_ncurses_LIBS" ; then
    130002141276        echo $ac_n "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS""... $ac_c" 1>&6
    130003141277-echo "configure:3732: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
    130004 +echo "configure:3905: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
     141278+echo "configure:4120: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
    130005141279        cf_ncurses_SAVE="$LIBS"
    130006141280        for p in $cf_ncurses_LIBS ; do
    130007141281                q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
    130008 @@ -3737,14 +3910,14 @@
     141282@@ -3737,14 +4125,14 @@
    130009141283                fi
    130010141284        done
    130011141285        cat > conftest.$ac_ext <<EOF
    130012141286-#line 3741 "configure"
    130013 +#line 3914 "configure"
     141287+#line 4129 "configure"
    130014141288 #include "confdefs.h"
    130015141289 #include <${cf_cv_ncurses_header-curses.h}>
     
    130019141293 EOF
    130020141294-if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130021 +if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     141295+if { (eval echo configure:4136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130022141296   rm -rf conftest*
    130023141297   echo "$ac_t""yes" 1>&6
    130024141298 else
    130025 @@ -3770,14 +3943,14 @@
     141299@@ -3770,14 +4158,14 @@
    130026141300        cf_cv_libtype=w
    130027141301       
    130028141302 echo $ac_n "checking for multibyte character support""... $ac_c" 1>&6
    130029141303-echo "configure:3774: checking for multibyte character support" >&5
    130030 +echo "configure:3947: checking for multibyte character support" >&5
     141304+echo "configure:4162: checking for multibyte character support" >&5
    130031141305 if eval "test \"`echo '$''{'cf_cv_utf8_lib'+set}'`\" = set"; then
    130032141306   echo $ac_n "(cached) $ac_c" 1>&6
     
    130036141310        cat > conftest.$ac_ext <<EOF
    130037141311-#line 3781 "configure"
    130038 +#line 3954 "configure"
     141312+#line 4169 "configure"
    130039141313 #include "confdefs.h"
    130040141314 
    130041141315 #include <stdlib.h>
    130042 @@ -3785,7 +3958,7 @@
     141316@@ -3785,7 +4173,7 @@
    130043141317 putwc(0,0);
    130044141318 ; return 0; }
    130045141319 EOF
    130046141320-if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130047 +if { (eval echo configure:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     141321+if { (eval echo configure:4177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130048141322   rm -rf conftest*
    130049141323   cf_cv_utf8_lib=yes
    130050141324 else
    130051 @@ -3794,7 +3967,7 @@
     141325@@ -3794,7 +4182,7 @@
    130052141326   rm -rf conftest*
    130053141327   LIBS="-lutf8 $LIBS"
    130054141328         cat > conftest.$ac_ext <<EOF
    130055141329-#line 3798 "configure"
    130056 +#line 3971 "configure"
     141330+#line 4186 "configure"
    130057141331 #include "confdefs.h"
    130058141332 
    130059141333 #include <libutf8.h>
    130060 @@ -3802,7 +3975,7 @@
     141334@@ -3802,7 +4190,7 @@
    130061141335 putwc(0,0);
    130062141336 ; return 0; }
    130063141337 EOF
    130064141338-if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130065 +if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     141339+if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130066141340   rm -rf conftest*
    130067141341   cf_cv_utf8_lib=add-on
    130068141342 else
    130069 @@ -3839,7 +4012,7 @@
    130070  CPPFLAGS="-I$cf_cv_curses_dir/include -I$cf_cv_curses_dir/include/$cf_ncuhdr_root $CPPFLAGS"
     141343@@ -3835,11 +4223,76 @@
     141344 cf_ncuhdr_root=ncursesw
     141345 
     141346 test -n "$cf_cv_curses_dir" && \
     141347-test "$cf_cv_curses_dir" != "no" && \
     141348-CPPFLAGS="-I$cf_cv_curses_dir/include -I$cf_cv_curses_dir/include/$cf_ncuhdr_root $CPPFLAGS"
     141349+test "$cf_cv_curses_dir" != "no" && { \
     141350
     141351+if test -n "$cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
     141352+  for cf_add_incdir in $cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root
     141353+  do
     141354+       while test $cf_add_incdir != /usr/include
     141355+       do
     141356+         if test -d $cf_add_incdir
     141357+         then
     141358+               cf_have_incdir=no
     141359+               if test -n "$CFLAGS$CPPFLAGS" ; then
     141360+                 # a loop is needed to ensure we can add subdirs of existing dirs
     141361+                 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
     141362+                       if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
     141363+                         cf_have_incdir=yes; break
     141364+                       fi
     141365+                 done
     141366+               fi
     141367+
     141368+               if test "$cf_have_incdir" = no ; then
     141369+          if test "$cf_add_incdir" = /usr/local/include ; then
     141370+                       if test "$GCC" = yes
     141371+                       then
     141372+                         cf_save_CPPFLAGS=$CPPFLAGS
     141373+                         CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     141374+                         cat > conftest.$ac_ext <<EOF
     141375+#line 4253 "configure"
     141376+#include "confdefs.h"
     141377+#include <stdio.h>
     141378+int main() {
     141379+printf("Hello")
     141380+; return 0; }
     141381+EOF
     141382+if { (eval echo configure:4260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     141383+  :
     141384+else
     141385+  echo "configure: failed program was:" >&5
     141386+  cat conftest.$ac_ext >&5
     141387+  rm -rf conftest*
     141388+  cf_have_incdir=yes
     141389+fi
     141390+rm -f conftest*
     141391+                         CPPFLAGS=$cf_save_CPPFLAGS
     141392+                       fi
     141393+                 fi
     141394+               fi
     141395+
     141396+               if test "$cf_have_incdir" = no ; then
     141397+                 test -n "$verbose" && echo "  adding $cf_add_incdir to include-path" 1>&6
     141398+
     141399+echo "${as_me-configure}:4277: testing adding $cf_add_incdir to include-path ..." 1>&5
     141400+
     141401+
     141402+                 CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
     141403+
     141404+          cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
     141405+          test "$cf_top_incdir" = "$cf_add_incdir" && break
     141406+          cf_add_incdir="$cf_top_incdir"
     141407+               else
     141408+                 break
     141409+               fi
     141410+         fi
     141411+       done
     141412+  done
     141413+fi
     141414+
     141415+}
    130071141416 
    130072141417 echo $ac_n "checking for $cf_ncuhdr_root header in include-path""... $ac_c" 1>&6
    130073141418-echo "configure:3843: checking for $cf_ncuhdr_root header in include-path" >&5
    130074 +echo "configure:4016: checking for $cf_ncuhdr_root header in include-path" >&5
     141419+echo "configure:4296: checking for $cf_ncuhdr_root header in include-path" >&5
    130075141420 if eval "test \"`echo '$''{'cf_cv_ncurses_h'+set}'`\" = set"; then
    130076141421   echo $ac_n "(cached) $ac_c" 1>&6
    130077141422 else
    130078 @@ -3850,7 +4023,7 @@
     141423@@ -3850,7 +4303,7 @@
    130079141424        do
    130080141425               
    130081141426        cat > conftest.$ac_ext <<EOF
    130082141427-#line 3854 "configure"
    130083 +#line 4027 "configure"
     141428+#line 4307 "configure"
    130084141429 #include "confdefs.h"
    130085141430 
    130086141431 
    130087 @@ -3879,7 +4052,7 @@
     141432@@ -3879,7 +4332,7 @@
    130088141433       
    130089141434 ; return 0; }
    130090141435 EOF
    130091141436-if { (eval echo configure:3883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    130092 +if { (eval echo configure:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     141437+if { (eval echo configure:4336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    130093141438   rm -rf conftest*
    130094141439   cf_cv_ncurses_h=$cf_header
    130095141440       
    130096 @@ -3905,7 +4078,7 @@
     141441@@ -3905,7 +4358,7 @@
    130097141442 else
    130098141443 
    130099141444 echo $ac_n "checking for $cf_ncuhdr_root include-path""... $ac_c" 1>&6
    130100141445-echo "configure:3909: checking for $cf_ncuhdr_root include-path" >&5
    130101 +echo "configure:4082: checking for $cf_ncuhdr_root include-path" >&5
     141446+echo "configure:4362: checking for $cf_ncuhdr_root include-path" >&5
    130102141447 if eval "test \"`echo '$''{'cf_cv_ncurses_h2'+set}'`\" = set"; then
    130103141448   echo $ac_n "(cached) $ac_c" 1>&6
    130104141449 else
    130105 @@ -4000,14 +4173,14 @@
    130106                                 cf_save_CPPFLAGS="$CPPFLAGS"
    130107                                 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
    130108                                 cat > conftest.$ac_ext <<EOF
     141450@@ -3913,34 +4366,23 @@
     141451        test -n "$verbose" && echo
     141452        cf_search=""
     141453 
     141454-test -d "$HOME" && {
     141455-       test -n "$verbose" && echo "    ... testing include-directories under $HOME"
     141456-       test -d "$HOME/include" &&          cf_search="$cf_search $HOME/include"
     141457-       test -d "$HOME/include/$cf_ncuhdr_root" &&       cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
     141458-       test -d "$HOME/include/$cf_ncuhdr_root/include" &&    cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
     141459-}
     141460 
     141461-# For other stuff under the home directory, it should be sufficient to put
     141462-# a symbolic link for $HOME/$cf_ncuhdr_root to the actual package location:
     141463-test -d "$HOME/$cf_ncuhdr_root" && {
     141464-       test -n "$verbose" && echo "    ... testing include-directories under $HOME/$cf_ncuhdr_root"
     141465-       test -d "$HOME/$cf_ncuhdr_root/include" &&       cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
     141466-       test -d "$HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root" &&    cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     141467+test "/usr" != "$prefix" && \
     141468+test -d "/usr" && \
     141469+(test $prefix = NONE || test -d $prefix) && {
     141470+       test -n "$verbose" && echo "    ... testing for include-directories under /usr"
     141471+       test -d /usr/include &&          cf_search="$cf_search /usr/include"
     141472+       test -d /usr/include/$cf_ncuhdr_root &&       cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
     141473+       test -d /usr/include/$cf_ncuhdr_root/include &&    cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
     141474+       test -d /usr/$cf_ncuhdr_root/include &&       cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
     141475+       test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root &&    cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     141476 }
     141477 
     141478-test "$prefix" != /usr/local && \
     141479-test -d /usr/local && {
     141480-       test -n "$verbose" && echo "    ... testing include-directories under /usr/local"
     141481-       test -d /usr/local/include &&       cf_search="$cf_search /usr/local/include"
     141482-       test -d /usr/local/include/$cf_ncuhdr_root &&    cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
     141483-       test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
     141484-       test -d /usr/local/$cf_ncuhdr_root/include &&    cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
     141485-       test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     141486-}
     141487 
     141488-test "$prefix" != NONE && \
     141489-test -d $prefix && {
     141490-       test -n "$verbose" && echo "    ... testing include-directories under $prefix"
     141491+test "$prefix" != "NONE" && \
     141492+test -d "$prefix" && \
     141493+ {
     141494+       test -n "$verbose" && echo "    ... testing for include-directories under $prefix"
     141495        test -d $prefix/include &&          cf_search="$cf_search $prefix/include"
     141496        test -d $prefix/include/$cf_ncuhdr_root &&       cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
     141497        test -d $prefix/include/$cf_ncuhdr_root/include &&    cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
     141498@@ -3948,25 +4390,43 @@
     141499        test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root &&    cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     141500 }
     141501 
     141502-test "$prefix" != /opt && \
     141503-test -d /opt && {
     141504-       test -n "$verbose" && echo "    ... testing include-directories under /opt"
     141505-       test -d /opt/include &&             cf_search="$cf_search /opt/include"
     141506-       test -d /opt/include/$cf_ncuhdr_root &&          cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
     141507-       test -d /opt/include/$cf_ncuhdr_root/include &&       cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
     141508-       test -d /opt/$cf_ncuhdr_root/include &&          cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
     141509-       test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root &&       cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     141510+
     141511+test "/usr/local" != "$prefix" && \
     141512+test -d "/usr/local" && \
     141513+(test $prefix = NONE || test -d $prefix) && {
     141514+       test -n "$verbose" && echo "    ... testing for include-directories under /usr/local"
     141515+       test -d /usr/local/include &&          cf_search="$cf_search /usr/local/include"
     141516+       test -d /usr/local/include/$cf_ncuhdr_root &&       cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
     141517+       test -d /usr/local/include/$cf_ncuhdr_root/include &&    cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
     141518+       test -d /usr/local/$cf_ncuhdr_root/include &&       cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
     141519+       test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root &&    cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     141520+}
     141521+
     141522+
     141523+test "/opt" != "$prefix" && \
     141524+test -d "/opt" && \
     141525+(test $prefix = NONE || test -d $prefix) && {
     141526+       test -n "$verbose" && echo "    ... testing for include-directories under /opt"
     141527+       test -d /opt/include &&          cf_search="$cf_search /opt/include"
     141528+       test -d /opt/include/$cf_ncuhdr_root &&       cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
     141529+       test -d /opt/include/$cf_ncuhdr_root/include &&    cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
     141530+       test -d /opt/$cf_ncuhdr_root/include &&       cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
     141531+       test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root &&    cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     141532 }
     141533 
     141534-test "$prefix" != /usr && \
     141535-test -d /usr && {
     141536-       test -n "$verbose" && echo "    ... testing include-directories under /usr"
     141537-       test -d /usr/include &&             cf_search="$cf_search /usr/include"
     141538-       test -d /usr/include/$cf_ncuhdr_root &&          cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
     141539-       test -d /usr/include/$cf_ncuhdr_root/include &&       cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
     141540-       test -d /usr/$cf_ncuhdr_root/include &&          cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
     141541+
     141542+test "$HOME" != "$prefix" && \
     141543+test -d "$HOME" && \
     141544+(test $prefix = NONE || test -d $prefix) && {
     141545+       test -n "$verbose" && echo "    ... testing for include-directories under $HOME"
     141546+       test -d $HOME/include &&          cf_search="$cf_search $HOME/include"
     141547+       test -d $HOME/include/$cf_ncuhdr_root &&       cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
     141548+       test -d $HOME/include/$cf_ncuhdr_root/include &&    cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
     141549+       test -d $HOME/$cf_ncuhdr_root/include &&       cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
     141550+       test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root &&    cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
     141551 }
     141552 
     141553+
     141554 test "$includedir" != NONE && \
     141555 test "$includedir" != "/usr/include" && \
     141556 test -d "$includedir" && {
     141557@@ -3987,46 +4447,69 @@
     141558        for cf_incdir in $cf_search
     141559        do
     141560               
     141561-for cf_add_incdir in $cf_incdir
     141562-do
     141563-       while true
     141564+if test -n "$cf_incdir" ; then
     141565+  for cf_add_incdir in $cf_incdir
     141566+  do
     141567+       while test $cf_add_incdir != /usr/include
     141568        do
     141569-               case $cf_add_incdir in
     141570-               /usr/include) # (vi
     141571-                       ;;
     141572-               /usr/local/include) # (vi
     141573+         if test -d $cf_add_incdir
     141574+         then
     141575+               cf_have_incdir=no
     141576+               if test -n "$CFLAGS$CPPFLAGS" ; then
     141577+                 # a loop is needed to ensure we can add subdirs of existing dirs
     141578+                 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
     141579+                       if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
     141580+                         cf_have_incdir=yes; break
     141581+                       fi
     141582+                 done
     141583+               fi
     141584+
     141585+               if test "$cf_have_incdir" = no ; then
     141586+          if test "$cf_add_incdir" = /usr/local/include ; then
     141587                        if test "$GCC" = yes
     141588                        then
     141589-                               cf_save_CPPFLAGS="$CPPFLAGS"
     141590-                               CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     141591-                               cat > conftest.$ac_ext <<EOF
    130109141592-#line 4004 "configure"
    130110 +#line 4177 "configure"
     141593+                         cf_save_CPPFLAGS=$CPPFLAGS
     141594+                         CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     141595+                         cat > conftest.$ac_ext <<EOF
     141596+#line 4475 "configure"
    130111141597 #include "confdefs.h"
    130112141598 #include <stdio.h>
     
    130116141602 EOF
    130117141603-if { (eval echo configure:4011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    130118 +if { (eval echo configure:4184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     141604+if { (eval echo configure:4482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    130119141605   :
    130120141606 else
    130121141607   echo "configure: failed program was:" >&5
    130122 @@ -4034,7 +4207,7 @@
     141608   cat conftest.$ac_ext >&5
     141609   rm -rf conftest*
     141610-  CPPFLAGS="$cf_save_CPPFLAGS"
     141611+  cf_have_incdir=yes
     141612 fi
     141613 rm -f conftest*
     141614+                         CPPFLAGS=$cf_save_CPPFLAGS
     141615                        fi
     141616-                       ;;
     141617-               *) # (vi
     141618-                       CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     141619-                       ;;
     141620-               esac
     141621-               cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
     141622-               test "$cf_top_incdir" = "$cf_add_incdir" && break
     141623-               cf_add_incdir="$cf_top_incdir"
     141624+                 fi
     141625+               fi
     141626+
     141627+               if test "$cf_have_incdir" = no ; then
     141628+                 test -n "$verbose" && echo "  adding $cf_add_incdir to include-path" 1>&6
     141629+
     141630+echo "${as_me-configure}:4499: testing adding $cf_add_incdir to include-path ..." 1>&5
     141631+
     141632+
     141633+                 CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
     141634+
     141635+          cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
     141636+          test "$cf_top_incdir" = "$cf_add_incdir" && break
     141637+          cf_add_incdir="$cf_top_incdir"
     141638+               else
     141639+                 break
     141640+               fi
     141641+         fi
     141642        done
     141643-done
     141644+  done
     141645+fi
     141646 
     141647                for cf_header in \
     141648                        ncurses.h \
     141649@@ -4034,7 +4517,7 @@
    130123141650                do
    130124141651                       
    130125141652        cat > conftest.$ac_ext <<EOF
    130126141653-#line 4038 "configure"
    130127 +#line 4211 "configure"
     141654+#line 4521 "configure"
    130128141655 #include "confdefs.h"
    130129141656 
    130130141657 
    130131 @@ -4055,7 +4228,7 @@
     141658@@ -4055,7 +4538,7 @@
    130132141659       
    130133141660 ; return 0; }
    130134141661 EOF
    130135141662-if { (eval echo configure:4059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    130136 +if { (eval echo configure:4232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     141663+if { (eval echo configure:4542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    130137141664   rm -rf conftest*
    130138141665   cf_cv_ncurses_h2=$cf_header
    130139141666       
    130140 @@ -4102,14 +4275,14 @@
    130141                                 cf_save_CPPFLAGS="$CPPFLAGS"
    130142                                 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
    130143                                 cat > conftest.$ac_ext <<EOF
     141667@@ -4089,46 +4572,69 @@
     141668                cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
     141669        fi
     141670       
     141671-for cf_add_incdir in $cf_1st_incdir
     141672-do
     141673-       while true
     141674+if test -n "$cf_1st_incdir" ; then
     141675+  for cf_add_incdir in $cf_1st_incdir
     141676+  do
     141677+       while test $cf_add_incdir != /usr/include
     141678        do
     141679-               case $cf_add_incdir in
     141680-               /usr/include) # (vi
     141681-                       ;;
     141682-               /usr/local/include) # (vi
     141683+         if test -d $cf_add_incdir
     141684+         then
     141685+               cf_have_incdir=no
     141686+               if test -n "$CFLAGS$CPPFLAGS" ; then
     141687+                 # a loop is needed to ensure we can add subdirs of existing dirs
     141688+                 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
     141689+                       if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
     141690+                         cf_have_incdir=yes; break
     141691+                       fi
     141692+                 done
     141693+               fi
     141694+
     141695+               if test "$cf_have_incdir" = no ; then
     141696+          if test "$cf_add_incdir" = /usr/local/include ; then
     141697                        if test "$GCC" = yes
     141698                        then
     141699-                               cf_save_CPPFLAGS="$CPPFLAGS"
     141700-                               CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     141701-                               cat > conftest.$ac_ext <<EOF
    130144141702-#line 4106 "configure"
    130145 +#line 4279 "configure"
     141703+                         cf_save_CPPFLAGS=$CPPFLAGS
     141704+                         CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     141705+                         cat > conftest.$ac_ext <<EOF
     141706+#line 4600 "configure"
    130146141707 #include "confdefs.h"
    130147141708 #include <stdio.h>
     
    130151141712 EOF
    130152141713-if { (eval echo configure:4113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    130153 +if { (eval echo configure:4286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     141714+if { (eval echo configure:4607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    130154141715   :
    130155141716 else
    130156141717   echo "configure: failed program was:" >&5
    130157 @@ -4162,7 +4335,7 @@
     141718   cat conftest.$ac_ext >&5
     141719   rm -rf conftest*
     141720-  CPPFLAGS="$cf_save_CPPFLAGS"
     141721+  cf_have_incdir=yes
     141722 fi
     141723 rm -f conftest*
     141724+                         CPPFLAGS=$cf_save_CPPFLAGS
     141725                        fi
     141726-                       ;;
     141727-               *) # (vi
     141728-                       CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
     141729-                       ;;
     141730-               esac
     141731-               cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
     141732-               test "$cf_top_incdir" = "$cf_add_incdir" && break
     141733-               cf_add_incdir="$cf_top_incdir"
     141734+                 fi
     141735+               fi
     141736+
     141737+               if test "$cf_have_incdir" = no ; then
     141738+                 test -n "$verbose" && echo "  adding $cf_add_incdir to include-path" 1>&6
     141739+
     141740+echo "${as_me-configure}:4624: testing adding $cf_add_incdir to include-path ..." 1>&5
     141741+
     141742+
     141743+                 CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
     141744+
     141745+          cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
     141746+          test "$cf_top_incdir" = "$cf_add_incdir" && break
     141747+          cf_add_incdir="$cf_top_incdir"
     141748+               else
     141749+                 break
     141750+               fi
     141751+         fi
     141752        done
     141753-done
     141754+  done
     141755+fi
     141756 
     141757 
     141758 fi
     141759@@ -4162,7 +4668,7 @@
    130158141760 
    130159141761 
    130160141762 echo $ac_n "checking for terminfo header""... $ac_c" 1>&6
    130161141763-echo "configure:4166: checking for terminfo header" >&5
    130162 +echo "configure:4339: checking for terminfo header" >&5
     141764+echo "configure:4672: checking for terminfo header" >&5
    130163141765 if eval "test \"`echo '$''{'cf_cv_term_header'+set}'`\" = set"; then
    130164141766   echo $ac_n "(cached) $ac_c" 1>&6
    130165141767 else
    130166 @@ -4179,7 +4352,7 @@
     141768@@ -4179,7 +4685,7 @@
    130167141769 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
    130168141770 do
    130169141771 cat > conftest.$ac_ext <<EOF
    130170141772-#line 4183 "configure"
    130171 +#line 4356 "configure"
     141773+#line 4689 "configure"
    130172141774 #include "confdefs.h"
    130173141775 #include <stdio.h>
    130174141776 #include <${cf_cv_ncurses_header-curses.h}>
    130175 @@ -4189,7 +4362,7 @@
     141777@@ -4189,7 +4695,7 @@
    130176141778 int x = auto_left_margin
    130177141779 ; return 0; }
    130178141780 EOF
    130179141781-if { (eval echo configure:4193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    130180 +if { (eval echo configure:4366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     141782+if { (eval echo configure:4699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    130181141783   rm -rf conftest*
    130182141784   
    130183141785        cf_cv_term_header="$cf_test"
    130184 @@ -4244,7 +4417,7 @@
     141786@@ -4244,7 +4750,7 @@
    130185141787 
    130186141788 
    130187141789 echo $ac_n "checking for ncurses version""... $ac_c" 1>&6
    130188141790-echo "configure:4248: checking for ncurses version" >&5
    130189 +echo "configure:4421: checking for ncurses version" >&5
     141791+echo "configure:4754: checking for ncurses version" >&5
    130190141792 if eval "test \"`echo '$''{'cf_cv_ncurses_version'+set}'`\" = set"; then
    130191141793   echo $ac_n "(cached) $ac_c" 1>&6
    130192141794 else
    130193 @@ -4270,7 +4443,7 @@
     141795@@ -4270,7 +4776,7 @@
    130194141796 #endif
    130195141797 EOF
    130196141798        cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
    130197141799-       { (eval echo configure:4274: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
    130198 +       { (eval echo configure:4447: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
     141800+       { (eval echo configure:4780: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
    130199141801        if test -f conftest.out ; then
    130200141802                cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
    130201141803                test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
    130202 @@ -4279,7 +4452,7 @@
     141804@@ -4279,7 +4785,7 @@
    130203141805 
    130204141806 else
    130205141807   cat > conftest.$ac_ext <<EOF
    130206141808-#line 4283 "configure"
    130207 +#line 4456 "configure"
     141809+#line 4789 "configure"
    130208141810 #include "confdefs.h"
    130209141811 
    130210141812 #include <${cf_cv_ncurses_header-curses.h}>
    130211 @@ -4300,10 +4473,10 @@
     141813@@ -4300,10 +4806,10 @@
    130212141814        make an error
    130213141815 # endif
     
    130218141820 EOF
    130219141821-if { (eval echo configure:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    130220 +if { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     141822+if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    130221141823 then
    130222141824   
    130223141825        cf_cv_ncurses_version=`cat $cf_tempfile`
    130224 @@ -4334,7 +4507,7 @@
     141826@@ -4334,7 +4840,7 @@
    130225141827 cf_ncurses_LIBS=""
    130226141828 cf_ncurses_SAVE="$LIBS"
    130227141829 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
    130228141830-echo "configure:4338: checking for Gpm_Open in -lgpm" >&5
    130229 +echo "configure:4511: checking for Gpm_Open in -lgpm" >&5
     141831+echo "configure:4844: checking for Gpm_Open in -lgpm" >&5
    130230141832 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
    130231141833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    130232141834   echo $ac_n "(cached) $ac_c" 1>&6
    130233 @@ -4342,7 +4515,7 @@
     141835@@ -4342,7 +4848,7 @@
    130234141836   ac_save_LIBS="$LIBS"
    130235141837 LIBS="-lgpm  $LIBS"
    130236141838 cat > conftest.$ac_ext <<EOF
    130237141839-#line 4346 "configure"
    130238 +#line 4519 "configure"
     141840+#line 4852 "configure"
    130239141841 #include "confdefs.h"
    130240141842 /* Override any gcc2 internal prototype to avoid an error.  */
    130241141843 /* We use char because int might match the return type of a gcc2
    130242 @@ -4353,7 +4526,7 @@
     141844@@ -4353,7 +4859,7 @@
    130243141845 Gpm_Open()
    130244141846 ; return 0; }
    130245141847 EOF
    130246141848-if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130247 +if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     141849+if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130248141850   rm -rf conftest*
    130249141851   eval "ac_cv_lib_$ac_lib_var=yes"
    130250141852 else
    130251 @@ -4369,7 +4542,7 @@
     141853@@ -4369,7 +4875,7 @@
    130252141854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    130253141855   echo "$ac_t""yes" 1>&6
    130254141856   echo $ac_n "checking for initscr in -lgpm""... $ac_c" 1>&6
    130255141857-echo "configure:4373: checking for initscr in -lgpm" >&5
    130256 +echo "configure:4546: checking for initscr in -lgpm" >&5
     141858+echo "configure:4879: checking for initscr in -lgpm" >&5
    130257141859 ac_lib_var=`echo gpm'_'initscr | sed 'y%./+-%__p_%'`
    130258141860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    130259141861   echo $ac_n "(cached) $ac_c" 1>&6
    130260 @@ -4377,7 +4550,7 @@
     141862@@ -4377,7 +4883,7 @@
    130261141863   ac_save_LIBS="$LIBS"
    130262141864 LIBS="-lgpm  $LIBS"
    130263141865 cat > conftest.$ac_ext <<EOF
    130264141866-#line 4381 "configure"
    130265 +#line 4554 "configure"
     141867+#line 4887 "configure"
    130266141868 #include "confdefs.h"
    130267141869 /* Override any gcc2 internal prototype to avoid an error.  */
    130268141870 /* We use char because int might match the return type of a gcc2
    130269 @@ -4388,7 +4561,7 @@
     141871@@ -4388,7 +4894,7 @@
    130270141872 initscr()
    130271141873 ; return 0; }
    130272141874 EOF
    130273141875-if { (eval echo configure:4392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130274 +if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     141876+if { (eval echo configure:4898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130275141877   rm -rf conftest*
    130276141878   eval "ac_cv_lib_$ac_lib_var=yes"
    130277141879 else
    130278 @@ -4420,7 +4593,7 @@
     141880@@ -4420,7 +4926,7 @@
    130279141881        # version of ncurses (but it should do no harm, since it's static).
    130280141882        if test "$cf_nculib_root" = ncurses ; then
    130281141883                echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
    130282141884-echo "configure:4424: checking for tgoto in -lmytinfo" >&5
    130283 +echo "configure:4597: checking for tgoto in -lmytinfo" >&5
     141885+echo "configure:4930: checking for tgoto in -lmytinfo" >&5
    130284141886 ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
    130285141887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    130286141888   echo $ac_n "(cached) $ac_c" 1>&6
    130287 @@ -4428,7 +4601,7 @@
     141889@@ -4428,7 +4934,7 @@
    130288141890   ac_save_LIBS="$LIBS"
    130289141891 LIBS="-lmytinfo  $LIBS"
    130290141892 cat > conftest.$ac_ext <<EOF
    130291141893-#line 4432 "configure"
    130292 +#line 4605 "configure"
     141894+#line 4938 "configure"
    130293141895 #include "confdefs.h"
    130294141896 /* Override any gcc2 internal prototype to avoid an error.  */
    130295141897 /* We use char because int might match the return type of a gcc2
    130296 @@ -4439,7 +4612,7 @@
     141898@@ -4439,7 +4945,7 @@
    130297141899 tgoto()
    130298141900 ; return 0; }
    130299141901 EOF
    130300141902-if { (eval echo configure:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130301 +if { (eval echo configure:4616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     141903+if { (eval echo configure:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130302141904   rm -rf conftest*
    130303141905   eval "ac_cv_lib_$ac_lib_var=yes"
    130304141906 else
    130305 @@ -4473,12 +4646,12 @@
     141907@@ -4467,18 +4973,47 @@
     141908 
     141909 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
     141910 then
     141911-       LIBS="-L$cf_cv_curses_dir/lib -l$cf_nculib_root $LIBS"
     141912+       
     141913+if test -n "$cf_cv_curses_dir/lib" ; then
     141914+  for cf_add_libdir in $cf_cv_curses_dir/lib
     141915+  do
     141916+    if test $cf_add_libdir = /usr/lib ; then
     141917+      :
     141918+    elif test -d $cf_add_libdir
     141919+    then
     141920+      cf_have_libdir=no
     141921+      if test -n "$LDFLAGS$LIBS" ; then
     141922+        # a loop is needed to ensure we can add subdirs of existing dirs
     141923+        for cf_test_libdir in $LDFLAGS $LIBS ; do
     141924+          if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
     141925+            cf_have_libdir=yes; break
     141926+          fi
     141927+        done
     141928+      fi
     141929+      if test "$cf_have_libdir" = no ; then
     141930+        test -n "$verbose" && echo "   adding $cf_add_libdir to library-path" 1>&6
     141931+
     141932+echo "${as_me-configure}:4997: testing adding $cf_add_libdir to library-path ..." 1>&5
     141933+
     141934+
     141935+        LDFLAGS="-L$cf_add_libdir $LDFLAGS"
     141936+      fi
     141937+    fi
     141938+  done
     141939+fi
     141940+
     141941+       LIBS="-l$cf_nculib_root $LIBS"
     141942 else
     141943       
    130306141944        eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
    130307141945        cf_libdir=""
    130308141946        echo $ac_n "checking for initscr""... $ac_c" 1>&6
    130309141947-echo "configure:4477: checking for initscr" >&5
    130310 +echo "configure:4650: checking for initscr" >&5
     141948+echo "configure:5012: checking for initscr" >&5
    130311141949 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
    130312141950   echo $ac_n "(cached) $ac_c" 1>&6
     
    130314141952   cat > conftest.$ac_ext <<EOF
    130315141953-#line 4482 "configure"
    130316 +#line 4655 "configure"
     141954+#line 5017 "configure"
    130317141955 #include "confdefs.h"
    130318141956 /* System header to define __stub macros and hopefully few prototypes,
    130319141957     which can conflict with char initscr(); below.  */
    130320 @@ -4501,7 +4674,7 @@
     141958@@ -4501,7 +5036,7 @@
    130321141959 
    130322141960 ; return 0; }
    130323141961 EOF
    130324141962-if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130325 +if { (eval echo configure:4678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     141963+if { (eval echo configure:5040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130326141964   rm -rf conftest*
    130327141965   eval "ac_cv_func_initscr=yes"
    130328141966 else
    130329 @@ -4521,17 +4694,17 @@
     141967@@ -4521,17 +5056,17 @@
    130330141968 
    130331141969                cf_save_LIBS="$LIBS"
    130332141970                echo $ac_n "checking for initscr in -l$cf_nculib_root""... $ac_c" 1>&6
    130333141971-echo "configure:4525: checking for initscr in -l$cf_nculib_root" >&5
    130334 +echo "configure:4698: checking for initscr in -l$cf_nculib_root" >&5
     141972+echo "configure:5060: checking for initscr in -l$cf_nculib_root" >&5
    130335141973                LIBS="-l$cf_nculib_root $LIBS"
    130336141974                cat > conftest.$ac_ext <<EOF
    130337141975-#line 4528 "configure"
    130338 +#line 4701 "configure"
     141976+#line 5063 "configure"
    130339141977 #include "confdefs.h"
    130340141978 #include <${cf_cv_ncurses_header-curses.h}>
     
    130344141982 EOF
    130345141983-if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130346 +if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     141984+if { (eval echo configure:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130347141985   rm -rf conftest*
    130348141986   echo "$ac_t""yes" 1>&6
    130349141987                         eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
    130350 @@ -4600,17 +4773,17 @@
     141988@@ -4543,34 +5078,23 @@
     141989   echo "$ac_t""no" 1>&6
     141990                        cf_search=""
     141991 
     141992-test -d "$HOME" && {
     141993-       test -n "$verbose" && echo "    ... testing lib-directories under $HOME"
     141994-       test -d "$HOME/lib" &&          cf_search="$cf_search $HOME/lib"
     141995-       test -d "$HOME/lib/$cf_nculib_root" &&       cf_search="$cf_search $HOME/lib/$cf_nculib_root"
     141996-       test -d "$HOME/lib/$cf_nculib_root/lib" &&    cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
     141997-}
     141998 
     141999-# For other stuff under the home directory, it should be sufficient to put
     142000-# a symbolic link for $HOME/$cf_nculib_root to the actual package location:
     142001-test -d "$HOME/$cf_nculib_root" && {
     142002-       test -n "$verbose" && echo "    ... testing lib-directories under $HOME/$cf_nculib_root"
     142003-       test -d "$HOME/$cf_nculib_root/lib" &&       cf_search="$cf_search $HOME/$cf_nculib_root/lib"
     142004-       test -d "$HOME/$cf_nculib_root/lib/$cf_nculib_root" &&    cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
     142005+test "/usr" != "$prefix" && \
     142006+test -d "/usr" && \
     142007+(test $prefix = NONE || test -d $prefix) && {
     142008+       test -n "$verbose" && echo "    ... testing for lib-directories under /usr"
     142009+       test -d /usr/lib &&          cf_search="$cf_search /usr/lib"
     142010+       test -d /usr/lib/$cf_nculib_root &&       cf_search="$cf_search /usr/lib/$cf_nculib_root"
     142011+       test -d /usr/lib/$cf_nculib_root/lib &&    cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
     142012+       test -d /usr/$cf_nculib_root/lib &&       cf_search="$cf_search /usr/$cf_nculib_root/lib"
     142013+       test -d /usr/$cf_nculib_root/lib/$cf_nculib_root &&    cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
     142014 }
     142015 
     142016-test "$prefix" != /usr/local && \
     142017-test -d /usr/local && {
     142018-       test -n "$verbose" && echo "    ... testing lib-directories under /usr/local"
     142019-       test -d /usr/local/lib &&       cf_search="$cf_search /usr/local/lib"
     142020-       test -d /usr/local/lib/$cf_nculib_root &&    cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
     142021-       test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
     142022-       test -d /usr/local/$cf_nculib_root/lib &&    cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
     142023-       test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
     142024-}
     142025 
     142026-test "$prefix" != NONE && \
     142027-test -d $prefix && {
     142028-       test -n "$verbose" && echo "    ... testing lib-directories under $prefix"
     142029+test "$prefix" != "NONE" && \
     142030+test -d "$prefix" && \
     142031+ {
     142032+       test -n "$verbose" && echo "    ... testing for lib-directories under $prefix"
     142033        test -d $prefix/lib &&          cf_search="$cf_search $prefix/lib"
     142034        test -d $prefix/lib/$cf_nculib_root &&       cf_search="$cf_search $prefix/lib/$cf_nculib_root"
     142035        test -d $prefix/lib/$cf_nculib_root/lib &&    cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
     142036@@ -4578,39 +5102,57 @@
     142037        test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root &&    cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
     142038 }
     142039 
     142040-test "$prefix" != /opt && \
     142041-test -d /opt && {
     142042-       test -n "$verbose" && echo "    ... testing lib-directories under /opt"
     142043-       test -d /opt/lib &&             cf_search="$cf_search /opt/lib"
     142044-       test -d /opt/lib/$cf_nculib_root &&          cf_search="$cf_search /opt/lib/$cf_nculib_root"
     142045-       test -d /opt/lib/$cf_nculib_root/lib &&       cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
     142046-       test -d /opt/$cf_nculib_root/lib &&          cf_search="$cf_search /opt/$cf_nculib_root/lib"
     142047-       test -d /opt/$cf_nculib_root/lib/$cf_nculib_root &&       cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
     142048+
     142049+test "/usr/local" != "$prefix" && \
     142050+test -d "/usr/local" && \
     142051+(test $prefix = NONE || test -d $prefix) && {
     142052+       test -n "$verbose" && echo "    ... testing for lib-directories under /usr/local"
     142053+       test -d /usr/local/lib &&          cf_search="$cf_search /usr/local/lib"
     142054+       test -d /usr/local/lib/$cf_nculib_root &&       cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
     142055+       test -d /usr/local/lib/$cf_nculib_root/lib &&    cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
     142056+       test -d /usr/local/$cf_nculib_root/lib &&       cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
     142057+       test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root &&    cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
     142058+}
     142059+
     142060+
     142061+test "/opt" != "$prefix" && \
     142062+test -d "/opt" && \
     142063+(test $prefix = NONE || test -d $prefix) && {
     142064+       test -n "$verbose" && echo "    ... testing for lib-directories under /opt"
     142065+       test -d /opt/lib &&          cf_search="$cf_search /opt/lib"
     142066+       test -d /opt/lib/$cf_nculib_root &&       cf_search="$cf_search /opt/lib/$cf_nculib_root"
     142067+       test -d /opt/lib/$cf_nculib_root/lib &&    cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
     142068+       test -d /opt/$cf_nculib_root/lib &&       cf_search="$cf_search /opt/$cf_nculib_root/lib"
     142069+       test -d /opt/$cf_nculib_root/lib/$cf_nculib_root &&    cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
     142070 }
     142071 
     142072-test "$prefix" != /usr && \
     142073-test -d /usr && {
     142074-       test -n "$verbose" && echo "    ... testing lib-directories under /usr"
     142075-       test -d /usr/lib &&             cf_search="$cf_search /usr/lib"
     142076-       test -d /usr/lib/$cf_nculib_root &&          cf_search="$cf_search /usr/lib/$cf_nculib_root"
     142077-       test -d /usr/lib/$cf_nculib_root/lib &&       cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
     142078-       test -d /usr/$cf_nculib_root/lib &&          cf_search="$cf_search /usr/$cf_nculib_root/lib"
     142079+
     142080+test "$HOME" != "$prefix" && \
     142081+test -d "$HOME" && \
     142082+(test $prefix = NONE || test -d $prefix) && {
     142083+       test -n "$verbose" && echo "    ... testing for lib-directories under $HOME"
     142084+       test -d $HOME/lib &&          cf_search="$cf_search $HOME/lib"
     142085+       test -d $HOME/lib/$cf_nculib_root &&       cf_search="$cf_search $HOME/lib/$cf_nculib_root"
     142086+       test -d $HOME/lib/$cf_nculib_root/lib &&    cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
     142087+       test -d $HOME/$cf_nculib_root/lib &&       cf_search="$cf_search $HOME/$cf_nculib_root/lib"
     142088+       test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root &&    cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
     142089 }
     142090 
     142091+
    130351142092                        for cf_libdir in $cf_search
    130352142093                        do
    130353142094                                echo $ac_n "checking for -l$cf_nculib_root in $cf_libdir""... $ac_c" 1>&6
    130354142095-echo "configure:4604: checking for -l$cf_nculib_root in $cf_libdir" >&5
    130355 +echo "configure:4777: checking for -l$cf_nculib_root in $cf_libdir" >&5
     142096+echo "configure:5146: checking for -l$cf_nculib_root in $cf_libdir" >&5
    130356142097                                LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
    130357142098                                cat > conftest.$ac_ext <<EOF
    130358142099-#line 4607 "configure"
    130359 +#line 4780 "configure"
     142100+#line 5149 "configure"
    130360142101 #include "confdefs.h"
    130361142102 #include <${cf_cv_ncurses_header-curses.h}>
     
    130365142106 EOF
    130366142107-if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130367 +if { (eval echo configure:4787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142108+if { (eval echo configure:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130368142109   rm -rf conftest*
    130369142110   echo "$ac_t""yes" 1>&6
    130370142111                                         eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
    130371 @@ -4641,7 +4814,7 @@
     142112@@ -4641,7 +5183,7 @@
    130372142113 
    130373142114 if test -n "$cf_ncurses_LIBS" ; then
    130374142115        echo $ac_n "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS""... $ac_c" 1>&6
    130375142116-echo "configure:4645: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
    130376 +echo "configure:4818: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
     142117+echo "configure:5187: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
    130377142118        cf_ncurses_SAVE="$LIBS"
    130378142119        for p in $cf_ncurses_LIBS ; do
    130379142120                q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
    130380 @@ -4650,14 +4823,14 @@
     142121@@ -4650,14 +5192,14 @@
    130381142122                fi
    130382142123        done
    130383142124        cat > conftest.$ac_ext <<EOF
    130384142125-#line 4654 "configure"
    130385 +#line 4827 "configure"
     142126+#line 5196 "configure"
    130386142127 #include "confdefs.h"
    130387142128 #include <${cf_cv_ncurses_header-curses.h}>
     
    130391142132 EOF
    130392142133-if { (eval echo configure:4661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130393 +if { (eval echo configure:4834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142134+if { (eval echo configure:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130394142135   rm -rf conftest*
    130395142136   echo "$ac_t""yes" 1>&6
    130396142137 else
    130397 @@ -4700,17 +4873,17 @@
     142138@@ -4700,17 +5242,17 @@
    130398142139     case "`(uname -sr) 2>/dev/null`" in
    130399142140     "SunOS 5"*)
    130400142141       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
    130401142142-echo "configure:4704: checking whether -R must be followed by a space" >&5
    130402 +echo "configure:4877: checking whether -R must be followed by a space" >&5
     142143+echo "configure:5246: checking whether -R must be followed by a space" >&5
    130403142144       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
    130404142145       cat > conftest.$ac_ext <<EOF
    130405142146-#line 4707 "configure"
    130406 +#line 4880 "configure"
     142147+#line 5249 "configure"
    130407142148 #include "confdefs.h"
    130408142149 
     
    130412142153 EOF
    130413142154-if { (eval echo configure:4714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130414 +if { (eval echo configure:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142155+if { (eval echo configure:5256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130415142156   rm -rf conftest*
    130416142157   ac_R_nospace=yes
    130417142158 else
    130418 @@ -4726,14 +4899,14 @@
     142159@@ -4726,14 +5268,14 @@
    130419142160       else
    130420142161        LIBS="$ac_xsave_LIBS -R $x_libraries"
    130421142162        cat > conftest.$ac_ext <<EOF
    130422142163-#line 4730 "configure"
    130423 +#line 4903 "configure"
     142164+#line 5272 "configure"
    130424142165 #include "confdefs.h"
    130425142166 
     
    130429142170 EOF
    130430142171-if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130431 +if { (eval echo configure:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142172+if { (eval echo configure:5279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130432142173   rm -rf conftest*
    130433142174   ac_R_space=yes
    130434142175 else
    130435 @@ -4765,7 +4938,7 @@
     142176@@ -4765,7 +5307,7 @@
    130436142177     # libraries were built with DECnet support.  And karl@cs.umb.edu says
    130437142178     # the Alpha needs dnet_stub (dnet does not exist).
    130438142179     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
    130439142180-echo "configure:4769: checking for dnet_ntoa in -ldnet" >&5
    130440 +echo "configure:4942: checking for dnet_ntoa in -ldnet" >&5
     142181+echo "configure:5311: checking for dnet_ntoa in -ldnet" >&5
    130441142182 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
    130442142183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    130443142184   echo $ac_n "(cached) $ac_c" 1>&6
    130444 @@ -4773,7 +4946,7 @@
     142185@@ -4773,7 +5315,7 @@
    130445142186   ac_save_LIBS="$LIBS"
    130446142187 LIBS="-ldnet  $LIBS"
    130447142188 cat > conftest.$ac_ext <<EOF
    130448142189-#line 4777 "configure"
    130449 +#line 4950 "configure"
     142190+#line 5319 "configure"
    130450142191 #include "confdefs.h"
    130451142192 /* Override any gcc2 internal prototype to avoid an error.  */
    130452142193 /* We use char because int might match the return type of a gcc2
    130453 @@ -4784,7 +4957,7 @@
     142194@@ -4784,7 +5326,7 @@
    130454142195 dnet_ntoa()
    130455142196 ; return 0; }
    130456142197 EOF
    130457142198-if { (eval echo configure:4788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130458 +if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142199+if { (eval echo configure:5330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130459142200   rm -rf conftest*
    130460142201   eval "ac_cv_lib_$ac_lib_var=yes"
    130461142202 else
    130462 @@ -4806,7 +4979,7 @@
     142203@@ -4806,7 +5348,7 @@
    130463142204 
    130464142205     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
    130465142206       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
    130466142207-echo "configure:4810: checking for dnet_ntoa in -ldnet_stub" >&5
    130467 +echo "configure:4983: checking for dnet_ntoa in -ldnet_stub" >&5
     142208+echo "configure:5352: checking for dnet_ntoa in -ldnet_stub" >&5
    130468142209 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
    130469142210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    130470142211   echo $ac_n "(cached) $ac_c" 1>&6
    130471 @@ -4814,7 +4987,7 @@
     142212@@ -4814,7 +5356,7 @@
    130472142213   ac_save_LIBS="$LIBS"
    130473142214 LIBS="-ldnet_stub  $LIBS"
    130474142215 cat > conftest.$ac_ext <<EOF
    130475142216-#line 4818 "configure"
    130476 +#line 4991 "configure"
     142217+#line 5360 "configure"
    130477142218 #include "confdefs.h"
    130478142219 /* Override any gcc2 internal prototype to avoid an error.  */
    130479142220 /* We use char because int might match the return type of a gcc2
    130480 @@ -4825,7 +4998,7 @@
     142221@@ -4825,7 +5367,7 @@
    130481142222 dnet_ntoa()
    130482142223 ; return 0; }
    130483142224 EOF
    130484142225-if { (eval echo configure:4829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130485 +if { (eval echo configure:5002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142226+if { (eval echo configure:5371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130486142227   rm -rf conftest*
    130487142228   eval "ac_cv_lib_$ac_lib_var=yes"
    130488142229 else
    130489 @@ -4854,12 +5027,12 @@
     142230@@ -4854,12 +5396,12 @@
    130490142231     # The nsl library prevents programs from opening the X display
    130491142232     # on Irix 5.2, according to dickey@clark.net.
    130492142233     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
    130493142234-echo "configure:4858: checking for gethostbyname" >&5
    130494 +echo "configure:5031: checking for gethostbyname" >&5
     142235+echo "configure:5400: checking for gethostbyname" >&5
    130495142236 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
    130496142237   echo $ac_n "(cached) $ac_c" 1>&6
     
    130498142239   cat > conftest.$ac_ext <<EOF
    130499142240-#line 4863 "configure"
    130500 +#line 5036 "configure"
     142241+#line 5405 "configure"
    130501142242 #include "confdefs.h"
    130502142243 /* System header to define __stub macros and hopefully few prototypes,
    130503142244     which can conflict with char gethostbyname(); below.  */
    130504 @@ -4882,7 +5055,7 @@
     142245@@ -4882,7 +5424,7 @@
    130505142246 
    130506142247 ; return 0; }
    130507142248 EOF
    130508142249-if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130509 +if { (eval echo configure:5059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142250+if { (eval echo configure:5428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130510142251   rm -rf conftest*
    130511142252   eval "ac_cv_func_gethostbyname=yes"
    130512142253 else
    130513 @@ -4903,7 +5076,7 @@
     142254@@ -4903,7 +5445,7 @@
    130514142255 
    130515142256     if test $ac_cv_func_gethostbyname = no; then
    130516142257       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
    130517142258-echo "configure:4907: checking for gethostbyname in -lnsl" >&5
    130518 +echo "configure:5080: checking for gethostbyname in -lnsl" >&5
     142259+echo "configure:5449: checking for gethostbyname in -lnsl" >&5
    130519142260 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
    130520142261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    130521142262   echo $ac_n "(cached) $ac_c" 1>&6
    130522 @@ -4911,7 +5084,7 @@
     142263@@ -4911,7 +5453,7 @@
    130523142264   ac_save_LIBS="$LIBS"
    130524142265 LIBS="-lnsl  $LIBS"
    130525142266 cat > conftest.$ac_ext <<EOF
    130526142267-#line 4915 "configure"
    130527 +#line 5088 "configure"
     142268+#line 5457 "configure"
    130528142269 #include "confdefs.h"
    130529142270 /* Override any gcc2 internal prototype to avoid an error.  */
    130530142271 /* We use char because int might match the return type of a gcc2
    130531 @@ -4922,7 +5095,7 @@
     142272@@ -4922,7 +5464,7 @@
    130532142273 gethostbyname()
    130533142274 ; return 0; }
    130534142275 EOF
    130535142276-if { (eval echo configure:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130536 +if { (eval echo configure:5099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142277+if { (eval echo configure:5468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130537142278   rm -rf conftest*
    130538142279   eval "ac_cv_lib_$ac_lib_var=yes"
    130539142280 else
    130540 @@ -4952,12 +5125,12 @@
     142281@@ -4952,12 +5494,12 @@
    130541142282     # -lsocket must be given before -lnsl if both are needed.
    130542142283     # We assume that if connect needs -lnsl, so does gethostbyname.
    130543142284     echo $ac_n "checking for connect""... $ac_c" 1>&6
    130544142285-echo "configure:4956: checking for connect" >&5
    130545 +echo "configure:5129: checking for connect" >&5
     142286+echo "configure:5498: checking for connect" >&5
    130546142287 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
    130547142288   echo $ac_n "(cached) $ac_c" 1>&6
     
    130549142290   cat > conftest.$ac_ext <<EOF
    130550142291-#line 4961 "configure"
    130551 +#line 5134 "configure"
     142292+#line 5503 "configure"
    130552142293 #include "confdefs.h"
    130553142294 /* System header to define __stub macros and hopefully few prototypes,
    130554142295     which can conflict with char connect(); below.  */
    130555 @@ -4980,7 +5153,7 @@
     142296@@ -4980,7 +5522,7 @@
    130556142297 
    130557142298 ; return 0; }
    130558142299 EOF
    130559142300-if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130560 +if { (eval echo configure:5157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142301+if { (eval echo configure:5526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130561142302   rm -rf conftest*
    130562142303   eval "ac_cv_func_connect=yes"
    130563142304 else
    130564 @@ -5001,7 +5174,7 @@
     142305@@ -5001,7 +5543,7 @@
    130565142306 
    130566142307     if test $ac_cv_func_connect = no; then
    130567142308       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
    130568142309-echo "configure:5005: checking for connect in -lsocket" >&5
    130569 +echo "configure:5178: checking for connect in -lsocket" >&5
     142310+echo "configure:5547: checking for connect in -lsocket" >&5
    130570142311 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
    130571142312 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    130572142313   echo $ac_n "(cached) $ac_c" 1>&6
    130573 @@ -5009,7 +5182,7 @@
     142314@@ -5009,7 +5551,7 @@
    130574142315   ac_save_LIBS="$LIBS"
    130575142316 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
    130576142317 cat > conftest.$ac_ext <<EOF
    130577142318-#line 5013 "configure"
    130578 +#line 5186 "configure"
     142319+#line 5555 "configure"
    130579142320 #include "confdefs.h"
    130580142321 /* Override any gcc2 internal prototype to avoid an error.  */
    130581142322 /* We use char because int might match the return type of a gcc2
    130582 @@ -5020,7 +5193,7 @@
     142323@@ -5020,7 +5562,7 @@
    130583142324 connect()
    130584142325 ; return 0; }
    130585142326 EOF
    130586142327-if { (eval echo configure:5024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130587 +if { (eval echo configure:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142328+if { (eval echo configure:5566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130588142329   rm -rf conftest*
    130589142330   eval "ac_cv_lib_$ac_lib_var=yes"
    130590142331 else
    130591 @@ -5044,12 +5217,12 @@
     142332@@ -5044,12 +5586,12 @@
    130592142333 
    130593142334     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
    130594142335     echo $ac_n "checking for remove""... $ac_c" 1>&6
    130595142336-echo "configure:5048: checking for remove" >&5
    130596 +echo "configure:5221: checking for remove" >&5
     142337+echo "configure:5590: checking for remove" >&5
    130597142338 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
    130598142339   echo $ac_n "(cached) $ac_c" 1>&6
     
    130600142341   cat > conftest.$ac_ext <<EOF
    130601142342-#line 5053 "configure"
    130602 +#line 5226 "configure"
     142343+#line 5595 "configure"
    130603142344 #include "confdefs.h"
    130604142345 /* System header to define __stub macros and hopefully few prototypes,
    130605142346     which can conflict with char remove(); below.  */
    130606 @@ -5072,7 +5245,7 @@
     142347@@ -5072,7 +5614,7 @@
    130607142348 
    130608142349 ; return 0; }
    130609142350 EOF
    130610142351-if { (eval echo configure:5076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130611 +if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142352+if { (eval echo configure:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130612142353   rm -rf conftest*
    130613142354   eval "ac_cv_func_remove=yes"
    130614142355 else
    130615 @@ -5093,7 +5266,7 @@
     142356@@ -5093,7 +5635,7 @@
    130616142357 
    130617142358     if test $ac_cv_func_remove = no; then
    130618142359       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
    130619142360-echo "configure:5097: checking for remove in -lposix" >&5
    130620 +echo "configure:5270: checking for remove in -lposix" >&5
     142361+echo "configure:5639: checking for remove in -lposix" >&5
    130621142362 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
    130622142363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    130623142364   echo $ac_n "(cached) $ac_c" 1>&6
    130624 @@ -5101,7 +5274,7 @@
     142365@@ -5101,7 +5643,7 @@
    130625142366   ac_save_LIBS="$LIBS"
    130626142367 LIBS="-lposix  $LIBS"
    130627142368 cat > conftest.$ac_ext <<EOF
    130628142369-#line 5105 "configure"
    130629 +#line 5278 "configure"
     142370+#line 5647 "configure"
    130630142371 #include "confdefs.h"
    130631142372 /* Override any gcc2 internal prototype to avoid an error.  */
    130632142373 /* We use char because int might match the return type of a gcc2
    130633 @@ -5112,7 +5285,7 @@
     142374@@ -5112,7 +5654,7 @@
    130634142375 remove()
    130635142376 ; return 0; }
    130636142377 EOF
    130637142378-if { (eval echo configure:5116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130638 +if { (eval echo configure:5289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142379+if { (eval echo configure:5658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130639142380   rm -rf conftest*
    130640142381   eval "ac_cv_lib_$ac_lib_var=yes"
    130641142382 else
    130642 @@ -5136,12 +5309,12 @@
     142383@@ -5136,12 +5678,12 @@
    130643142384 
    130644142385     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    130645142386     echo $ac_n "checking for shmat""... $ac_c" 1>&6
    130646142387-echo "configure:5140: checking for shmat" >&5
    130647 +echo "configure:5313: checking for shmat" >&5
     142388+echo "configure:5682: checking for shmat" >&5
    130648142389 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
    130649142390   echo $ac_n "(cached) $ac_c" 1>&6
     
    130651142392   cat > conftest.$ac_ext <<EOF
    130652142393-#line 5145 "configure"
    130653 +#line 5318 "configure"
     142394+#line 5687 "configure"
    130654142395 #include "confdefs.h"
    130655142396 /* System header to define __stub macros and hopefully few prototypes,
    130656142397     which can conflict with char shmat(); below.  */
    130657 @@ -5164,7 +5337,7 @@
     142398@@ -5164,7 +5706,7 @@
    130658142399 
    130659142400 ; return 0; }
    130660142401 EOF
    130661142402-if { (eval echo configure:5168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130662 +if { (eval echo configure:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142403+if { (eval echo configure:5710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130663142404   rm -rf conftest*
    130664142405   eval "ac_cv_func_shmat=yes"
    130665142406 else
    130666 @@ -5185,7 +5358,7 @@
     142407@@ -5185,7 +5727,7 @@
    130667142408 
    130668142409     if test $ac_cv_func_shmat = no; then
    130669142410       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
    130670142411-echo "configure:5189: checking for shmat in -lipc" >&5
    130671 +echo "configure:5362: checking for shmat in -lipc" >&5
     142412+echo "configure:5731: checking for shmat in -lipc" >&5
    130672142413 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
    130673142414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    130674142415   echo $ac_n "(cached) $ac_c" 1>&6
    130675 @@ -5193,7 +5366,7 @@
     142416@@ -5193,7 +5735,7 @@
    130676142417   ac_save_LIBS="$LIBS"
    130677142418 LIBS="-lipc  $LIBS"
    130678142419 cat > conftest.$ac_ext <<EOF
    130679142420-#line 5197 "configure"
    130680 +#line 5370 "configure"
     142421+#line 5739 "configure"
    130681142422 #include "confdefs.h"
    130682142423 /* Override any gcc2 internal prototype to avoid an error.  */
    130683142424 /* We use char because int might match the return type of a gcc2
    130684 @@ -5204,7 +5377,7 @@
     142425@@ -5204,7 +5746,7 @@
    130685142426 shmat()
    130686142427 ; return 0; }
    130687142428 EOF
    130688142429-if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130689 +if { (eval echo configure:5381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142430+if { (eval echo configure:5750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130690142431   rm -rf conftest*
    130691142432   eval "ac_cv_lib_$ac_lib_var=yes"
    130692142433 else
    130693 @@ -5237,7 +5410,7 @@
     142434@@ -5237,7 +5779,7 @@
    130694142435   # libraries we check for below, so use a different variable.
    130695142436   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
    130696142437   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
    130697142438-echo "configure:5241: checking for IceConnectionNumber in -lICE" >&5
    130698 +echo "configure:5414: checking for IceConnectionNumber in -lICE" >&5
     142439+echo "configure:5783: checking for IceConnectionNumber in -lICE" >&5
    130699142440 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
    130700142441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    130701142442   echo $ac_n "(cached) $ac_c" 1>&6
    130702 @@ -5245,7 +5418,7 @@
     142443@@ -5245,7 +5787,7 @@
    130703142444   ac_save_LIBS="$LIBS"
    130704142445 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
    130705142446 cat > conftest.$ac_ext <<EOF
    130706142447-#line 5249 "configure"
    130707 +#line 5422 "configure"
     142448+#line 5791 "configure"
    130708142449 #include "confdefs.h"
    130709142450 /* Override any gcc2 internal prototype to avoid an error.  */
    130710142451 /* We use char because int might match the return type of a gcc2
    130711 @@ -5256,7 +5429,7 @@
     142452@@ -5256,7 +5798,7 @@
    130712142453 IceConnectionNumber()
    130713142454 ; return 0; }
    130714142455 EOF
    130715142456-if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130716 +if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142457+if { (eval echo configure:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130717142458   rm -rf conftest*
    130718142459   eval "ac_cv_lib_$ac_lib_var=yes"
    130719142460 else
    130720 @@ -5371,14 +5544,14 @@
     142461@@ -5290,7 +5832,10 @@
     142462 
     142463 LDFLAGS="$X_LIBS $LDFLAGS"
     142464 
     142465-test -n "$verbose" && echo "   checking additions to CFLAGS" 1>&6
     142466+test -n "$verbose" && echo "   checking additions to CFLAGS" 1>&6
     142467+
     142468+echo "${as_me-configure}:5838: testing checking additions to CFLAGS ..." 1>&5
     142469+
     142470 
     142471 cf_check_cflags="$CFLAGS"
     142472 cf_check_cppflags="$CPPFLAGS"
     142473@@ -5351,18 +5896,27 @@
     142474 if test -n "$cf_new_cflags" ; then
     142475        test -n "$verbose" && echo "    add to \$CFLAGS $cf_new_cflags" 1>&6
     142476 
     142477+echo "${as_me-configure}:5900: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
     142478+
     142479+
     142480        CFLAGS="$CFLAGS $cf_new_cflags"
     142481 fi
     142482 
     142483 if test -n "$cf_new_cppflags" ; then
     142484        test -n "$verbose" && echo "    add to \$CPPFLAGS $cf_new_cppflags" 1>&6
     142485 
     142486+echo "${as_me-configure}:5909: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
     142487+
     142488+
     142489        CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
     142490 fi
     142491 
     142492 if test -n "$cf_new_extra_cppflags" ; then
     142493        test -n "$verbose" && echo "    add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
     142494 
     142495+echo "${as_me-configure}:5918: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
     142496+
     142497+
     142498        EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
     142499 fi
     142500 
     142501@@ -5371,14 +5925,14 @@
    130721142502 
    130722142503 if test "$cf_check_cflags" != "$CFLAGS" ; then
    130723142504 cat > conftest.$ac_ext <<EOF
    130724142505-#line 5375 "configure"
    130725 +#line 5548 "configure"
     142506+#line 5929 "configure"
    130726142507 #include "confdefs.h"
    130727142508 #include <stdio.h>
     
    130731142512 EOF
    130732142513-if { (eval echo configure:5382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130733 +if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142514+if { (eval echo configure:5936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130734142515   :
    130735142516 else
    130736142517   echo "configure: failed program was:" >&5
    130737 @@ -5397,12 +5570,12 @@
     142518@@ -5386,9 +5940,15 @@
     142519   rm -rf conftest*
     142520   test -n "$verbose" && echo " test-compile failed.  Undoing change to \$CFLAGS" 1>&6
     142521 
     142522+echo "${as_me-configure}:5944: testing test-compile failed.  Undoing change to \$CFLAGS ..." 1>&5
     142523+
     142524+
     142525         if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
     142526                 test -n "$verbose" && echo "   but keeping change to \$CPPFLAGS" 1>&6
     142527 
     142528+echo "${as_me-configure}:5950: testing but keeping change to \$CPPFLAGS ..." 1>&5
     142529+
     142530+
     142531         fi
     142532         CFLAGS="$cf_check_flags"
     142533 fi
     142534@@ -5397,12 +5957,12 @@
    130738142535 
    130739142536 
    130740142537 echo $ac_n "checking for XOpenDisplay""... $ac_c" 1>&6
    130741142538-echo "configure:5401: checking for XOpenDisplay" >&5
    130742 +echo "configure:5574: checking for XOpenDisplay" >&5
     142539+echo "configure:5961: checking for XOpenDisplay" >&5
    130743142540 if eval "test \"`echo '$''{'ac_cv_func_XOpenDisplay'+set}'`\" = set"; then
    130744142541   echo $ac_n "(cached) $ac_c" 1>&6
     
    130746142543   cat > conftest.$ac_ext <<EOF
    130747142544-#line 5406 "configure"
    130748 +#line 5579 "configure"
     142545+#line 5966 "configure"
    130749142546 #include "confdefs.h"
    130750142547 /* System header to define __stub macros and hopefully few prototypes,
    130751142548     which can conflict with char XOpenDisplay(); below.  */
    130752 @@ -5425,7 +5598,7 @@
     142549@@ -5425,7 +5985,7 @@
    130753142550 
    130754142551 ; return 0; }
    130755142552 EOF
    130756142553-if { (eval echo configure:5429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130757 +if { (eval echo configure:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142554+if { (eval echo configure:5989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130758142555   rm -rf conftest*
    130759142556   eval "ac_cv_func_XOpenDisplay=yes"
    130760142557 else
    130761 @@ -5444,7 +5617,7 @@
     142558@@ -5444,7 +6004,7 @@
    130762142559   echo "$ac_t""no" 1>&6
    130763142560 
    130764142561 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
    130765142562-echo "configure:5448: checking for XOpenDisplay in -lX11" >&5
    130766 +echo "configure:5621: checking for XOpenDisplay in -lX11" >&5
     142563+echo "configure:6008: checking for XOpenDisplay in -lX11" >&5
    130767142564 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
    130768142565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    130769142566   echo $ac_n "(cached) $ac_c" 1>&6
    130770 @@ -5452,7 +5625,7 @@
     142567@@ -5452,7 +6012,7 @@
    130771142568   ac_save_LIBS="$LIBS"
    130772142569 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
    130773142570 cat > conftest.$ac_ext <<EOF
    130774142571-#line 5456 "configure"
    130775 +#line 5629 "configure"
     142572+#line 6016 "configure"
    130776142573 #include "confdefs.h"
    130777142574 /* Override any gcc2 internal prototype to avoid an error.  */
    130778142575 /* We use char because int might match the return type of a gcc2
    130779 @@ -5463,7 +5636,7 @@
     142576@@ -5463,7 +6023,7 @@
    130780142577 XOpenDisplay()
    130781142578 ; return 0; }
    130782142579 EOF
    130783142580-if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130784 +if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142581+if { (eval echo configure:6027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130785142582   rm -rf conftest*
    130786142583   eval "ac_cv_lib_$ac_lib_var=yes"
    130787142584 else
    130788 @@ -5487,12 +5660,12 @@
     142585@@ -5487,12 +6047,12 @@
    130789142586 
    130790142587 
    130791142588 echo $ac_n "checking for XtAppInitialize""... $ac_c" 1>&6
    130792142589-echo "configure:5491: checking for XtAppInitialize" >&5
    130793 +echo "configure:5664: checking for XtAppInitialize" >&5
     142590+echo "configure:6051: checking for XtAppInitialize" >&5
    130794142591 if eval "test \"`echo '$''{'ac_cv_func_XtAppInitialize'+set}'`\" = set"; then
    130795142592   echo $ac_n "(cached) $ac_c" 1>&6
     
    130797142594   cat > conftest.$ac_ext <<EOF
    130798142595-#line 5496 "configure"
    130799 +#line 5669 "configure"
     142596+#line 6056 "configure"
    130800142597 #include "confdefs.h"
    130801142598 /* System header to define __stub macros and hopefully few prototypes,
    130802142599     which can conflict with char XtAppInitialize(); below.  */
    130803 @@ -5515,7 +5688,7 @@
     142600@@ -5515,7 +6075,7 @@
    130804142601 
    130805142602 ; return 0; }
    130806142603 EOF
    130807142604-if { (eval echo configure:5519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130808 +if { (eval echo configure:5692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142605+if { (eval echo configure:6079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130809142606   rm -rf conftest*
    130810142607   eval "ac_cv_func_XtAppInitialize=yes"
    130811142608 else
    130812 @@ -5534,7 +5707,7 @@
     142609@@ -5534,7 +6094,7 @@
    130813142610   echo "$ac_t""no" 1>&6
    130814142611 
    130815142612 echo $ac_n "checking for XtAppInitialize in -lXt""... $ac_c" 1>&6
    130816142613-echo "configure:5538: checking for XtAppInitialize in -lXt" >&5
    130817 +echo "configure:5711: checking for XtAppInitialize in -lXt" >&5
     142614+echo "configure:6098: checking for XtAppInitialize in -lXt" >&5
    130818142615 ac_lib_var=`echo Xt'_'XtAppInitialize | sed 'y%./+-%__p_%'`
    130819142616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    130820142617   echo $ac_n "(cached) $ac_c" 1>&6
    130821 @@ -5542,7 +5715,7 @@
     142618@@ -5542,7 +6102,7 @@
    130822142619   ac_save_LIBS="$LIBS"
    130823142620 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
    130824142621 cat > conftest.$ac_ext <<EOF
    130825142622-#line 5546 "configure"
    130826 +#line 5719 "configure"
     142623+#line 6106 "configure"
    130827142624 #include "confdefs.h"
    130828142625 /* Override any gcc2 internal prototype to avoid an error.  */
    130829142626 /* We use char because int might match the return type of a gcc2
    130830 @@ -5553,7 +5726,7 @@
     142627@@ -5553,7 +6113,7 @@
    130831142628 XtAppInitialize()
    130832142629 ; return 0; }
    130833142630 EOF
    130834142631-if { (eval echo configure:5557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130835 +if { (eval echo configure:5730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142632+if { (eval echo configure:6117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130836142633   rm -rf conftest*
    130837142634   eval "ac_cv_lib_$ac_lib_var=yes"
    130838142635 else
    130839 @@ -5591,7 +5764,7 @@
     142636@@ -5591,7 +6151,7 @@
    130840142637 cf_x_athena=${cf_x_athena-Xaw}
    130841142638 
    130842142639 echo $ac_n "checking if you want to link with Xaw 3d library""... $ac_c" 1>&6
    130843142640-echo "configure:5595: checking if you want to link with Xaw 3d library" >&5
    130844 +echo "configure:5768: checking if you want to link with Xaw 3d library" >&5
     142641+echo "configure:6155: checking if you want to link with Xaw 3d library" >&5
    130845142642 withval=
    130846142643 
    130847142644 # Check whether --with-Xaw3d or --without-Xaw3d was given.
    130848 @@ -5608,7 +5781,7 @@
     142645@@ -5608,7 +6168,7 @@
    130849142646 fi
    130850142647 
    130851142648 echo $ac_n "checking if you want to link with neXT Athena library""... $ac_c" 1>&6
    130852142649-echo "configure:5612: checking if you want to link with neXT Athena library" >&5
    130853 +echo "configure:5785: checking if you want to link with neXT Athena library" >&5
     142650+echo "configure:6172: checking if you want to link with neXT Athena library" >&5
    130854142651 withval=
    130855142652 
    130856142653 # Check whether --with-neXtaw or --without-neXtaw was given.
    130857 @@ -5625,7 +5798,7 @@
     142654@@ -5625,7 +6185,7 @@
    130858142655 fi
    130859142656 
    130860142657 echo $ac_n "checking if you want to link with Athena-Plus library""... $ac_c" 1>&6
    130861142658-echo "configure:5629: checking if you want to link with Athena-Plus library" >&5
    130862 +echo "configure:5802: checking if you want to link with Athena-Plus library" >&5
     142659+echo "configure:6189: checking if you want to link with Athena-Plus library" >&5
    130863142660 withval=
    130864142661 
    130865142662 # Check whether --with-XawPlus or --without-XawPlus was given.
    130866 @@ -5642,7 +5815,7 @@
     142663@@ -5642,7 +6202,7 @@
    130867142664 fi
    130868142665 
    130869142666 echo $ac_n "checking for XextCreateExtension in -lXext""... $ac_c" 1>&6
    130870142667-echo "configure:5646: checking for XextCreateExtension in -lXext" >&5
    130871 +echo "configure:5819: checking for XextCreateExtension in -lXext" >&5
     142668+echo "configure:6206: checking for XextCreateExtension in -lXext" >&5
    130872142669 ac_lib_var=`echo Xext'_'XextCreateExtension | sed 'y%./+-%__p_%'`
    130873142670 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    130874142671   echo $ac_n "(cached) $ac_c" 1>&6
    130875 @@ -5650,7 +5823,7 @@
     142672@@ -5650,7 +6210,7 @@
    130876142673   ac_save_LIBS="$LIBS"
    130877142674 LIBS="-lXext  $LIBS"
    130878142675 cat > conftest.$ac_ext <<EOF
    130879142676-#line 5654 "configure"
    130880 +#line 5827 "configure"
     142677+#line 6214 "configure"
    130881142678 #include "confdefs.h"
    130882142679 /* Override any gcc2 internal prototype to avoid an error.  */
    130883142680 /* We use char because int might match the return type of a gcc2
    130884 @@ -5661,7 +5834,7 @@
     142681@@ -5661,7 +6221,7 @@
    130885142682 XextCreateExtension()
    130886142683 ; return 0; }
    130887142684 EOF
    130888142685-if { (eval echo configure:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130889 +if { (eval echo configure:5838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142686+if { (eval echo configure:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130890142687   rm -rf conftest*
    130891142688   eval "ac_cv_lib_$ac_lib_var=yes"
    130892142689 else
    130893 @@ -5700,13 +5873,13 @@
     142690@@ -5700,13 +6260,13 @@
    130894142691                if test $cf_path != default ; then
    130895142692                        CPPFLAGS="-I$cf_path/include $cf_save"
    130896142693                        echo $ac_n "checking for $cf_test in $cf_path""... $ac_c" 1>&6
    130897142694-echo "configure:5704: checking for $cf_test in $cf_path" >&5
    130898 +echo "configure:5877: checking for $cf_test in $cf_path" >&5
     142695+echo "configure:6264: checking for $cf_test in $cf_path" >&5
    130899142696                else
    130900142697                        echo $ac_n "checking for $cf_test""... $ac_c" 1>&6
    130901142698-echo "configure:5707: checking for $cf_test" >&5
    130902 +echo "configure:5880: checking for $cf_test" >&5
     142699+echo "configure:6267: checking for $cf_test" >&5
    130903142700                fi
    130904142701                cat > conftest.$ac_ext <<EOF
    130905142702-#line 5710 "configure"
    130906 +#line 5883 "configure"
     142703+#line 6270 "configure"
    130907142704 #include "confdefs.h"
    130908142705 
    130909142706 #include <X11/Intrinsic.h>
    130910 @@ -5715,7 +5888,7 @@
     142707@@ -5715,7 +6275,7 @@
    130911142708 
    130912142709 ; return 0; }
    130913142710 EOF
    130914142711-if { (eval echo configure:5719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    130915 +if { (eval echo configure:5892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     142712+if { (eval echo configure:6279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    130916142713   rm -rf conftest*
    130917142714   cf_result=yes
    130918142715 else
    130919 @@ -5762,21 +5935,21 @@
     142716@@ -5762,21 +6322,21 @@
    130920142717                        if test $cf_path != default ; then
    130921142718                                LIBS="-L$cf_path/lib $cf_lib $LIBS"
    130922142719                                echo $ac_n "checking for $cf_lib in $cf_path""... $ac_c" 1>&6
    130923142720-echo "configure:5766: checking for $cf_lib in $cf_path" >&5
    130924 +echo "configure:5939: checking for $cf_lib in $cf_path" >&5
     142721+echo "configure:6326: checking for $cf_lib in $cf_path" >&5
    130925142722                        else
    130926142723                                LIBS="$cf_lib $LIBS"
    130927142724                                echo $ac_n "checking for $cf_test in $cf_lib""... $ac_c" 1>&6
    130928142725-echo "configure:5770: checking for $cf_test in $cf_lib" >&5
    130929 +echo "configure:5943: checking for $cf_test in $cf_lib" >&5
     142726+echo "configure:6330: checking for $cf_test in $cf_lib" >&5
    130930142727                        fi
    130931142728                        cat > conftest.$ac_ext <<EOF
    130932142729-#line 5773 "configure"
    130933 +#line 5946 "configure"
     142730+#line 6333 "configure"
    130934142731 #include "confdefs.h"
    130935142732 
     
    130939142736 EOF
    130940142737-if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130941 +if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142738+if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130942142739   rm -rf conftest*
    130943142740   cf_result=yes
    130944142741 else
    130945 @@ -5817,7 +5990,7 @@
     142742@@ -5817,7 +6377,7 @@
    130946142743 # Extract the first word of "$ac_prog", so it can be a program name with args.
    130947142744 set dummy $ac_prog; ac_word=$2
    130948142745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    130949142746-echo "configure:5821: checking for $ac_word" >&5
    130950 +echo "configure:5994: checking for $ac_word" >&5
     142747+echo "configure:6381: checking for $ac_word" >&5
    130951142748 if eval "test \"`echo '$''{'ac_cv_path_XCURSES_CONFIG'+set}'`\" = set"; then
    130952142749   echo $ac_n "(cached) $ac_c" 1>&6
    130953142750 else
    130954 @@ -5946,14 +6119,14 @@
     142751@@ -5867,6 +6427,9 @@
     142752 
     142753 test -n "$verbose" && echo "   checking additions to CFLAGS" 1>&6
     142754 
     142755+echo "${as_me-configure}:6431: testing checking additions to CFLAGS ..." 1>&5
     142756+
     142757+
     142758 cf_check_cflags="$CFLAGS"
     142759 cf_check_cppflags="$CPPFLAGS"
     142760 
     142761@@ -5926,18 +6489,27 @@
     142762 if test -n "$cf_new_cflags" ; then
     142763        test -n "$verbose" && echo "    add to \$CFLAGS $cf_new_cflags" 1>&6
     142764 
     142765+echo "${as_me-configure}:6493: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
     142766+
     142767+
     142768        CFLAGS="$CFLAGS $cf_new_cflags"
     142769 fi
     142770 
     142771 if test -n "$cf_new_cppflags" ; then
     142772        test -n "$verbose" && echo "    add to \$CPPFLAGS $cf_new_cppflags" 1>&6
     142773 
     142774+echo "${as_me-configure}:6502: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
     142775+
     142776+
     142777        CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
     142778 fi
     142779 
     142780 if test -n "$cf_new_extra_cppflags" ; then
     142781        test -n "$verbose" && echo "    add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
     142782 
     142783+echo "${as_me-configure}:6511: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
     142784+
     142785+
     142786        EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
     142787 fi
     142788 
     142789@@ -5946,14 +6518,14 @@
    130955142790 
    130956142791 if test "$cf_check_cflags" != "$CFLAGS" ; then
    130957142792 cat > conftest.$ac_ext <<EOF
    130958142793-#line 5950 "configure"
    130959 +#line 6123 "configure"
     142794+#line 6522 "configure"
    130960142795 #include "confdefs.h"
    130961142796 #include <stdio.h>
     
    130965142800 EOF
    130966142801-if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130967 +if { (eval echo configure:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142802+if { (eval echo configure:6529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130968142803   :
    130969142804 else
    130970142805   echo "configure: failed program was:" >&5
    130971 @@ -5971,7 +6144,7 @@
     142806@@ -5961,9 +6533,15 @@
     142807   rm -rf conftest*
     142808   test -n "$verbose" && echo " test-compile failed.  Undoing change to \$CFLAGS" 1>&6
     142809 
     142810+echo "${as_me-configure}:6537: testing test-compile failed.  Undoing change to \$CFLAGS ..." 1>&5
     142811+
     142812+
     142813         if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
     142814                 test -n "$verbose" && echo "   but keeping change to \$CPPFLAGS" 1>&6
     142815 
     142816+echo "${as_me-configure}:6543: testing but keeping change to \$CPPFLAGS ..." 1>&5
     142817+
     142818+
     142819         fi
     142820         CFLAGS="$cf_check_flags"
     142821 fi
     142822@@ -5971,7 +6549,7 @@
    130972142823 fi
    130973142824 
    130974142825 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
    130975142826-echo "configure:5975: checking for XOpenDisplay in -lX11" >&5
    130976 +echo "configure:6148: checking for XOpenDisplay in -lX11" >&5
     142827+echo "configure:6553: checking for XOpenDisplay in -lX11" >&5
    130977142828 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
    130978142829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    130979142830   echo $ac_n "(cached) $ac_c" 1>&6
    130980 @@ -5979,7 +6152,7 @@
     142831@@ -5979,7 +6557,7 @@
    130981142832   ac_save_LIBS="$LIBS"
    130982142833 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
    130983142834 cat > conftest.$ac_ext <<EOF
    130984142835-#line 5983 "configure"
    130985 +#line 6156 "configure"
     142836+#line 6561 "configure"
    130986142837 #include "confdefs.h"
    130987142838 /* Override any gcc2 internal prototype to avoid an error.  */
    130988142839 /* We use char because int might match the return type of a gcc2
    130989 @@ -5990,7 +6163,7 @@
     142840@@ -5990,7 +6568,7 @@
    130990142841 XOpenDisplay()
    130991142842 ; return 0; }
    130992142843 EOF
    130993142844-if { (eval echo configure:5994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130994 +if { (eval echo configure:6167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142845+if { (eval echo configure:6572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    130995142846   rm -rf conftest*
    130996142847   eval "ac_cv_lib_$ac_lib_var=yes"
    130997142848 else
    130998 @@ -6011,14 +6184,14 @@
     142849@@ -6011,14 +6589,14 @@
    130999142850 fi
    131000142851 
    131001142852 echo $ac_n "checking for XCurses library""... $ac_c" 1>&6
    131002142853-echo "configure:6015: checking for XCurses library" >&5
    131003 +echo "configure:6188: checking for XCurses library" >&5
     142854+echo "configure:6593: checking for XCurses library" >&5
    131004142855 if eval "test \"`echo '$''{'cf_cv_lib_XCurses'+set}'`\" = set"; then
    131005142856   echo $ac_n "(cached) $ac_c" 1>&6
     
    131009142860 cat > conftest.$ac_ext <<EOF
    131010142861-#line 6022 "configure"
    131011 +#line 6195 "configure"
     142862+#line 6600 "configure"
    131012142863 #include "confdefs.h"
    131013142864 
    131014142865 #include <xcurses.h>
    131015 @@ -6028,7 +6201,7 @@
     142866@@ -6028,7 +6606,7 @@
    131016142867 XCursesExit();
    131017142868 ; return 0; }
    131018142869 EOF
    131019142870-if { (eval echo configure:6032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131020 +if { (eval echo configure:6205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142871+if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131021142872   rm -rf conftest*
    131022142873   cf_cv_lib_XCurses=yes
    131023142874 else
    131024 @@ -6073,7 +6246,7 @@
     142875@@ -6073,7 +6651,7 @@
    131025142876 *)
    131026142877        # look for curses-related libraries
    131027142878        echo $ac_n "checking for new_panel in -lpanel$cf_cv_libtype""... $ac_c" 1>&6
    131028142879-echo "configure:6077: checking for new_panel in -lpanel$cf_cv_libtype" >&5
    131029 +echo "configure:6250: checking for new_panel in -lpanel$cf_cv_libtype" >&5
     142880+echo "configure:6655: checking for new_panel in -lpanel$cf_cv_libtype" >&5
    131030142881 ac_lib_var=`echo panel$cf_cv_libtype'_'new_panel | sed 'y%./+-%__p_%'`
    131031142882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    131032142883   echo $ac_n "(cached) $ac_c" 1>&6
    131033 @@ -6081,7 +6254,7 @@
     142884@@ -6081,7 +6659,7 @@
    131034142885   ac_save_LIBS="$LIBS"
    131035142886 LIBS="-lpanel$cf_cv_libtype  $LIBS"
    131036142887 cat > conftest.$ac_ext <<EOF
    131037142888-#line 6085 "configure"
    131038 +#line 6258 "configure"
     142889+#line 6663 "configure"
    131039142890 #include "confdefs.h"
    131040142891 /* Override any gcc2 internal prototype to avoid an error.  */
    131041142892 /* We use char because int might match the return type of a gcc2
    131042 @@ -6092,7 +6265,7 @@
     142893@@ -6092,7 +6670,7 @@
    131043142894 new_panel()
    131044142895 ; return 0; }
    131045142896 EOF
    131046142897-if { (eval echo configure:6096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131047 +if { (eval echo configure:6269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142898+if { (eval echo configure:6674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131048142899   rm -rf conftest*
    131049142900   eval "ac_cv_lib_$ac_lib_var=yes"
    131050142901 else
    131051 @@ -6120,7 +6293,7 @@
     142902@@ -6120,7 +6698,7 @@
    131052142903 fi
    131053142904 
    131054142905        echo $ac_n "checking for menu_driver in -lmenu$cf_cv_libtype""... $ac_c" 1>&6
    131055142906-echo "configure:6124: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
    131056 +echo "configure:6297: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
     142907+echo "configure:6702: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
    131057142908 ac_lib_var=`echo menu$cf_cv_libtype'_'menu_driver | sed 'y%./+-%__p_%'`
    131058142909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    131059142910   echo $ac_n "(cached) $ac_c" 1>&6
    131060 @@ -6128,7 +6301,7 @@
     142911@@ -6128,7 +6706,7 @@
    131061142912   ac_save_LIBS="$LIBS"
    131062142913 LIBS="-lmenu$cf_cv_libtype  $LIBS"
    131063142914 cat > conftest.$ac_ext <<EOF
    131064142915-#line 6132 "configure"
    131065 +#line 6305 "configure"
     142916+#line 6710 "configure"
    131066142917 #include "confdefs.h"
    131067142918 /* Override any gcc2 internal prototype to avoid an error.  */
    131068142919 /* We use char because int might match the return type of a gcc2
    131069 @@ -6139,7 +6312,7 @@
     142920@@ -6139,7 +6717,7 @@
    131070142921 menu_driver()
    131071142922 ; return 0; }
    131072142923 EOF
    131073142924-if { (eval echo configure:6143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131074 +if { (eval echo configure:6316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142925+if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131075142926   rm -rf conftest*
    131076142927   eval "ac_cv_lib_$ac_lib_var=yes"
    131077142928 else
    131078 @@ -6167,7 +6340,7 @@
     142929@@ -6167,7 +6745,7 @@
    131079142930 fi
    131080142931 
    131081142932        echo $ac_n "checking for form_driver in -lform$cf_cv_libtype""... $ac_c" 1>&6
    131082142933-echo "configure:6171: checking for form_driver in -lform$cf_cv_libtype" >&5
    131083 +echo "configure:6344: checking for form_driver in -lform$cf_cv_libtype" >&5
     142934+echo "configure:6749: checking for form_driver in -lform$cf_cv_libtype" >&5
    131084142935 ac_lib_var=`echo form$cf_cv_libtype'_'form_driver | sed 'y%./+-%__p_%'`
    131085142936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    131086142937   echo $ac_n "(cached) $ac_c" 1>&6
    131087 @@ -6175,7 +6348,7 @@
     142938@@ -6175,7 +6753,7 @@
    131088142939   ac_save_LIBS="$LIBS"
    131089142940 LIBS="-lform$cf_cv_libtype  $LIBS"
    131090142941 cat > conftest.$ac_ext <<EOF
    131091142942-#line 6179 "configure"
    131092 +#line 6352 "configure"
     142943+#line 6757 "configure"
    131093142944 #include "confdefs.h"
    131094142945 /* Override any gcc2 internal prototype to avoid an error.  */
    131095142946 /* We use char because int might match the return type of a gcc2
    131096 @@ -6186,7 +6359,7 @@
     142947@@ -6186,7 +6764,7 @@
    131097142948 form_driver()
    131098142949 ; return 0; }
    131099142950 EOF
    131100142951-if { (eval echo configure:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131101 +if { (eval echo configure:6363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     142952+if { (eval echo configure:6768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131102142953   rm -rf conftest*
    131103142954   eval "ac_cv_lib_$ac_lib_var=yes"
    131104142955 else
    131105 @@ -6225,17 +6398,17 @@
     142956@@ -6225,17 +6803,17 @@
    131106142957 do
    131107142958 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    131108142959 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    131109142960-echo "configure:6229: checking for $ac_hdr" >&5
    131110 +echo "configure:6402: checking for $ac_hdr" >&5
     142961+echo "configure:6807: checking for $ac_hdr" >&5
    131111142962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    131112142963   echo $ac_n "(cached) $ac_c" 1>&6
     
    131114142965   cat > conftest.$ac_ext <<EOF
    131115142966-#line 6234 "configure"
    131116 +#line 6407 "configure"
     142967+#line 6812 "configure"
    131117142968 #include "confdefs.h"
    131118142969 #include <$ac_hdr>
     
    131120142971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    131121142972-{ (eval echo configure:6239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    131122 +{ (eval echo configure:6412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     142973+{ (eval echo configure:6817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    131123142974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    131124142975 if test -z "$ac_err"; then
    131125142976   rm -rf conftest*
    131126 @@ -6265,12 +6438,12 @@
     142977@@ -6265,12 +6843,12 @@
    131127142978 esac
    131128142979 
    131129142980 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
    131130142981-echo "configure:6269: checking return type of signal handlers" >&5
    131131 +echo "configure:6442: checking return type of signal handlers" >&5
     142982+echo "configure:6847: checking return type of signal handlers" >&5
    131132142983 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    131133142984   echo $ac_n "(cached) $ac_c" 1>&6
     
    131135142986   cat > conftest.$ac_ext <<EOF
    131136142987-#line 6274 "configure"
    131137 +#line 6447 "configure"
     142988+#line 6852 "configure"
    131138142989 #include "confdefs.h"
    131139142990 #include <sys/types.h>
    131140142991 #include <signal.h>
    131141 @@ -6287,7 +6460,7 @@
     142992@@ -6287,7 +6865,7 @@
    131142142993 int i;
    131143142994 ; return 0; }
    131144142995 EOF
    131145142996-if { (eval echo configure:6291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    131146 +if { (eval echo configure:6464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     142997+if { (eval echo configure:6869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    131147142998   rm -rf conftest*
    131148142999   ac_cv_type_signal=void
    131149143000 else
    131150 @@ -6307,12 +6480,12 @@
     143001@@ -6307,12 +6885,12 @@
    131151143002 
    131152143003 
    131153143004 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    131154143005-echo "configure:6311: checking for ANSI C header files" >&5
    131155 +echo "configure:6484: checking for ANSI C header files" >&5
     143006+echo "configure:6889: checking for ANSI C header files" >&5
    131156143007 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    131157143008   echo $ac_n "(cached) $ac_c" 1>&6
     
    131159143010   cat > conftest.$ac_ext <<EOF
    131160143011-#line 6316 "configure"
    131161 +#line 6489 "configure"
     143012+#line 6894 "configure"
    131162143013 #include "confdefs.h"
    131163143014 #include <stdlib.h>
    131164143015 #include <stdarg.h>
    131165 @@ -6320,7 +6493,7 @@
     143016@@ -6320,7 +6898,7 @@
    131166143017 #include <float.h>
    131167143018 EOF
    131168143019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    131169143020-{ (eval echo configure:6324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    131170 +{ (eval echo configure:6497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     143021+{ (eval echo configure:6902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    131171143022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    131172143023 if test -z "$ac_err"; then
    131173143024   rm -rf conftest*
    131174 @@ -6337,7 +6510,7 @@
     143025@@ -6337,7 +6915,7 @@
    131175143026 if test $ac_cv_header_stdc = yes; then
    131176143027   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    131177143028 cat > conftest.$ac_ext <<EOF
    131178143029-#line 6341 "configure"
    131179 +#line 6514 "configure"
     143030+#line 6919 "configure"
    131180143031 #include "confdefs.h"
    131181143032 #include <string.h>
    131182143033 EOF
    131183 @@ -6355,7 +6528,7 @@
     143034@@ -6355,7 +6933,7 @@
    131184143035 if test $ac_cv_header_stdc = yes; then
    131185143036   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    131186143037 cat > conftest.$ac_ext <<EOF
    131187143038-#line 6359 "configure"
    131188 +#line 6532 "configure"
     143039+#line 6937 "configure"
    131189143040 #include "confdefs.h"
    131190143041 #include <stdlib.h>
    131191143042 EOF
    131192 @@ -6376,7 +6549,7 @@
     143043@@ -6376,7 +6954,7 @@
    131193143044   :
    131194143045 else
    131195143046   cat > conftest.$ac_ext <<EOF
    131196143047-#line 6380 "configure"
    131197 +#line 6553 "configure"
     143048+#line 6958 "configure"
    131198143049 #include "confdefs.h"
    131199143050 #include <ctype.h>
    131200143051 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    131201 @@ -6387,7 +6560,7 @@
     143052@@ -6387,7 +6965,7 @@
    131202143053 exit (0); }
    131203143054 
    131204143055 EOF
    131205143056-if { (eval echo configure:6391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    131206 +if { (eval echo configure:6564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     143057+if { (eval echo configure:6969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    131207143058 then
    131208143059   :
    131209143060 else
    131210 @@ -6411,12 +6584,12 @@
     143061@@ -6411,12 +6989,12 @@
    131211143062 fi
    131212143063 
    131213143064 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    131214143065-echo "configure:6415: checking whether time.h and sys/time.h may both be included" >&5
    131215 +echo "configure:6588: checking whether time.h and sys/time.h may both be included" >&5
     143066+echo "configure:6993: checking whether time.h and sys/time.h may both be included" >&5
    131216143067 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    131217143068   echo $ac_n "(cached) $ac_c" 1>&6
     
    131219143070   cat > conftest.$ac_ext <<EOF
    131220143071-#line 6420 "configure"
    131221 +#line 6593 "configure"
     143072+#line 6998 "configure"
    131222143073 #include "confdefs.h"
    131223143074 #include <sys/types.h>
    131224143075 #include <sys/time.h>
    131225 @@ -6425,7 +6598,7 @@
     143076@@ -6425,7 +7003,7 @@
    131226143077 struct tm *tp;
    131227143078 ; return 0; }
    131228143079 EOF
    131229143080-if { (eval echo configure:6429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    131230 +if { (eval echo configure:6602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     143081+if { (eval echo configure:7007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    131231143082   rm -rf conftest*
    131232143083   ac_cv_header_time=yes
    131233143084 else
    131234 @@ -6458,17 +6631,17 @@
     143085@@ -6458,17 +7036,17 @@
    131235143086 do
    131236143087 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    131237143088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    131238143089-echo "configure:6462: checking for $ac_hdr" >&5
    131239 +echo "configure:6635: checking for $ac_hdr" >&5
     143090+echo "configure:7040: checking for $ac_hdr" >&5
    131240143091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    131241143092   echo $ac_n "(cached) $ac_c" 1>&6
     
    131243143094   cat > conftest.$ac_ext <<EOF
    131244143095-#line 6467 "configure"
    131245 +#line 6640 "configure"
     143096+#line 7045 "configure"
    131246143097 #include "confdefs.h"
    131247143098 #include <$ac_hdr>
     
    131249143100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    131250143101-{ (eval echo configure:6472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    131251 +{ (eval echo configure:6645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     143102+{ (eval echo configure:7050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    131252143103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    131253143104 if test -z "$ac_err"; then
    131254143105   rm -rf conftest*
    131255 @@ -6529,12 +6702,12 @@
     143106@@ -6496,45 +7074,17 @@
     143107 
     143108 
     143109 for ac_func in \
     143110-chgat \
     143111-color_set \
     143112-filter \
     143113-getbegx \
     143114-getcurx \
     143115-getmaxx \
     143116-getnstr \
     143117 gettimeofday \
     143118-getwin \
     143119-mvvline \
     143120-mvwvline \
     143121-napms \
     143122-putwin \
     143123-resize_term \
     143124-resizeterm \
     143125-ripoffline \
     143126-setupterm \
     143127-slk_color \
     143128-slk_init \
     143129 strdup \
     143130-termattrs \
     143131-tgetent \
     143132-tigetnum \
     143133-tigetstr \
     143134-typeahead \
     143135-use_default_colors \
     143136-vsscanf \
     143137-wchgat \
     143138-winsstr \
     143139-wresize \
    131256143140 
    131257143141 do
    131258143142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    131259143143-echo "configure:6533: checking for $ac_func" >&5
    131260 +echo "configure:6706: checking for $ac_func" >&5
     143144+echo "configure:7083: checking for $ac_func" >&5
    131261143145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    131262143146   echo $ac_n "(cached) $ac_c" 1>&6
     
    131264143148   cat > conftest.$ac_ext <<EOF
    131265143149-#line 6538 "configure"
    131266 +#line 6711 "configure"
     143150+#line 7088 "configure"
    131267143151 #include "confdefs.h"
    131268143152 /* System header to define __stub macros and hopefully few prototypes,
    131269143153     which can conflict with char $ac_func(); below.  */
    131270 @@ -6557,7 +6730,7 @@
     143154@@ -6557,7 +7107,7 @@
    131271143155 
    131272143156 ; return 0; }
    131273143157 EOF
    131274143158-if { (eval echo configure:6561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131275 +if { (eval echo configure:6734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     143159+if { (eval echo configure:7111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131276143160   rm -rf conftest*
    131277143161   eval "ac_cv_func_$ac_func=yes"
    131278143162 else
    131279 @@ -6582,8 +6755,14 @@
     143163@@ -6582,8 +7132,240 @@
    131280143164 done
    131281143165 
    131282143166 
     143167+
     143168+echo $ac_n "checking if we must define _XOPEN_SOURCE_EXTENDED""... $ac_c" 1>&6
     143169+echo "configure:7138: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
     143170+if eval "test \"`echo '$''{'cf_cv_need_xopen_extension'+set}'`\" = set"; then
     143171+  echo $ac_n "(cached) $ac_c" 1>&6
     143172+else
     143173
     143174+cat > conftest.$ac_ext <<EOF
     143175+#line 7144 "configure"
     143176+#include "confdefs.h"
     143177+
     143178+#include <stdlib.h>
     143179+#include <${cf_cv_ncurses_header-curses.h}>
     143180+int main() {
     143181+
     143182+       long x = winnstr(stdscr, "", 0);
     143183+       int x1, y1;
     143184+       getbegyx(stdscr, y1, x1)
     143185+; return 0; }
     143186+EOF
     143187+if { (eval echo configure:7156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     143188+  rm -rf conftest*
     143189+  cf_cv_need_xopen_extension=no
     143190+else
     143191+  echo "configure: failed program was:" >&5
     143192+  cat conftest.$ac_ext >&5
     143193+  rm -rf conftest*
     143194+  cat > conftest.$ac_ext <<EOF
     143195+#line 7164 "configure"
     143196+#include "confdefs.h"
     143197+
     143198+#define _XOPEN_SOURCE_EXTENDED
     143199+#include <stdlib.h>
     143200+#include <${cf_cv_ncurses_header-curses.h}>
     143201+int main() {
     143202+
     143203+       long x = winnstr(stdscr, "", 0);
     143204+       int x1, y1;
     143205+       getbegyx(stdscr, y1, x1)
     143206+; return 0; }
     143207+EOF
     143208+if { (eval echo configure:7177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     143209+  rm -rf conftest*
     143210+  cf_cv_need_xopen_extension=yes
     143211+else
     143212+  echo "configure: failed program was:" >&5
     143213+  cat conftest.$ac_ext >&5
     143214+  rm -rf conftest*
     143215+  cf_cv_need_xopen_extension=unknown
     143216+fi
     143217+rm -f conftest*
     143218+fi
     143219+rm -f conftest*
     143220+fi
     143221+
     143222+echo "$ac_t""$cf_cv_need_xopen_extension" 1>&6
     143223+test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
     143224+
     143225+
     143226+echo $ac_n "checking for term.h""... $ac_c" 1>&6
     143227+echo "configure:7196: checking for term.h" >&5
     143228+if eval "test \"`echo '$''{'cf_cv_term_header'+set}'`\" = set"; then
     143229+  echo $ac_n "(cached) $ac_c" 1>&6
     143230+else
     143231
     143232+
     143233+# If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
     143234+# for <term.h> if we do not find the variant.
     143235+for cf_header in \
     143236+       `echo ${cf_cv_ncurses_header-curses.h} | sed -e 's%/.*%/%'`term.h \
     143237+       term.h
     143238+do
     143239+       cat > conftest.$ac_ext <<EOF
     143240+#line 7209 "configure"
     143241+#include "confdefs.h"
     143242+
     143243+#include <${cf_cv_ncurses_header-curses.h}>
     143244+#include <${cf_header}>
     143245+int main() {
     143246+WINDOW *x
     143247+; return 0; }
     143248+EOF
     143249+if { (eval echo configure:7218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     143250+  rm -rf conftest*
     143251+  cf_cv_term_header=$cf_header
     143252+        break
     143253+else
     143254+  echo "configure: failed program was:" >&5
     143255+  cat conftest.$ac_ext >&5
     143256+  rm -rf conftest*
     143257+  cf_cv_term_header=no
     143258+fi
     143259+rm -f conftest*
     143260+done
     143261+
     143262+fi
     143263+
     143264+echo "$ac_t""$cf_cv_term_header" 1>&6
     143265+
     143266+case $cf_cv_term_header in #(vi
     143267+term.h) #(vi
     143268+       cat >> confdefs.h <<\EOF
     143269+#define HAVE_TERM_H 1
     143270+EOF
     143271+
     143272+       ;;
     143273+ncurses/term.h)
     143274+       cat >> confdefs.h <<\EOF
     143275+#define HAVE_NCURSES_TERM_H 1
     143276+EOF
     143277+
     143278+       ;;
     143279+ncursesw/term.h)
     143280+       cat >> confdefs.h <<\EOF
     143281+#define HAVE_NCURSESW_TERM_H 1
     143282+EOF
     143283+
     143284+       ;;
     143285+esac
     143286+
     143287+
     143288+
     143289+
     143290+for cf_func in \
     143291+chgat \
     143292+color_set \
     143293+filter \
     143294+getbegx \
     143295+getcurx \
     143296+getmaxx \
     143297+getnstr \
     143298+getparx \
     143299+getwin \
     143300+mvvline \
     143301+mvwvline \
     143302+napms \
     143303+putwin \
     143304+resize_term \
     143305+resizeterm \
     143306+ripoffline \
     143307+setupterm \
     143308+slk_color \
     143309+slk_init \
     143310+termattrs \
     143311+tgetent \
     143312+tigetnum \
     143313+tigetstr \
     143314+typeahead \
     143315+use_default_colors \
     143316+vsscanf \
     143317+wchgat \
     143318+winsstr \
     143319+wresize \
     143320+
     143321+do
     143322+       
     143323+cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
     143324+
     143325+       echo $ac_n "checking for ${cf_func}""... $ac_c" 1>&6
     143326+echo "configure:7295: checking for ${cf_func}" >&5
     143327+       
     143328+echo "${as_me-configure}:7297: testing ${cf_func} ..." 1>&5
     143329+
     143330+       if eval "test \"`echo '$''{'cf_cv_func_$cf_func'+set}'`\" = set"; then
     143331+  echo $ac_n "(cached) $ac_c" 1>&6
     143332+else
     143333
     143334+               eval cf_result='$ac_cv_func_'$cf_func
     143335+               if test ".$cf_result" != ".no"; then
     143336+                       cat > conftest.$ac_ext <<EOF
     143337+#line 7306 "configure"
     143338+#include "confdefs.h"
     143339+
     143340+#ifdef HAVE_XCURSES
     143341+#include <xcurses.h>
     143342+char * XCursesProgramName = "test";
     143343+#else
     143344+#include <${cf_cv_ncurses_header-curses.h}>
     143345+#if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
     143346+#include <ncursesw/term.h>
     143347+#else
     143348+#if defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
     143349+#include <ncurses/term.h>
     143350+#else
     143351+#ifdef HAVE_TERM_H
     143352+#include <term.h>
     143353+#endif
     143354+#endif
     143355+#endif
     143356+#endif
     143357+int main() {
     143358+
     143359+#ifndef ${cf_func}
     143360+long foo = (long)(&${cf_func});
     143361+${cf_cv_main_return-return}(foo == 0);
     143362+#endif
     143363+                       
     143364+; return 0; }
     143365+EOF
     143366+if { (eval echo configure:7335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     143367+  rm -rf conftest*
     143368+  cf_result=yes
     143369+else
     143370+  echo "configure: failed program was:" >&5
     143371+  cat conftest.$ac_ext >&5
     143372+  rm -rf conftest*
     143373+  cf_result=no
     143374+fi
     143375+rm -f conftest*
     143376+               fi
     143377+               eval 'cf_cv_func_'$cf_func'=$cf_result'
     143378+       
     143379+fi
     143380+
     143381+       # use the computed/retrieved cache-value:
     143382+       eval 'cf_result=$cf_cv_func_'$cf_func
     143383+       echo "$ac_t""$cf_result" 1>&6
     143384+       if test $cf_result != no; then
     143385+               cat >> confdefs.h <<EOF
     143386+#define HAVE_${cf_tr_func} 1
     143387+EOF
     143388+
     143389+       fi
     143390+done
     143391+
     143392+
    131283143393+echo $ac_n "checking for ncurses extended functions""... $ac_c" 1>&6
    131284 +echo "configure:6760: checking for ncurses extended functions" >&5
     143394+echo "configure:7363: checking for ncurses extended functions" >&5
    131285143395+if eval "test \"`echo '$''{'cf_cv_ncurses_ext_funcs'+set}'`\" = set"; then
    131286143396+  echo $ac_n "(cached) $ac_c" 1>&6
     
    131289143399 cat > conftest.$ac_ext <<EOF
    131290143400-#line 6587 "configure"
    131291 +#line 6766 "configure"
     143401+#line 7369 "configure"
    131292143402 #include "confdefs.h"
    131293143403 
    131294143404 #include <${cf_cv_ncurses_header-curses.h}>
    131295 @@ -6601,30 +6780,81 @@
     143405@@ -6601,30 +7383,81 @@
    131296143406        (void) use_default_colors ();
    131297143407        (void) use_extended_names (0);
     
    131301143411 EOF
    131302143412-if { (eval echo configure:6608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131303 +if { (eval echo configure:6786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     143413+if { (eval echo configure:7389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131304143414   rm -rf conftest*
    131305143415-  cat >> confdefs.h <<\EOF
     
    131322143432+
    131323143433+echo $ac_n "checking for wide-character functions""... $ac_c" 1>&6
    131324 +echo "configure:6806: checking for wide-character functions" >&5
     143434+echo "configure:7409: checking for wide-character functions" >&5
    131325143435+if eval "test \"`echo '$''{'cf_cv_widechar_funcs'+set}'`\" = set"; then
    131326143436+  echo $ac_n "(cached) $ac_c" 1>&6
     
    131328143438
    131329143439+cat > conftest.$ac_ext <<EOF
    131330 +#line 6812 "configure"
     143440+#line 7415 "configure"
    131331143441+#include "confdefs.h"
    131332143442+
     
    131340143450+; return 0; }
    131341143451+EOF
    131342 +if { (eval echo configure:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     143452+if { (eval echo configure:7427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131343143453+  rm -rf conftest*
    131344143454+  cf_cv_widechar_funcs=yes
     
    131369143479 echo $ac_n "checking if sys/time.h works with sys/select.h""... $ac_c" 1>&6
    131370143480-echo "configure:6622: checking if sys/time.h works with sys/select.h" >&5
    131371 +echo "configure:6852: checking if sys/time.h works with sys/select.h" >&5
     143481+echo "configure:7455: checking if sys/time.h works with sys/select.h" >&5
    131372143482 if eval "test \"`echo '$''{'cf_cv_sys_time_select'+set}'`\" = set"; then
    131373143483   echo $ac_n "(cached) $ac_c" 1>&6
     
    131376143486 cat > conftest.$ac_ext <<EOF
    131377143487-#line 6628 "configure"
    131378 +#line 6858 "configure"
     143488+#line 7461 "configure"
    131379143489 #include "confdefs.h"
    131380143490 
    131381143491 #include <sys/types.h>
    131382 @@ -6639,7 +6869,7 @@
     143492@@ -6639,7 +7472,7 @@
    131383143493 
    131384143494 ; return 0; }
    131385143495 EOF
    131386143496-if { (eval echo configure:6643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    131387 +if { (eval echo configure:6873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     143497+if { (eval echo configure:7476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    131388143498   rm -rf conftest*
    131389143499   cf_cv_sys_time_select=yes
    131390143500 else
    131391 @@ -6660,7 +6890,7 @@
     143501@@ -6660,7 +7493,7 @@
    131392143502 
    131393143503 
    131394143504 echo $ac_n "checking for function curses_version""... $ac_c" 1>&6
    131395143505-echo "configure:6664: checking for function curses_version" >&5
    131396 +echo "configure:6894: checking for function curses_version" >&5
     143506+echo "configure:7497: checking for function curses_version" >&5
    131397143507 if eval "test \"`echo '$''{'cf_cv_func_curses_version'+set}'`\" = set"; then
    131398143508   echo $ac_n "(cached) $ac_c" 1>&6
    131399143509 else
    131400 @@ -6669,7 +6899,7 @@
     143510@@ -6669,7 +7502,7 @@
    131401143511   cf_cv_func_curses_version=unknown
    131402143512 else
    131403143513   cat > conftest.$ac_ext <<EOF
    131404143514-#line 6673 "configure"
    131405 +#line 6903 "configure"
     143515+#line 7506 "configure"
    131406143516 #include "confdefs.h"
    131407143517 
    131408143518 #include <${cf_cv_ncurses_header-curses.h}>
    131409 @@ -6677,11 +6907,11 @@
     143519@@ -6677,11 +7510,11 @@
    131410143520 {
    131411143521        char temp[1024];
     
    131417143527 EOF
    131418143528-if { (eval echo configure:6685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    131419 +if { (eval echo configure:6915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     143529+if { (eval echo configure:7518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    131420143530 then
    131421143531   cf_cv_func_curses_version=yes
    131422143532 
    131423 @@ -6706,7 +6936,7 @@
     143533@@ -6706,7 +7539,7 @@
    131424143534 
    131425143535 
    131426143536 echo $ac_n "checking for alternate character set array""... $ac_c" 1>&6
    131427143537-echo "configure:6710: checking for alternate character set array" >&5
    131428 +echo "configure:6940: checking for alternate character set array" >&5
     143538+echo "configure:7543: checking for alternate character set array" >&5
    131429143539 if eval "test \"`echo '$''{'cf_cv_curses_acs_map'+set}'`\" = set"; then
    131430143540   echo $ac_n "(cached) $ac_c" 1>&6
    131431143541 else
    131432 @@ -6715,7 +6945,7 @@
     143542@@ -6715,7 +7548,7 @@
    131433143543 for name in acs_map _acs_map __acs_map _nc_acs_map
    131434143544 do
    131435143545 cat > conftest.$ac_ext <<EOF
    131436143546-#line 6719 "configure"
    131437 +#line 6949 "configure"
     143547+#line 7552 "configure"
    131438143548 #include "confdefs.h"
    131439143549 
    131440143550 #include <${cf_cv_ncurses_header-curses.h}>
    131441 @@ -6726,7 +6956,7 @@
     143551@@ -6726,7 +7559,7 @@
    131442143552 
    131443143553 ; return 0; }
    131444143554 EOF
    131445143555-if { (eval echo configure:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131446 +if { (eval echo configure:6960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     143556+if { (eval echo configure:7563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131447143557   rm -rf conftest*
    131448143558   cf_cv_curses_acs_map=$name; break
    131449143559 else
    131450 @@ -6747,7 +6977,7 @@
     143560@@ -6747,7 +7580,7 @@
    131451143561 
    131452143562 
    131453143563 echo $ac_n "checking for wide alternate character set array""... $ac_c" 1>&6
    131454143564-echo "configure:6751: checking for wide alternate character set array" >&5
    131455 +echo "configure:6981: checking for wide alternate character set array" >&5
     143565+echo "configure:7584: checking for wide alternate character set array" >&5
    131456143566 if eval "test \"`echo '$''{'cf_cv_curses_wacs_map'+set}'`\" = set"; then
    131457143567   echo $ac_n "(cached) $ac_c" 1>&6
    131458143568 else
    131459 @@ -6756,7 +6986,7 @@
     143569@@ -6756,7 +7589,7 @@
    131460143570        for name in wacs_map _wacs_map __wacs_map _nc_wacs
    131461143571        do
    131462143572        cat > conftest.$ac_ext <<EOF
    131463143573-#line 6760 "configure"
    131464 +#line 6990 "configure"
     143574+#line 7593 "configure"
    131465143575 #include "confdefs.h"
    131466143576 
    131467143577 #ifndef _XOPEN_SOURCE_EXTENDED
    131468 @@ -6767,7 +6997,7 @@
     143578@@ -6767,7 +7600,7 @@
    131469143579 $name['k'] = *WACS_PLUS
    131470143580 ; return 0; }
    131471143581 EOF
    131472143582-if { (eval echo configure:6771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131473 +if { (eval echo configure:7001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     143583+if { (eval echo configure:7604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    131474143584   rm -rf conftest*
    131475143585   cf_cv_curses_wacs_map=$name
    131476143586         break
    131477 @@ -6783,9 +7013,9 @@
     143587@@ -6783,9 +7616,9 @@
    131478143588 
    131479143589 
    131480143590 echo $ac_n "checking for type attr_t in ${cf_cv_ncurses_header-curses.h}""... $ac_c" 1>&6
    131481143591-echo "configure:6787: checking for type attr_t in ${cf_cv_ncurses_header-curses.h}" >&5
    131482 +echo "configure:7017: checking for type attr_t in ${cf_cv_ncurses_header-curses.h}" >&5
     143592+echo "configure:7620: checking for type attr_t in ${cf_cv_ncurses_header-curses.h}" >&5
    131483143593 cat > conftest.$ac_ext <<EOF
    131484143594-#line 6789 "configure"
    131485 +#line 7019 "configure"
     143595+#line 7622 "configure"
    131486143596 #include "confdefs.h"
    131487143597 
    131488143598 #ifndef _XOPEN_SOURCE_EXTENDED
    131489 @@ -6798,7 +7028,7 @@
     143599@@ -6798,7 +7631,7 @@
    131490143600 
    131491143601 ; return 0; }
    131492143602 EOF
    131493143603-if { (eval echo configure:6802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    131494 +if { (eval echo configure:7032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     143604+if { (eval echo configure:7635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    131495143605   rm -rf conftest*
    131496143606   cf_result=yes
    131497143607 else
    131498 @@ -6826,9 +7056,9 @@
     143608@@ -6826,9 +7659,9 @@
    131499143609 
    131500143610 
    131501143611 echo $ac_n "checking for type mbstate_t in ${cf_cv_ncurses_header-curses.h}""... $ac_c" 1>&6
    131502143612-echo "configure:6830: checking for type mbstate_t in ${cf_cv_ncurses_header-curses.h}" >&5
    131503 +echo "configure:7060: checking for type mbstate_t in ${cf_cv_ncurses_header-curses.h}" >&5
     143613+echo "configure:7663: checking for type mbstate_t in ${cf_cv_ncurses_header-curses.h}" >&5
    131504143614 cat > conftest.$ac_ext <<EOF
    131505143615-#line 6832 "configure"
    131506 +#line 7062 "configure"
     143616+#line 7665 "configure"
    131507143617 #include "confdefs.h"
    131508143618 
    131509143619 #ifndef _XOPEN_SOURCE_EXTENDED
    131510 @@ -6841,7 +7071,7 @@
     143620@@ -6841,7 +7674,7 @@
    131511143621 
    131512143622 ; return 0; }
    131513143623 EOF
    131514143624-if { (eval echo configure:6845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    131515 +if { (eval echo configure:7075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     143625+if { (eval echo configure:7678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    131516143626   rm -rf conftest*
    131517143627   cf_result=yes
    131518143628 else
    131519 @@ -7018,9 +7248,9 @@
     143629@@ -7018,9 +7851,9 @@
    131520143630 s%@DFT_DEP_SUFFIX@%$DFT_DEP_SUFFIX%g
    131521143631 s%@DFT_OBJ_SUBDIR@%$DFT_OBJ_SUBDIR%g
     
    131528143638 s%@LD_SHARED_OPTS@%$LD_SHARED_OPTS%g
    131529143639 s%@LIBTOOL@%$LIBTOOL%g
    131530 @@ -7040,6 +7270,11 @@
     143640@@ -7040,6 +7873,11 @@
    131531143641 s%@EXEEXT@%$EXEEXT%g
    131532143642 s%@OBJEXT@%$OBJEXT%g
     
    131540143650 s%@X_CFLAGS@%$X_CFLAGS%g
    131541143651 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
    131542 @@ -7247,6 +7482,7 @@
     143652@@ -7247,6 +8085,7 @@
    131543143653 # Extra initialization commands, if any
    131544143654 
     
    131548143658 EOF
    131549143659 cat >> $CONFIG_STATUS <<\EOF
    131550 @@ -7258,7 +7494,7 @@
     143660@@ -7258,7 +8097,7 @@
    131551143661        if test ! -d $srcdir/$cf_dir; then
    131552143662                continue
     
    131559143669diff -Naur ncurses-5.6.orig/test/configure.in ncurses-5.6/test/configure.in
    131560143670--- ncurses-5.6.orig/test/configure.in  2006-07-15 14:54:07.000000000 -0400
    131561 +++ ncurses-5.6/test/configure.in       2007-12-21 00:02:36.000000000 -0500
     143671+++ ncurses-5.6/test/configure.in       2008-06-18 06:49:47.000000000 -0400
    131562143672@@ -1,5 +1,5 @@
    131563143673 dnl***************************************************************************
    131564143674-dnl Copyright (c) 1998-2004,2005 Free Software Foundation, Inc.              *
    131565 +dnl Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     143675+dnl Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    131566143676 dnl                                                                          *
    131567143677 dnl Permission is hereby granted, free of charge, to any person obtaining a  *
     
    131572143682 dnl
    131573143683-dnl $Id: configure.in,v 1.58 2006/07/15 18:54:07 tom Exp $
    131574 +dnl $Id: configure.in,v 1.63 2007/06/09 20:02:57 tom Exp $
     143684+dnl $Id: configure.in,v 1.65 2008/02/09 18:24:11 tom Exp $
    131575143685 dnl This is a simple configuration-script for the ncurses test programs that
    131576143686 dnl allows the test-directory to be separately configured against a reference
     
    131609143719 CF_WITH_CURSES_DIR
    131610143720 
    131611 @@ -206,6 +210,7 @@
     143721@@ -174,6 +178,11 @@
     143722 )
     143723 
     143724 AC_CHECK_FUNCS( \
     143725+gettimeofday \
     143726+strdup \
     143727+)
     143728+
     143729+CF_CURSES_FUNCS( \
     143730 chgat \
     143731 color_set \
     143732 filter \
     143733@@ -181,7 +190,7 @@
     143734 getcurx \
     143735 getmaxx \
     143736 getnstr \
     143737-gettimeofday \
     143738+getparx \
     143739 getwin \
     143740 mvvline \
     143741 mvwvline \
     143742@@ -193,7 +202,6 @@
     143743 setupterm \
     143744 slk_color \
     143745 slk_init \
     143746-strdup \
     143747 termattrs \
     143748 tgetent \
     143749 tigetnum \
     143750@@ -206,6 +214,7 @@
    131612143751 wresize \
    131613143752 )
     
    131617143756 #include <${cf_cv_ncurses_header-curses.h}>],
    131618143757 [
    131619 @@ -220,8 +225,28 @@
     143758@@ -220,8 +229,28 @@
    131620143759        (void) resizeterm (0, 0);
    131621143760        (void) use_default_colors ();
     
    131648143787 CF_SYS_TIME_SELECT
    131649143788 CF_FUNC_CURSES_VERSION
    131650 @@ -236,7 +261,7 @@
     143789@@ -236,7 +265,7 @@
    131651143790 dnl ---------------------------------------------------------------------------
    131652143791 
     
    131657143796 
    131658143797 # These rules are generated so we do not rely on suffix rules, which do not
    131659 @@ -256,4 +281,5 @@
     143798@@ -256,4 +285,5 @@
    131660143799 done
    131661143800 ],[
     
    131663143802+ECHO_LD="$ECHO_LD"
    131664143803 ],cat)
     143804diff -Naur ncurses-5.6.orig/test/demo_altkeys.c ncurses-5.6/test/demo_altkeys.c
     143805--- ncurses-5.6.orig/test/demo_altkeys.c        2006-12-09 11:49:49.000000000 -0500
     143806+++ ncurses-5.6/test/demo_altkeys.c     2008-06-18 06:49:49.000000000 -0400
     143807@@ -1,5 +1,5 @@
     143808 /****************************************************************************
     143809- * Copyright (c) 2005,2006 Free Software Foundation, Inc.                   *
     143810+ * Copyright (c) 2005-2006,2008 Free Software Foundation, Inc.              *
     143811  *                                                                          *
     143812  * Permission is hereby granted, free of charge, to any person obtaining a  *
     143813  * copy of this software and associated documentation files (the            *
     143814@@ -26,7 +26,7 @@
     143815  * authorization.                                                           *
     143816  ****************************************************************************/
     143817 /*
     143818- * $Id: demo_altkeys.c,v 1.7 2006/12/09 16:49:49 tom Exp $
     143819+ * $Id: demo_altkeys.c,v 1.8 2008/04/12 22:06:22 tom Exp $
     143820  *
     143821  * Demonstrate the define_key() function.
     143822  * Thomas Dickey - 2005/10/22
     143823@@ -110,7 +110,7 @@
     143824     for (n = KEY_MIN; n < KEY_MAX; ++n) {
     143825        char *value;
     143826        if ((value = keybound(n, 0)) != 0) {
     143827-           char *temp = malloc(strlen(value) + 2);
     143828+           char *temp = typeMalloc(char, strlen(value) + 2);
     143829            sprintf(temp, "\033%s", value);
     143830            define_key(temp, n + MY_KEYS);
     143831            free(temp);
    131665143832diff -Naur ncurses-5.6.orig/test/demo_defkey.c ncurses-5.6/test/demo_defkey.c
    131666143833--- ncurses-5.6.orig/test/demo_defkey.c 2006-04-01 14:08:03.000000000 -0500
    131667 +++ ncurses-5.6/test/demo_defkey.c      2007-12-21 00:02:36.000000000 -0500
     143834+++ ncurses-5.6/test/demo_defkey.c      2008-06-18 06:49:49.000000000 -0400
    131668143835@@ -1,5 +1,5 @@
    131669143836 /****************************************************************************
    131670143837- * Copyright (c) 2002-2005,2006 Free Software Foundation, Inc.              *
    131671 + * Copyright (c) 2002-2006,2007 Free Software Foundation, Inc.              *
     143838+ * Copyright (c) 2002-2007,2008 Free Software Foundation, Inc.              *
    131672143839  *                                                                          *
    131673143840  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    131678143845 /*
    131679143846- * $Id: demo_defkey.c,v 1.16 2006/04/01 19:08:03 tom Exp $
    131680 + * $Id: demo_defkey.c,v 1.17 2007/04/07 17:13:03 tom Exp $
     143847+ * $Id: demo_defkey.c,v 1.18 2008/04/12 22:06:12 tom Exp $
    131681143848  *
    131682143849  * Demonstrate the define_key() function.
    131683143850  * Thomas Dickey - 2002/11/23
     143851@@ -112,10 +112,10 @@
     143852                    need += strlen(temp);
     143853            }
     143854            if (!pass)
     143855-               result = (char *) calloc(need, 1);
     143856+               result = typeCalloc(char, need);
     143857        }
     143858     } else {
     143859-       result = (char *) calloc(1, 1);
     143860+       result = typeCalloc(char, 1);
     143861     }
     143862     return result;
     143863 }
    131684143864@@ -143,13 +143,12 @@
    131685143865                code_name);
     
    131699143879diff -Naur ncurses-5.6.orig/test/demo_forms.c ncurses-5.6/test/demo_forms.c
    131700143880--- ncurses-5.6.orig/test/demo_forms.c  2006-12-09 19:30:24.000000000 -0500
    131701 +++ ncurses-5.6/test/demo_forms.c       2007-12-21 00:02:36.000000000 -0500
     143881+++ ncurses-5.6/test/demo_forms.c       2008-06-18 06:49:44.000000000 -0400
    131702143882@@ -1,5 +1,5 @@
    131703143883 /****************************************************************************
     
    131749143929diff -Naur ncurses-5.6.orig/test/demo_menus.c ncurses-5.6/test/demo_menus.c
    131750143930--- ncurses-5.6.orig/test/demo_menus.c  2006-06-17 13:39:37.000000000 -0400
    131751 +++ ncurses-5.6/test/demo_menus.c       2007-12-21 00:02:36.000000000 -0500
     143931+++ ncurses-5.6/test/demo_menus.c       2008-06-18 06:49:49.000000000 -0400
    131752143932@@ -1,5 +1,5 @@
    131753143933 /****************************************************************************
    131754143934- * Copyright (c) 2005,2006 Free Software Foundation, Inc.                   *
    131755 + * Copyright (c) 2005-2006,2007 Free Software Foundation, Inc.              *
     143935+ * Copyright (c) 2005-2007,2008 Free Software Foundation, Inc.              *
    131756143936  *                                                                          *
    131757143937  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    131762143942 /*
    131763143943- * $Id: demo_menus.c,v 1.20 2006/06/17 17:39:37 tom Exp $
    131764 + * $Id: demo_menus.c,v 1.21 2007/07/21 17:45:09 tom Exp $
     143944+ * $Id: demo_menus.c,v 1.24 2008/04/12 22:03:33 tom Exp $
    131765143945  *
    131766143946  * Demonstrate a variety of functions from the menu library.
    131767143947  * Thomas Dickey - 2005/4/9
     143948@@ -112,7 +112,7 @@
     143949 static char *
     143950 strdup(char *s)
     143951 {
     143952-    char *p = (char *) malloc(strlen(s) + 1);
     143953+    char *p = typeMalloc(char, strlen(s) + 1);
     143954     if (p)
     143955        strcpy(p, s);
     143956     return (p);
     143957@@ -130,14 +130,14 @@
     143958     while ((c = wgetch(win)) == CTRL('T')) {
     143959        if (_nc_tracing) {
     143960            save_trace = _nc_tracing;
     143961-           _tracef("TOGGLE-TRACING OFF");
     143962+           Trace(("TOGGLE-TRACING OFF"));
     143963            _nc_tracing = 0;
     143964        } else {
     143965            _nc_tracing = save_trace;
     143966        }
     143967        trace(_nc_tracing);
     143968        if (_nc_tracing)
     143969-           _tracef("TOGGLE-TRACING ON");
     143970+           Trace(("TOGGLE-TRACING ON"));
     143971     }
     143972 #else
     143973     c = wgetch(win);
     143974@@ -270,7 +270,7 @@
     143975 #if 0
     143976        if (count > 0) {
     143977            while (*ip) {
     143978-               _tracef("freeing item %d:%d", ip - menu_items(m), count);
     143979+               Trace(("freeing item %d:%d", ip - menu_items(m), count));
     143980                free_item(*ip++);
     143981            }
     143982        }
     143983@@ -291,7 +291,7 @@
     143984 static void
     143985 build_file_menu(MenuNo number)
     143986 {
     143987-    static const char *labels[] =
     143988+    static CONST_MENUS char *labels[] =
     143989     {
     143990        "Exit",
     143991        (char *) 0
     143992@@ -299,7 +299,7 @@
     143993     static ITEM *items[SIZEOF(labels)];
     143994 
     143995     ITEM **ip = items;
     143996-    const char **ap;
     143997+    CONST_MENUS char **ap;
     143998 
     143999     for (ap = labels; *ap; ap++)
     144000        *ip++ = new_item(*ap, "");
     144001@@ -319,7 +319,7 @@
     144002 static void
     144003 build_select_menu(MenuNo number, char *filename)
     144004 {
     144005-    static const char *labels[] =
     144006+    static CONST_MENUS char *labels[] =
     144007     {
     144008        "Lions",
     144009        "Tigers",
     144010@@ -339,7 +339,7 @@
     144011     static ITEM **items;
     144012 
     144013     ITEM **ip;
     144014-    const char **ap = 0;
     144015+    CONST_MENUS char **ap = 0;
     144016     unsigned count = 0;
     144017 
     144018     if (filename != 0) {
     144019@@ -349,10 +349,10 @@
     144020            && sb.st_size != 0) {
     144021            unsigned size = sb.st_size;
     144022            unsigned j, k;
     144023-           char *blob = malloc(size + 1);
     144024-           const char **list = (const char **) calloc(sizeof(*list), size + 1);
     144025+           char *blob = typeMalloc(char, size + 1);
     144026+           CONST_MENUS char **list = typeCalloc(CONST_MENUS char *, size + 1);
     144027 
     144028-           items = (ITEM **) calloc(sizeof(ITEM *), size + 1);
     144029+           items = typeCalloc(ITEM *, size + 1);
     144030            if (blob != 0 && list != 0) {
     144031                FILE *fp = fopen(filename, "r");
     144032                if (fp != 0) {
     144033@@ -383,7 +383,7 @@
     144034     }
     144035     if (ap == 0) {
     144036        count = SIZEOF(labels) - 1;
     144037-       items = (ITEM **) calloc(count + 1, sizeof(*items));
     144038+       items = typeCalloc(ITEM *, count + 1);
     144039        ap = labels;
     144040     }
     144041 
     144042@@ -456,7 +456,7 @@
     144043        size_t need = 12;
     144044        for (n = 0; t_tbl[n].name != 0; n++)
     144045            need += strlen(t_tbl[n].name) + 2;
     144046-       buf = (char *) malloc(need);
     144047+       buf = typeMalloc(char, need);
     144048     }
     144049     sprintf(buf, "0x%02x = {", tlevel);
     144050     if (tlevel == 0) {
     144051@@ -523,7 +523,7 @@
     144052                    newtrace |= t_tbl[item_index(*ip)].mask;
     144053            }
     144054            trace(newtrace);
     144055-           _tracef("trace level interactively set to %s", tracetrace(_nc_tracing));
     144056+           Trace(("trace level interactively set to %s", tracetrace(_nc_tracing)));
     144057 
     144058            (void) mvprintw(LINES - 2, 0,
     144059                            "Trace level is %s\n", tracetrace(_nc_tracing));
     144060@@ -569,7 +569,7 @@
     144061 static void
     144062 build_menus(char *filename)
     144063 {
     144064-    static const char *labels[] =
     144065+    static CONST_MENUS char *labels[] =
     144066     {
     144067        "File",
     144068        "Select",
     144069@@ -581,7 +581,7 @@
     144070     static ITEM *items[SIZEOF(labels)];
     144071 
     144072     ITEM **ip = items;
     144073-    const char **ap;
     144074+    CONST_MENUS char **ap;
     144075 
     144076     for (ap = labels; *ap; ap++)
     144077        *ip++ = new_item(*ap, "");
    131768144078@@ -834,7 +834,7 @@
    131769144079 
     
    131777144087diff -Naur ncurses-5.6.orig/test/demo_panels.c ncurses-5.6/test/demo_panels.c
    131778144088--- ncurses-5.6.orig/test/demo_panels.c 2006-04-01 14:08:03.000000000 -0500
    131779 +++ ncurses-5.6/test/demo_panels.c      2007-12-21 00:02:36.000000000 -0500
     144089+++ ncurses-5.6/test/demo_panels.c      2008-06-18 06:49:49.000000000 -0400
    131780144090@@ -1,5 +1,5 @@
    131781144091 /****************************************************************************
    131782144092- * Copyright (c) 2003,2006 Free Software Foundation, Inc.                   *
    131783 + * Copyright (c) 2007 Free Software Foundation, Inc.                        *
     144093+ * Copyright (c) 2007,2008 Free Software Foundation, Inc.                   *
    131784144094  *                                                                          *
    131785144095  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    131790144100 /*
    131791144101- * $Id: demo_panels.c,v 1.2 2006/04/01 19:08:03 tom Exp $
    131792 + * $Id: demo_panels.c,v 1.28 2007/08/11 16:34:49 tom Exp $
     144102+ * $Id: demo_panels.c,v 1.30 2008/04/12 21:59:49 tom Exp $
    131793144103  *
    131794144104  * Demonstrate a variety of functions from the panel library.
     
    131976144286+    WINDOW *win;
    131977144287+    PANEL *pan = 0;
    131978 +    char *userdata = malloc(3);
     144288+    char *userdata = typeMalloc(char, 3);
    131979144289+
    131980144290+    if ((win = newwin(rows, cols, tly, tlx)) != 0) {
     
    132405144715+       if (fgets(buffer, limit - 3, log_in) != 0) {
    132406144716+           length = strlen(buffer);
    132407 +           while (length > 0 && isspace(buffer[length - 1]))
     144717+           while (length > 0 && isspace(UChar(buffer[length - 1])))
    132408144718+               buffer[--length] = '\0';
    132409144719+           waddstr(win, buffer);
     
    132581144891diff -Naur ncurses-5.6.orig/test/demo_termcap.c ncurses-5.6/test/demo_termcap.c
    132582144892--- ncurses-5.6.orig/test/demo_termcap.c        2006-05-06 15:06:36.000000000 -0400
    132583 +++ ncurses-5.6/test/demo_termcap.c     2007-12-21 00:02:36.000000000 -0500
     144893+++ ncurses-5.6/test/demo_termcap.c     2008-06-18 06:49:47.000000000 -0400
    132584144894@@ -1,5 +1,5 @@
    132585144895 /****************************************************************************
    132586144896- * Copyright (c) 2005,2006 Free Software Foundation, Inc.                   *
    132587 + * Copyright (c) 2005-2006,2007 Free Software Foundation, Inc.              *
     144897+ * Copyright (c) 2005-2007,2008 Free Software Foundation, Inc.              *
    132588144898  *                                                                          *
    132589144899  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    132594144904  *
    132595144905- * $Id: demo_termcap.c,v 1.5 2006/05/06 19:06:36 tom Exp $
    132596 + * $Id: demo_termcap.c,v 1.6 2007/02/03 18:51:23 tom Exp $
     144906+ * $Id: demo_termcap.c,v 1.7 2008/02/09 18:08:36 tom Exp $
    132597144907  *
    132598144908  * A simple demo of the termcap interface.
     
    132602144912 
    132603144913 #if HAVE_TGETENT
     144914@@ -115,7 +116,7 @@
     144915 }
     144916 
     144917 static void
     144918-demo_termcap(const char *name)
     144919+demo_termcap(char *name)
     144920 {
     144921     char buffer[1024];
     144922 
     144923@@ -152,11 +153,13 @@
     144924     } else if ((name = getenv("TERM")) != 0) {
     144925        demo_termcap(name);
     144926     } else {
     144927-       demo_termcap("dumb");
     144928+       static char dumb[] = "dumb";
     144929+       demo_termcap(dumb);
     144930     }
     144931 
     144932     ExitProgram(EXIT_SUCCESS);
     144933 }
     144934+
     144935 #else
     144936 int
     144937 main(int argc GCC_UNUSED,
    132604144938diff -Naur ncurses-5.6.orig/test/ditto.c ncurses-5.6/test/ditto.c
    132605144939--- ncurses-5.6.orig/test/ditto.c       2005-04-16 12:35:49.000000000 -0400
    132606 +++ ncurses-5.6/test/ditto.c    2007-12-21 00:02:36.000000000 -0500
     144940+++ ncurses-5.6/test/ditto.c    2008-06-18 06:49:52.000000000 -0400
    132607144941@@ -1,5 +1,5 @@
    132608144942 /****************************************************************************
    132609144943- * Copyright (c) 1998-2001,2005 Free Software Foundation, Inc.              *
    132610 + * Copyright (c) 1998-2005,2007 Free Software Foundation, Inc.              *
     144944+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    132611144945  *                                                                          *
    132612144946  * Permission is hereby granted, free of charge, to any person obtaining a  *
    132613144947  * copy of this software and associated documentation files (the            *
    132614 @@ -29,7 +29,7 @@
     144948@@ -27,25 +27,78 @@
     144949  ****************************************************************************/
     144950 
    132615144951 /*
    132616   * Author: Thomas E. Dickey <dickey@clark.net> 1998
     144952- * Author: Thomas E. Dickey <dickey@clark.net> 1998
     144953+ * Author: Thomas E. Dickey (1998-on)
    132617144954  *
    132618144955- * $Id: ditto.c,v 1.5 2005/04/16 16:35:49 tom Exp $
    132619 + * $Id: ditto.c,v 1.8 2007/09/01 21:10:38 tom Exp $
     144956+ * $Id: ditto.c,v 1.30 2008/06/14 23:00:26 tom Exp $
    132620144957  *
    132621144958  * The program illustrates how to set up multiple screens from a single
    132622   * program.  Invoke the program by specifying another terminal on the same
    132623 @@ -72,19 +72,32 @@
     144959- * program.  Invoke the program by specifying another terminal on the same
     144960- * machine by specifying its device, e.g.,
     144961+ * program.
     144962+ *
     144963+ * If openpty() is supported, the command line parameters are titles for
     144964+ * the windows showing each screen's data.
     144965+ *
     144966+ * If openpty() is not supported, you must invoke the program by specifying
     144967+ * another terminal on the same machine by specifying its device, e.g.,
     144968  *     ditto /dev/ttyp1
     144969  */
     144970 #include <test.priv.h>
     144971 #include <sys/stat.h>
     144972 #include <errno.h>
     144973 
     144974+#ifdef USE_PTHREADS
     144975+#include <pthread.h>
     144976+#endif
     144977+
     144978+#ifdef USE_XTERM_PTY
     144979+#include USE_OPENPTY_HEADER
     144980+#endif
     144981+
     144982+#define MAX_FIFO 256
     144983+
     144984+#define THIS_FIFO(n) ((n) % MAX_FIFO)
     144985+#define NEXT_FIFO(n) THIS_FIFO((n) + 1)
     144986+
     144987+typedef struct {
     144988+    unsigned long sequence;
     144989+    int head;
     144990+    int tail;
     144991+    int data[MAX_FIFO];
     144992+} FIFO;
     144993+
     144994+typedef struct {
     144995+    unsigned long sequence;
     144996+} PEEK;
     144997+
     144998+/*
     144999+ * Data "owned" for a single screen.  Each screen is divided into windows that
     145000+ * show the text read from each terminal.  Input from a given screen will also
     145001+ * be read into one window per screen.
     145002+ */
     145003 typedef struct {
     145004     FILE *input;
     145005     FILE *output;
     145006-    SCREEN *screen;
     145007+    SCREEN *screen;            /* this screen - curses internal data */
     145008+    int which1;                        /* this screen's index in DITTO[] array */
     145009+    int length;                        /* length of windows[] and peeks[] */
     145010+    char **titles;             /* per-window titles */
     145011+    WINDOW **windows;          /* display data from each screen */
     145012+    PEEK *peeks;               /* indices for each screen's fifo */
     145013+    FIFO fifo;                 /* fifo for this screen */
     145014+#ifdef USE_PTHREADS
     145015+    pthread_t thread;
     145016+#endif
     145017 } DITTO;
     145018 
     145019+/*
     145020+ * Structure used to pass multiple parameters via the use_screen()
     145021+ * single-parameter interface.
     145022+ */
     145023+typedef struct {
     145024+    int source;                        /* which screen did character come from */
     145025+    int target;                        /* which screen is character going to */
     145026+    DITTO *ditto;              /* data for all screens */
     145027+} DDATA;
     145028+
     145029 static void
     145030 failed(const char *s)
     145031 {
     145032@@ -60,10 +113,60 @@
     145033     ExitProgram(EXIT_FAILURE);
     145034 }
     145035 
     145036+/* Add to the head of the fifo, checking for overflow. */
     145037+static void
     145038+put_fifo(FIFO * fifo, int value)
     145039+{
     145040+    int next = NEXT_FIFO(fifo->head);
     145041+    if (next == fifo->tail)
     145042+       fifo->tail = NEXT_FIFO(fifo->tail);
     145043+    fifo->data[next] = value;
     145044+    fifo->head = next;
     145045+    fifo->sequence += 1;
     145046+}
     145047+
     145048+/* Get data from the tail (oldest part) of the fifo, returning -1 if no data.
     145049+ * Since each screen can peek into the fifo, we do not update the tail index,
     145050+ * but modify the peek-index.
     145051+ *
     145052+ * FIXME - test/workaround for case where fifo gets more than a buffer
     145053+ * ahead of peek.
     145054+ */
     145055+static int
     145056+peek_fifo(FIFO * fifo, PEEK * peek)
     145057+{
     145058+    int result = -1;
     145059+    if (peek->sequence < fifo->sequence) {
     145060+       peek->sequence += 1;
     145061+       result = fifo->data[THIS_FIFO(peek->sequence)];
     145062+    }
     145063+    return result;
     145064+}
     145065+
     145066 static FILE *
     145067 open_tty(char *path)
     145068 {
     145069     FILE *fp;
     145070+#ifdef USE_XTERM_PTY
     145071+    int amaster;
     145072+    int aslave;
     145073+    char slave_name[1024];
     145074+    char s_option[1024];
     145075+    char *leaf;
     145076+
     145077+    if (openpty(&amaster, &aslave, slave_name, 0, 0) != 0)
     145078+       failed("openpty");
     145079+    if ((leaf = strrchr(slave_name, '/')) == 0) {
     145080+       errno = EISDIR;
     145081+       failed(slave_name);
     145082+    }
     145083+    sprintf(s_option, "-S%s/%d", slave_name, aslave);
     145084+    if (fork()) {
     145085+       execlp("xterm", "xterm", s_option, "-title", path, (char *) 0);
     145086+       _exit(0);
     145087+    }
     145088+    fp = fdopen(amaster, "r+");
     145089+#else
     145090     struct stat sb;
     145091 
     145092     if (stat(path, &sb) < 0)
     145093@@ -72,75 +175,243 @@
    132624145094        errno = ENOTTY;
    132625145095        failed(path);
     
    132630145100        failed(path);
    132631145101     printf("opened %s\n", path);
     145102+#endif
    132632145103     return fp;
    132633145104 }
    132634145105 
    132635145106+static void
    132636 +show_ditto(DITTO * data, int count, int which, int ch)
     145107+init_screen(SCREEN *sp GCC_UNUSED, void *arg)
     145108+{
     145109+    DITTO *target = (DITTO *) arg;
     145110+    int high, wide;
     145111+    int k;
     145112+
     145113+    cbreak();
     145114+    noecho();
     145115+    scrollok(stdscr, TRUE);
     145116+    box(stdscr, 0, 0);
     145117+
     145118+    target->windows = typeCalloc(WINDOW *, target->length);
     145119+    target->peeks = typeCalloc(PEEK, target->length);
     145120+
     145121+    high = (LINES - 2) / target->length;
     145122+    wide = (COLS - 2);
     145123+    for (k = 0; k < target->length; ++k) {
     145124+       WINDOW *outer = newwin(high, wide, 1 + (high * k), 1);
     145125+       WINDOW *inner = derwin(outer, high - 2, wide - 2, 1, 1);
     145126+
     145127+       box(outer, 0, 0);
     145128+       mvwaddstr(outer, 0, 2, target->titles[k]);
     145129+       wnoutrefresh(outer);
     145130+
     145131+       scrollok(inner, TRUE);
     145132+       keypad(inner, TRUE);
     145133+#ifndef USE_PTHREADS
     145134+       nodelay(inner, TRUE);
     145135+#endif
     145136+
     145137+       target->windows[k] = inner;
     145138+    }
     145139+    doupdate();
     145140+}
     145141+
     145142+static void
     145143+open_screen(DITTO * target, char **source, int length, int which1)
     145144+{
     145145+    if (which1 != 0) {
     145146+       target->input =
     145147+           target->output = open_tty(source[which1]);
     145148+    } else {
     145149+       target->input = stdin;
     145150+       target->output = stdout;
     145151+    }
     145152+
     145153+    target->which1 = which1;
     145154+    target->titles = source;
     145155+    target->length = length;
     145156+    target->screen = newterm((char *) 0,       /* assume $TERM is the same */
     145157+                            target->output,
     145158+                            target->input);
     145159+
     145160+    if (target->screen == 0)
     145161+       failed("newterm");
     145162+
     145163+    (void) USING_SCREEN(target->screen, init_screen, target);
     145164+}
     145165+
     145166+static int
     145167+close_screen(SCREEN *sp GCC_UNUSED, void *arg GCC_UNUSED)
     145168+{
     145169+    (void) sp;
     145170+    (void) arg;
     145171+    return endwin();
     145172+}
     145173+
     145174+/*
     145175+ * Read data from the 'source' screen.
     145176+ */
     145177+static int
     145178+read_screen(SCREEN *sp GCC_UNUSED, void *arg)
     145179+{
     145180+    DDATA *data = (DDATA *) arg;
     145181+    DITTO *ditto = &(data->ditto[data->source]);
     145182+    WINDOW *win = ditto->windows[data->source];
     145183+    int ch = wgetch(win);
     145184+
     145185+    if (ch > 0 && ch < 256)
     145186+       put_fifo(&(ditto->fifo), ch);
     145187+    else
     145188+       ch = ERR;
     145189+
     145190+    return ch;
     145191+}
     145192+
     145193+/*
     145194+ * Write all of the data that's in fifos for the 'target' screen.
     145195+ */
     145196+static int
     145197+write_screen(SCREEN *sp GCC_UNUSED, void *arg GCC_UNUSED)
     145198+{
     145199+    DDATA *data = (DDATA *) arg;
     145200+    DITTO *ditto = &(data->ditto[data->target]);
     145201+    bool changed = FALSE;
     145202+    int which;
     145203+
     145204+    for (which = 0; which < ditto->length; ++which) {
     145205+       WINDOW *win = ditto->windows[which];
     145206+       FIFO *fifo = &(data->ditto[which].fifo);
     145207+       PEEK *peek = &(ditto->peeks[which]);
     145208+       int ch;
     145209+
     145210+       while ((ch = peek_fifo(fifo, peek)) > 0) {
     145211+           changed = TRUE;
     145212+
     145213+           waddch(win, ch);
     145214+           wnoutrefresh(win);
     145215+       }
     145216+    }
     145217+
     145218+    if (changed)
     145219+       doupdate();
     145220+    return OK;
     145221+}
     145222+
     145223+static void
     145224+show_ditto(DITTO * data, int count, DDATA * ddata)
    132637145225+{
    132638145226+    int n;
    132639145227+
    132640145228+    for (n = 0; n < count; n++) {
    132641 +       set_term(data[n].screen);
    132642 +       addch(UChar(ch));
    132643 +       refresh();
     145229+       ddata->target = n;
     145230+       USING_SCREEN(data[n].screen, write_screen, (void *) ddata);
    132644145231+    }
    132645 +    set_term(data[which].screen);
    132646145232+}
    132647145233+
     145234+#ifdef USE_PTHREADS
     145235+static void *
     145236+handle_screen(void *arg)
     145237+{
     145238+    DDATA ddata;
     145239+    int ch;
     145240+
     145241+    memset(&ddata, 0, sizeof(ddata));
     145242+    ddata.ditto = (DITTO *) arg;
     145243+    ddata.source = ddata.ditto->which1;
     145244+    ddata.ditto -= ddata.source;       /* -> base of array */
     145245+
     145246+    for (;;) {
     145247+       ch = read_screen(ddata.ditto->screen, &ddata);
     145248+       if (ch == CTRL('D')) {
     145249+           int later = (ddata.source ? ddata.source : -1);
     145250+           int j;
     145251+
     145252+           for (j = ddata.ditto->length - 1; j > 0; --j) {
     145253+               if (j != later) {
     145254+                   pthread_cancel(ddata.ditto[j].thread);
     145255+               }
     145256+           }
     145257+           if (later > 0) {
     145258+               pthread_cancel(ddata.ditto[later].thread);
     145259+           }
     145260+           break;
     145261+       }
     145262+       show_ditto(ddata.ditto, ddata.ditto->length, &ddata);
     145263+    }
     145264+    return NULL;
     145265+}
     145266+#endif
     145267+
    132648145268 int
    132649  main(int argc GCC_UNUSED,
    132650       char *argv[]GCC_UNUSED)
     145269-main(int argc GCC_UNUSED,
     145270-     char *argv[]GCC_UNUSED)
     145271+main(int argc, char *argv[])
    132651145272 {
    132652145273     int j;
    132653145274-    int active_tty = 0;
     145275     DITTO *data;
     145276+#ifndef USE_PTHREADS
    132654145277+    int count;
    132655      DITTO *data;
     145278+#endif
    132656145279 
    132657145280     if (argc <= 1)
    132658 @@ -105,7 +118,6 @@
    132659       * Set up the screens.
     145281        usage();
     145282 
     145283-    if ((data = (DITTO *) calloc((unsigned) argc, sizeof(DITTO))) == 0)
     145284+    if ((data = typeCalloc(DITTO, argc)) == 0)
     145285        failed("calloc data");
     145286 
     145287-    data[0].input = stdin;
     145288-    data[0].output = stdout;
     145289-    for (j = 1; j < argc; j++) {
     145290-       data[j].input =
     145291-           data[j].output = open_tty(argv[j]);
     145292+    for (j = 0; j < argc; j++) {
     145293+       open_screen(&data[j], argv, argc, j);
     145294     }
     145295 
     145296+#ifdef USE_PTHREADS
     145297     /*
     145298-     * If we got this far, we have open connection(s) to the terminal(s).
     145299-     * Set up the screens.
     145300+     * For multi-threaded operation, set up a reader for each of the screens.
     145301+     * That uses blocking I/O rather than polling for input, so no calls to
     145302+     * napms() are needed.
    132660145303      */
    132661145304     for (j = 0; j < argc; j++) {
    132662145305-       active_tty++;
    132663         data[j].screen = newterm((char *) 0,    /* assume $TERM is the same */
    132664                                  data[j].output,
    132665                                  data[j].input);
    132666 @@ -114,25 +126,27 @@
    132667         cbreak();
    132668         noecho();
    132669         scrollok(stdscr, TRUE);
    132670 +       nodelay(stdscr, TRUE);
     145306-       data[j].screen = newterm((char *) 0,    /* assume $TERM is the same */
     145307-                                data[j].output,
     145308-                                data[j].input);
     145309-       if (data[j].screen == 0)
     145310-           failed("newterm");
     145311-       cbreak();
     145312-       noecho();
     145313-       scrollok(stdscr, TRUE);
     145314+       (void) pthread_create(&(data[j].thread), NULL, handle_screen, &data[j]);
    132671145315     }
    132672  
     145316-
     145317+    pthread_join(data[1].thread, NULL);
     145318+#else
    132673145319     /*
    132674145320      * Loop, reading characters from any of the inputs and writing to all
     
    132677145323-    for (;;) {
    132678145324+    for (count = 0;; ++count) {
     145325+       DDATA ddata;
    132679145326        int ch;
    132680145327-       set_term(data[0].screen);
     145328-       ch = getch();
     145329-       if (ch == ERR)
     145330-           continue;
     145331-       if (ch == 4)
    132681145332+       int which = (count % argc);
    132682145333+
    132683 +       set_term(data[which].screen);
    132684145334+       napms(20);
    132685         ch = getch();
    132686 -       if (ch == ERR)
    132687 +       if (ch == ERR) {
    132688 +           /* echochar('.'); */
    132689             continue;
    132690 -       if (ch == 4)
    132691 -           break;
     145335+
     145336+       ddata.source = which;
     145337+       ddata.ditto = data;
     145338+
     145339+       ch = USING_SCREEN(data[which].screen, read_screen, &ddata);
     145340+       if (ch == CTRL('D')) {
     145341            break;
    132692145342-       for (j = 0; j < argc; j++) {
    132693145343-           set_term(data[j].screen);
    132694145344-           addch(UChar(ch));
    132695145345-           refresh();
     145346+       } else if (ch != ERR) {
     145347+           show_ditto(data, argc, &ddata);
    132696145348        }
    132697 +       if (ch == CTRL('D'))
    132698 +           break;
    132699 +       show_ditto(data, argc, which, ch);
    132700145349     }
     145350+#endif
    132701145351 
    132702145352     /*
     145353      * Cleanup and exit
     145354      */
     145355     for (j = argc - 1; j >= 0; j--) {
     145356-       set_term(data[j].screen);
     145357-       endwin();
     145358+       USING_SCREEN(data[j].screen, close_screen, 0);
     145359+       fprintf(data[j].output, "**Closed\r\n");
     145360+
     145361+       /*
     145362+        * Closing before a delscreen() helps ncurses determine that there
     145363+        * is no valid output buffer, and can remove the setbuf() data.
     145364+        */
     145365+       fflush(data[j].output);
     145366+       fclose(data[j].output);
     145367+       delscreen(data[j].screen);
     145368     }
     145369     ExitProgram(EXIT_SUCCESS);
     145370 }
    132703145371diff -Naur ncurses-5.6.orig/test/dots.c ncurses-5.6/test/dots.c
    132704145372--- ncurses-5.6.orig/test/dots.c        2006-11-04 14:54:42.000000000 -0500
    132705 +++ ncurses-5.6/test/dots.c     2007-12-21 00:02:36.000000000 -0500
     145373+++ ncurses-5.6/test/dots.c     2008-06-18 06:49:47.000000000 -0400
    132706145374@@ -1,5 +1,5 @@
    132707145375 /****************************************************************************
    132708145376- * Copyright (c) 1999-2005,2006 Free Software Foundation, Inc.              *
    132709 + * Copyright (c) 1999-2006,2007 Free Software Foundation, Inc.              *
     145377+ * Copyright (c) 1999-2007,2008 Free Software Foundation, Inc.              *
    132710145378  *                                                                          *
    132711145379  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    132716145384  *
    132717145385- * $Id: dots.c,v 1.15 2006/11/04 19:54:42 tom Exp $
    132718 + * $Id: dots.c,v 1.16 2007/02/03 18:51:23 tom Exp $
     145386+ * $Id: dots.c,v 1.17 2008/02/09 18:08:50 tom Exp $
    132719145387  *
    132720145388  * A simple demo of the terminfo interface.
     
    132724145392 
    132725145393 #if HAVE_SETUPTERM
     145394@@ -46,7 +47,7 @@
     145395 static time_t started;
     145396 
     145397 static int
     145398-outc(int c)
     145399+outc(TPUTS_ARG c)
     145400 {
     145401     if (interrupted) {
     145402        char tmp = c;
    132726145403diff -Naur ncurses-5.6.orig/test/dots_mvcur.c ncurses-5.6/test/dots_mvcur.c
    132727145404--- ncurses-5.6.orig/test/dots_mvcur.c  1969-12-31 19:00:00.000000000 -0500
    132728 +++ ncurses-5.6/test/dots_mvcur.c       2007-12-21 00:02:36.000000000 -0500
     145405+++ ncurses-5.6/test/dots_mvcur.c       2008-06-18 06:49:47.000000000 -0400
    132729145406@@ -0,0 +1,171 @@
    132730145407+/****************************************************************************
    132731 + * Copyright (c) 1999-2006,2007 Free Software Foundation, Inc.              *
     145408+ * Copyright (c) 1999-2007,2008 Free Software Foundation, Inc.              *
    132732145409+ *                                                                          *
    132733145410+ * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    132759145436+ * Author: Thomas E. Dickey - 2007
    132760145437+ *
    132761 + * $Id: dots_mvcur.c,v 1.1 2007/06/02 20:01:32 tom Exp $
     145438+ * $Id: dots_mvcur.c,v 1.2 2008/02/09 18:08:57 tom Exp $
    132762145439+ *
    132763145440+ * A simple demo of the terminfo interface, and mvcur.
     
    132777145454+
    132778145455+static int
    132779 +outc(int c)
     145456+outc(TPUTS_ARG c)
    132780145457+{
    132781145458+    if (interrupted) {
     
    132901145578diff -Naur ncurses-5.6.orig/test/echochar.c ncurses-5.6/test/echochar.c
    132902145579--- ncurses-5.6.orig/test/echochar.c    2006-12-02 19:14:29.000000000 -0500
    132903 +++ ncurses-5.6/test/echochar.c 2007-12-21 00:02:36.000000000 -0500
     145580+++ ncurses-5.6/test/echochar.c 2008-06-18 06:49:49.000000000 -0400
    132904145581@@ -1,5 +1,5 @@
    132905145582 /****************************************************************************
    132906145583- * Copyright (c) 2006 Free Software Foundation, Inc.                        *
    132907 + * Copyright (c) 2006,2007 Free Software Foundation, Inc.                   *
     145584+ * Copyright (c) 2006-2007,2008 Free Software Foundation, Inc.              *
    132908145585  *                                                                          *
    132909145586  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    132914145591 /*
    132915145592- * $Id: echochar.c,v 1.3 2006/12/03 00:14:29 tom Exp $
    132916 + * $Id: echochar.c,v 1.5 2007/07/21 17:41:55 tom Exp $
     145593+ * $Id: echochar.c,v 1.6 2008/04/12 22:06:04 tom Exp $
    132917145594  *
    132918145595  * Demonstrate the echochar function (compare to dots.c).
     
    132932145609        if (COLOR_PAIRS > 0) {
    132933145610-           my_pairs = calloc(COLOR_PAIRS, sizeof(*my_pairs));
    132934 +           my_pairs = calloc((unsigned) COLOR_PAIRS, sizeof(*my_pairs));
     145611+           my_pairs = typeCalloc(char, COLOR_PAIRS);
    132935145612        }
    132936145613        use_colors = (my_pairs != 0);
     
    132951145628diff -Naur ncurses-5.6.orig/test/gdc.c ncurses-5.6/test/gdc.c
    132952145629--- ncurses-5.6.orig/test/gdc.c 2006-05-20 11:37:44.000000000 -0400
    132953 +++ ncurses-5.6/test/gdc.c      2007-12-21 00:02:36.000000000 -0500
     145630+++ ncurses-5.6/test/gdc.c      2008-06-18 06:49:44.000000000 -0400
    132954145631@@ -1,5 +1,5 @@
    132955145632 /****************************************************************************
     
    132979145656diff -Naur ncurses-5.6.orig/test/hashtest.c ncurses-5.6/test/hashtest.c
    132980145657--- ncurses-5.6.orig/test/hashtest.c    2006-05-20 12:02:16.000000000 -0400
    132981 +++ ncurses-5.6/test/hashtest.c 2007-12-21 00:02:36.000000000 -0500
     145658+++ ncurses-5.6/test/hashtest.c 2008-06-18 06:49:47.000000000 -0400
    132982145659@@ -1,5 +1,5 @@
    132983145660 /****************************************************************************
    132984145661- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    132985 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     145662+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    132986145663  *                                                                          *
    132987145664  * Permission is hereby granted, free of charge, to any person obtaining a  *
    132988145665  * copy of this software and associated documentation files (the            *
    132989 @@ -30,7 +30,7 @@
     145666@@ -30,17 +30,9 @@
    132990145667  *
    132991145668  * Generate timing statistics for vertical-motion optimization.
    132992145669  *
    132993145670- * $Id: hashtest.c,v 1.26 2006/05/20 16:02:16 tom Exp $
    132994 + * $Id: hashtest.c,v 1.27 2007/07/21 17:45:09 tom Exp $
     145671+ * $Id: hashtest.c,v 1.28 2008/02/23 23:02:41 tom Exp $
    132995145672  */
    132996145673 
    132997  #ifdef TRACE
    132998 @@ -190,7 +190,7 @@
     145674-#ifdef TRACE
     145675-#define Trace(p) _tracef p
     145676-#define USE_TRACE 1
     145677-#else
     145678-#define Trace(p)               /* nothing */
     145679-#define USE_TRACE 0
     145680-#endif
     145681-
     145682 #include <test.priv.h>
     145683 
     145684 #define LO_CHAR ' '
     145685@@ -190,7 +182,7 @@
    132999145686 
    133000145687     setlocale(LC_ALL, "");
     
    133007145694diff -Naur ncurses-5.6.orig/test/inch_wide.c ncurses-5.6/test/inch_wide.c
    133008145695--- ncurses-5.6.orig/test/inch_wide.c   1969-12-31 19:00:00.000000000 -0500
    133009 +++ ncurses-5.6/test/inch_wide.c        2007-12-21 00:02:36.000000000 -0500
     145696+++ ncurses-5.6/test/inch_wide.c        2008-06-18 06:49:44.000000000 -0400
    133010145697@@ -0,0 +1,279 @@
    133011145698+/****************************************************************************
     
    133290145977diff -Naur ncurses-5.6.orig/test/inchs.c ncurses-5.6/test/inchs.c
    133291145978--- ncurses-5.6.orig/test/inchs.c       1969-12-31 19:00:00.000000000 -0500
    133292 +++ ncurses-5.6/test/inchs.c    2007-12-21 00:02:36.000000000 -0500
     145979+++ ncurses-5.6/test/inchs.c    2008-06-18 06:49:44.000000000 -0400
    133293145980@@ -0,0 +1,272 @@
    133294145981+/****************************************************************************
     
    133566146253diff -Naur ncurses-5.6.orig/test/ins_wide.c ncurses-5.6/test/ins_wide.c
    133567146254--- ncurses-5.6.orig/test/ins_wide.c    2006-04-01 14:08:03.000000000 -0500
    133568 +++ ncurses-5.6/test/ins_wide.c 2007-12-21 00:02:36.000000000 -0500
     146255+++ ncurses-5.6/test/ins_wide.c 2008-06-18 06:49:44.000000000 -0400
    133569146256@@ -1,5 +1,5 @@
    133570146257 /****************************************************************************
     
    133630146317diff -Naur ncurses-5.6.orig/test/inserts.c ncurses-5.6/test/inserts.c
    133631146318--- ncurses-5.6.orig/test/inserts.c     2006-10-14 16:43:46.000000000 -0400
    133632 +++ ncurses-5.6/test/inserts.c  2007-12-21 00:02:36.000000000 -0500
     146319+++ ncurses-5.6/test/inserts.c  2008-06-18 06:49:44.000000000 -0400
    133633146320@@ -1,5 +1,5 @@
    133634146321 /****************************************************************************
     
    133694146381diff -Naur ncurses-5.6.orig/test/key_names.c ncurses-5.6/test/key_names.c
    133695146382--- ncurses-5.6.orig/test/key_names.c   1969-12-31 19:00:00.000000000 -0500
    133696 +++ ncurses-5.6/test/key_names.c        2007-12-21 00:02:36.000000000 -0500
     146383+++ ncurses-5.6/test/key_names.c        2008-06-18 06:49:47.000000000 -0400
    133697146384@@ -0,0 +1,56 @@
    133698146385+/****************************************************************************
    133699 + * Copyright (c) 2007 Free Software Foundation, Inc.                        *
     146386+ * Copyright (c) 2007,2008 Free Software Foundation, Inc.                   *
    133700146387+ *                                                                          *
    133701146388+ * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    133724146411+ ****************************************************************************/
    133725146412+/*
    133726 + * $Id: key_names.c,v 1.2 2007/06/09 22:32:34 tom Exp $
     146413+ * $Id: key_names.c,v 1.3 2008/02/09 18:09:18 tom Exp $
    133727146414+ */
    133728146415+
     
    133737146424+
    133738146425+    setlocale(LC_ALL, "");
    133739 +    for (n = -1; n < KEY_MAX + 512; n++) {
     146426+    for (n = KEY_MIN; n < KEY_MAX + 512; n++) {
    133740146427+       const char *result = key_name(n);
    133741146428+       if (result != 0)
     
    133754146441diff -Naur ncurses-5.6.orig/test/mk-test.awk ncurses-5.6/test/mk-test.awk
    133755146442--- ncurses-5.6.orig/test/mk-test.awk   2006-10-21 18:56:50.000000000 -0400
    133756 +++ ncurses-5.6/test/mk-test.awk        2007-12-21 00:02:36.000000000 -0500
     146443+++ ncurses-5.6/test/mk-test.awk        2008-06-18 06:49:44.000000000 -0400
    133757146444@@ -1,6 +1,6 @@
    133758146445-# $Id: mk-test.awk,v 1.4 2006/10/21 22:56:50 tom Exp $
     
    133781146468diff -Naur ncurses-5.6.orig/test/modules ncurses-5.6/test/modules
    133782146469--- ncurses-5.6.orig/test/modules       2006-11-04 13:56:08.000000000 -0500
    133783 +++ ncurses-5.6/test/modules    2007-12-21 00:02:36.000000000 -0500
     146470+++ ncurses-5.6/test/modules    2008-06-18 06:49:44.000000000 -0400
    133784146471@@ -1,7 +1,6 @@
    133785146472-# Test-Program modules
     
    133856146543diff -Naur ncurses-5.6.orig/test/movewindow.c ncurses-5.6/test/movewindow.c
    133857146544--- ncurses-5.6.orig/test/movewindow.c  2006-06-17 13:43:22.000000000 -0400
    133858 +++ ncurses-5.6/test/movewindow.c       2007-12-21 00:02:36.000000000 -0500
     146545+++ ncurses-5.6/test/movewindow.c       2008-06-18 06:49:49.000000000 -0400
    133859146546@@ -1,5 +1,5 @@
    133860146547 /****************************************************************************
    133861146548- * Copyright (c) 2006 Free Software Foundation, Inc.                        *
    133862 + * Copyright (c) 2006,2007 Free Software Foundation, Inc.                   *
     146549+ * Copyright (c) 2006-2007,2008 Free Software Foundation, Inc.              *
    133863146550  *                                                                          *
    133864146551  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    133869146556 /*
    133870146557- * $Id: movewindow.c,v 1.19 2006/06/17 17:43:22 tom Exp $
    133871 + * $Id: movewindow.c,v 1.20 2007/01/06 23:28:53 tom Exp $
     146558+ * $Id: movewindow.c,v 1.22 2008/04/12 22:01:41 tom Exp $
    133872146559  *
    133873146560  * Demonstrate move functions for windows and derived windows from the curses
    133874146561  * library.
    133875 @@ -63,14 +63,14 @@
     146562@@ -47,6 +47,12 @@
     146563 #undef derwin
     146564 #endif
     146565 
     146566+#ifdef NCURSES_VERSION
     146567+#define CONST_FMT const
     146568+#else
     146569+#define CONST_FMT              /* nothing */
     146570+#endif
     146571+
     146572 #undef LINE_MAX
     146573 
     146574 #define LINE_MIN       2
     146575@@ -63,14 +69,14 @@
    133876146576     WINDOW *child;             /* the actual value */
    133877146577 } FRAME;
     
    133879146579-static void head_line(char *fmt,...) GCC_PRINTFLIKE(1, 2);
    133880146580-static void tail_line(char *fmt,...) GCC_PRINTFLIKE(1, 2);
    133881 +static void head_line(const char *fmt,...) GCC_PRINTFLIKE(1, 2);
    133882 +static void tail_line(const char *fmt,...) GCC_PRINTFLIKE(1, 2);
     146581+static void head_line(CONST_FMT char *fmt,...) GCC_PRINTFLIKE(1, 2);
     146582+static void tail_line(CONST_FMT char *fmt,...) GCC_PRINTFLIKE(1, 2);
    133883146583 
    133884146584 static unsigned num_windows;
     
    133887146587 static void
    133888146588-message(int lineno, char *fmt, va_list argp)
    133889 +message(int lineno, const char *fmt, va_list argp)
     146589+message(int lineno, CONST_FMT char *fmt, va_list argp)
    133890146590 {
    133891146591     int y, x;
    133892146592 
    133893 @@ -93,7 +93,7 @@
     146593@@ -93,7 +99,7 @@
    133894146594 }
    133895146595 
    133896146596 static void
    133897146597-head_line(char *fmt,...)
    133898 +head_line(const char *fmt,...)
     146598+head_line(CONST_FMT char *fmt,...)
    133899146599 {
    133900146600     va_list argp;
    133901146601 
    133902 @@ -103,7 +103,7 @@
     146602@@ -103,7 +109,7 @@
    133903146603 }
    133904146604 
    133905146605 static void
    133906146606-tail_line(char *fmt,...)
    133907 +tail_line(const char *fmt,...)
     146607+tail_line(CONST_FMT char *fmt,...)
    133908146608 {
    133909146609     va_list argp;
    133910146610 
    133911 @@ -511,7 +511,7 @@
     146611@@ -245,7 +251,7 @@
     146612 
     146613     keypad(child, TRUE);
     146614     if (need > have) {
     146615-       all_windows = (FRAME *) realloc(all_windows, need * sizeof(FRAME));
     146616+       all_windows = typeRealloc(FRAME, need, all_windows);
     146617     }
     146618     all_windows[num_windows].parent = parent;
     146619     all_windows[num_windows].child = child;
     146620@@ -511,7 +517,7 @@
    133912146621     /* *INDENT-OFF* */
    133913146622     static struct {
    133914146623        int     key;
    133915146624-       char *  msg;
    133916 +       const char * msg;
     146625+       CONST_FMT char * msg;
    133917146626     } help[] = {
    133918146627        { '?',          "Show this screen" },
     
    133920146629diff -Naur ncurses-5.6.orig/test/ncurses.c ncurses-5.6/test/ncurses.c
    133921146630--- ncurses-5.6.orig/test/ncurses.c     2006-12-09 19:13:15.000000000 -0500
    133922 +++ ncurses-5.6/test/ncurses.c  2007-12-21 00:02:36.000000000 -0500
     146631+++ ncurses-5.6/test/ncurses.c  2008-06-18 06:49:49.000000000 -0400
    133923146632@@ -1,5 +1,5 @@
    133924146633 /****************************************************************************
    133925146634- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    133926 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     146635+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    133927146636  *                                                                          *
    133928146637  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    133933146642 
    133934146643-$Id: ncurses.c,v 1.280 2006/12/10 00:13:15 tom Exp $
    133935 +$Id: ncurses.c,v 1.292 2007/07/21 17:41:55 tom Exp $
     146644+$Id: ncurses.c,v 1.313 2008/04/12 22:04:42 tom Exp $
    133936146645 
    133937146646 ***************************************************************************/
    133938146647 
    133939 @@ -955,11 +955,11 @@
     146648@@ -76,7 +76,7 @@
     146649 #define NCURSES_CONST_PARAM const void
     146650 
     146651 #ifdef TRACE
     146652-static unsigned save_trace = TRACE_ORDINARY | TRACE_CALLS;
     146653+static unsigned save_trace = TRACE_ORDINARY | TRACE_ICALLS | TRACE_CALLS;
     146654 extern unsigned _nc_tracing;
     146655 #endif
     146656 
     146657@@ -118,6 +118,8 @@
     146658 
     146659 #endif
     146660 
     146661+#define ToggleAcs(temp,real) temp = ((temp == real) ? 0 : real)
     146662+
     146663 #define P(string)      printw("%s\n", string)
     146664 
     146665 #define BLANK          ' '     /* this is the background character */
     146666@@ -170,7 +172,7 @@
     146667 {
     146668     return ((c) == QUIT || (c) == ESCAPE);
     146669 }
     146670-#define case_QUIT      case QUIT: case ESCAPE
     146671+#define case_QUIT      QUIT: case ESCAPE
     146672 
     146673 /* Common function to allow ^T to toggle trace-mode in the middle of a test
     146674  * so that trace-files can be made smaller.
     146675@@ -183,14 +185,14 @@
     146676     while ((c = wgetch(win)) == CTRL('T')) {
     146677        if (_nc_tracing) {
     146678            save_trace = _nc_tracing;
     146679-           _tracef("TOGGLE-TRACING OFF");
     146680+           Trace(("TOGGLE-TRACING OFF"));
     146681            _nc_tracing = 0;
     146682        } else {
     146683            _nc_tracing = save_trace;
     146684        }
     146685        trace(_nc_tracing);
     146686        if (_nc_tracing)
     146687-           _tracef("TOGGLE-TRACING ON");
     146688+           Trace(("TOGGLE-TRACING ON"));
     146689     }
     146690 #else
     146691     c = wgetch(win);
     146692@@ -268,6 +270,42 @@
     146693 }
     146694 
     146695 #if USE_WIDEC_SUPPORT
     146696+static wchar_t
     146697+fullwidth_of(int ch)
     146698+{
     146699+    return (ch + 0xff10 - '0');
     146700+}
     146701+
     146702+static void
     146703+make_fullwidth_text(wchar_t *target, const char *source)
     146704+{
     146705+    int ch;
     146706+    while ((ch = *source++) != 0) {
     146707+       *target++ = fullwidth_of(ch);
     146708+    }
     146709+    *target = 0;
     146710+}
     146711+
     146712+static void
     146713+make_narrow_text(wchar_t *target, const char *source)
     146714+{
     146715+    int ch;
     146716+    while ((ch = *source++) != 0) {
     146717+       *target++ = ch;
     146718+    }
     146719+    *target = 0;
     146720+}
     146721+
     146722+static void
     146723+make_fullwidth_digit(cchar_t *target, int digit)
     146724+{
     146725+    wchar_t source[2];
     146726+
     146727+    source[0] = fullwidth_of(digit + '0');
     146728+    source[1] = 0;
     146729+    setcchar(target, source, A_NORMAL, 0, 0);
     146730+}
     146731+
     146732 static int
     146733 wGet_wchar(WINDOW *win, wint_t *result)
     146734 {
     146735@@ -276,14 +314,14 @@
     146736     while ((c = wget_wch(win, result)) == CTRL('T')) {
     146737        if (_nc_tracing) {
     146738            save_trace = _nc_tracing;
     146739-           _tracef("TOGGLE-TRACING OFF");
     146740+           Trace(("TOGGLE-TRACING OFF"));
     146741            _nc_tracing = 0;
     146742        } else {
     146743            _nc_tracing = save_trace;
     146744        }
     146745        trace(_nc_tracing);
     146746        if (_nc_tracing)
     146747-           _tracef("TOGGLE-TRACING ON");
     146748+           Trace(("TOGGLE-TRACING ON"));
     146749     }
     146750 #else
     146751     c = wget_wch(win, result);
     146752@@ -599,15 +637,29 @@
     146753 
     146754     if (winstack == 0) {
     146755        len_winstack = 20;
     146756-       winstack = (WINSTACK *) malloc(len_winstack * sizeof(WINSTACK));
     146757+       winstack = typeMalloc(WINSTACK, len_winstack);
     146758     } else if (need >= len_winstack) {
     146759        len_winstack = need;
     146760-       winstack = (WINSTACK *) realloc(winstack, len_winstack * sizeof(WINSTACK));
     146761+       winstack = typeRealloc(WINSTACK, len_winstack, winstack);
     146762     }
     146763     winstack[level].text = txt_win;
     146764     winstack[level].frame = box_win;
     146765 }
     146766 
     146767+#if USE_SOFTKEYS && (NCURSES_VERSION_PATCH < 20071229) && NCURSES_EXT_FUNCS
     146768+static void
     146769+slk_repaint(void)
     146770+{
     146771+    /* this chunk is now done in resize_term() */
     146772+    slk_touch();
     146773+    slk_clear();
     146774+    slk_noutrefresh();
     146775+}
     146776+
     146777+#else
     146778+#define slk_repaint()          /* nothing */
     146779+#endif
     146780+
     146781 /*
     146782  * For wgetch_test(), we create pairs of windows - one for a box, one for text.
     146783  * Resize both and paint the box in the parent.
     146784@@ -623,12 +675,7 @@
     146785     touchwin(stdscr);
     146786     wnoutrefresh(stdscr);
     146787 
     146788-#if USE_SOFTKEYS
     146789-    /* FIXME: this chunk should be done in resizeterm() */
     146790-    slk_touch();
     146791-    slk_clear();
     146792-    slk_noutrefresh();
     146793-#endif
     146794+    slk_repaint();
     146795 
     146796     for (n = 0; n < level; ++n) {
     146797        wresize(winstack[n].frame, high, wide);
     146798@@ -829,6 +876,8 @@
     146799 getch_test(void)
     146800 {
     146801     int delay = begin_getch_test();
     146802+
     146803+    slk_restore();
     146804     wgetch_test(0, stdscr, delay);
     146805     forget_boxes();
     146806     finish_getch_test();
     146807@@ -836,10 +885,10 @@
     146808 
     146809 #if USE_WIDEC_SUPPORT
     146810 /*
     146811- * For wgetch_test(), we create pairs of windows - one for a box, one for text.
     146812+ * For wget_wch_test(), we create pairs of windows - one for a box, one for text.
     146813  * Resize both and paint the box in the parent.
     146814  */
     146815-#ifdef KEY_RESIZE
     146816+#if defined(KEY_RESIZE) && HAVE_WRESIZE
     146817 static void
     146818 resize_wide_boxes(unsigned level, WINDOW *win)
     146819 {
     146820@@ -851,12 +900,7 @@
     146821     touchwin(stdscr);
     146822     wnoutrefresh(stdscr);
     146823 
     146824-#if USE_SOFTKEYS
     146825-    /* FIXME: this chunk should be done in resizeterm() */
     146826-    slk_touch();
     146827-    slk_clear();
     146828-    slk_noutrefresh();
     146829-#endif
     146830+    slk_repaint();
     146831 
     146832     for (n = 0; n < level; ++n) {
     146833        wresize(winstack[n].frame, high, wide);
     146834@@ -889,7 +933,7 @@
     146835     memset(&state, 0, sizeof(state));
     146836     if ((need = wcsrtombs(0, &tmp, 0, &state)) > 0) {
     146837        unsigned have = need;
     146838-       result = (char *) calloc(have + 1, 1);
     146839+       result = typeCalloc(char, have + 1);
     146840        tmp = src;
     146841        if (wcsrtombs(result, &tmp, have, &state) != have) {
     146842            free(result);
     146843@@ -955,11 +999,11 @@
    133940146844                for (n = 0; (wchar_buf[n] = wint_buf[n]) != 0; ++n) ;
    133941146845                if ((temp = wcstos(wchar_buf)) != 0) {
     
    133951146855            }
    133952146856            wclrtoeol(win);
    133953 @@ -3124,7 +3124,7 @@
     146857@@ -1018,7 +1062,7 @@
     146858            } else
     146859 #endif /* NCURSES_MOUSE_VERSION */
     146860            if (code == KEY_CODE_YES) {
     146861-#ifdef KEY_RESIZE
     146862+#if defined(KEY_RESIZE) && HAVE_WRESIZE
     146863                if (c == KEY_RESIZE) {
     146864                    resize_wide_boxes(level, win);
     146865                }
     146866@@ -1044,6 +1088,8 @@
     146867 get_wch_test(void)
     146868 {
     146869     int delay = begin_getch_test();
     146870+
     146871+    slk_restore();
     146872     wget_wch_test(0, stdscr, delay);
     146873     forget_boxes();
     146874     finish_getch_test();
     146875@@ -1302,7 +1348,7 @@
     146876 }
    133954146877 /* *INDENT-OFF* */
    133955  static struct {
    133956      attr_t attr;
     146878 static const struct {
     146879-    attr_t                     attr;
     146880+    chtype                     attr;
     146881     NCURSES_CONST char *       name;
     146882 } attrs_to_test[] = {
     146883     { A_STANDOUT,      "STANDOUT" },
     146884@@ -1368,7 +1414,7 @@
     146885            case '>':
     146886                adjust_attr_string(1);
     146887                break;
     146888-             case_QUIT:
     146889+           case case_QUIT:
     146890                result = FALSE;
     146891                break;
     146892            default:
     146893@@ -1644,7 +1690,7 @@
     146894            case '>':
     146895                wide_adjust_attr_string(1);
     146896                break;
     146897-             case_QUIT:
     146898+           case case_QUIT:
     146899                result = FALSE;
     146900                break;
     146901            default:
     146902@@ -1773,7 +1819,7 @@
     146903 }
     146904 
     146905 static void
     146906-color_legend(WINDOW *helpwin)
     146907+color_legend(WINDOW *helpwin, bool wide)
     146908 {
     146909     int row = 1;
     146910     int col = 1;
     146911@@ -1786,18 +1832,30 @@
     146912     mvwprintw(helpwin, row++, col,
     146913              "longer than one screen. Control/N and Control/P can be used");
     146914     mvwprintw(helpwin, row++, col,
     146915-             "in place up up/down arrow.  Use pageup/pagedown to scroll a");
     146916+             "in place of up/down arrow.  Use pageup/pagedown to scroll a");
     146917     mvwprintw(helpwin, row++, col,
     146918              "full screen; control/B and control/F can be used here.");
     146919     ++row;
     146920     mvwprintw(helpwin, row++, col,
     146921              "Toggles:");
     146922     mvwprintw(helpwin, row++, col,
     146923+             "  a/A     toggle altcharset off/on");
     146924+    mvwprintw(helpwin, row++, col,
     146925              "  b/B     toggle bold off/on");
     146926     mvwprintw(helpwin, row++, col,
     146927              "  n/N     toggle text/number on/off");
     146928     mvwprintw(helpwin, row++, col,
     146929              "  w/W     toggle width between 8/16 colors");
     146930+#if USE_WIDEC_SUPPORT
     146931+    if (wide) {
     146932+       mvwprintw(helpwin, row++, col,
     146933+                 "Wide characters:");
     146934+       mvwprintw(helpwin, row++, col,
     146935+                 "  x/X     toggle text between ASCII and wide-character");
     146936+    }
     146937+#else
     146938+    (void) wide;
     146939+#endif
     146940 }
     146941 
     146942 #define set_color_test(name, value) if (name != value) { name = value; base_row = 0; }
     146943@@ -1817,6 +1875,7 @@
     146944     char numbered[80];
     146945     const char *hello;
     146946     bool done = FALSE;
     146947+    bool opt_acsc = FALSE;
     146948     bool opt_bold = FALSE;
     146949     bool opt_wide = FALSE;
     146950     bool opt_nums = FALSE;
     146951@@ -1868,6 +1927,8 @@
     146952 
     146953                init_pair(pair, fg, bg);
     146954                attron((attr_t) COLOR_PAIR(pair));
     146955+               if (opt_acsc)
     146956+                   attron((attr_t) A_ALTCHARSET);
     146957                if (opt_bold)
     146958                    attron((attr_t) A_BOLD);
     146959 
     146960@@ -1888,6 +1949,12 @@
     146961        }
     146962 
     146963        switch (wGetchar(stdscr)) {
     146964+       case 'a':
     146965+           opt_acsc = FALSE;
     146966+           break;
     146967+       case 'A':
     146968+           opt_acsc = TRUE;
     146969+           break;
     146970        case 'b':
     146971            opt_bold = FALSE;
     146972            break;
     146973@@ -1900,7 +1967,7 @@
     146974        case 'N':
     146975            opt_nums = TRUE;
     146976            break;
     146977-         case_QUIT:
     146978+       case case_QUIT:
     146979            done = TRUE;
     146980            continue;
     146981        case 'w':
     146982@@ -1951,7 +2018,7 @@
     146983        case '?':
     146984            if ((helpwin = newwin(LINES - 1, COLS - 2, 0, 0)) != 0) {
     146985                box(helpwin, 0, 0);
     146986-               color_legend(helpwin);
     146987+               color_legend(helpwin, FALSE);
     146988                wGetchar(helpwin);
     146989                delwin(helpwin);
     146990            }
     146991@@ -1983,9 +2050,12 @@
     146992     char numbered[80];
     146993     const char *hello;
     146994     bool done = FALSE;
     146995+    bool opt_acsc = FALSE;
     146996     bool opt_bold = FALSE;
     146997     bool opt_wide = FALSE;
     146998     bool opt_nums = FALSE;
     146999+    bool opt_xchr = FALSE;
     147000+    wchar_t buffer[10];
     147001     WINDOW *helpwin;
     147002 
     147003     while (!done) {
     147004@@ -2001,6 +2071,13 @@
     147005            hello = "Hello";
     147006            per_row = 8;
     147007        }
     147008+       if (opt_xchr) {
     147009+           make_fullwidth_text(buffer, hello);
     147010+           width *= 2;
     147011+           per_row /= 2;
     147012+       } else {
     147013+           make_narrow_text(buffer, hello);
     147014+       }
     147015 
     147016        row_limit = (pairs_max + per_row - 1) / per_row;
     147017 
     147018@@ -2028,14 +2105,20 @@
     147019            if (row >= 0 && move(row, col) != ERR) {
     147020                init_pair(pair, i % COLORS, i / COLORS);
     147021                color_set(pair, NULL);
     147022+               if (opt_acsc)
     147023+                   attr_on((attr_t) A_ALTCHARSET, NULL);
     147024                if (opt_bold)
     147025                    attr_on((attr_t) A_BOLD, NULL);
     147026 
     147027                if (opt_nums) {
     147028                    sprintf(numbered, "{%02X}", i);
     147029-                   hello = numbered;
     147030+                   if (opt_xchr) {
     147031+                       make_fullwidth_text(buffer, numbered);
     147032+                   } else {
     147033+                       make_narrow_text(buffer, numbered);
     147034+                   }
     147035                }
     147036-               printw("%-*.*s", width, width, hello);
     147037+               addnwstr(buffer, width);
     147038                attr_set(A_NORMAL, 0, NULL);
     147039 
     147040                if ((i % per_row) == 0 && (i % COLORS) == 0) {
     147041@@ -2048,6 +2131,12 @@
     147042        }
     147043 
     147044        switch (c = wGetchar(stdscr)) {
     147045+       case 'a':
     147046+           opt_acsc = FALSE;
     147047+           break;
     147048+       case 'A':
     147049+           opt_acsc = TRUE;
     147050+           break;
     147051        case 'b':
     147052            opt_bold = FALSE;
     147053            break;
     147054@@ -2060,7 +2149,7 @@
     147055        case 'N':
     147056            opt_nums = TRUE;
     147057            break;
     147058-         case_QUIT:
     147059+       case case_QUIT:
     147060            done = TRUE;
     147061            continue;
     147062        case 'w':
     147063@@ -2069,6 +2158,12 @@
     147064        case 'W':
     147065            set_color_test(opt_wide, TRUE);
     147066            break;
     147067+       case 'x':
     147068+           opt_xchr = FALSE;
     147069+           break;
     147070+       case 'X':
     147071+           opt_xchr = TRUE;
     147072+           break;
     147073        case CTRL('p'):
     147074        case KEY_UP:
     147075            if (base_row <= 0) {
     147076@@ -2111,7 +2206,7 @@
     147077        case '?':
     147078            if ((helpwin = newwin(LINES - 1, COLS - 2, 0, 0)) != 0) {
     147079                box(helpwin, 0, 0);
     147080-               color_legend(helpwin);
     147081+               color_legend(helpwin, TRUE);
     147082                wGetchar(helpwin);
     147083                delwin(helpwin);
     147084            }
     147085@@ -2328,7 +2423,7 @@
     147086            refresh();
     147087            break;
     147088 
     147089-         case_QUIT:
     147090+       case case_QUIT:
     147091            break;
     147092 
     147093        default:
     147094@@ -2498,7 +2593,7 @@
     147095            clrtobot();
     147096            break;
     147097 
     147098-         case_QUIT:
     147099+       case case_QUIT:
     147100            goto done;
     147101 
     147102 #if HAVE_SLK_COLOR
     147103@@ -2515,12 +2610,16 @@
     147104            }
     147105            break;
     147106 #endif
     147107+#if defined(NCURSES_VERSION) && defined(KEY_RESIZE) && HAVE_WRESIZE
     147108+       case KEY_RESIZE:
     147109+           wnoutrefresh(stdscr);
     147110+           break;
     147111+#endif
     147112 
     147113        default:
     147114            beep();
     147115        }
     147116-    } while
     147117-       ((c = Getchar()) != EOF);
     147118+    } while (!isQuit(c = Getchar()));
     147119 
     147120   done:
     147121     slk_clear();
     147122@@ -2627,7 +2726,7 @@
     147123            clrtobot();
     147124            break;
     147125 
     147126-         case_QUIT:
     147127+       case case_QUIT:
     147128            goto done;
     147129 
     147130        case 'F':
     147131@@ -2642,12 +2741,15 @@
     147132                call_slk_color(fg, bg);
     147133            }
     147134            break;
     147135-
     147136+#if defined(NCURSES_VERSION) && defined(KEY_RESIZE) && HAVE_WRESIZE
     147137+       case KEY_RESIZE:
     147138+           wnoutrefresh(stdscr);
     147139+           break;
     147140+#endif
     147141        default:
     147142            beep();
     147143        }
     147144-    } while
     147145-       ((c = Getchar()) != EOF);
     147146+    } while (!isQuit(c = Getchar()));
     147147 
     147148   done:
     147149     slk_clear();
     147150@@ -2662,12 +2764,89 @@
     147151  * Alternate character-set stuff
     147152  *
     147153  ****************************************************************************/
     147154+/* *INDENT-OFF* */
     147155+static struct {
     147156+    chtype attr;
     147157+    const char *name;
     147158+} attrs_to_cycle[] = {
     147159+    { A_NORMAL,                "normal" },
     147160+    { A_BOLD,          "bold" },
     147161+    { A_REVERSE,       "reverse" },
     147162+    { A_UNDERLINE,     "underline" },
     147163+};
     147164+/* *INDENT-ON* */
     147165+
     147166+static bool
     147167+cycle_attr(int ch, unsigned *at_code, chtype *attr)
     147168+{
     147169+    bool result = TRUE;
     147170+
     147171+    switch (ch) {
     147172+    case 'v':
     147173+       if ((*at_code += 1) >= SIZEOF(attrs_to_cycle))
     147174+           *at_code = 0;
     147175+       break;
     147176+    case 'V':
     147177+       if (*at_code == 1)
     147178+           *at_code = SIZEOF(attrs_to_cycle) - 1;
     147179+       else
     147180+           *at_code -= 1;
     147181+       break;
     147182+    default:
     147183+       result = FALSE;
     147184+       break;
     147185+    }
     147186+    if (result)
     147187+       *attr = attrs_to_cycle[*at_code].attr;
     147188+    return result;
     147189+}
     147190+
     147191+static bool
     147192+cycle_colors(int ch, int *fg, int *bg, short *pair)
     147193+{
     147194+    bool result = FALSE;
     147195+
     147196+    if (use_colors) {
     147197+       result = TRUE;
     147198+       switch (ch) {
     147199+       case 'F':
     147200+           if ((*fg -= 1) < 0)
     147201+               *fg = COLORS - 1;
     147202+           break;
     147203+       case 'f':
     147204+           if ((*fg += 1) >= COLORS)
     147205+               *fg = 0;
     147206+           break;
     147207+       case 'B':
     147208+           if ((*bg -= 1) < 0)
     147209+               *bg = COLORS - 1;
     147210+           break;
     147211+       case 'b':
     147212+           if ((*bg += 1) >= COLORS)
     147213+               *bg = 0;
     147214+           break;
     147215+       default:
     147216+           result = FALSE;
     147217+           break;
     147218+       }
     147219+       if (result) {
     147220+           *pair = (*fg != COLOR_BLACK || *bg != COLOR_BLACK);
     147221+           if (*pair != 0) {
     147222+               *pair = 1;
     147223+               if (init_pair(*pair, *fg, *bg) == ERR) {
     147224+                   result = FALSE;
     147225+               }
     147226+           }
     147227+       }
     147228+    }
     147229+    return result;
     147230+}
     147231 
     147232 /* ISO 6429:  codes 0x80 to 0x9f may be control characters that cause the
     147233  * terminal to perform functions.  The remaining codes can be graphic.
     147234  */
     147235 static void
     147236-show_upper_chars(unsigned first)
     147237+show_upper_chars(unsigned first, int repeat, attr_t attr, short pair)
     147238 {
     147239     bool C1 = (first == 128);
     147240     unsigned code;
     147241@@ -2682,27 +2861,33 @@
     147242     refresh();
     147243 
     147244     for (code = first; code <= last; code++) {
     147245+       int count = repeat;
     147246        int row = 2 + ((code - first) % 16);
     147247        int col = ((code - first) / 16) * COLS / 2;
     147248        char tmp[80];
     147249        sprintf(tmp, "%3u (0x%x)", code, code);
     147250        mvprintw(row, col, "%*s: ", COLS / 4, tmp);
     147251-       if (C1)
     147252-           nodelay(stdscr, TRUE);
     147253-       echochar(code);
     147254-       if (C1) {
     147255-           /* (yes, this _is_ crude) */
     147256-           while ((reply = Getchar()) != ERR) {
     147257-               addch(UChar(reply));
     147258-               napms(10);
     147259+
     147260+       do {
     147261+           if (C1)
     147262+               nodelay(stdscr, TRUE);
     147263+           echochar(code | attr | COLOR_PAIR(pair));
     147264+           if (C1) {
     147265+               /* (yes, this _is_ crude) */
     147266+               while ((reply = Getchar()) != ERR) {
     147267+                   addch(UChar(reply));
     147268+                   napms(10);
     147269+               }
     147270+               nodelay(stdscr, FALSE);
     147271            }
     147272-           nodelay(stdscr, FALSE);
     147273-       }
     147274+       } while (--count > 0);
     147275     }
     147276 }
     147277 
     147278+#define PC_COLS 4
     147279+
     147280 static void
     147281-show_pc_chars(void)
     147282+show_pc_chars(int repeat, attr_t attr, short pair)
     147283 {
     147284     unsigned code;
     147285 
     147286@@ -2713,35 +2898,41 @@
     147287     refresh();
     147288 
     147289     for (code = 0; code < 16; ++code) {
     147290-       mvprintw(2, (int) code * 3 + 8, "%X", code);
     147291+       mvprintw(2, (int) code * PC_COLS + 8, "%X", code);
     147292     }
     147293     for (code = 0; code < 256; code++) {
     147294+       int count = repeat;
     147295        int row = 3 + (code / 16) + (code >= 128);
     147296-       int col = 8 + (code % 16) * 3;
     147297+       int col = 8 + (code % 16) * PC_COLS;
     147298        if ((code % 16) == 0)
     147299            mvprintw(row, 0, "0x%02x:", code);
     147300        move(row, col);
     147301-       switch (code) {
     147302-       case '\n':
     147303-       case '\r':
     147304-       case '\b':
     147305-       case '\f':
     147306-       case '\033':
     147307-       case 0x9b:
     147308-           /*
     147309-            * Skip the ones that do not work.
     147310-            */
     147311-           break;
     147312-       default:
     147313-           addch(code | A_ALTCHARSET);
     147314-           break;
     147315-       }
     147316+       do {
     147317+           switch (code) {
     147318+           case '\n':
     147319+           case '\r':
     147320+           case '\b':
     147321+           case '\f':
     147322+           case '\033':
     147323+           case 0x9b:
     147324+               /*
     147325+                * Skip the ones that do not work.
     147326+                */
     147327+               break;
     147328+           default:
     147329+               addch(code | A_ALTCHARSET | attr | COLOR_PAIR(pair));
     147330+               break;
     147331+           }
     147332+       } while (--count > 0);
     147333     }
     147334 }
     147335 
     147336 static void
     147337-show_box_chars(void)
     147338+show_box_chars(int repeat, attr_t attr, short pair)
     147339 {
     147340+    (void) repeat;
     147341+    attr |= COLOR_PAIR(pair);
     147342+
     147343     erase();
     147344     attron(A_BOLD);
     147345     mvaddstr(0, 20, "Display of the ACS Line-Drawing Set");
     147346@@ -2749,35 +2940,38 @@
     147347     refresh();
     147348     box(stdscr, 0, 0);
     147349     /* *INDENT-OFF* */
     147350-    mvhline(LINES / 2, 0,        ACS_HLINE, COLS);
     147351-    mvvline(0,         COLS / 2, ACS_VLINE, LINES);
     147352-    mvaddch(0,         COLS / 2, ACS_TTEE);
     147353-    mvaddch(LINES / 2, COLS / 2, ACS_PLUS);
     147354-    mvaddch(LINES - 1, COLS / 2, ACS_BTEE);
     147355-    mvaddch(LINES / 2, 0,        ACS_LTEE);
     147356-    mvaddch(LINES / 2, COLS - 1, ACS_RTEE);
     147357+    mvhline(LINES / 2, 0,        ACS_HLINE | attr, COLS);
     147358+    mvvline(0,         COLS / 2, ACS_VLINE | attr, LINES);
     147359+    mvaddch(0,         COLS / 2, ACS_TTEE | attr);
     147360+    mvaddch(LINES / 2, COLS / 2, ACS_PLUS | attr);
     147361+    mvaddch(LINES - 1, COLS / 2, ACS_BTEE | attr);
     147362+    mvaddch(LINES / 2, 0,        ACS_LTEE | attr);
     147363+    mvaddch(LINES / 2, COLS - 1, ACS_RTEE | attr);
     147364     /* *INDENT-ON* */
     147365 
     147366 }
     147367 
     147368 static int
     147369-show_1_acs(int n, const char *name, chtype code)
     147370+show_1_acs(int n, int repeat, const char *name, chtype code)
     147371 {
     147372     const int height = 16;
     147373     int row = 2 + (n % height);
     147374     int col = (n / height) * COLS / 2;
     147375+
     147376     mvprintw(row, col, "%*s : ", COLS / 4, name);
     147377-    addch(code);
     147378+    do {
     147379+       addch(code);
     147380+    } while (--repeat > 0);
     147381     return n + 1;
     147382 }
     147383 
     147384 static void
     147385-show_acs_chars(void)
     147386+show_acs_chars(int repeat, attr_t attr, short pair)
     147387 /* display the ACS character set */
     147388 {
     147389     int n;
     147390 
     147391-#define BOTH(name) #name, name
     147392+#define BOTH(name) #name, (name | attr | COLOR_PAIR(pair))
     147393 
     147394     erase();
     147395     attron(A_BOLD);
     147396@@ -2785,48 +2979,48 @@
     147397     attroff(A_BOLD);
     147398     refresh();
     147399 
     147400-    n = show_1_acs(0, BOTH(ACS_ULCORNER));
     147401-    n = show_1_acs(n, BOTH(ACS_URCORNER));
     147402-    n = show_1_acs(n, BOTH(ACS_LLCORNER));
     147403-    n = show_1_acs(n, BOTH(ACS_LRCORNER));
     147404-
     147405-    n = show_1_acs(n, BOTH(ACS_LTEE));
     147406-    n = show_1_acs(n, BOTH(ACS_RTEE));
     147407-    n = show_1_acs(n, BOTH(ACS_TTEE));
     147408-    n = show_1_acs(n, BOTH(ACS_BTEE));
     147409+    n = show_1_acs(0, repeat, BOTH(ACS_ULCORNER));
     147410+    n = show_1_acs(n, repeat, BOTH(ACS_URCORNER));
     147411+    n = show_1_acs(n, repeat, BOTH(ACS_LLCORNER));
     147412+    n = show_1_acs(n, repeat, BOTH(ACS_LRCORNER));
     147413+
     147414+    n = show_1_acs(n, repeat, BOTH(ACS_LTEE));
     147415+    n = show_1_acs(n, repeat, BOTH(ACS_RTEE));
     147416+    n = show_1_acs(n, repeat, BOTH(ACS_TTEE));
     147417+    n = show_1_acs(n, repeat, BOTH(ACS_BTEE));
     147418 
     147419-    n = show_1_acs(n, BOTH(ACS_HLINE));
     147420-    n = show_1_acs(n, BOTH(ACS_VLINE));
     147421+    n = show_1_acs(n, repeat, BOTH(ACS_HLINE));
     147422+    n = show_1_acs(n, repeat, BOTH(ACS_VLINE));
     147423 
     147424     /*
     147425      * HPUX's ACS definitions are broken here.  Just give up.
     147426      */
     147427 #if !(defined(__hpux) && !defined(NCURSES_VERSION))
     147428-    n = show_1_acs(n, BOTH(ACS_LARROW));
     147429-    n = show_1_acs(n, BOTH(ACS_RARROW));
     147430-    n = show_1_acs(n, BOTH(ACS_UARROW));
     147431-    n = show_1_acs(n, BOTH(ACS_DARROW));
     147432-
     147433-    n = show_1_acs(n, BOTH(ACS_BLOCK));
     147434-    n = show_1_acs(n, BOTH(ACS_BOARD));
     147435-    n = show_1_acs(n, BOTH(ACS_LANTERN));
     147436-    n = show_1_acs(n, BOTH(ACS_BULLET));
     147437-    n = show_1_acs(n, BOTH(ACS_CKBOARD));
     147438-    n = show_1_acs(n, BOTH(ACS_DEGREE));
     147439-    n = show_1_acs(n, BOTH(ACS_DIAMOND));
     147440-    n = show_1_acs(n, BOTH(ACS_PLMINUS));
     147441-    n = show_1_acs(n, BOTH(ACS_PLUS));
     147442-
     147443-    n = show_1_acs(n, BOTH(ACS_GEQUAL));
     147444-    n = show_1_acs(n, BOTH(ACS_NEQUAL));
     147445-    n = show_1_acs(n, BOTH(ACS_LEQUAL));
     147446-
     147447-    n = show_1_acs(n, BOTH(ACS_STERLING));
     147448-    n = show_1_acs(n, BOTH(ACS_PI));
     147449-    n = show_1_acs(n, BOTH(ACS_S1));
     147450-    n = show_1_acs(n, BOTH(ACS_S3));
     147451-    n = show_1_acs(n, BOTH(ACS_S7));
     147452-    n = show_1_acs(n, BOTH(ACS_S9));
     147453+    n = show_1_acs(n, repeat, BOTH(ACS_LARROW));
     147454+    n = show_1_acs(n, repeat, BOTH(ACS_RARROW));
     147455+    n = show_1_acs(n, repeat, BOTH(ACS_UARROW));
     147456+    n = show_1_acs(n, repeat, BOTH(ACS_DARROW));
     147457+
     147458+    n = show_1_acs(n, repeat, BOTH(ACS_BLOCK));
     147459+    n = show_1_acs(n, repeat, BOTH(ACS_BOARD));
     147460+    n = show_1_acs(n, repeat, BOTH(ACS_LANTERN));
     147461+    n = show_1_acs(n, repeat, BOTH(ACS_BULLET));
     147462+    n = show_1_acs(n, repeat, BOTH(ACS_CKBOARD));
     147463+    n = show_1_acs(n, repeat, BOTH(ACS_DEGREE));
     147464+    n = show_1_acs(n, repeat, BOTH(ACS_DIAMOND));
     147465+    n = show_1_acs(n, repeat, BOTH(ACS_PLMINUS));
     147466+    n = show_1_acs(n, repeat, BOTH(ACS_PLUS));
     147467+
     147468+    n = show_1_acs(n, repeat, BOTH(ACS_GEQUAL));
     147469+    n = show_1_acs(n, repeat, BOTH(ACS_NEQUAL));
     147470+    n = show_1_acs(n, repeat, BOTH(ACS_LEQUAL));
     147471+
     147472+    n = show_1_acs(n, repeat, BOTH(ACS_STERLING));
     147473+    n = show_1_acs(n, repeat, BOTH(ACS_PI));
     147474+    n = show_1_acs(n, repeat, BOTH(ACS_S1));
     147475+    n = show_1_acs(n, repeat, BOTH(ACS_S3));
     147476+    n = show_1_acs(n, repeat, BOTH(ACS_S7));
     147477+    n = show_1_acs(n, repeat, BOTH(ACS_S9));
     147478 #endif
     147479 }
     147480 
     147481@@ -2838,6 +3032,14 @@
     147482     const char *pch_kludge = ((term != 0 && strstr(term, "linux"))
     147483                              ? "p=PC, "
     147484                              : "");
     147485+    chtype attr = A_NORMAL;
     147486+    int digit = 0;
     147487+    int repeat = 1;
     147488+    int fg = COLOR_BLACK;
     147489+    int bg = COLOR_BLACK;
     147490+    unsigned at_code = 0;
     147491+    short pair = 0;
     147492+    void (*last_show_acs) (int, attr_t, short) = 0;
     147493 
     147494     do {
     147495        switch (c) {
     147496@@ -2845,29 +3047,77 @@
     147497            Repaint();
     147498            break;
     147499        case 'a':
     147500-           show_acs_chars();
     147501+           ToggleAcs(last_show_acs, show_acs_chars);
     147502+           break;
     147503+       case 'p':
     147504+           if (*pch_kludge)
     147505+               ToggleAcs(last_show_acs, show_pc_chars);
     147506+           else
     147507+               beep();
     147508            break;
     147509        case 'x':
     147510-           show_box_chars();
     147511+           ToggleAcs(last_show_acs, show_box_chars);
     147512            break;
     147513        case '0':
     147514        case '1':
     147515        case '2':
     147516        case '3':
     147517-           show_upper_chars((unsigned) ((c - '0') * 32 + 128));
     147518+           digit = (c - '0');
     147519+           last_show_acs = 0;
     147520            break;
     147521-       case 'p':
     147522-           show_pc_chars();
     147523+       case '-':
     147524+           if (digit > 0) {
     147525+               --digit;
     147526+               last_show_acs = 0;
     147527+           } else {
     147528+               beep();
     147529+           }
     147530+           break;
     147531+       case '+':
     147532+           if (digit < 3) {
     147533+               ++digit;
     147534+               last_show_acs = 0;
     147535+           } else {
     147536+               beep();
     147537+           }
     147538+           break;
     147539+       case '>':
     147540+           if (repeat < (COLS / 4))
     147541+               ++repeat;
     147542+           break;
     147543+       case '<':
     147544+           if (repeat > 1)
     147545+               --repeat;
     147546            break;
     147547        default:
     147548-           beep();
     147549+           if (cycle_attr(c, &at_code, &attr)
     147550+               || cycle_colors(c, &fg, &bg, &pair)) {
     147551+               break;
     147552+           } else {
     147553+               beep();
     147554+           }
     147555            break;
     147556        }
     147557+       if (last_show_acs != 0)
     147558+           last_show_acs(repeat, attr, pair);
     147559+       else
     147560+           show_upper_chars(digit * 32 + 128, repeat, attr, pair);
     147561+
     147562        mvprintw(LINES - 3, 0,
     147563                 "Note: ANSI terminals may not display C1 characters.");
     147564        mvprintw(LINES - 2, 0,
     147565-                "Select: a=ACS, x=box, %s0=C1, 1,2,3=GR characters, ESC=quit",
     147566+                "Select: a=ACS, x=box, %s0=C1, 1-3,+/- non-ASCII, </> repeat, ESC=quit",
     147567                 pch_kludge);
     147568+       if (use_colors) {
     147569+           mvprintw(LINES - 1, 0,
     147570+                    "v/V, f/F, b/B cycle through video attributes (%s) and color %d/%d.",
     147571+                    attrs_to_cycle[at_code].name,
     147572+                    fg, bg);
     147573+       } else {
     147574+           mvprintw(LINES - 1, 0,
     147575+                    "v/V cycles through video attributes (%s).",
     147576+                    attrs_to_cycle[at_code].name);
     147577+       }
     147578        refresh();
     147579     } while (!isQuit(c = Getchar()));
     147580 
     147581@@ -2878,7 +3128,7 @@
     147582 
     147583 #if USE_WIDEC_SUPPORT
     147584 static cchar_t *
     147585-merge_wide_attr(cchar_t *dst, cchar_t *src, attr_t attr, short pair)
     147586+merge_wide_attr(cchar_t *dst, const cchar_t *src, attr_t attr, short pair)
     147587 {
     147588     int count = getcchar(src, NULL, NULL, NULL, 0);
     147589     wchar_t *wch = 0;
     147590@@ -2887,7 +3137,7 @@
     147591 
     147592     *dst = *src;
     147593     if (count > 0) {
     147594-       if ((wch = typeMalloc(wchar_t, count)) != 0) {
     147595+       if ((wch = typeMalloc(wchar_t, count + 1)) != 0) {
     147596            if (getcchar(src, wch, &ignore_attr, &ignore_pair, 0) != ERR) {
     147597                attr |= (ignore_attr & A_ALTCHARSET);
     147598                setcchar(dst, wch, attr, pair, 0);
     147599@@ -2950,20 +3200,23 @@
     147600 }
     147601 
     147602 static int
     147603-show_1_wacs(int n, const char *name, const cchar_t *code)
     147604+show_1_wacs(int n, int repeat, const char *name, const cchar_t *code)
     147605 {
     147606     const int height = 16;
     147607     int row = 2 + (n % height);
     147608     int col = (n / height) * COLS / 2;
     147609+
     147610     mvprintw(row, col, "%*s : ", COLS / 4, name);
     147611-    add_wchnstr(code, 1);
     147612+    while (repeat-- >= 0) {
     147613+       add_wch(code);
     147614+    }
     147615     return n + 1;
     147616 }
     147617 
     147618 #define MERGE_ATTR(wch) merge_wide_attr(&temp, wch, attr, pair)
     147619 
     147620 static void
     147621-show_wacs_chars(attr_t attr, short pair)
     147622+show_wacs_chars(int repeat, attr_t attr, short pair)
     147623 /* display the wide-ACS character set */
     147624 {
     147625     cchar_t temp;
     147626@@ -2979,45 +3232,45 @@
     147627     attroff(A_BOLD);
     147628     refresh();
     147629 
     147630-    n = show_1_wacs(0, BOTH2(WACS_ULCORNER));
     147631-    n = show_1_wacs(n, BOTH2(WACS_URCORNER));
     147632-    n = show_1_wacs(n, BOTH2(WACS_LLCORNER));
     147633-    n = show_1_wacs(n, BOTH2(WACS_LRCORNER));
     147634-
     147635-    n = show_1_wacs(n, BOTH2(WACS_LTEE));
     147636-    n = show_1_wacs(n, BOTH2(WACS_RTEE));
     147637-    n = show_1_wacs(n, BOTH2(WACS_TTEE));
     147638-    n = show_1_wacs(n, BOTH2(WACS_BTEE));
     147639-
     147640-    n = show_1_wacs(n, BOTH2(WACS_HLINE));
     147641-    n = show_1_wacs(n, BOTH2(WACS_VLINE));
     147642-
     147643-    n = show_1_wacs(n, BOTH2(WACS_LARROW));
     147644-    n = show_1_wacs(n, BOTH2(WACS_RARROW));
     147645-    n = show_1_wacs(n, BOTH2(WACS_UARROW));
     147646-    n = show_1_wacs(n, BOTH2(WACS_DARROW));
     147647-
     147648-    n = show_1_wacs(n, BOTH2(WACS_BLOCK));
     147649-    n = show_1_wacs(n, BOTH2(WACS_BOARD));
     147650-    n = show_1_wacs(n, BOTH2(WACS_LANTERN));
     147651-    n = show_1_wacs(n, BOTH2(WACS_BULLET));
     147652-    n = show_1_wacs(n, BOTH2(WACS_CKBOARD));
     147653-    n = show_1_wacs(n, BOTH2(WACS_DEGREE));
     147654-    n = show_1_wacs(n, BOTH2(WACS_DIAMOND));
     147655-    n = show_1_wacs(n, BOTH2(WACS_PLMINUS));
     147656-    n = show_1_wacs(n, BOTH2(WACS_PLUS));
     147657+    n = show_1_wacs(0, repeat, BOTH2(WACS_ULCORNER));
     147658+    n = show_1_wacs(n, repeat, BOTH2(WACS_URCORNER));
     147659+    n = show_1_wacs(n, repeat, BOTH2(WACS_LLCORNER));
     147660+    n = show_1_wacs(n, repeat, BOTH2(WACS_LRCORNER));
     147661+
     147662+    n = show_1_wacs(n, repeat, BOTH2(WACS_LTEE));
     147663+    n = show_1_wacs(n, repeat, BOTH2(WACS_RTEE));
     147664+    n = show_1_wacs(n, repeat, BOTH2(WACS_TTEE));
     147665+    n = show_1_wacs(n, repeat, BOTH2(WACS_BTEE));
     147666+
     147667+    n = show_1_wacs(n, repeat, BOTH2(WACS_HLINE));
     147668+    n = show_1_wacs(n, repeat, BOTH2(WACS_VLINE));
     147669+
     147670+    n = show_1_wacs(n, repeat, BOTH2(WACS_LARROW));
     147671+    n = show_1_wacs(n, repeat, BOTH2(WACS_RARROW));
     147672+    n = show_1_wacs(n, repeat, BOTH2(WACS_UARROW));
     147673+    n = show_1_wacs(n, repeat, BOTH2(WACS_DARROW));
     147674+
     147675+    n = show_1_wacs(n, repeat, BOTH2(WACS_BLOCK));
     147676+    n = show_1_wacs(n, repeat, BOTH2(WACS_BOARD));
     147677+    n = show_1_wacs(n, repeat, BOTH2(WACS_LANTERN));
     147678+    n = show_1_wacs(n, repeat, BOTH2(WACS_BULLET));
     147679+    n = show_1_wacs(n, repeat, BOTH2(WACS_CKBOARD));
     147680+    n = show_1_wacs(n, repeat, BOTH2(WACS_DEGREE));
     147681+    n = show_1_wacs(n, repeat, BOTH2(WACS_DIAMOND));
     147682+    n = show_1_wacs(n, repeat, BOTH2(WACS_PLMINUS));
     147683+    n = show_1_wacs(n, repeat, BOTH2(WACS_PLUS));
     147684 
     147685 #ifdef CURSES_WACS_ARRAY
     147686-    n = show_1_wacs(n, BOTH2(WACS_GEQUAL));
     147687-    n = show_1_wacs(n, BOTH2(WACS_NEQUAL));
     147688-    n = show_1_wacs(n, BOTH2(WACS_LEQUAL));
     147689-
     147690-    n = show_1_wacs(n, BOTH2(WACS_STERLING));
     147691-    n = show_1_wacs(n, BOTH2(WACS_PI));
     147692-    n = show_1_wacs(n, BOTH2(WACS_S1));
     147693-    n = show_1_wacs(n, BOTH2(WACS_S3));
     147694-    n = show_1_wacs(n, BOTH2(WACS_S7));
     147695-    n = show_1_wacs(n, BOTH2(WACS_S9));
     147696+    n = show_1_wacs(n, repeat, BOTH2(WACS_GEQUAL));
     147697+    n = show_1_wacs(n, repeat, BOTH2(WACS_NEQUAL));
     147698+    n = show_1_wacs(n, repeat, BOTH2(WACS_LEQUAL));
     147699+
     147700+    n = show_1_wacs(n, repeat, BOTH2(WACS_STERLING));
     147701+    n = show_1_wacs(n, repeat, BOTH2(WACS_PI));
     147702+    n = show_1_wacs(n, repeat, BOTH2(WACS_S1));
     147703+    n = show_1_wacs(n, repeat, BOTH2(WACS_S3));
     147704+    n = show_1_wacs(n, repeat, BOTH2(WACS_S7));
     147705+    n = show_1_wacs(n, repeat, BOTH2(WACS_S9));
     147706 #endif
     147707 }
     147708 
     147709@@ -3026,10 +3279,11 @@
     147710 #define MERGE_ATTR(wch) merge_wide_attr(&temp, wch, attr, pair)
     147711 
     147712 static void
     147713-show_wbox_chars(attr_t attr, short pair)
     147714+show_wbox_chars(int repeat, attr_t attr, short pair)
     147715 {
     147716     cchar_t temp;
     147717 
     147718+    (void) repeat;
     147719     erase();
     147720     attron(A_BOLD);
     147721     mvaddstr(0, 20, "Display of the Wide-ACS Line-Drawing Set");
     147722@@ -3071,10 +3325,11 @@
     147723 #define SHOW_UTF8(n, name, code) show_2_wacs(n, name, code, attr, pair)
     147724 
     147725 static void
     147726-show_utf8_chars(attr_t attr, short pair)
     147727+show_utf8_chars(int repeat, attr_t attr, short pair)
     147728 {
     147729     int n;
     147730 
     147731+    (void) repeat;
     147732     erase();
     147733     attron(A_BOLD);
     147734     mvaddstr(0, 20, "Display of the Wide-ACS Character Set");
     147735@@ -3121,83 +3376,6 @@
     147736     /* *INDENT-ON* */
     147737 
     147738 }
     147739-/* *INDENT-OFF* */
     147740-static struct {
     147741-    attr_t attr;
    133957147742-    char *name;
    133958 +    const char *name;
    133959  } attrs_to_cycle[] = {
    133960      { A_NORMAL,                "normal" },
    133961      { A_BOLD,          "bold" },
    133962 @@ -3379,12 +3379,14 @@
     147743-} attrs_to_cycle[] = {
     147744-    { A_NORMAL,                "normal" },
     147745-    { A_BOLD,          "bold" },
     147746-    { A_REVERSE,       "reverse" },
     147747-    { A_UNDERLINE,     "underline" },
     147748-};
     147749-/* *INDENT-ON* */
     147750-
     147751-static bool
     147752-cycle_attr(int ch, unsigned *at_code, chtype *attr)
     147753-{
     147754-    bool result = TRUE;
     147755-
     147756-    switch (ch) {
     147757-    case 'v':
     147758-       if ((*at_code += 1) >= SIZEOF(attrs_to_cycle))
     147759-           *at_code = 0;
     147760-       break;
     147761-    case 'V':
     147762-       if (*at_code == 1)
     147763-           *at_code = SIZEOF(attrs_to_cycle) - 1;
     147764-       else
     147765-           *at_code -= 1;
     147766-       break;
     147767-    default:
     147768-       result = FALSE;
     147769-       break;
     147770-    }
     147771-    if (result)
     147772-       *attr = attrs_to_cycle[*at_code].attr;
     147773-    return result;
     147774-}
     147775-
     147776-static bool
     147777-cycle_colors(int ch, int *fg, int *bg, short *pair)
     147778-{
     147779-    bool result = FALSE;
     147780-
     147781-    if (use_colors) {
     147782-       result = TRUE;
     147783-       switch (ch) {
     147784-       case 'F':
     147785-           if ((*fg -= 1) < 0)
     147786-               *fg = COLORS - 1;
     147787-           break;
     147788-       case 'f':
     147789-           if ((*fg += 1) >= COLORS)
     147790-               *fg = 0;
     147791-           break;
     147792-       case 'B':
     147793-           if ((*bg -= 1) < 0)
     147794-               *bg = COLORS - 1;
     147795-           break;
     147796-       case 'b':
     147797-           if ((*bg += 1) < 0)
     147798-               *bg = 0;
     147799-           break;
     147800-       default:
     147801-           result = FALSE;
     147802-           break;
     147803-       }
     147804-       if (result) {
     147805-           *pair = (*fg != COLOR_BLACK || *bg != COLOR_BLACK);
     147806-           if (*pair != 0) {
     147807-               *pair = 1;
     147808-               if (init_pair(*pair, *fg, *bg) == ERR) {
     147809-                   result = FALSE;
     147810-               }
     147811-           }
     147812-       }
     147813-    }
     147814-    return result;
     147815-}
     147816 
     147817 /* display the wide-ACS character set */
     147818 static void
     147819@@ -3205,14 +3383,14 @@
     147820 {
     147821     int c = 'a';
     147822     int digit = 0;
     147823-    int repeat = 0;
     147824+    int repeat = 1;
     147825     int space = ' ';
     147826     chtype attr = A_NORMAL;
     147827     int fg = COLOR_BLACK;
     147828     int bg = COLOR_BLACK;
     147829     unsigned at_code = 0;
     147830     short pair = 0;
     147831-    void (*last_show_wacs) (attr_t, short) = 0;
     147832+    void (*last_show_wacs) (int, attr_t, short) = 0;
     147833 
     147834     do {
     147835        switch (c) {
     147836@@ -3220,27 +3398,31 @@
     147837            Repaint();
     147838            break;
     147839        case 'a':
     147840-           last_show_wacs = show_wacs_chars;
     147841+           ToggleAcs(last_show_wacs, show_wacs_chars);
     147842            break;
     147843        case 'x':
     147844-           last_show_wacs = show_wbox_chars;
     147845+           ToggleAcs(last_show_wacs, show_wbox_chars);
     147846            break;
     147847        case 'u':
     147848-           last_show_wacs = show_utf8_chars;
     147849+           ToggleAcs(last_show_wacs, show_utf8_chars);
     147850            break;
     147851        default:
     147852            if (c < 256 && isdigit(c)) {
     147853                digit = (c - '0');
     147854+               last_show_wacs = 0;
     147855            } else if (c == '+') {
     147856                ++digit;
     147857+               last_show_wacs = 0;
     147858            } else if (c == '-' && digit > 0) {
     147859                --digit;
     147860+               last_show_wacs = 0;
     147861            } else if (c == '>' && repeat < (COLS / 4)) {
     147862                ++repeat;
     147863-           } else if (c == '<' && repeat > 0) {
     147864+           } else if (c == '<' && repeat > 1) {
     147865                --repeat;
     147866            } else if (c == '_') {
     147867                space = (space == ' ') ? '_' : ' ';
     147868+               last_show_wacs = 0;
     147869            } else if (cycle_attr(c, &at_code, &attr)
     147870                       || cycle_colors(c, &fg, &bg, &pair)) {
     147871                if (last_show_wacs != 0)
     147872@@ -3249,12 +3431,12 @@
     147873                beep();
     147874                break;
     147875            }
     147876-           last_show_wacs = 0;
     147877-           show_upper_widechars(digit * 32 + 128, repeat, space, attr, pair);
     147878            break;
     147879        }
     147880        if (last_show_wacs != 0)
     147881-           last_show_wacs(attr, pair);
     147882+           last_show_wacs(repeat, attr, pair);
     147883+       else
     147884+           show_upper_widechars(digit * 32 + 128, repeat, space, attr, pair);
     147885 
     147886        mvprintw(LINES - 3, 0,
     147887                 "Select: a WACS, x box, u UTF-8, 0-9,+/- non-ASCII, </> repeat, ESC=quit");
     147888@@ -3379,12 +3561,17 @@
    133963147889     WINDOW *wind;
    133964147890 };
     
    133968147894-#define scroll_active(win) (win)->_scroll
    133969147895+#if defined(NCURSES_VERSION)
    133970 +#if NCURSES_VERSION_PATCH < 20070331
     147896+#if (NCURSES_VERSION_PATCH < 20070331) && NCURSES_EXT_FUNCS
    133971147897+#define is_keypad(win)   (win)->_use_keypad
    133972147898+#define is_scrollok(win) (win)->_scroll
     147899+#elif !defined(is_keypad)
     147900+#define is_keypad(win)   FALSE
     147901+#define is_scrollok(win) FALSE
    133973147902+#endif
    133974147903 #else
     
    133980147909 
    133981147910 /* We need to know if these flags are actually set, so don't look in FRAME.
    133982 @@ -3395,14 +3397,16 @@
     147911@@ -3395,14 +3582,16 @@
    133983147912 HaveKeypad(FRAME * curp)
    133984147913 {
     
    133999147928 
    134000147929 static void
    134001 @@ -3945,7 +3949,11 @@
     147930@@ -3540,7 +3729,7 @@
     147931        case KEY_RIGHT:
     147932            j++;
     147933            break;
     147934-         case_QUIT:
     147935+       case case_QUIT:
     147936            return ((pair *) 0);
     147937 #ifdef NCURSES_MOUSE_VERSION
     147938        case KEY_MOUSE:
     147939@@ -3665,7 +3854,7 @@
     147940 acs_and_scroll(void)
     147941 /* Demonstrate windows */
     147942 {
     147943-    int c, i;
     147944+    int c;
     147945     FRAME *current = (FRAME *) 0, *neww;
     147946     WINDOW *usescr = stdscr;
     147947 #if HAVE_PUTWIN && HAVE_GETWIN
     147948@@ -3683,7 +3872,7 @@
     147949        transient((FRAME *) 0, (char *) 0);
     147950        switch (c) {
     147951        case CTRL('C'):
     147952-           neww = (FRAME *) calloc(1, sizeof(FRAME));
     147953+           neww = typeCalloc(FRAME, 1);
     147954            if ((neww->wind = getwindow()) == (WINDOW *) 0)
     147955                goto breakout;
     147956 
     147957@@ -3759,7 +3948,7 @@
     147958            if ((fp = fopen(DUMPFILE, "r")) == (FILE *) 0) {
     147959                transient(current, "Can't open screen dump file");
     147960            } else {
     147961-               neww = (FRAME *) calloc(1, sizeof(FRAME));
     147962+               neww = typeCalloc(FRAME, 1);
     147963 
     147964                neww->next = current->next;
     147965                neww->last = current;
     147966@@ -3778,7 +3967,7 @@
     147967        case CTRL('X'): /* resize window */
     147968            if (current) {
     147969                pair *tmp, ul, lr;
     147970-               int mx, my;
     147971+               int i, mx, my;
     147972 
     147973                move(0, 0);
     147974                clrtoeol();
     147975@@ -3945,7 +4134,11 @@
    134002147976 {
    134003147977     wmove(stdscr, LINES - 1, 0);
     
    134012147986 
    134013147987 /*+-------------------------------------------------------------------------
    134014 @@ -3998,6 +4006,17 @@
     147988@@ -3998,6 +4191,17 @@
    134015147989        fill_panel(win)
    134016147990 --------------------------------------------------------------------------*/
     
    134030148004 {
    134031148005     WINDOW *win = panel_window(pan);
    134032 @@ -4014,217 +4033,214 @@
     148006@@ -4014,217 +4218,204 @@
    134033148007            waddch(win, UChar(num));
    134034148008        }
     
    134040148014 static void
    134041148015-demo_panels(void)
    134042 +make_fullwidth_digit(cchar_t *target, int digit)
     148016+init_wide_panel(void)
    134043148017 {
    134044148018-    int itmp;
    134045148019-    register int y, x;
    134046 +    wchar_t source[2];
     148020+    int digit;
     148021+    cchar_t temp[10];
    134047148022 
    134048148023-    refresh();
    134049 +    source[0] = digit + 0xff10;
    134050 +    source[1] = 0;
    134051 +    setcchar(target, source, A_NORMAL, 0, 0);
    134052 +}
     148024+    for (digit = 0; digit < 10; ++digit)
     148025+       make_fullwidth_digit(&temp[digit], digit);
    134053148026 
    134054148027-    for (y = 0; y < LINES - 1; y++) {
     
    134108148081-       saywhat("press any key to continue");
    134109148082-       wait_a_while(nap_msec);
    134110 +static void
    134111 +init_wide_panel(void)
    134112 +{
    134113 +    int digit;
    134114 +    cchar_t temp[10];
     148083+    do {
     148084+       int y, x;
     148085+       getyx(stdscr, y, x);
     148086+       digit = (y + x / 2) % 10;
     148087+    } while (add_wch(&temp[digit]) != ERR);
     148088+}
    134115148089 
    134116148090-       saywhat("h3 s1 s2 s4 s5; press any key to continue");
     
    134123148097-       pflush();
    134124148098-       wait_a_while(nap_msec);
    134125 +    for (digit = 0; digit < 10; ++digit)
    134126 +       make_fullwidth_digit(&temp[digit], digit);
    134127  
    134128 -       saywhat("s1; press any key to continue");
    134129 -       show_panel(p1);
    134130 -       pflush();
    134131 -       wait_a_while(nap_msec);
    134132 +    do {
    134133 +       int y, x;
    134134 +       getyx(stdscr, y, x);
    134135 +       digit = (y + x / 2) % 10;
    134136 +    } while (add_wch(&temp[digit]) != ERR);
    134137 +}
    134138  
    134139 -       saywhat("s2; press any key to continue");
    134140 -       show_panel(p2);
    134141 -       pflush();
    134142 -       wait_a_while(nap_msec);
    134143148099+static void
    134144148100+fill_wide_panel(PANEL * pan)
     
    134148148104+    int y, x;
    134149148105 
    134150 -       saywhat("m2; press any key to continue");
    134151 -       move_panel(p2, LINES / 3 + 1, COLS / 8);
     148106-       saywhat("s1; press any key to continue");
     148107-       show_panel(p1);
    134152148108-       pflush();
    134153148109-       wait_a_while(nap_msec);
     
    134165148121+#endif
    134166148122 
    134167 -       saywhat("s3;");
    134168 -       show_panel(p3);
     148123-       saywhat("s2; press any key to continue");
     148124-       show_panel(p2);
    134169148125-       pflush();
    134170148126-       wait_a_while(nap_msec);
    134171148127+#define MAX_PANELS 5
    134172148128 
    134173 -       saywhat("m3; press any key to continue");
    134174 -       move_panel(p3, LINES / 4 + 1, COLS / 15);
     148129-       saywhat("m2; press any key to continue");
     148130-       move_panel(p2, LINES / 3 + 1, COLS / 8);
    134175148131-       pflush();
    134176148132-       wait_a_while(nap_msec);
     
    134180148136+    int which = cmd[1] - '0';
    134181148137 
    134182 -       saywhat("b3; press any key to continue");
    134183 -       bottom_panel(p3);
     148138-       saywhat("s3;");
     148139-       show_panel(p3);
    134184148140-       pflush();
    134185148141-       wait_a_while(nap_msec);
     
    134206148162+}
    134207148163 
    134208 -       saywhat("s4; press any key to continue");
    134209 -       show_panel(p4);
     148164-       saywhat("m3; press any key to continue");
     148165-       move_panel(p3, LINES / 4 + 1, COLS / 15);
    134210148166-       pflush();
    134211148167-       wait_a_while(nap_msec);
     
    134217148173+    PANEL *px[MAX_PANELS + 1];
    134218148174 
    134219 -       saywhat("s5; press any key to continue");
    134220 -       show_panel(p5);
     148175-       saywhat("b3; press any key to continue");
     148176-       bottom_panel(p3);
    134221148177-       pflush();
    134222148178-       wait_a_while(nap_msec);
     
    134224148180+    refresh();
    134225148181 
    134226 -       saywhat("t3; press any key to continue");
    134227 -       top_panel(p3);
     148182-       saywhat("s4; press any key to continue");
     148183-       show_panel(p4);
    134228148184-       pflush();
    134229148185-       wait_a_while(nap_msec);
     
    134271148227+       FillPanel(px[5]);
    134272148228 
    134273 -       saywhat("t1; press any key to continue");
    134274 -       top_panel(p1);
     148229-       saywhat("s5; press any key to continue");
     148230-       show_panel(p5);
    134275148231+       hide_panel(px[4]);
    134276148232+       hide_panel(px[5]);
     
    134279148235        wait_a_while(nap_msec);
    134280148236 
    134281 -       saywhat("t2; press any key to continue");
    134282 -       top_panel(p2);
     148237-       saywhat("t3; press any key to continue");
     148238-       top_panel(p3);
    134283148239+       saywhat("h3 s1 s2 s4 s5");
    134284148240+       move_panel(px[1], 0, 0);
     
    134291148247        wait_a_while(nap_msec);
    134292148248 
    134293 -       saywhat("t3; press any key to continue");
    134294 -       top_panel(p3);
     148249-       saywhat("t1; press any key to continue");
     148250-       top_panel(p1);
     148251-       pflush();
     148252-       wait_a_while(nap_msec);
    134295148253+       canned_panel(px, "s1");
    134296148254+       canned_panel(px, "s2");
    134297 +
     148255 
     148256-       saywhat("t2; press any key to continue");
     148257-       top_panel(p2);
    134298148258+       saywhat("m2");
    134299148259+       move_panel(px[2], LINES / 3 + 1, COLS / 8);
     
    134301148261        wait_a_while(nap_msec);
    134302148262 
     148263-       saywhat("t3; press any key to continue");
     148264-       top_panel(p3);
     148265-       pflush();
     148266-       wait_a_while(nap_msec);
     148267+       canned_panel(px, "s3");
     148268 
    134303148269-       saywhat("t4; press any key to continue");
    134304148270-       top_panel(p4);
    134305 +       canned_panel(px, "s3");
    134306 +
    134307148271+       saywhat("m3");
    134308148272+       move_panel(px[3], LINES / 4 + 1, COLS / 15);
     
    134350148314-       saywhat("m4; press any key to continue");
    134351148315-       move_panel(p4, LINES / 6, itmp * (COLS / 8));
    134352 -       pflush();
    134353 -       wait_a_while(nap_msec);
    134354 -
     148316+       saywhat("m4");
     148317+       move_panel(px[4], LINES / 6, itmp * (COLS / 8));
     148318        pflush();
     148319        wait_a_while(nap_msec);
     148320 
    134355148321-       saywhat("t5; press any key to continue");
    134356148322-       top_panel(p5);
     
    134385148351-       saywhat("d4; press any key to continue");
    134386148352-       rmpanel(p4);
    134387 +       saywhat("m4");
    134388 +       move_panel(px[4], LINES / 6, itmp * (COLS / 8));
    134389         pflush();
    134390         wait_a_while(nap_msec);
    134391  
     148353-       pflush();
     148354-       wait_a_while(nap_msec);
     148355-
    134392148356-       saywhat("d5; press any key to continue");
    134393148357-       rmpanel(p5);
     
    134408148372        wait_a_while(nap_msec);
    134409148373        if (nap_msec == 1)
    134410 @@ -5389,6 +5405,10 @@
     148374@@ -4625,7 +4816,7 @@
     148375                c = KEY_DC;
     148376                break;
     148377            case ERR:           /* FALLTHRU */
     148378-             case_QUIT:
     148379+           case case_QUIT:
     148380                count = 0;
     148381                c = KEY_EXIT;
     148382                break;
     148383@@ -4815,7 +5006,7 @@
     148384     }
     148385 }
     148386 
     148387-static const char *animals[] =
     148388+static CONST_MENUS char *animals[] =
     148389 {
     148390     "Lions",
     148391     "Tigers",
     148392@@ -4839,7 +5030,7 @@
     148393     MENU *m;
     148394     ITEM *items[SIZEOF(animals)];
     148395     ITEM **ip = items;
     148396-    const char **ap;
     148397+    CONST_MENUS char **ap;
     148398     int mrows, mcols, c;
     148399     WINDOW *menuwin;
     148400 
     148401@@ -4934,7 +5125,7 @@
     148402        size_t need = 12;
     148403        for (n = 0; t_tbl[n].name != 0; n++)
     148404            need += strlen(t_tbl[n].name) + 2;
     148405-       buf = (char *) malloc(need);
     148406+       buf = typeMalloc(char, need);
     148407     }
     148408     sprintf(buf, "0x%02x = {", tlevel);
     148409     if (tlevel == 0) {
     148410@@ -5045,7 +5236,7 @@
     148411        if (item_value(*ip))
     148412            newtrace |= t_tbl[item_index(*ip)].mask;
     148413     trace(newtrace);
     148414-    _tracef("trace level interactively set to %s", tracetrace(_nc_tracing));
     148415+    Trace(("trace level interactively set to %s", tracetrace(_nc_tracing)));
     148416 
     148417     (void) mvprintw(LINES - 2, 0,
     148418                    "Trace level is %s\n", tracetrace(_nc_tracing));
     148419@@ -5389,6 +5580,10 @@
    134411148420     int finished = 0, c;
    134412148421     unsigned n = 0;
     
    134419148428     addstr("Defined edit/traversal keys:   ^Q/ESC- exit form\n");
    134420148429     addstr("^N   -- go to next field       ^P  -- go to previous field\n");
    134421 @@ -5462,6 +5482,10 @@
     148430@@ -5462,6 +5657,10 @@
    134422148431     free_fieldtype(fty_passwd);
    134423148432     noraw();
     
    134430148439 #endif /* USE_LIBFORM */
    134431148440 
    134432 @@ -5884,7 +5908,13 @@
     148441@@ -5884,7 +6083,13 @@
    134433148442 
    134434148443 #if USE_LIBPANEL
     
    134439148448+#endif
    134440148449+
    134441 +#if USE_WIDEC_SUPPORT
     148450+#if USE_WIDEC_SUPPORT && USE_LIBPANEL
    134442148451+    case 'O':
    134443148452+       demo_panels(init_wide_panel, fill_wide_panel);
     
    134445148454 #endif
    134446148455 
    134447 @@ -6052,9 +6082,12 @@
     148456@@ -5996,7 +6201,7 @@
     148457     wbkgd(win, A_REVERSE);
     148458     werase(win);
     148459     wmove(win, 0, 0);
     148460-    wprintw(win, "footer: %d columns", cols);
     148461+    wprintw(win, "footer: window %p, %d columns", win, cols);
     148462     wnoutrefresh(win);
     148463     return OK;
     148464 }
     148465@@ -6007,7 +6212,7 @@
     148466     wbkgd(win, A_REVERSE);
     148467     werase(win);
     148468     wmove(win, 0, 0);
     148469-    wprintw(win, "header: %d columns", cols);
     148470+    wprintw(win, "header: window %p, %d columns", win, cols);
     148471     wnoutrefresh(win);
     148472     return OK;
     148473 }
     148474@@ -6052,9 +6257,12 @@
    134448148475 #endif
    134449148476 #if USE_LIBPANEL
     
    134459148486        (void) puts("r = exercise forms code");
    134460148487 #endif
    134461 @@ -6143,7 +6176,7 @@
     148488@@ -6143,7 +6351,7 @@
    134462148489 
    134463148490     setlocale(LC_ALL, "");
     
    134468148495 #ifdef NCURSES_VERSION
    134469148496        case 'a':
     148497@@ -6246,7 +6454,7 @@
     148498 
     148499        if (can_change_color()) {
     148500            short cp;
     148501-           all_colors = (RGB_DATA *) malloc(max_colors * sizeof(RGB_DATA));
     148502+           all_colors = typeMalloc(RGB_DATA, max_colors);
     148503            for (cp = 0; cp < max_colors; ++cp) {
     148504                color_content(cp,
     148505                              &all_colors[cp].red,
     148506diff -Naur ncurses-5.6.orig/test/newdemo.c ncurses-5.6/test/newdemo.c
     148507--- ncurses-5.6.orig/test/newdemo.c     2006-12-02 19:15:28.000000000 -0500
     148508+++ ncurses-5.6/test/newdemo.c  2008-06-18 06:49:47.000000000 -0400
     148509@@ -2,7 +2,7 @@
     148510  *  newdemo.c  -       A demo program using PDCurses. The program illustrate
     148511  *                     the use of colours for text output.
     148512  *
     148513- * $Id: newdemo.c,v 1.29 2006/12/03 00:15:28 tom Exp $
     148514+ * $Id: newdemo.c,v 1.30 2008/02/09 16:41:29 tom Exp $
     148515  */
     148516 
     148517 #include <test.priv.h>
     148518@@ -12,7 +12,7 @@
     148519 /*
     148520  *  The Australian map
     148521  */
     148522-static const char *AusMap[16] =
     148523+static CONST_MENUS char *AusMap[16] =
     148524 {
     148525     "           A           A ",
     148526     "    N.T. AAAAA       AAAA ",
    134470148527diff -Naur ncurses-5.6.orig/test/programs ncurses-5.6/test/programs
    134471148528--- ncurses-5.6.orig/test/programs      2006-11-04 13:56:49.000000000 -0500
    134472 +++ ncurses-5.6/test/programs   2007-12-21 00:02:36.000000000 -0500
     148529+++ ncurses-5.6/test/programs   2008-06-18 06:49:44.000000000 -0400
    134473148530@@ -1,6 +1,6 @@
    134474148531-# $Id: programs,v 1.5 2006/11/04 18:56:49 tom Exp $
     
    134520148577diff -Naur ncurses-5.6.orig/test/railroad.c ncurses-5.6/test/railroad.c
    134521148578--- ncurses-5.6.orig/test/railroad.c    2006-05-20 12:02:04.000000000 -0400
    134522 +++ ncurses-5.6/test/railroad.c 2007-12-21 00:02:36.000000000 -0500
     148579+++ ncurses-5.6/test/railroad.c 2008-06-18 06:49:47.000000000 -0400
    134523148580@@ -1,5 +1,5 @@
    134524148581 /****************************************************************************
    134525148582- * Copyright (c) 2000-2005,2006 Free Software Foundation, Inc.              *
    134526 + * Copyright (c) 2000-2006,2007 Free Software Foundation, Inc.              *
     148583+ * Copyright (c) 2000-2007,2008 Free Software Foundation, Inc.              *
    134527148584  *                                                                          *
    134528148585  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    134533148590  *
    134534148591- * $Id: railroad.c,v 1.14 2006/05/20 16:02:04 tom Exp $
    134535 + * $Id: railroad.c,v 1.15 2007/02/03 18:51:23 tom Exp $
     148592+ * $Id: railroad.c,v 1.16 2008/02/09 18:08:43 tom Exp $
    134536148593  *
    134537148594  * A simple demo of the termcap interface.
     
    134541148598 
    134542148599 #if HAVE_TGETENT
     148600@@ -55,7 +56,7 @@
     148601 static bool interrupted = FALSE;
     148602 
     148603 static int
     148604-outc(int c)
     148605+outc(TPUTS_ARG c)
     148606 {
     148607     if (interrupted) {
     148608        char tmp = c;
     148609diff -Naur ncurses-5.6.orig/test/rain.c ncurses-5.6/test/rain.c
     148610--- ncurses-5.6.orig/test/rain.c        2006-05-20 11:34:27.000000000 -0400
     148611+++ ncurses-5.6/test/rain.c     2008-06-18 06:49:51.000000000 -0400
     148612@@ -1,5 +1,5 @@
     148613 /****************************************************************************
     148614- * Copyright (c) 1998-2002,2006 Free Software Foundation, Inc.              *
     148615+ * Copyright (c) 1998-2006,2008 Free Software Foundation, Inc.              *
     148616  *                                                                          *
     148617  * Permission is hereby granted, free of charge, to any person obtaining a  *
     148618  * copy of this software and associated documentation files (the            *
     148619@@ -26,20 +26,78 @@
     148620  * authorization.                                                           *
     148621  ****************************************************************************/
     148622 /*
     148623- * $Id: rain.c,v 1.22 2006/05/20 15:34:27 tom Exp $
     148624+ * $Id: rain.c,v 1.34 2008/05/24 23:34:34 tom Exp $
     148625  */
     148626 #include <test.priv.h>
     148627 
     148628 /* rain 11/3/1980 EPS/CITHEP */
     148629 
     148630-static float ranf(void);
     148631-static void onsig(int sig);
     148632+#ifdef USE_PTHREADS
     148633+#include <pthread.h>
     148634+#endif
     148635+
     148636+WANT_USE_WINDOW();
     148637+
     148638+#define MAX_THREADS    10
     148639+#define MAX_DROP       5
     148640+
     148641+struct DATA;
     148642+
     148643+typedef void (*DrawPart) (struct DATA *);
     148644+
     148645+typedef struct DATA {
     148646+    int y, x;
     148647+#ifdef USE_PTHREADS
     148648+    DrawPart func;
     148649+    int state;
     148650+#endif
     148651+} DATA;
     148652+
     148653+#ifdef USE_PTHREADS
     148654+pthread_cond_t cond_next_drop;
     148655+pthread_mutex_t mutex_next_drop;
     148656+static int used_threads;
     148657+
     148658+typedef struct {
     148659+    pthread_t myself;
     148660+    long counter;
     148661+} STATS;
     148662+
     148663+static STATS drop_threads[MAX_THREADS];
     148664+#endif
     148665+
     148666+static void
     148667+onsig(int n GCC_UNUSED)
     148668+{
     148669+    curs_set(1);
     148670+    endwin();
     148671+    ExitProgram(EXIT_FAILURE);
     148672+}
     148673+
     148674+static float
     148675+ranf(void)
     148676+{
     148677+    long r = (rand() & 077777);
     148678+    return ((float) r / 32768.);
     148679+}
     148680+
     148681+static int
     148682+random_x(void)
     148683+{
     148684+    return (((float) (COLS - 4) * ranf()) + 2);
     148685+}
     148686+
     148687+static int
     148688+random_y(void)
     148689+{
     148690+    return (((float) (LINES - 4) * ranf()) + 2);
     148691+}
     148692 
     148693 static int
     148694 next_j(int j)
     148695 {
     148696     if (j == 0)
     148697-       j = 4;
     148698+       j = MAX_DROP - 1;
     148699     else
     148700        --j;
     148701     if (has_colors()) {
     148702@@ -52,15 +110,193 @@
     148703     return j;
     148704 }
     148705 
     148706+static void
     148707+part1(DATA * drop)
     148708+{
     148709+    mvaddch(drop->y, drop->x, '.');
     148710+}
     148711+
     148712+static void
     148713+part2(DATA * drop)
     148714+{
     148715+    mvaddch(drop->y, drop->x, 'o');
     148716+}
     148717+
     148718+static void
     148719+part3(DATA * drop)
     148720+{
     148721+    mvaddch(drop->y, drop->x, 'O');
     148722+}
     148723+
     148724+static void
     148725+part4(DATA * drop)
     148726+{
     148727+    mvaddch(drop->y - 1, drop->x, '-');
     148728+    mvaddstr(drop->y, drop->x - 1, "|.|");
     148729+    mvaddch(drop->y + 1, drop->x, '-');
     148730+}
     148731+
     148732+static void
     148733+part5(DATA * drop)
     148734+{
     148735+    mvaddch(drop->y - 2, drop->x, '-');
     148736+    mvaddstr(drop->y - 1, drop->x - 1, "/ \\");
     148737+    mvaddstr(drop->y, drop->x - 2, "| O |");
     148738+    mvaddstr(drop->y + 1, drop->x - 1, "\\ /");
     148739+    mvaddch(drop->y + 2, drop->x, '-');
     148740+}
     148741+
     148742+static void
     148743+part6(DATA * drop)
     148744+{
     148745+    mvaddch(drop->y - 2, drop->x, ' ');
     148746+    mvaddstr(drop->y - 1, drop->x - 1, "   ");
     148747+    mvaddstr(drop->y, drop->x - 2, "     ");
     148748+    mvaddstr(drop->y + 1, drop->x - 1, "   ");
     148749+    mvaddch(drop->y + 2, drop->x, ' ');
     148750+}
     148751+
     148752+#ifdef USE_PTHREADS
     148753+static void
     148754+napsome(void)
     148755+{
     148756+    napms(60);
     148757+}
     148758+
     148759+/*
     148760+ * This runs inside the use_window() mutex.
     148761+ */
     148762+static int
     148763+really_draw(WINDOW *win, void *arg)
     148764+{
     148765+    DATA *data = (DATA *) arg;
     148766+
     148767+    (void) win;
     148768+    next_j(data->state);
     148769+    data->func(data);
     148770+    refresh();
     148771+    return OK;
     148772+}
     148773+
     148774+static void
     148775+draw_part(void (*func) (DATA *), int state, DATA * data)
     148776+{
     148777+    data->func = func;
     148778+    data->state = state;
     148779+    use_window(stdscr, really_draw, (void *) data);
     148780+    napsome();
     148781+}
     148782+
     148783+/*
     148784+ * Tell the threads that one of them can start work on a new raindrop.
     148785+ * They may all be busy if we're sending requests too rapidly.
     148786+ */
     148787+static int
     148788+put_next_drop(void)
     148789+{
     148790+    pthread_cond_signal(&cond_next_drop);
     148791+    pthread_mutex_unlock(&mutex_next_drop);
     148792+
     148793+    return 0;
     148794+}
     148795+
     148796+/*
     148797+ * Wait until we're assigned the task of drawing a new raindrop.
     148798+ */
     148799+static int
     148800+get_next_drop(void)
     148801+{
     148802+    pthread_mutex_lock(&mutex_next_drop);
     148803+    pthread_cond_wait(&cond_next_drop, &mutex_next_drop);
     148804+
     148805+    return TRUE;
     148806+}
     148807+
     148808+static void *
     148809+draw_drop(void *arg)
     148810+{
     148811+    DATA mydata;
     148812+    int mystats;
     148813+
     148814+    /*
     148815+     * Find myself in the list of threads so we can count the number of loops.
     148816+     */
     148817+    for (mystats = 0; mystats < MAX_THREADS; ++mystats) {
     148818+       if (drop_threads[mystats].myself == pthread_self())
     148819+           break;
     148820+    }
     148821+
     148822+    do {
     148823+       if (mystats < MAX_THREADS)
     148824+           drop_threads[mystats].counter++;
     148825+
     148826+       /*
     148827+        * Make a copy of caller's data.  We're cheating for the cases after
     148828+        * the first loop since we still have a pointer into the main thread
     148829+        * to the data which it uses for setting up this thread (but it has
     148830+        * been modified to use different coordinates).
     148831+        */
     148832+       mydata = *(DATA *) arg;
     148833+
     148834+       draw_part(part1, 0, &mydata);
     148835+       draw_part(part2, 1, &mydata);
     148836+       draw_part(part3, 2, &mydata);
     148837+       draw_part(part4, 3, &mydata);
     148838+       draw_part(part5, 4, &mydata);
     148839+       draw_part(part6, 0, &mydata);
     148840+    } while (get_next_drop());
     148841+
     148842+    return NULL;
     148843+}
     148844+
     148845+/*
     148846+ * The description of pthread_create() is misleading, since it implies that
     148847+ * threads will exit cleanly after their function returns.
     148848+ *
     148849+ * Since they do not (and the number of threads is limited by system
     148850+ * resources), make a limited number of threads, and signal any that are
     148851+ * waiting when we want a thread past that limit.
     148852+ */
     148853+static int
     148854+start_drop(DATA * data)
     148855+{
     148856+    int rc;
     148857+
     148858+    if (!used_threads) {
     148859+       /* mutex and condition for signalling thread */
     148860+       pthread_mutex_init(&mutex_next_drop, NULL);
     148861+       pthread_cond_init(&cond_next_drop, NULL);
     148862+    }
     148863+
     148864+    if (used_threads < MAX_THREADS) {
     148865+       rc = pthread_create(&(drop_threads[used_threads].myself),
     148866+                           NULL,
     148867+                           draw_drop,
     148868+                           data);
     148869+       ++used_threads;
     148870+    } else {
     148871+       rc = put_next_drop();
     148872+    }
     148873+    return rc;
     148874+}
     148875+#endif
     148876+
     148877+static int
     148878+get_input(void)
     148879+{
     148880+    return USING_WINDOW(stdscr, wgetch);
     148881+}
     148882+
     148883 int
     148884-main(
     148885-       int argc GCC_UNUSED,
     148886-       char *argv[]GCC_UNUSED)
     148887-{
     148888-    int x, y, j;
     148889-    static int xpos[5], ypos[5];
     148890-    float r;
     148891-    float c;
     148892+main(int argc GCC_UNUSED,
     148893+     char *argv[]GCC_UNUSED)
     148894+{
     148895+    bool done = FALSE;
     148896+    DATA drop;
     148897+#ifndef USE_PTHREADS
     148898+    DATA last[MAX_DROP];
     148899+#endif
     148900+    int j = 0;
     148901 
     148902     setlocale(LC_ALL, "");
     148903 
     148904@@ -82,52 +318,50 @@
     148905     curs_set(0);
     148906     timeout(0);
     148907 
     148908-    r = (float) (LINES - 4);
     148909-    c = (float) (COLS - 4);
     148910-    for (j = 5; --j >= 0;) {
     148911-       xpos[j] = (int) (c * ranf()) + 2;
     148912-       ypos[j] = (int) (r * ranf()) + 2;
     148913+#ifndef USE_PTHREADS
     148914+    for (j = MAX_DROP; --j >= 0;) {
     148915+       last[j].x = random_x();
     148916+       last[j].y = random_y();
     148917     }
     148918+    j = 0;
     148919+#endif
     148920 
     148921-    for (j = 0;;) {
     148922-       x = (int) (c * ranf()) + 2;
     148923-       y = (int) (r * ranf()) + 2;
     148924-
     148925-       mvaddch(y, x, '.');
     148926+    while (!done) {
     148927+       drop.x = random_x();
     148928+       drop.y = random_y();
     148929+
     148930+#ifdef USE_PTHREADS
     148931+       if (start_drop(&drop) != 0) {
     148932+           beep();
     148933+       }
     148934+#else
     148935+       /*
     148936+        * The non-threaded code draws parts of each drop on each loop.
     148937+        */
     148938+       part1(&drop);
     148939 
     148940-       mvaddch(ypos[j], xpos[j], 'o');
     148941+       part2(&last[j]);
     148942 
     148943        j = next_j(j);
     148944-       mvaddch(ypos[j], xpos[j], 'O');
     148945+       part3(&last[j]);
     148946 
     148947        j = next_j(j);
     148948-       mvaddch(ypos[j] - 1, xpos[j], '-');
     148949-       mvaddstr(ypos[j], xpos[j] - 1, "|.|");
     148950-       mvaddch(ypos[j] + 1, xpos[j], '-');
     148951+       part4(&last[j]);
     148952 
     148953        j = next_j(j);
     148954-       mvaddch(ypos[j] - 2, xpos[j], '-');
     148955-       mvaddstr(ypos[j] - 1, xpos[j] - 1, "/ \\");
     148956-       mvaddstr(ypos[j], xpos[j] - 2, "| O |");
     148957-       mvaddstr(ypos[j] + 1, xpos[j] - 1, "\\ /");
     148958-       mvaddch(ypos[j] + 2, xpos[j], '-');
     148959+       part5(&last[j]);
     148960 
     148961        j = next_j(j);
     148962-       mvaddch(ypos[j] - 2, xpos[j], ' ');
     148963-       mvaddstr(ypos[j] - 1, xpos[j] - 1, "   ");
     148964-       mvaddstr(ypos[j], xpos[j] - 2, "     ");
     148965-       mvaddstr(ypos[j] + 1, xpos[j] - 1, "   ");
     148966-       mvaddch(ypos[j] + 2, xpos[j], ' ');
     148967+       part6(&last[j]);
     148968 
     148969-       xpos[j] = x;
     148970-       ypos[j] = y;
     148971+       last[j] = drop;
     148972+#endif
     148973 
     148974-       switch (getch()) {
     148975+       switch (get_input()) {
     148976        case ('q'):
     148977        case ('Q'):
     148978-           curs_set(1);
     148979-           endwin();
     148980-           ExitProgram(EXIT_SUCCESS);
     148981+           done = TRUE;
     148982+           break;
     148983        case 's':
     148984            nodelay(stdscr, FALSE);
     148985            break;
     148986@@ -136,26 +370,17 @@
     148987            break;
     148988 #ifdef KEY_RESIZE
     148989        case (KEY_RESIZE):
     148990-           r = (float) (LINES - 4);
     148991-           c = (float) (COLS - 4);
     148992            break;
     148993 #endif
     148994        }
     148995        napms(50);
     148996     }
     148997-}
     148998-
     148999-static void
     149000-onsig(int n GCC_UNUSED)
     149001-{
     149002     curs_set(1);
     149003     endwin();
     149004-    ExitProgram(EXIT_FAILURE);
     149005-}
     149006-
     149007-static float
     149008-ranf(void)
     149009-{
     149010-    long r = (rand() & 077777);
     149011-    return ((float) r / 32768.);
     149012+#ifdef USE_PTHREADS
     149013+    printf("Counts per thread:\n");
     149014+    for (j = 0; j < MAX_THREADS; ++j)
     149015+       printf("  %d:%ld\n", j, drop_threads[j].counter);
     149016+#endif
     149017+    ExitProgram(EXIT_SUCCESS);
     149018 }
    134543149019diff -Naur ncurses-5.6.orig/test/redraw.c ncurses-5.6/test/redraw.c
    134544149020--- ncurses-5.6.orig/test/redraw.c      2006-11-04 18:20:27.000000000 -0500
    134545 +++ ncurses-5.6/test/redraw.c   2007-12-21 00:02:36.000000000 -0500
     149021+++ ncurses-5.6/test/redraw.c   2008-06-18 06:49:44.000000000 -0400
    134546149022@@ -1,5 +1,5 @@
    134547149023 /****************************************************************************
     
    134571149047diff -Naur ncurses-5.6.orig/test/savescreen.c ncurses-5.6/test/savescreen.c
    134572149048--- ncurses-5.6.orig/test/savescreen.c  2006-04-01 14:08:03.000000000 -0500
    134573 +++ ncurses-5.6/test/savescreen.c       2007-12-21 00:02:36.000000000 -0500
     149049+++ ncurses-5.6/test/savescreen.c       2008-06-18 06:49:44.000000000 -0400
    134574149050@@ -1,5 +1,5 @@
    134575149051 /****************************************************************************
     
    134884149360diff -Naur ncurses-5.6.orig/test/savescreen.sh ncurses-5.6/test/savescreen.sh
    134885149361--- ncurses-5.6.orig/test/savescreen.sh 1969-12-31 19:00:00.000000000 -0500
    134886 +++ ncurses-5.6/test/savescreen.sh      2007-12-21 00:02:36.000000000 -0500
     149362+++ ncurses-5.6/test/savescreen.sh      2008-06-18 06:49:44.000000000 -0400
    134887149363@@ -0,0 +1,55 @@
    134888149364+#!/bin/sh
     
    134943149419diff -Naur ncurses-5.6.orig/test/test.priv.h ncurses-5.6/test/test.priv.h
    134944149420--- ncurses-5.6.orig/test/test.priv.h   2006-07-15 14:27:24.000000000 -0400
    134945 +++ ncurses-5.6/test/test.priv.h        2007-12-21 00:02:36.000000000 -0500
     149421+++ ncurses-5.6/test/test.priv.h        2008-06-18 06:49:49.000000000 -0400
    134946149422@@ -1,5 +1,5 @@
    134947149423 /****************************************************************************
    134948149424- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    134949 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     149425+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    134950149426  *                                                                          *
    134951149427  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    134956149432  ****************************************************************************/
    134957149433-/* $Id: test.priv.h,v 1.63 2006/07/15 18:27:24 tom Exp $ */
    134958 +/* $Id: test.priv.h,v 1.68 2007/06/30 17:53:09 tom Exp $ */
     149434+/* $Id: test.priv.h,v 1.77 2008/04/12 19:25:48 tom Exp $ */
    134959149435 
    134960149436 #ifndef __TEST_PRIV_H
    134961149437 #define __TEST_PRIV_H 1
    134962 @@ -309,7 +309,7 @@
     149438@@ -59,6 +59,14 @@
     149439 #define HAVE_CURSES_VERSION 0
     149440 #endif
     149441 
     149442+#ifndef HAVE_CHGAT
     149443+#define HAVE_CHGAT 0
     149444+#endif
     149445+
     149446+#ifndef HAVE_COLOR_SET
     149447+#define HAVE_COLOR_SET 0
     149448+#endif
     149449+
     149450 #ifndef HAVE_FILTER
     149451 #define HAVE_FILTER 0
     149452 #endif
     149453@@ -83,6 +91,10 @@
     149454 #define HAVE_GETOPT_H 0
     149455 #endif
     149456 
     149457+#ifndef HAVE_GETPARX
     149458+#define HAVE_GETPARX 0
     149459+#endif
     149460+
     149461 #ifndef HAVE_GETWIN
     149462 #define HAVE_GETWIN 0
     149463 #endif
     149464@@ -235,9 +247,18 @@
     149465 #include <term.h>
     149466 #endif
     149467 
     149468-#ifdef NCURSES_VERSION
     149469-#define HAVE_COLOR_SET 1
     149470-#define HAVE_CHGAT 1
     149471+/*
     149472+ * Not all curses.h implementations include unctrl.h,
     149473+ * Solaris 10 xpg4 for example.
     149474+ */
     149475+#if defined(NCURSES_VERSION) || defined(_XOPEN_CURSES)
     149476+#if defined(HAVE_NCURSESW_NCURSES_H)
     149477+#include <ncursesw/unctrl.h>
     149478+#elif defined(HAVE_NCURSES_NCURSES_H)
     149479+#include <ncurses/unctrl.h>
     149480+#else
     149481+#include <unctrl.h>
     149482+#endif
     149483 #endif
     149484 
     149485 #if HAVE_GETOPT_H
     149486@@ -308,8 +329,8 @@
     149487 #endif
    134963149488 
    134964149489 #ifndef HAVE_TYPE_ATTR_T
    134965  #if !USE_WIDEC_SUPPORT
     149490-#if !USE_WIDEC_SUPPORT
    134966149491-#define attr_t long
     149492+#if !USE_WIDEC_SUPPORT && !defined(attr_t)
    134967149493+#define attr_t chtype
    134968149494 #endif
    134969149495 #endif
    134970149496 
    134971 @@ -320,6 +320,10 @@
     149497@@ -320,13 +341,16 @@
    134972149498 #define NCURSES_CH_T cchar_t
    134973149499 #endif
     
    134980149506 #define CCHARW_MAX 5
    134981149507 #endif
    134982 @@ -404,6 +408,10 @@
     149508 
     149509-#ifndef CTRL
     149510-#define CTRL(x)                ((x) & 0x1f)
     149511-#endif
     149512+#undef CTRL
     149513+#define CTRL(x)        ((x) & 0x1f)
     149514 
     149515 #define QUIT           CTRL('Q')
     149516 #define ESCAPE         CTRL('[')
     149517@@ -367,6 +391,21 @@
     149518 #define getmaxy(win)            ((win)?((win)->_maxy + 1):ERR)
     149519 #endif
     149520 
     149521+/*
     149522+ * Solaris 10 xpg4:
     149523+#define        __m_getparx(w)          ((w)->_parent == (WINDOW *) 0 ? -1 \
     149524+                               : (w)->_begx - (w)->_parent->_begx)
     149525+ */
     149526+#if !defined(getparx) && !HAVE_GETPARX
     149527+#ifdef __m_getparx
     149528+#define getparx(win)            __m_getparx(win)
     149529+#define getpary(win)            __m_getpary(win)
     149530+#else
     149531+#define getparx(win)            ((win)?((win)->_parx + 1):ERR)
     149532+#define getpary(win)            ((win)?((win)->_pary + 1):ERR)
     149533+#endif
     149534+#endif
     149535+
     149536 #if !defined(mvwvline) && !HAVE_MVWVLINE
     149537 #define mvwvline(w,y,x,ch,n)    (move(y,x) == ERR ? ERR : wvline(w,ch,n))
     149538 #define mvwhline(w,y,x,ch,n)    (move(y,x) == ERR ? ERR : whline(w,ch,n))
     149539@@ -404,8 +443,13 @@
    134983149540 
    134984149541 #if defined(NCURSES_VERSION) && HAVE_NC_ALLOC_H
     
    134990149547 #else
    134991149548 #define typeMalloc(type,n) (type *) malloc((n) * sizeof(type))
     149549+#define typeCalloc(type,elts) (type *) calloc((elts), sizeof(type))
    134992149550 #define typeRealloc(type,n,p) (type *) realloc(p, (n) * sizeof(type))
     149551 #endif
     149552 
     149553@@ -451,4 +495,79 @@
     149554                        signal(nsig, handler); \
     149555            }
     149556 
     149557+/*
     149558+ * Workaround for clean(er) compile with Solaris's legacy curses.
     149559+ * The same would be needed for HPUX 10.20
     149560+ */
     149561+#ifndef TPUTS_ARG
     149562+#if defined(sun) && !defined(_XOPEN_CURSES) && !defined(NCURSES_VERSION_PATCH)
     149563+#define TPUTS_ARG char
     149564+extern char *tgoto(char *, int, int);  /* available, but not prototyped */
     149565+#else
     149566+#define TPUTS_ARG int
     149567+#endif
     149568+#endif
     149569+
     149570+/*
     149571+ * Workarounds for Solaris's X/Open curses
     149572+ */
     149573+#if defined(sun) && defined(_XOPEN_CURSES) && !defined(NCURSES_VERSION_PATCH)
     149574+#if !defined(KEY_MIN) && defined(__KEY_MIN)
     149575+#define KEY_MIN __KEY_MIN
     149576+#endif
     149577+#if !defined(KEY_MAX) && defined(__KEY_MIN)
     149578+#define KEY_MAX __KEY_MAX
     149579+#endif
     149580+#endif
     149581+
     149582+/*
     149583+ * ncurses uses const in some places where X/Open does (or did) not allow.
     149584+ */
     149585+#ifdef NCURSES_VERSION
     149586+#define CONST_MENUS const
     149587+#else
     149588+#define CONST_MENUS /* nothing */
     149589+#endif
     149590+
     149591+#ifndef HAVE_USE_WINDOW
     149592+#if !defined(NCURSES_VERSION_PATCH) || (NCURSES_VERSION_PATCH < 20070915) || !NCURSES_EXT_FUNCS
     149593+#define HAVE_USE_WINDOW 0
     149594+#else
     149595+#define HAVE_USE_WINDOW 1
     149596+#endif
     149597+#endif
     149598+
     149599+/*
     149600+ * Simplify setting up demo of threading with these macros.
     149601+ */
     149602+
     149603+#if !HAVE_USE_WINDOW
     149604+typedef int (*NCURSES_WINDOW_CB)(WINDOW *, void *);
     149605+typedef int (*NCURSES_SCREEN_CB)(SCREEN *, void *);
     149606+#endif
     149607+
     149608+#if HAVE_USE_WINDOW
     149609+#define USING_WINDOW(w,func) use_window(w, (NCURSES_WINDOW_CB) func, w)
     149610+#define WANT_USE_WINDOW() extern void _nc_want_use_window(void)
     149611+#else
     149612+#define USING_WINDOW(w,func) func(w)
     149613+#define WANT_USE_WINDOW() extern void _nc_want_use_window(void)
     149614+#endif
     149615+
     149616+#if HAVE_USE_WINDOW
     149617+#define USING_SCREEN(s,func,data) use_screen(s, (NCURSES_SCREEN_CB) func, data)
     149618+#define WANT_USE_SCREEN() extern void _nc_want_use_screen(void)
     149619+#else
     149620+#define USING_SCREEN(s,func,data) func(data)
     149621+#define WANT_USE_SCREEN() extern void _nc_want_use_screen(void)
     149622+#endif
     149623+
     149624+#ifdef TRACE
     149625+#define Trace(p) _tracef p
     149626+#define USE_TRACE 1
     149627+#else
     149628+#define Trace(p)               /* nothing */
     149629+#define USE_TRACE 0
     149630+#endif
     149631+
     149632 #endif /* __TEST_PRIV_H */
    134993149633diff -Naur ncurses-5.6.orig/test/test_arrays.c ncurses-5.6/test/test_arrays.c
    134994149634--- ncurses-5.6.orig/test/test_arrays.c 1969-12-31 19:00:00.000000000 -0500
    134995 +++ ncurses-5.6/test/test_arrays.c      2007-12-21 00:02:36.000000000 -0500
    134996 @@ -0,0 +1,79 @@
     149635+++ ncurses-5.6/test/test_arrays.c      2008-06-18 06:49:47.000000000 -0400
     149636@@ -0,0 +1,90 @@
    134997149637+/****************************************************************************
    134998 + * Copyright (c) 2007 Free Software Foundation, Inc.                        *
     149638+ * Copyright (c) 2007,2008 Free Software Foundation, Inc.                   *
    134999149639+ *                                                                          *
    135000149640+ * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    135023149663+ ****************************************************************************/
    135024149664+/*
    135025 + * $Id: test_arrays.c,v 1.2 2007/09/01 20:11:57 tom Exp $
     149665+ * $Id: test_arrays.c,v 1.3 2008/02/09 18:09:43 tom Exp $
    135026149666+ *
    135027149667+ * Author: Thomas E Dickey
     
    135044149684+#include <test.priv.h>
    135045149685+
     149686+#if defined(NCURSES_VERSION) || !defined(_XOPEN_CURSES)
     149687+
    135046149688+#define DUMP(name) dump_array(#name, name)
    135047149689+
     
    135074149716+    ExitProgram(EXIT_SUCCESS);
    135075149717+}
     149718+
     149719+#else
     149720+int
     149721+main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
     149722+{
     149723+    printf("This program requires the terminfo arrays\n");
     149724+    ExitProgram(EXIT_FAILURE);
     149725+}
     149726+#endif
    135076149727diff -Naur ncurses-5.6.orig/test/test_get_wstr.c ncurses-5.6/test/test_get_wstr.c
    135077149728--- ncurses-5.6.orig/test/test_get_wstr.c       1969-12-31 19:00:00.000000000 -0500
    135078 +++ ncurses-5.6/test/test_get_wstr.c    2007-12-21 00:02:36.000000000 -0500
     149729+++ ncurses-5.6/test/test_get_wstr.c    2008-06-18 06:49:44.000000000 -0400
    135079149730@@ -0,0 +1,361 @@
    135080149731+/****************************************************************************
     
    135441150092diff -Naur ncurses-5.6.orig/test/test_getstr.c ncurses-5.6/test/test_getstr.c
    135442150093--- ncurses-5.6.orig/test/test_getstr.c 1969-12-31 19:00:00.000000000 -0500
    135443 +++ ncurses-5.6/test/test_getstr.c      2007-12-21 00:02:36.000000000 -0500
    135444 @@ -0,0 +1,351 @@
     150094+++ ncurses-5.6/test/test_getstr.c      2008-06-18 06:49:47.000000000 -0400
     150095@@ -0,0 +1,363 @@
    135445150096+/****************************************************************************
    135446 + * Copyright (c) 2007 Free Software Foundation, Inc.                        *
     150097+ * Copyright (c) 2007,2008 Free Software Foundation, Inc.                   *
    135447150098+ *                                                                          *
    135448150099+ * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    135471150122+ ****************************************************************************/
    135472150123+/*
    135473 + * $Id: test_getstr.c,v 1.7 2007/08/11 16:56:25 tom Exp $
     150124+ * $Id: test_getstr.c,v 1.8 2008/02/09 18:09:35 tom Exp $
    135474150125+ *
    135475150126+ * Author: Thomas E Dickey
     
    135488150139+
    135489150140+#include <test.priv.h>
     150141+
     150142+#if HAVE_CHGAT
     150143+/* Solaris SVr4 curses lacks wchgat, mvgetnstr, mvwgetnstr */
    135490150144+
    135491150145+#define BASE_Y 6
     
    135794150448+    ExitProgram(EXIT_SUCCESS);
    135795150449+}
     150450+
     150451+#else
     150452+int
     150453+main(void)
     150454+{
     150455+    printf("This program requires the curses chgat function\n");
     150456+    ExitProgram(EXIT_FAILURE);
     150457+}
     150458+#endif
    135796150459diff -Naur ncurses-5.6.orig/test/test_instr.c ncurses-5.6/test/test_instr.c
    135797150460--- ncurses-5.6.orig/test/test_instr.c  1969-12-31 19:00:00.000000000 -0500
    135798 +++ ncurses-5.6/test/test_instr.c       2007-12-21 00:02:36.000000000 -0500
     150461+++ ncurses-5.6/test/test_instr.c       2008-06-18 06:49:44.000000000 -0400
    135799150462@@ -0,0 +1,260 @@
    135800150463+/****************************************************************************
     
    136060150723diff -Naur ncurses-5.6.orig/test/test_inwstr.c ncurses-5.6/test/test_inwstr.c
    136061150724--- ncurses-5.6.orig/test/test_inwstr.c 1969-12-31 19:00:00.000000000 -0500
    136062 +++ ncurses-5.6/test/test_inwstr.c      2007-12-21 00:02:36.000000000 -0500
     150725+++ ncurses-5.6/test/test_inwstr.c      2008-06-18 06:49:44.000000000 -0400
    136063150726@@ -0,0 +1,269 @@
    136064150727+/****************************************************************************
     
    136333150996diff -Naur ncurses-5.6.orig/test/test_opaque.c ncurses-5.6/test/test_opaque.c
    136334150997--- ncurses-5.6.orig/test/test_opaque.c 1969-12-31 19:00:00.000000000 -0500
    136335 +++ ncurses-5.6/test/test_opaque.c      2007-12-21 00:02:36.000000000 -0500
    136336 @@ -0,0 +1,421 @@
     150998+++ ncurses-5.6/test/test_opaque.c      2008-06-18 06:49:49.000000000 -0400
     150999@@ -0,0 +1,474 @@
    136337151000+/****************************************************************************
    136338 + * Copyright (c) 2007 Free Software Foundation, Inc.                        *
     151001+ * Copyright (c) 2007,2008 Free Software Foundation, Inc.                   *
    136339151002+ *                                                                          *
    136340151003+ * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    136363151026+ ****************************************************************************/
    136364151027+/*
    136365 + * $Id: test_opaque.c,v 1.4 2007/08/18 17:51:51 tom Exp $
     151028+ * $Id: test_opaque.c,v 1.6 2008/04/05 18:03:57 tom Exp $
    136366151029+ *
    136367151030+ * Author: Thomas E Dickey
     
    136387151050+#define BASE_Y 6
    136388151051+#define MAX_COLS 1024
     151052+
     151053+#if defined(NCURSES_VERSION_PATCH) && (NCURSES_VERSION_PATCH >= 20080119) && NCURSES_EXT_FUNCS
    136389151054+
    136390151055+static bool
     
    136658151323+           case ' ':
    136659151324+               bool_funcs[active].func(txtwin,
    136660 +                                                                        !bool_funcs[active].func(txtwin, -1));
     151325+                                       !bool_funcs[active].func(txtwin, -1));
    136661151326+               break;
    136662151327+           default:
     
    136729151394+}
    136730151395+
     151396+static void
     151397+test_set_escdelay(void)
     151398+{
     151399+    set_escdelay((100 + ESCDELAY) / 2);
     151400+}
     151401+
     151402+static void
     151403+test_set_tabsize(void)
     151404+{
     151405+    int y0, x0;
     151406+    int y, x;
     151407+    int save_tabsize = TABSIZE;
     151408+    bool done = FALSE;
     151409+
     151410+    (void) cbreak();           /* take input chars one at a time, no wait for \n */
     151411+    (void) noecho();           /* don't echo input */
     151412+
     151413+    for (y = 0; y < LINES; ++y) {
     151414+       set_tabsize(y + 1);
     151415+       if (move(y, 0) == ERR)
     151416+           break;
     151417+       for (x = 0; x < COLS;) {
     151418+           addch('\t');
     151419+           if (addch('*') == ERR) {
     151420+               done = TRUE;
     151421+               break;
     151422+           }
     151423+           getyx(stdscr, y0, x0);
     151424+           if (y0 != y || x0 == x) {
     151425+               done = TRUE;
     151426+               break;
     151427+           }
     151428+       }
     151429+    }
     151430+    getch();
     151431+    erase();
     151432+
     151433+    set_tabsize(save_tabsize);
     151434+}
     151435+
    136731151436+int
    136732151437+main(int argc, char *argv[])
     
    136744151449+    initscr();
    136745151450+
     151451+    test_set_escdelay();
     151452+    test_set_tabsize();
     151453+
    136746151454+    stsbox = derwin(stdscr, BASE_Y, COLS, 0, 0);
    136747151455+    box(stsbox, 0, 0);
     
    136756151464+    ExitProgram(EXIT_SUCCESS);
    136757151465+}
     151466+#else
     151467+int
     151468+main(void)
     151469+{
     151470+    printf("This program requires the ncurses library\n");
     151471+    ExitProgram(EXIT_FAILURE);
     151472+}
     151473+#endif
     151474diff -Naur ncurses-5.6.orig/test/testcurs.c ncurses-5.6/test/testcurs.c
     151475--- ncurses-5.6.orig/test/testcurs.c    2005-12-31 15:23:09.000000000 -0500
     151476+++ ncurses-5.6/test/testcurs.c 2008-06-18 06:49:49.000000000 -0400
     151477@@ -7,7 +7,7 @@
     151478  *  wrs(5/28/93) -- modified to be consistent (perform identically) with either
     151479  *                  PDCurses or under Unix System V, R4
     151480  *
     151481- * $Id: testcurs.c,v 1.37 2005/12/31 20:23:09 tom Exp $
     151482+ * $Id: testcurs.c,v 1.38 2008/04/12 22:00:27 tom Exp $
     151483  */
     151484 
     151485 #include <test.priv.h>
     151486@@ -51,7 +51,7 @@
     151487 static char *
     151488 strdup(char *s)
     151489 {
     151490-    char *p = (char *) malloc(strlen(s) + 1);
     151491+    char *p = typeMalloc(char, strlen(s) + 1);
     151492     if (p)
     151493        strcpy(p, s);
     151494     return (p);
    136758151495diff -Naur ncurses-5.6.orig/test/view.c ncurses-5.6/test/view.c
    136759151496--- ncurses-5.6.orig/test/view.c        2006-05-20 11:37:03.000000000 -0400
    136760 +++ ncurses-5.6/test/view.c     2007-12-21 00:02:36.000000000 -0500
     151497+++ ncurses-5.6/test/view.c     2008-06-18 06:49:46.000000000 -0400
    136761151498@@ -1,5 +1,5 @@
    136762151499 /****************************************************************************
    136763151500- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    136764 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     151501+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    136765151502  *                                                                          *
    136766151503  * Permission is hereby granted, free of charge, to any person obtaining a  *
     
    136771151508  *
    136772151509- * $Id: view.c,v 1.64 2006/05/20 15:37:03 tom Exp $
    136773 + * $Id: view.c,v 1.66 2007/07/21 17:41:55 tom Exp $
     151510+ * $Id: view.c,v 1.67 2008/01/19 21:01:21 tom Exp $
    136774151511  */
    136775151512 
     
    136802151539 
    136803151540        case 'h':
     151541@@ -512,6 +512,7 @@
     151542     i = strlen(temp);
     151543     sprintf(temp + i, "view %.*s", (int) (sizeof(temp) - 7 - i), fname);
     151544 #else
     151545+    (void) tag;
     151546     sprintf(temp, "view %.*s", (int) sizeof(temp) - 7, fname);
     151547 #endif
     151548     move(0, 0);
    136804151549diff -Naur ncurses-5.6.orig/test/worm.c ncurses-5.6/test/worm.c
    136805151550--- ncurses-5.6.orig/test/worm.c        2006-07-01 18:57:24.000000000 -0400
    136806 +++ ncurses-5.6/test/worm.c     2007-12-21 00:02:36.000000000 -0500
     151551+++ ncurses-5.6/test/worm.c     2008-06-18 06:49:48.000000000 -0400
    136807151552@@ -1,5 +1,5 @@
    136808151553 /****************************************************************************
    136809151554- * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
    136810 + * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc.              *
     151555+ * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc.              *
    136811151556  *                                                                          *
    136812151557  * Permission is hereby granted, free of charge, to any person obtaining a  *
    136813151558  * copy of this software and associated documentation files (the            *
    136814 @@ -61,11 +61,15 @@
     151559@@ -61,11 +61,20 @@
    136815151560   traces will be dumped.  The program stops and waits for one character of
    136816151561   input at the beginning and end of the interval.
    136817151562 
    136818151563-  $Id: worm.c,v 1.41 2006/07/01 22:57:24 tom Exp $
    136819 +  $Id: worm.c,v 1.49 2007/09/29 17:35:57 tom Exp $
     151564+  $Id: worm.c,v 1.57 2008/03/02 01:43:35 tom Exp $
    136820151565 */
    136821151566 
     
    136826151571+#endif
    136827151572+
     151573+WANT_USE_WINDOW();
     151574+
     151575+#define MAX_WORMS      40
     151576+#define MAX_LENGTH     1024
     151577+
    136828151578 static chtype flavor[] =
    136829151579 {
    136830151580     'O', '*', '#', '$', '%', '0', '@',
    136831 @@ -77,17 +81,27 @@
     151581@@ -77,17 +86,32 @@
    136832151582 {
    136833151583     -1, 0, 1, 1, 1, 0, -1, -1
     
    136849151599+} WORM;
    136850151600+
    136851 +static WORM worm[40];
     151601+static unsigned long sequence = 0;
     151602+static bool quitting = FALSE;
     151603+
     151604+static WORM worm[MAX_WORMS];
    136852151605+static short **refs;
     151606+static int last_x, last_y;
    136853151607 
    136854151608 static const char *field;
     
    136856151610 static chtype trail = ' ';
    136857151611 
     151612+static unsigned pending;
    136858151613 #ifdef TRACE
    136859151614-static int generation, trace_start, trace_end, singlestep;
     
    136862151617 /* *INDENT-OFF* */
    136863151618 static const struct options {
    136864 @@ -200,15 +214,147 @@
     151619@@ -180,8 +204,7 @@
     151620 static void
     151621 cleanup(void)
     151622 {
     151623-    standend();
     151624-    refresh();
     151625+    USING_WINDOW(stdscr, wrefresh);
     151626     curs_set(1);
     151627     endwin();
     151628 }
     151629@@ -200,17 +223,191 @@
    136865151630     return ((float) r / 32768.);
    136866151631 }
     
    136871151636+    WORM *w = (WORM *) data;
    136872151637+    const struct options *op;
     151638+    unsigned mask = ~(1 << (w - worm));
     151639+    chtype attrs = w->attrs | ((mask & pending) ? A_REVERSE : 0);
    136873151640+
    136874151641+    int x;
     
    136876151643+    int h;
    136877151644+
    136878 +    int bottom = LINES - 1;
    136879 +    int last = COLS - 1;
    136880 +
    136881151645+    bool done = FALSE;
    136882151646+
    136883151647+    if ((x = w->xpos[h = w->head]) < 0) {
    136884 +       wmove(win, y = w->ypos[h] = bottom, x = w->xpos[h] = 0);
    136885 +       waddch(win, w->attrs);
     151648+       wmove(win, y = w->ypos[h] = last_y, x = w->xpos[h] = 0);
     151649+       waddch(win, attrs);
    136886151650+       refs[y][x]++;
    136887151651+    } else {
     
    136889151653+    }
    136890151654+
    136891 +    if (x > last)
    136892 +       x = last;
    136893 +    if (y > bottom)
    136894 +       y = bottom;
     151655+    if (x > last_x)
     151656+       x = last_x;
     151657+    if (y > last_y)
     151658+       y = last_y;
    136895151659+
    136896151660+    if (++h == length)
     
    136912151676+          ? (y == 0
    136913151677+             ? upleft
    136914 +             : (y == bottom
     151678+             : (y == last_y
    136915151679+                ? lowleft
    136916151680+                : left))
    136917 +          : (x == last
     151681+          : (x == last_x
    136918151682+             ? (y == 0
    136919151683+                ? upright
    136920 +                : (y == bottom
     151684+                : (y == last_y
    136921151685+                   ? lowright
    136922151686+                   : right))
    136923151687+             : (y == 0
    136924151688+                ? upper
    136925 +                : (y == bottom
     151689+                : (y == last_y
    136926151690+                   ? lower
    136927151691+                   : normal))))[w->orientation];
     
    136946151710+       if (y < 0)
    136947151711+           y = 0;
    136948 +       waddch(win, w->attrs);
     151712+       waddch(win, attrs);
    136949151713+
    136950151714+       w->ypos[h] = y;
     
    136956151720+}
    136957151721+
    136958 +#if !defined(NCURSES_VERSION_PATCH) || (NCURSES_VERSION_PATCH < 20070915)
    136959 +static int
    136960 +use_window(WINDOW *win, int (*func) (WINDOW *, void *), void *data)
     151722+#ifdef USE_PTHREADS
     151723+static bool
     151724+quit_worm(int bitnum)
    136961151725+{
    136962 +    return func(win, data);
     151726+    pending |= (1 << bitnum);
     151727+    napms(10);                 /* let the other thread(s) have a chance */
     151728+    pending &= ~(1 << bitnum);
     151729+    return quitting;
    136963151730+}
    136964 +#endif
    136965 +
    136966 +#ifdef USE_PTHREADS
     151731+
    136967151732+static void *
    136968151733+start_worm(void *arg)
    136969151734+{
    136970 +    for (;;) {
    136971 +       napms(20);
    136972 +       use_window(stdscr, draw_worm, arg);
     151735+    unsigned long compare = 0;
     151736+    Trace(("start_worm"));
     151737+    while (!quit_worm(((struct worm *) arg) - worm)) {
     151738+       while (compare < sequence) {
     151739+           ++compare;
     151740+           use_window(stdscr, draw_worm, arg);
     151741+       }
    136973151742+    }
     151743+    Trace(("...start_worm (done)"));
    136974151744+    return NULL;
    136975151745+}
     
    137001151771+}
    137002151772+
     151773+static int
     151774+get_input(void)
     151775+{
     151776+    int ch;
     151777+    ch = USING_WINDOW(stdscr, wgetch);
     151778+    return ch;
     151779+}
     151780+
     151781+#ifdef KEY_RESIZE
     151782+static int
     151783+update_refs(WINDOW *win)
     151784+{
     151785+    int x, y;
     151786+
     151787+    (void) win;
     151788+    if (last_x != COLS - 1) {
     151789+       for (y = 0; y <= last_y; y++) {
     151790+           refs[y] = typeRealloc(short, COLS, refs[y]);
     151791+           for (x = last_x + 1; x < COLS; x++)
     151792+               refs[y][x] = 0;
     151793+       }
     151794+       last_x = COLS - 1;
     151795+    }
     151796+    if (last_y != LINES - 1) {
     151797+       for (y = LINES; y <= last_y; y++)
     151798+           free(refs[y]);
     151799+       refs = typeRealloc(short *, LINES, refs);
     151800+       for (y = last_y + 1; y < LINES; y++) {
     151801+           refs[y] = typeMalloc(short, COLS);
     151802+           for (x = 0; x < COLS; x++)
     151803+               refs[y][x] = 0;
     151804+       }
     151805+       last_y = LINES - 1;
     151806+    }
     151807+    return OK;
     151808+}
     151809+#endif
     151810+
    137003151811 int
    137004151812 main(int argc, char *argv[])
     
    137011151819-    int h;
    137012151820     short *ip;
    137013      int last, bottom;
     151821-    int last, bottom;
    137014151822     bool done = FALSE;
    137015 @@ -244,9 +390,6 @@
     151823 
     151824     setlocale(LC_ALL, "");
     151825@@ -227,7 +424,7 @@
     151826        case 'l':
     151827            if (++x == argc)
     151828                goto usage;
     151829-           if ((length = atoi(argv[x])) < 2 || length > 1024) {
     151830+           if ((length = atoi(argv[x])) < 2 || length > MAX_LENGTH) {
     151831                fprintf(stderr, "%s: Invalid length\n", *argv);
     151832                ExitProgram(EXIT_FAILURE);
     151833            }
     151834@@ -235,7 +432,7 @@
     151835        case 'n':
     151836            if (++x == argc)
     151837                goto usage;
     151838-           if ((number = atoi(argv[x])) < 1 || number > 40) {
     151839+           if ((number = atoi(argv[x])) < 1 || number > MAX_WORMS) {
     151840                fprintf(stderr, "%s: Invalid number of worms\n", *argv);
     151841                ExitProgram(EXIT_FAILURE);
     151842            }
     151843@@ -244,9 +441,6 @@
    137016151844            trail = '.';
    137017151845            break;
     
    137023151851            trace_start = atoi(argv[++x]);
    137024151852            trace_end = atoi(argv[++x]);
    137025 @@ -297,21 +440,24 @@
     151853@@ -271,8 +465,8 @@
     151854 
     151855     curs_set(0);
     151856 
     151857-    bottom = LINES - 1;
     151858-    last = COLS - 1;
     151859+    last_y = LINES - 1;
     151860+    last_x = COLS - 1;
     151861 
     151862 #ifdef A_COLOR
     151863     if (has_colors()) {
     151864@@ -297,21 +491,24 @@
    137026151865     }
    137027151866 #endif /* A_COLOR */
     
    137041151880     /* if addressing the lower right corner doesn't work in your curses */
    137042151881-    ref[bottom][last] = 1;
    137043 +    refs[bottom][last] = 1;
     151882+    refs[last_y][last_x] = 1;
    137044151883 #endif /* BADCORNER */
    137045151884 
     
    137053151892            fprintf(stderr, "%s: out of memory\n", *argv);
    137054151893            ExitProgram(EXIT_FAILURE);
    137055 @@ -340,48 +486,43 @@
     151894@@ -330,7 +527,7 @@
     151895     if (field) {
     151896        const char *p;
     151897        p = field;
     151898-       for (y = bottom; --y >= 0;) {
     151899+       for (y = last_y; --y >= 0;) {
     151900            for (x = COLS; --x >= 0;) {
     151901                addch((chtype) (*p++));
     151902                if (!*p)
     151903@@ -338,60 +535,40 @@
     151904            }
     151905        }
    137056151906     }
    137057      napms(10);
    137058      refresh();
     151907-    napms(10);
     151908-    refresh();
    137059151909-#ifndef TRACE
     151910+    USING_WINDOW(stdscr, wrefresh);
    137060151911     nodelay(stdscr, TRUE);
    137061151912-#endif
     
    137071151922-               getch();
    137072151923-           }
    137073 -
     151924+       int ch;
     151925 
    137074151926-           if (singlestep && generation > trace_start && generation < trace_end)
    137075151927-               getch();
    137076 -
    137077 -           generation++;
    137078 -       }
    137079 -#else
    137080         int ch;
    137081  
    137082         if ((ch = getch()) > 0) {
     151928+       ++sequence;
     151929+       if ((ch = get_input()) > 0) {
    137083151930+#ifdef TRACE
    137084151931+           if (trace_start || trace_end) {
    137085151932+               if (generation == trace_start) {
    137086151933+                   trace(TRACE_CALLS);
    137087 +                   getch();
     151934+                   get_input();
    137088151935+               } else if (generation == trace_end) {
    137089151936+                   trace(0);
    137090 +                   getch();
     151937+                   get_input();
    137091151938+               }
    137092 +
     151939 
     151940-           generation++;
     151941-       }
     151942-#else
     151943-       int ch;
    137093151944+               generation++;
    137094151945+           }
    137095151946+#endif
     151947 
     151948-       if ((ch = getch()) > 0) {
    137096151949 #ifdef KEY_RESIZE
    137097151950            if (ch == KEY_RESIZE) {
    137098                 if (last != COLS - 1) {
    137099                     for (y = 0; y <= bottom; y++) {
     151951-               if (last != COLS - 1) {
     151952-                   for (y = 0; y <= bottom; y++) {
    137100151953-                       ref[y] = typeRealloc(short, COLS, ref[y]);
    137101 +                       refs[y] = typeRealloc(short, COLS, refs[y]);
    137102                         for (x = last + 1; x < COLS; x++)
     151954-                       for (x = last + 1; x < COLS; x++)
    137103151955-                           ref[y][x] = 0;
    137104 +                           refs[y][x] = 0;
    137105                     }
    137106                     last = COLS - 1;
    137107                 }
    137108                 if (bottom != LINES - 1) {
    137109                     for (y = LINES; y <= bottom; y++)
     151956-                   }
     151957-                   last = COLS - 1;
     151958-               }
     151959-               if (bottom != LINES - 1) {
     151960-                   for (y = LINES; y <= bottom; y++)
    137110151961-                       free(ref[y]);
    137111151962-                   ref = typeRealloc(short *, LINES, ref);
    137112 +                       free(refs[y]);
    137113 +                   refs = typeRealloc(short *, LINES, refs);
    137114                     for (y = bottom + 1; y < LINES; y++) {
     151963-                   for (y = bottom + 1; y < LINES; y++) {
    137115151964-                       ref[y] = typeMalloc(short, COLS);
    137116 +                       refs[y] = typeMalloc(short, COLS);
    137117                         for (x = 0; x < COLS; x++)
     151965-                       for (x = 0; x < COLS; x++)
    137118151966-                           ref[y][x] = 0;
    137119 +                           refs[y][x] = 0;
    137120                     }
    137121                     bottom = LINES - 1;
    137122                 }
    137123 @@ -400,55 +541,8 @@
     151967-                   }
     151968-                   bottom = LINES - 1;
     151969-               }
     151970+               USING_WINDOW(stdscr, update_refs);
     151971            }
     151972 #endif
     151973+
     151974            /*
     151975             * Make it simple to put this into single-step mode, or resume
     151976             * normal operation -T.Dickey
     151977             */
     151978            if (ch == 'q') {
     151979+               quitting = TRUE;
     151980                done = TRUE;
     151981                continue;
     151982            } else if (ch == 's') {
     151983@@ -400,69 +577,32 @@
    137124151984                nodelay(stdscr, TRUE);
    137125151985            }
     
    137176152036+       done = draw_all_worms();
    137177152037        napms(10);
    137178         refresh();
     152038-       refresh();
     152039+       USING_WINDOW(stdscr, wrefresh);
    137179152040     }
    137180 @@ -456,9 +550,9 @@
     152041 
     152042+    Trace(("Cleanup"));
    137181152043     cleanup();
    137182152044 #ifdef NO_LEAKS
     
    137190152052        free(w->xpos);
    137191152053        free(w->ypos);
     152054     }
     152055 #endif
     152056+#ifdef USE_PTHREADS
     152057+    /*
     152058+     * Do this just in case one of the threads did not really exit.
     152059+     */
     152060+    Trace(("join all threads"));
     152061+    for (n = 0; n < number; n++) {
     152062+       pthread_join(worm[n].thread, NULL);
     152063+    }
     152064+#endif
     152065     ExitProgram(EXIT_SUCCESS);
     152066 }
     152067diff -Naur ncurses-5.6.orig/test/xmas.c ncurses-5.6/test/xmas.c
     152068--- ncurses-5.6.orig/test/xmas.c        2006-05-20 11:35:47.000000000 -0400
     152069+++ ncurses-5.6/test/xmas.c     2008-06-18 06:49:49.000000000 -0400
     152070@@ -92,7 +92,7 @@
     152071 /******************************************************************************/
     152072 
     152073 /*
     152074- * $Id: xmas.c,v 1.22 2006/05/20 15:35:47 tom Exp $
     152075+ * $Id: xmas.c,v 1.23 2008/04/12 22:05:04 tom Exp $
     152076  */
     152077 #include <test.priv.h>
     152078 
     152079@@ -156,7 +156,7 @@
     152080     if (has_colors()) {
     152081        int n = (color + 1);
     152082        if (my_pairs == 0)
     152083-           my_pairs = (bool *) calloc((unsigned) (COLORS + 1), sizeof(bool));
     152084+           my_pairs = typeCalloc(bool, COLORS + 1);
     152085        if (!my_pairs[n]) {
     152086            init_pair(n, color, my_bg);
     152087            my_pairs[n] = TRUE;
Note: See TracChangeset for help on using the changeset viewer.