diff --git a/ANNOUNCE b/ANNOUNCE
index 45b1a0ea..6abf551c 100644
--- a/ANNOUNCE
+++ b/ANNOUNCE
@@ -1,4 +1,4 @@
- Announcing ncurses 6.4
+ Announcing ncurses 6.5
Overview
@@ -49,10 +49,10 @@ Overview
Release Notes
- These notes are for ncurses 6.4, released December 31, 2022.
+ These notes are for ncurses 6.5, released April 27, 2024.
This release is designed to be source-compatible with ncurses 5.0
- through 6.3; providing extensions to the application binary interface
+ through 6.4; providing extensions to the application binary interface
(ABI). Although the source can still be configured to support the
ncurses 5 ABI, the reason for the release is to reflect improvements
to the ncurses 6 ABI and the supporting utility programs.
@@ -63,176 +63,189 @@ Release Notes
The most important bug-fixes/improvements dealt with robustness
issues. The release notes also mention some other bug-fixes, but are
focused on new features and improvements to existing features since
- ncurses 6.3 release.
+ ncurses 6.4 release.
Library improvements
New features
- There are no new features in this release.
+ These are new features:
+ * The low-level terminfo and termcap interfaces are used both by the
+ higher-level curses library, as well as by many applications.
+ The functions which convert parameterized terminal capability
+ strings for output to the terminal (tiparm and tparm) analyze the
+ capability string to determine which parameters are strings (i.e.,
+ addresses), versus numbers (not addresses).
+ The library's analysis of a capability string may differ from the
+ calling application's design if environment variables are used to
+ point to an invalid terminal database. This is a longstanding
+ problem with all implementations of terminfo, dating from the
+ early 1980s.
+ Two new functions address this problem: by providing a function
+ which allows the calling application to tell ncurses how many
+ string-parameters to expect:
+ + tiscan_s helps applications check formatting capabilities
+ that would be passed to tiparm_s.
+ + tiparm_s provides applications a way to tell ncurses what the
+ expected parameters are for a capability.
+ * The ncurses library supports a compile-time feature (enabled with
+ the configure --enable-check-size option) which simplifies
+ initialization with terminals which do not negotiate window
+ (screen) size. This is done in setupterm, by providing for using
+ ANSI cursor-position report (in user6/user7 terminfo capabilities)
+ to obtain the screen size if neither environment variables or
+ ioctl is used.
+ The ncurses test-program with options "-E -T" demonstrates this
+ feature.
+ * add functions to query tty-flags in SCREEN
+
+ This release drops compatibility with obsolete versions of tack, e.g.,
+ pre-1.08
Other improvements
These are improvements to existing features:
- * modify delscreen to more effectively delete all windows on the
- given screen.
- * modify wnoutrefresh to call pnoutrefresh if its parameter is a
- pad, rather than treating it as an error, and modify new_panel to
- permit its window-parameter to be a pad
- * modify curses_trace() to show the trace-mask as symbols, e.g.,
- TRACE_ORDINARY, DEBUG_LEVEL(3).
- * improve checks for valid mouse events when an intermediate mouse
- state is not part of the mousemask specified by the caller
- * allow extended-color number in opts parameter of wattr_on.
- * improve _tracecchar_t2 formatting of base+combining character.
- * trim out some unwanted linker options from ncurses*config and .pc
- files seen in Fedora 36+.
- * improve shell-scripts with shellcheck
- * improve use of "trap" in shell scripts, using a script.
- * modify make-tar.sh scripts to make timestamps more predictable.
+ * In addition to the new, safer function tiparm_s, ncurses adds
+ checks to make the older tiparm, tparm and tgoto functions safer:
+ + the terminfo functions tiparm and tparm ensure that the
+ capability string comes from the terminal description which
+ ncurses loads, rather than from random data which the
+ application happens to have.
+ + the tgoto function disallows capabilities which its analysis
+ shows will attempt to use string parameters.
+ + ncurses uses internal functions which correspond to tiparm,
+ and tgoto which ensure that the capability strings which are
+ passed to these functions come from the loaded terminal
+ description.
+ * improve check in lib_tparm.c, ensuring that a char* fits into a
+ TPARM_ARG
+ * modify _nc_syserr_abort to use _nc_env_access, rather than only
+ checking root uid
+ * improve thread lock in lib_trace.c
+ * modify flushinp to use file descriptors in SCREEN, rather than
+ from TERMINAL, and check if they are for a terminal, like SVr4
+ * modify mcprint to use file descriptor in SCREEN, for consistency
+ * modify internal function _nc_read_file_entry to show relevant
+ filename in warnings
+ * improve checks in internal function convert_string for corrupt
+ terminfo entry
+ * review/improve handling of out-of-memory conditions
+ * limit delays to 30 seconds, i.e., padding delays in terminfo, as
+ well as napms and delay_output functions
+ * fix reallocation loop for vsnprintf in _nc_sprintf_string by
+ copying the va_list variable
+ * modify delscreen to limit the windows which it creates to just
+ those associated with the screen
+ * modify endwin to return an error if it is called again without an
+ intervening screen update
+ * modify wenclose to handle pads
+ * eliminate use of PATH_MAX in lib_trace.c
+ * provide for any CCHARW_MAX greater than 1
These are corrections to existing features:
- * modify misc/gen-pkgconfig.in to allow for the case where the
- library directory does not yet exist, since this is processed
- before doing an install
- * set trailing null on string passed from winsnstr to wins_nwstr.
- * modify waddch_literal to allow for double-width base character
- when merging a combining character
+ * correct loop termination condition in waddnstr and waddnwstr
+ * improve parsing in internal function _nc_msec_cost, allowing a
+ single decimal point
+ * amend parameter check for entire string versus specific length in
+ winsnstr and wins_nwstr to match Solaris; make similar correction
+ to wins_nwstr
+ * correct internal function wadd_wch_literal when adding a
+ non-spacing character to a double-width character
+ * correct definition of Charable macro for non-wide ncurses library
+ .
Program improvements
- Several improvements were made to the utility programs:
+ Several improvements were made to the utility programs. Some were done
+ to make the infocmp option "-u" option help refactor the terminal
+ database.
infocmp
- + rewrite canonical_name function of infocmp to ensure buffer
- size
- + improve readability of long parameterized expressions with
- the infocmp "-f" option by allowing split before a "%p"
- marker.
- + modify verbose-option of infocmp, tic, toe to enable
- debug-tracing if that is configured.
-
- tabs
- limit tab-stop values to max-columns
+ + add limit checks for processing extended capabilities with
+ the "-u" option
+ + correct initial alignment of extended capabilities, so that
+ the "-u" option can be used for more than two terminal types
+ + modify "-u" option to not report cancels for strings which
+ were already cancelled in a use'd chunk.
+ + correct an assignment "-u" for detecting if a boolean is
+ unset in a base entry and set in a use'd chunk, i.e., if it
+ was cancelled.
tic
- add consistency check in tic for u6/u7/u8/u9 and NQ
- capabilities.
- tput
- corrected use of original tty-modes in init/reset subcommands
+ + correct limit-check when dumping tc/use clause via "-I"
+ + check return value of _nc_save_str, in special case where
+ extended capabilities are processed but the terminal
+ description was not initialized
+ + modify check for multiply defined aliases to report problems
+ within the current runtime rather than for conflicts with
+ pre-existing terminal descriptions.
+ + disallow using $TERMINFO or $HOME/.terminfo when "-o" option
+ is used
+
+ tput and tset
+
+ + add "-v" option to tput, to show warnings
+ + modify reset command to avoid altering clocal if the terminal
+ uses a modem
+ + modify reset feature to avoid 1-second sleep if running in a
+ pseudo-terminal
Examples
Along with the library and utilities, improvements were made to the
- ncurses-examples. Most of this activity aimed at improving the
- test-packages:
- * add minimal -h (usage) and -V (version) getopt logic to all
- ncurses-examples programs.
- * fix an error in "@" command in test/ncurses.c F-menu
- * add curses_trace to ifdef's for START_TRACE in test/test.priv.h
- * improve pthread-configuration for test/worm.c
- * add setlocale call to several test-programs.
- * workaround in test/picsmap.c for use of floating point for rgb
- values by ImageMagick 6.9.11, which appears to use the wrong upper
- limit.
- * use static libraries for AdaCurses test-package for Mageia, since
- no gprbuild package is available.
- * install Ada95 sample programs in libexecdir, adding a wrapper
- script to invoke those.
- * install ncurses-examples programs in libexecdir, adding a wrapper
- script to invoke those.
-
- There are other new demo/test programs and reusable examples:
-
- test/combine
- demonstrate combining characters
-
- test/test_delwin
- demonstrate deleting a window
-
- test/test_mouse
- observe mouse events in the raw terminal or parsed ncurses
- modes
-
- test/test_unget_wch
- demonstrate the unget_wch and unget functions
+ ncurses-examples:
+ * modify test_tparm to account for extended capabilities
+ * corrected mouse mask in test/testcurs.c
+ * modify test/clip_printw.c to optionally test non-wrapped updates
+ * modify test/test_mouse.c to use curses api for raw/noraw
+ * modify test/clip_printw.c to optionally test non-wrapped updates
+
+ There is one new demo/test programs:
+
+ test/test_endwin.c
+ This program shows the return-status from endwin with different
+ combinations of endwin (repeated), initscr, newterm.
Terminal database
There are several new terminal descriptions:
- * mosh
- * mosh-256color
- * teken-16color
- * teken-sc
- * teken-vt
- * xgterm
+ * ansi+apparrows
+ * contour
+ * linux+kbs for terminals which imitate xterm's behavior with Linux
+ * rio, rio-direct
+ * mostlike
+ * ms-vt100-16color, winconsole
+ * vt100+noapp, vt100+noapp+pc, xterm+app+pc, xterm+decedit from
+ xterm #389
+ * putty+cursor to reflect amending of modified cursor-keys in 2021
+ * wezterm
There are many changes to existing terminal descriptions. Some were
- updates to several descriptions:
- * make description-fields distinct
- * fix errata in description fields
- * add/use several building-blocks:
- + aixterm+sl
- + ansi+cpr
- + apollo+vt132
- + decid+cpr
- + ncr260vp+sl
- + wyse+sl
- + x10term+sl
- + xterm+acs
- + xterm+alt47
-
- while others affected specific descriptions. These were retested, to
- take into account changes by their developers:
- * kitty
- * teken
-
- while these are specific fixes based on reviewing documentation, user
- reports, or warnings from tic:
-
- att610+cvis0
- amended note as per documentation for att610, att620, att730
-
- kon, kon2, jfbterm
- revise to undo "linux2.6" change to smacs/rmacs/enacs
-
- st-0.6
- add dim, ecma+strikeout
-
- foot+base
- add xterm+sl-alt
-
- dec+sl
- correct dsl in dec+sl
-
- mintty and tmux
- correct setal in mintty/tmux entries, add to vte-2018
-
- nsterm
- modify nsterm to use xterm+alt1049
-
- putty
- modify putty to use xterm+alt1049
-
- vte-2018
- add blink and setal
-
- A few entries use extensions (user-defined terminal capabilities):
- * use ansi+enq and decid+cpr in cases where the terminal probably
- supported the u6-u9 extension
- * remove u6-u9 from teken-2018
- * use NQ to flag entries where the terminal does not support query
- and response
- * add/use bracketed+paste to help identify terminals supporting this
- xterm feature
- * modify samples for xterm mouse 1002/1003 modes to use 1006 mode,
- and also provide for focus in/out responses
- * xterm patch #371 supports DEC-compatible status-line. add dec+sl
- to xterm-new, per xterm #371, add xterm-p371, add xterm-p370, for
- use in older terminals, and set "xterm-new" to "xterm-p370" (to
- ease adoption).
+ updates to several descriptions, using the infocmp "-u" option in a
+ script to determine which building-block entries could be used to
+ replace multiple capability settings (and trim redundant information).
+
+ Other changes include:
+ * document XF, kxIN and kxOUT
+ * add note on sun regarding wscons/cmdtool/shelltool
+ * remove DECCOLM+DECSCLM from foot
+ * add xterm+focus to foot+base
+ * add ecma+strikeout to putty
+ * use CSI 3J in vte-2017
+ * use oldxterm+sm+1006 in vte-2014
+ * modify xgterm to work around line-drawing bug
+ * add xterm focus mode 1004 to xterm+focus as fe/fd capabilities,
+ like vim.
+ * add xterm+focus to alacritty+common
+ * add XR/xr, to work with vim, and use RV/rv to denote DA2 and its
+ response
+ * add XF flag to xterm+focus so that termcap applications can be
+ aware of terminals which may support focus in/out
+ * use xterm+focus in xterm-p370 and tmux
+ * remove xterm+sm+1006 from tmux
+ * NetBSD-related fixes for x68k and wsvt25
Documentation
@@ -247,123 +260,157 @@ Release Notes
features and show how they evolved, there are corrections,
clarifications, etc.:
* Corrections:
- + remove a stray '/' from description of %g in terminfo(5).
- + correct/improve font-formatting in curs_getch.3x, as well as
- other manual pages.
+ + add assignment in CF_MAN_PAGES to fill in value for
+ TERMINFO_DIRS in ncurses, terminfo and tic manpages.
+ + clarify interaction of -R option versus -C, -I and -r in
+ infocmp manpage.
+ + correct manpage description of panel_hidden.
+ + improve manpage description for addch versus unctrl format
+ used for non-printable characters.
+ + improve manpages discussing file descriptors in low-level
+ functions.
+ + improve description of search rules for terminal descriptions
+ in terminfo manpage.
+ + modify dist.mk to avoid passing developer's comments in
+ manpages into the generated html documentation.
+ + modify test-package "ncurses6-doc" to use manpage-aliases,
+ which in turn required a change to the configure script to
+ factor in the extra-suffix option when deriving alias names.
* New/improved history and portability sections:
- + add portability notes for delscreen and delwin in manual.
- + improve curs_slk.3x discussion of extensions and portability
+ + add information about "ttycap", termcap's forerunner, to
+ tset.1
+ + document limitations of tparm, and error-returns in
+ curs_terminfo.3x
+ + document limitations of tgoto, and error-returns in
+ curs_termcap.3x
* Other improvements:
- + improve curs_bkgd.3x, explaining that bkgdset can affect
- results for bkgd
- + add note on portable memory-leak checking in curs_memleaks.3x
- + expanded description in resizeterm.3x
- + add section on releasing memory to curs_termcap.3x and
- curs_terminfo.3x manpages.
- + add clarification of the scope of dynamic variables in
- terminfo(5).
- + improve formatting of ncurses-intro.html and hackguide.html
- + improve curs_clear.3x links to other pages
- + update ncurses-howto, making documentation fixes along with
- corrections to example programs.
- + use newer version 1.36 of gnathtml for generating Ada html
- files.
- + update external links in Ada95.html
+ + This release has many changes to improve the formatting and
+ style of the manpages.
+ + Manpages now use consistent section-naming, page headers and
+ footers (including the modification date for each page).
+ + Table layout has been revised.
There are no new manual pages (all of the manual page updates are to
existing pages).
Interesting bug-fixes
- While there were many bugs fixed during development of ncurses 6.4,
- only a few (the reason for this release) were both important and
- interesting. Most of the bug-fixes were for local issues which did not
- affect compatibility across releases. Since those are detailed in the
- NEWS file no elaboration is needed here.
-
- The interesting bugs were those dealing with memory leaks and buffer
- overflows. Although the utilities are designed for text files (which
- they do properly), some choose to test them with non-text files.
- * Text files contain no embedded nulls. Also, they end with a
- newline. Feeding tic non-text files exposed a few cases where the
- program did not check for those issues. As a result, further
- processing of the input found limit-checks whose assumptions were
- invalid.
- * Fixing the limit-checks (first) found a problem with tic managing
- the list of strings in a terminal description. In merging two
- terminal descriptions (i.e., the "use=" feature), tic was not
- allocating a complete copy. A quick repair for that introduced a
- memory leak.
- * The checks for non-text files are improved (i.e., embedded nulls
- in the input file will cause tic to reject it rather than
- attempting to process it).
- * The string allocations in tic are likewise improved.
+ The changes to tparm, tgoto which improve the design of the low-level
+ interfaces are interesting, but are not bug-fixes per se.
Configuration changes
Major changes
- There are no major changes. No new options were added. Several
- improvements were made to configure checks.
+ These are the major changes (aside from introducing tiparm_s):
+ * use wide-character (ncursesw) by default
+ * use opaque typedefs by default
+
+ However, most of the work on configure scripts was done to reduce
+ warnings within the configure script:
+ * intrusive warnings from GNU grep regarding fgrep and egrep
+ * fatal errors in compile-checks, arising from recent "Modern C"
+ efforts by some developers which caused longstanding configure
+ checks to fail.
+ After repairing the configure script, none of that activity
+ affected ncurses because stricter warnings are used routinely in
+ development.
+
+ Other improvements made to configure checks include
+ * use string-hacks in alloc_entry.c, alloc_type.c and hardscroll.c,
+ overlooked due to compiler changes in recent OpenBSD releases
+ * revise progs.priv.h to provide for NC_ISATTY reuse
+ * configure check for MB_LEN_MAX provides warning as needed
+ * trim a space after some "-R" options, fixing builds for
+ applications built using clang and ncurses on Solaris
+ * work around misconfiguration of MacPorts gcc13, which exposes
+ invalid definition of MB_LEN_MAX in gcc's fallback copy of
+ limits.h
+ * modified experimental Windows driver works with xterm mouse
+ protocol
Configuration options
- There are a few new/modified configure options:
+ There are a few new configure options:
+
+ --disable-setuid-environ
+ Compile with environment restriction, so certain environment
+ variables are not available when running via a setuid/setgid
+ application. These are (for example $TERMINFO) those that allow
+ the search path for the terminfo or termcap entry to be
+ customized.
+
+ A setuid/setgid application inherits its environment variables
+ from the current user, in contrast to sudo which may limit the
+ environment variables that ncurses uses.
+
+ --enable-check-size
+ Compile-in feature to detect screensize for terminals which do
+ not advertise their screensize, e.g., serial terminals.
+
+ --with-abi-altered=NUM
+ Override the displayed (rather than compiled-in) ABI. Only
+ packagers who have created configurations where the ABI differs
+ from ncurses should be interested in this option.
+
+ --with-strip-program=XXX
+ When stripping executables during install, use the specified
+ program rather than "strip" overriding program chosen by the
+ install program for stripping executables.
- --with-abi-version
- add ABI 7 defaults to configure script.
+ These configure options are modified:
- --with-caps
- add warning in configure script if file specified for
- "--with-caps" does not exist.
+ --with-pkg-config-libdir[=DIR]
+ The optional DIR parameter can now be "auto" to automatically
+ use pkg-config's library directory.
- --with-manpage-format
- bzip2 and xz compression are now supported
+ The default is $(libdir).
- --with-xterm-kbs
- add check/warning in configure script if option
- "--with-xterm-kbs" is missing or inconsistent
+ --with-xterm-kbs[=XXX]
+ The default is "auto" which tells the configure script to
+ choose BS or DEL according to platform defaults.
Portability
Many of the portability changes are implemented via the configure
script:
- * amend configure option's auto-search to account for systems where
- none of the directories known to pkg-config exist
- * corrected regex needed for older pkg-config used in Solaris 10
- * improve handling of --with-pkg-config-libdir option, allowing for
- the case where either $PKG_CONFIG_LIBDIR or the option value has a
- colon-separated list of directories
- * if the --with-pkg-config-libdir option is not given, use
- ${libdir}/pkgconfig as a default
- * improve search-path check for pkg-config, e.g., for Debian testing
- which installs pkg-config with architecture-prefixes.
- * build-fix for cross-compiling to MingW, conditionally add -lssp
- * improve configure check for getttynam
- * fixes to build with dietlibc:
- + add configure check for fpathconf
- + add configure check for math sine/cosine, needed in
- test/tclock, and eliminate pow() from test/hanoi
- + use wcsnlen as an alternative to wmemchr if it is not found
- * modify configure macro CF_BUILD_CC to check if the build-compiler
- works, rather than that it is different from the cross-compiler,
- e.g., to accommodate a compiler which can be used for either
- purpose with different flags
- * modify configure/scripts to work around interference by GNU grep
- 3.8
+ * add/use configure check for clock_gettime, to supersede
+ gettimeofday.
+ * modify configure script check for pkg-config library directory to
+ take into account an older version 0.15.0 which used
+ PKG_CONFIG_PATH but not PKG_CONFIG_LIBDIR
+ * allow for MinGW32-/64-bit configurations to use _DEFAULT_SOURCE
+ * modify CF_XOPEN_SOURCE macro's amend default case to avoid
+ undefining _XOPEN_SOURCE if _POSIX_C_SOURCE is defined
+ * updated configure script macro CF_XOPEN_SOURCE, for uClibc-ng
+ * modify version-check for gcc/g++, now works for msys2
+ * build-fixes related to configure-options and/or platform:
+ + fix for --enable-fvisibility
+ + fix for unusual values of --with-rel-version
+ + fix for unusual values of --with-abi-version
+ + fix for --disable-tcap-names
+ + fix for termcap in nc_access.h
+ * other configure-script improvements:
+ + recent msys2 headers work with _DEFAULT_SOURCE; amend check
+ + use $ac_includes_default in most cases where stdlib.h should
+ work
+ + use #error consistently vs "make an error"
+ + add configure macro for gettimeofday vs inline check
Here are some of the other portability fixes:
- * change man_db.renames to template, to handle ncurses*-config
- script with the --extra-suffix configure option.
- * update CF_XOPEN_SOURCE macro, adding variants "gnueabi" and
- "gnueabihf" to get _DEFAULT_SOURCE special case, as well as adding
- GNU libc suffixes for "abi64", "abin32", "x32" to distinguish it
- from other libc flavors.
- * work around musl's nonstandard use of feature test macros by
- adding a definition for NCURSES_WIDECHAR to the generated ".pc"
- and *-config files.
- * use "command -v" rather than "type" in Ada95/gen/Makefile.in to
- fix a portability issue.
+ * modify configure scripts/makefiles to omit KEY_RESIZE if the
+ corresponding SIGWINCH feature is disabled
+ * increase MB_CUR_MAX to 16, matching glibc's MB_LEN_MAX
+ * add BSD erase2 to characters handled by tset/reset
+ * use getauxval when available, to improve setuid/setgid checks
+ * set dwShareMode in calls to CreateConsoleScreenBuffer
+ * use CreateFile with "CONIN$", "CONOUT$" rather than GetStdHandle
+ to obtain a handle on the actual console, avoiding redirection in
+ the MinGW/Win32 configurations
+ * modify MinGW driver to return KEY_BACKSPACE when an unmodified
+ VK_BACK virtual key is entered
+ * modify MinGW configuration to provide for running in MSYS/MSYS2
+ shells, assuming ConPTY support
_________________________________________________________________
Features of ncurses
@@ -371,20 +418,21 @@ Features of ncurses
The ncurses package is fully upward-compatible with SVr4 (System V
Release 4) curses:
* All of the SVr4 calls have been implemented (and are documented).
- * ncurses supports all of the for SVr4 curses features including
- keyboard mapping, color, forms-drawing with ACS characters, and
- automatic recognition of keypad and function keys.
- * ncurses provides these SVr4 add-on libraries (not part of X/Open
- Curses):
- + the panels library, supporting a stack of windows with
- backing store.
- + the menus library, supporting a uniform but flexible
- interface for menu programming.
+ * ncurses supports the features of SVr4 curses including keyboard
+ mapping, color, form drawing with ACS characters, and automatic
+ recognition of keypad and function keys.
+ * ncurses provides work-alike replacements of SVr4 supplemental
+ libraries based on curses, but which were not specified by X/Open
+ Curses:
+ + the panel library, supporting a stack of windows with backing
+ store
+ + the menu library, supporting a uniform but flexible interface
+ for menu programming
+ the form library, supporting data collection through
- on-screen forms.
+ on-screen forms
* ncurses's terminal database is fully compatible with that used by
SVr4 curses.
- + ncurses supports user-defined capabilities which it can see,
+ + ncurses supports user-defined capabilities that it can see,
but which are hidden from SVr4 curses applications using the
same terminal database.
+ It can be optionally configured to match the format used in
@@ -397,11 +445,12 @@ Features of ncurses
the HP-UX and AIX ports.
The ncurses package also has many useful extensions over SVr4:
- * The API is 8-bit clean and base-level conformant with the X/OPEN
- curses specification, XSI curses (that is, it implements all BASE
- level features, and most EXTENDED features). It includes many
- function calls not supported under SVr4 curses (but portability of
- all calls is documented so you can use the SVr4 subset only).
+ * The API is 8-bit clean and base-level conformant with the X/Open
+ Curses specification, XSI curses (that is, it implements all BASE
+ level features, and almost all EXTENDED features). It includes
+ many function calls not supported under SVr4 curses (but
+ portability of all calls is documented so you can use the SVr4
+ subset only).
* Unlike SVr3 curses, ncurses can write to the rightmost-bottommost
corner of the screen if your terminal has an insert-character
capability.
@@ -461,10 +510,19 @@ Features of ncurses
user's $HOME/.terminfo directory.
* The table-of-entries utility toe makes it easy for users to see
exactly what terminal types are available on the system.
- * The library meets the XSI requirement that every macro entry point
- has a corresponding function which may be linked (and will be
- prototype-checked) if the macro definition is disabled with
- #undef.
+ * X/Open Curses permits most functions it specifies to be made
+ available as macros as well. ncurses does this
+ + to improve performance, e.g., for operations composed of
+ simpler functions such as cursor movement following by adding
+ text to the screen,
+ + to simplify the implementation by reusing functions which use
+ common parameters, e.g., the standard screen stdscr, and
+ + to provide functions that return values via their parameters
+ Except for the last case, ncurses provides a non-macro
+ implementation of the function. If the macro definition is
+ disabled with #undef, or by defining NCURSES_NOMACROS the function
+ may be linked (and its calls will be checked against the
+ prototype).
* Extensive documentation is provided (see the Additional Reading
section of the ncurses FAQ for online documentation).
@@ -517,7 +575,8 @@ Applications using ncurses
nvi
New vi uses ncurses.
- https://sites.google.com/a/bostic.com/keithbostic/vi
+ https://sites.google.com/a/bostic.com/keithbostic/the-berkeley-
+ vi-editor-home-page
ranger
A console file manager with VI key bindings in Python.
@@ -539,7 +598,7 @@ Applications using ncurses
minicom
terminal emulator for serial modem connections
- https://alioth.debian.org/projects/minicom/
+ https://salsa.debian.org/minicom-team/minicom
mosh
a replacement for ssh.
@@ -620,12 +679,12 @@ Development activities
Patches to the current release are made available at
- https://invisible-island.net/archives/ncurses/6.3/ and
- https://invisible-mirror.net/archives/ncurses/6.3/ .
+ https://invisible-island.net/archives/ncurses/6.4/ and
+ https://invisible-mirror.net/archives/ncurses/6.4/ .
There is an archive of the mailing list here:
- http://lists.gnu.org/archive/html/bug-ncurses (also https)
+ https://lists.gnu.org/archive/html/bug-ncurses .
Related resources
@@ -645,11 +704,12 @@ Other resources
terminal description file once maintained by Eric Raymond . Unlike the
older version, the termcap and terminfo data are provided in the same
file, which also provides several user-definable extensions beyond the
- X/Open specification.
+ X/Open Curses specification.
You can find lots of information on terminal-related topics not
- covered in the terminfo file at Richard Shuford's archive . The
- collection of computer manuals at bitsavers.org has also been useful.
+ covered in the terminfo file in Richard Shuford's archive (original).
+ The collection of computer manuals at bitsavers.org has also been
+ useful.
* Overview
* Release Notes
diff --git a/AUTHORS b/AUTHORS
index 09dfc9a9..9a5ac067 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,5 +1,5 @@
-------------------------------------------------------------------------------
--- Copyright 2020,2021 Thomas E. Dickey --
+-- Copyright 2020-2021,2024 Thomas E. Dickey --
-- Copyright 2006,2017 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
@@ -26,7 +26,7 @@
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
-------------------------------------------------------------------------------
--- $Id: AUTHORS,v 1.5 2021/06/17 21:20:30 tom Exp $
+-- $Id: AUTHORS,v 1.7 2024/06/15 20:43:32 tom Exp $
-------------------------------------------------------------------------------
These are the principal authors/contributors of ncurses since 1.9.9e,
in decreasing order of their contribution:
@@ -37,4 +37,5 @@ ESR Eric S Raymond
AVL Alexander V Lukyanov
PB Philippe Blain
SV Sven Verdoolaege
-NB Nicolas Boulenguez
+NB Nicolas Boulenguez
+GBR Branden Robinson
diff --git a/Ada95/Makefile.in b/Ada95/Makefile.in
index 22b922e9..c937df98 100644
--- a/Ada95/Makefile.in
+++ b/Ada95/Makefile.in
@@ -1,6 +1,6 @@
-# $Id: Makefile.in,v 1.30 2022/12/17 23:33:33 tom Exp $
+# $Id: Makefile.in,v 1.31 2024/08/11 00:24:28 tom Exp $
##############################################################################
-# Copyright 2020-2021,2022 Thomas E. Dickey #
+# Copyright 2020-2022,2024 Thomas E. Dickey #
# Copyright 1998-2010,2015 Free Software Foundation, Inc. #
# #
# Permission is hereby granted, free of charge, to any person obtaining a #
@@ -31,7 +31,7 @@
# Author: Juergen Pfeifer, 1996
#
# Version Control
-# $Revision: 1.30 $
+# $Revision: 1.31 $
#
SHELL = @SHELL@
VPATH = @srcdir@
@@ -47,12 +47,12 @@ libdir = @libdir@
libexecdir = @libexecdir@
includedir = @includedir@
-BINDIR = $(DESTDIR)$(bindir)
-DATADIR = $(DESTDIR)$(datadir)
-LIBDIR = $(DESTDIR)$(libdir)
-LIBEXECDIR = $(DESTDIR)$(libexecdir)
+BINDIR = $(DESTDIR)$(bindir@MERGE_PREFIX@)
+DATADIR = $(DESTDIR)$(datadir@MERGE_PREFIX@)
+LIBDIR = $(DESTDIR)$(libdir@MERGE_PREFIX@)
+LIBEXECDIR = $(DESTDIR)$(libexecdir@MERGE_PREFIX@)
-SUBDIRS = @ADA_SUBDIRS@
+SUBDIRS = @ADA_SUBDIRS@
INSTALL = @INSTALL@ @INSTALL_OPT_O@
INSTALL_SCRIPT = @INSTALL@
diff --git a/Ada95/aclocal.m4 b/Ada95/aclocal.m4
index 76367b00..390c3944 100644
--- a/Ada95/aclocal.m4
+++ b/Ada95/aclocal.m4
@@ -1,5 +1,5 @@
dnl***************************************************************************
-dnl Copyright 2018-2022,2023 Thomas E. Dickey *
+dnl Copyright 2018-2024,2025 Thomas E. Dickey *
dnl Copyright 2010-2017,2018 Free Software Foundation, Inc. *
dnl *
dnl Permission is hereby granted, free of charge, to any person obtaining a *
@@ -29,7 +29,7 @@ dnl***************************************************************************
dnl
dnl Author: Thomas E. Dickey
dnl
-dnl $Id: aclocal.m4,v 1.201 2023/02/25 13:45:56 tom Exp $
+dnl $Id: aclocal.m4,v 1.227 2025/02/23 01:57:36 tom Exp $
dnl Macros used in NCURSES Ada95 auto-configuration script.
dnl
dnl These macros are maintained separately from NCURSES. The copyright on
@@ -477,7 +477,7 @@ fi
AC_SUBST(ARFLAGS)
])
dnl ---------------------------------------------------------------------------
-dnl CF_BUILD_CC version: 11 updated: 2022/12/04 15:40:08
+dnl CF_BUILD_CC version: 14 updated: 2024/12/14 11:58:01
dnl -----------
dnl If we're cross-compiling, allow the user to override the tools and their
dnl options. The configure script is oriented toward identifying the host
@@ -555,7 +555,7 @@ if test "$cross_compiling" = yes ; then
AC_TRY_RUN([#include
int main(int argc, char *argv[])
{
- ${cf_cv_main_return:-return}(argc < 0 || argv == 0 || argv[0] == 0);
+ ${cf_cv_main_return:-return}(argc < 0 || argv == (void*)0 || argv[0] == (void*)0);
}
],
cf_ok_build_cc=yes,
@@ -901,7 +901,7 @@ if test "x$ifelse([$2],,CLANG_COMPILER,[$2])" = "xyes" ; then
fi
])
dnl ---------------------------------------------------------------------------
-dnl CF_CONST_X_STRING version: 7 updated: 2021/06/07 17:39:17
+dnl CF_CONST_X_STRING version: 9 updated: 2024/12/04 03:49:57
dnl -----------------
dnl The X11R4-X11R6 Xt specification uses an ambiguous String type for most
dnl character-strings.
@@ -928,7 +928,7 @@ CF_SAVE_XTRA_FLAGS([CF_CONST_X_STRING])
AC_TRY_COMPILE(
[
-#include
+$ac_includes_default
#include
],
[String foo = malloc(1); free((void*)foo)],[
@@ -936,9 +936,10 @@ AC_TRY_COMPILE(
AC_CACHE_CHECK(for X11/Xt const-feature,cf_cv_const_x_string,[
AC_TRY_COMPILE(
[
+#undef _CONST_X_STRING
#define _CONST_X_STRING /* X11R7.8 (perhaps) */
#undef XTSTRINGDEFINES /* X11R5 and later */
-#include
+$ac_includes_default
#include
],[String foo = malloc(1); *foo = 0],[
cf_cv_const_x_string=no
@@ -961,64 +962,50 @@ esac
])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_CONST_X_STRING version: 7 updated: 2021/06/07 17:39:17
-dnl -----------------
-dnl The X11R4-X11R6 Xt specification uses an ambiguous String type for most
-dnl character-strings.
-dnl
-dnl It is ambiguous because the specification accommodated the pre-ANSI
-dnl compilers bundled by more than one vendor in lieu of providing a standard C
-dnl compiler other than by costly add-ons. Because of this, the specification
-dnl did not take into account the use of const for telling the compiler that
-dnl string literals would be in readonly memory.
-dnl
-dnl As a workaround, one could (starting with X11R5) define XTSTRINGDEFINES, to
-dnl let the compiler decide how to represent Xt's strings which were #define'd.
-dnl That does not solve the problem of using the block of Xt's strings which
-dnl are compiled into the library (and is less efficient than one might want).
-dnl
-dnl Xt specification 7 introduces the _CONST_X_STRING symbol which is used both
-dnl when compiling the library and compiling using the library, to tell the
-dnl compiler that String is const.
-AC_DEFUN([CF_CONST_X_STRING],
-[
-AC_REQUIRE([AC_PATH_XTRA])
-
-CF_SAVE_XTRA_FLAGS([CF_CONST_X_STRING])
-
-AC_TRY_COMPILE(
+dnl CF_CURSES_CONFIG version: 2 updated: 2006/10/29 11:06:27
+dnl ----------------
+dnl Tie together the configure-script macros for curses. It may be ncurses,
+dnl but unless asked, we do not make a special search for ncurses. However,
+dnl still check for the ncurses version number, for use in other macros.
+AC_DEFUN([CF_CURSES_CONFIG],
[
-#include
-#include
-],
-[String foo = malloc(1); free((void*)foo)],[
-
-AC_CACHE_CHECK(for X11/Xt const-feature,cf_cv_const_x_string,[
- AC_TRY_COMPILE(
- [
-#define _CONST_X_STRING /* X11R7.8 (perhaps) */
-#undef XTSTRINGDEFINES /* X11R5 and later */
-#include
-#include
- ],[String foo = malloc(1); *foo = 0],[
- cf_cv_const_x_string=no
- ],[
- cf_cv_const_x_string=yes
- ])
-])
-
-CF_RESTORE_XTRA_FLAGS([CF_CONST_X_STRING])
+CF_CURSES_CPPFLAGS
+CF_NCURSES_VERSION
+CF_CURSES_LIBS
+])dnl
+dnl ---------------------------------------------------------------------------
+dnl CF_CURSES_CPPFLAGS version: 14 updated: 2021/01/02 09:31:20
+dnl ------------------
+dnl Look for the curses headers.
+AC_DEFUN([CF_CURSES_CPPFLAGS],[
-case "$cf_cv_const_x_string" in
-(no)
- CF_APPEND_TEXT(CPPFLAGS,-DXTSTRINGDEFINES)
+AC_CACHE_CHECK(for extra include directories,cf_cv_curses_incdir,[
+cf_cv_curses_incdir=no
+case "$host_os" in
+(hpux10.*)
+ if test "x$cf_cv_screen" = "xcurses_colr"
+ then
+ test -d /usr/include/curses_colr && \
+ cf_cv_curses_incdir="-I/usr/include/curses_colr"
+ fi
;;
-(*)
- CF_APPEND_TEXT(CPPFLAGS,-D_CONST_X_STRING)
+(sunos3*|sunos4*)
+ if test "x$cf_cv_screen" = "xcurses_5lib"
+ then
+ test -d /usr/5lib && \
+ test -d /usr/5include && \
+ cf_cv_curses_incdir="-I/usr/5include"
+ fi
;;
esac
-
])
+if test "$cf_cv_curses_incdir" != no
+then
+ CF_APPEND_TEXT(CPPFLAGS,$cf_cv_curses_incdir)
+fi
+
+CF_CURSES_HEADER
+CF_TERM_HEADER
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_CURSES_HEADER version: 6 updated: 2022/12/02 20:06:52
@@ -1046,6 +1033,136 @@ fi
# cheat, to get the right #define's for HAVE_NCURSES_H, etc.
AC_CHECK_HEADERS($cf_cv_ncurses_header)
+])dnl
+dnl ---------------------------------------------------------------------------
+dnl CF_CURSES_LIBS version: 45 updated: 2022/12/02 20:06:52
+dnl --------------
+dnl Look for the curses libraries. Older curses implementations may require
+dnl termcap/termlib to be linked as well. Call CF_CURSES_CPPFLAGS first.
+AC_DEFUN([CF_CURSES_LIBS],[
+
+AC_REQUIRE([CF_CURSES_CPPFLAGS])dnl
+AC_MSG_CHECKING(if we have identified curses libraries)
+AC_TRY_LINK([#include <${cf_cv_ncurses_header:-curses.h}>],
+ [initscr(); endwin()],
+ cf_result=yes,
+ cf_result=no)
+AC_MSG_RESULT($cf_result)
+
+if test "$cf_result" = no ; then
+case "$host_os" in
+(freebsd*)
+ AC_CHECK_LIB(mytinfo,tgoto,[CF_ADD_LIBS(-lmytinfo)])
+ ;;
+(hpux10.*)
+ # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
+ # next (1998), and xcurses "newer" (2000). There is no header file for
+ # Hcurses; the subdirectory curses_colr has the headers (curses.h and
+ # term.h) for cur_colr
+ if test "x$cf_cv_screen" = "xcurses_colr"
+ then
+ AC_CHECK_LIB(cur_colr,initscr,[
+ CF_ADD_LIBS(-lcur_colr)
+ ac_cv_func_initscr=yes
+ ],[
+ AC_CHECK_LIB(Hcurses,initscr,[
+ # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
+ CF_ADD_LIBS(-lHcurses)
+ CF_APPEND_TEXT(CPPFLAGS,-D__HP_CURSES -D_HP_CURSES)
+ ac_cv_func_initscr=yes
+ ])])
+ fi
+ ;;
+(linux*)
+ case `arch 2>/dev/null` in
+ (x86_64)
+ if test -d /lib64
+ then
+ CF_ADD_LIBDIR(/lib64)
+ else
+ CF_ADD_LIBDIR(/lib)
+ fi
+ ;;
+ (*)
+ CF_ADD_LIBDIR(/lib)
+ ;;
+ esac
+ ;;
+(sunos3*|sunos4*)
+ if test "x$cf_cv_screen" = "xcurses_5lib"
+ then
+ if test -d /usr/5lib ; then
+ CF_ADD_LIBDIR(/usr/5lib)
+ CF_ADD_LIBS(-lcurses -ltermcap)
+ fi
+ fi
+ ac_cv_func_initscr=yes
+ ;;
+esac
+
+if test ".$ac_cv_func_initscr" != .yes ; then
+ cf_save_LIBS="$LIBS"
+
+ if test ".${cf_cv_ncurses_version:-no}" != .no
+ then
+ cf_check_list="ncurses curses cursesX"
+ else
+ cf_check_list="cursesX curses ncurses"
+ fi
+
+ # Check for library containing tgoto. Do this before curses library
+ # because it may be needed to link the test-case for initscr.
+ if test "x$cf_term_lib" = x
+ then
+ AC_CHECK_FUNC(tgoto,[cf_term_lib=predefined],[
+ for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
+ do
+ AC_CHECK_LIB($cf_term_lib,tgoto,[
+ : "${cf_nculib_root:=$cf_term_lib}"
+ break
+ ])
+ done
+ ])
+ fi
+
+ # Check for library containing initscr
+ test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
+ if test "x$cf_curs_lib" = x
+ then
+ for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
+ do
+ LIBS="-l$cf_curs_lib $cf_save_LIBS"
+ if test "$cf_term_lib" = unknown || test "$cf_term_lib" = "$cf_curs_lib" ; then
+ AC_MSG_CHECKING(if we can link with $cf_curs_lib library)
+ AC_TRY_LINK([#include <${cf_cv_ncurses_header:-curses.h}>],
+ [initscr()],
+ [cf_result=yes],
+ [cf_result=no])
+ AC_MSG_RESULT($cf_result)
+ test "$cf_result" = yes && break
+ elif test "$cf_curs_lib" = "$cf_term_lib" ; then
+ cf_result=no
+ elif test "$cf_term_lib" != predefined ; then
+ AC_MSG_CHECKING(if we need both $cf_curs_lib and $cf_term_lib libraries)
+ AC_TRY_LINK([#include <${cf_cv_ncurses_header:-curses.h}>],
+ [initscr(); endwin();],
+ [cf_result=no],
+ [
+ LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
+ AC_TRY_LINK([#include <${cf_cv_ncurses_header:-curses.h}>],
+ [initscr()],
+ [cf_result=yes],
+ [cf_result=error])
+ ])
+ AC_MSG_RESULT($cf_result)
+ test "$cf_result" != error && break
+ fi
+ done
+ fi
+ test "$cf_curs_lib" = unknown && AC_MSG_ERROR(no curses library found)
+fi
+fi
+
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_DIRNAME version: 5 updated: 2020/12/31 20:19:42
@@ -1393,19 +1510,36 @@ fi
AC_SUBST(EXTRA_CFLAGS)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_FUNC_GETTIME version: 2 updated: 2023/02/25 08:45:56
+dnl CF_FUNC_GETTIME version: 3 updated: 2024/05/11 13:40:02
dnl ---------------
dnl Check for gettimeofday or clock_gettime. In 2023, the former is still more
dnl widely supported, but "deprecated" (2008), so we will use the latter if it
dnl is available, to reduce compiler warnings.
AC_DEFUN([CF_FUNC_GETTIME],[
-AC_CACHE_CHECK(for clock_gettime,cf_cv_func_clock_gettime,[
- AC_TRY_LINK([#include ],
+cf_save_libs="$LIBS"
+AC_CHECK_FUNC(clock_gettime,
+ cf_cv_test_clock_gettime=yes,
+ AC_CHECK_LIB(rt, clock_gettime,
+ [LIBS="-lrt $LIBS"
+ cf_cv_test_clock_gettime=yes],
+ cf_cv_test_clock_gettime=no))
+
+if test "$cf_cv_test_clock_gettime" = yes ; then
+AC_CACHE_CHECK(if clock_gettime links,cf_cv_func_clock_gettime,[
+ AC_TRY_LINK([
+$ac_includes_default
+#include
+ ],
[struct timespec ts;
- int rc = clock_gettime(CLOCK_REALTIME, &ts); (void) rc; (void)ts],
+ int rc = clock_gettime(CLOCK_REALTIME, &ts)
+ + clock_gettime(CLOCK_MONOTONIC, &ts);
+ (void) rc; (void)ts],
[cf_cv_func_clock_gettime=yes],
[cf_cv_func_clock_gettime=no])
])
+else
+ cf_cv_func_clock_gettime=no
+fi
if test "$cf_cv_func_clock_gettime" = yes
then
@@ -1533,7 +1667,7 @@ rm -rf ./conftest*
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_GCC_VERSION version: 8 updated: 2019/09/07 13:38:36
+dnl CF_GCC_VERSION version: 9 updated: 2023/03/05 14:30:13
dnl --------------
dnl Find version of gcc, and (because icc/clang pretend to be gcc without being
dnl compatible), attempt to determine if icc/clang is actually used.
@@ -1542,7 +1676,7 @@ AC_REQUIRE([AC_PROG_CC])
GCC_VERSION=none
if test "$GCC" = yes ; then
AC_MSG_CHECKING(version of $CC)
- GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[[^)]]*) //' -e 's/^.*(Debian[[^)]]*) //' -e 's/^[[^0-9.]]*//' -e 's/[[^0-9.]].*//'`"
+ GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[[^(]]*([[^)]][[^)]]*) //' -e 's/^[[^0-9.]]*//' -e 's/[[^0-9.]].*//'`"
test -z "$GCC_VERSION" && GCC_VERSION=unknown
AC_MSG_RESULT($GCC_VERSION)
fi
@@ -1550,7 +1684,7 @@ CF_INTEL_COMPILER(GCC,INTEL_COMPILER,CFLAGS)
CF_CLANG_COMPILER(GCC,CLANG_COMPILER,CFLAGS)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_GCC_WARNINGS version: 41 updated: 2021/01/01 16:53:59
+dnl CF_GCC_WARNINGS version: 43 updated: 2024/12/21 08:44:12
dnl ---------------
dnl Check if the compiler supports useful warning options. There's a few that
dnl we don't use, simply because they're too noisy:
@@ -1664,6 +1798,26 @@ rm -rf ./conftest*
AC_SUBST(EXTRA_CFLAGS)
])dnl
dnl ---------------------------------------------------------------------------
+dnl CF_GLOB_FULLPATH version: 2 updated: 2024/08/03 12:34:02
+dnl ----------------
+dnl Use this in case-statements to check for pathname syntax, i.e., absolute
+dnl pathnames. The "x" is assumed since we provide an alternate form for DOS.
+AC_DEFUN([CF_GLOB_FULLPATH],[
+AC_REQUIRE([CF_WITH_SYSTYPE])dnl
+case "$cf_cv_system_name" in
+(cygwin*|msys*|mingw32*|mingw64|os2*)
+ GLOB_FULLPATH_POSIX='/*'
+ GLOB_FULLPATH_OTHER='[[a-zA-Z]]:[[\\/]]*'
+ ;;
+(*)
+ GLOB_FULLPATH_POSIX='/*'
+ GLOB_FULLPATH_OTHER=$GLOB_FULLPATH_POSIX
+ ;;
+esac
+AC_SUBST(GLOB_FULLPATH_POSIX)
+AC_SUBST(GLOB_FULLPATH_OTHER)
+])dnl
+dnl ---------------------------------------------------------------------------
dnl CF_GNATPREP_OPT_T version: 1 updated: 2014/08/02 18:37:25
dnl -----------------
AC_DEFUN([CF_GNATPREP_OPT_T],[
@@ -2126,7 +2280,7 @@ CPPFLAGS="-I. $CPPFLAGS"
AC_SUBST(CPPFLAGS)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_INSTALL_OPTS version: 2 updated: 2018/08/18 12:19:21
+dnl CF_INSTALL_OPTS version: 3 updated: 2023/06/03 15:17:30
dnl ---------------
dnl prompt for/fill-in useful install-program options
AC_DEFUN([CF_INSTALL_OPTS],
@@ -2134,6 +2288,7 @@ AC_DEFUN([CF_INSTALL_OPTS],
CF_INSTALL_OPT_S
CF_INSTALL_OPT_P
CF_INSTALL_OPT_O
+CF_INSTALL_OPT_STRIP_PROG
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_INSTALL_OPT_O version: 3 updated: 2020/12/31 20:19:42
@@ -2220,6 +2375,106 @@ fi
AC_SUBST(INSTALL_OPT_S)
])dnl
dnl ---------------------------------------------------------------------------
+dnl CF_INSTALL_OPT_STRIP_PROG version: 1 updated: 2023/06/03 15:17:30
+dnl -------------------------
+dnl Provide an option for overriding the strip program used in install "-s"
+dnl
+dnl coreutils install provides a --strip-program option
+dnl FreeBSD uses STRIPBIN environment variable, while NetBSD and OpenBSD use
+dnl STRIP environment variable. Other versions of install do not support this.
+AC_DEFUN([CF_INSTALL_OPT_STRIP_PROG],
+[
+AC_REQUIRE([CF_INSTALL_OPT_S])
+if test -n "$INSTALL_OPT_S"
+then
+ AC_MSG_CHECKING(if you want to specify strip-program)
+ AC_ARG_WITH(strip-program,
+ [ --with-strip-program=XX specify program to use when stripping in install],
+ [with_strip_program=$withval],
+ [with_strip_program=no])
+ AC_MSG_RESULT($with_strip_program)
+ if test "$with_strip_program" != no
+ then
+ AC_MSG_CHECKING(if strip-program is supported with this installer)
+ cf_install_program=`echo "$INSTALL" | sed -e 's%[[ ]]*[[ ]]-.%%'`
+ check_install_strip=no
+ if test -f "$cf_install_program"
+ then
+ check_install_version=`"$cf_install_program" --version 2>/dev/null | head -n 1 | grep coreutils`
+ if test -n "$check_install_version"
+ then
+ check_install_strip="option"
+ else
+ for check_strip_variable in STRIPBIN STRIP
+ do
+ if strings "$cf_install_program" | grep "^$check_strip_variable[$]" >/dev/null
+ then
+ check_install_strip="environ"
+ break
+ fi
+ done
+ fi
+ fi
+ AC_MSG_RESULT($check_install_strip)
+ case "$check_install_strip" in
+ (no)
+ AC_MSG_WARN($cf_install_program does not support strip program option)
+ with_strip_program=no
+ ;;
+ (environ)
+ cat >install.tmp <<-CF_EOF
+ #! $SHELL
+ STRIPBIN="$with_strip_program" \\
+ STRIP="$with_strip_program" \\
+ $INSTALL "[$]@"
+ CF_EOF
+ INSTALL="`pwd`/install.tmp"
+ chmod +x "$INSTALL"
+ CF_VERBOSE(created $INSTALL)
+ ;;
+ (option)
+ INSTALL_OPT_S="$INSTALL_OPT_S --strip-program=\"$with_strip_program\""
+ ;;
+ esac
+ fi
+fi
+AC_SUBST(INSTALL_OPT_S)
+])dnl
+dnl ---------------------------------------------------------------------------
+dnl CF_INSTALL_PREFIX version: 1 updated: 2024/08/10 20:16:32
+dnl -----------------
+dnl Special option for use by system-builders: the install-prefix is used to
+dnl adjust the location into which the actual install is done, so that an
+dnl archive can be built without modifying the host system's configuration.
+AC_DEFUN([CF_INSTALL_PREFIX],[
+AC_MSG_CHECKING(for an installation directory prefix)
+AC_ARG_WITH(install-prefix,
+ [ --with-install-prefix=DESTDIR use DESTDIR as installation directory prefix],
+ [case "x$withval" in
+ (xyes|xno)
+ ;;
+ (*) DESTDIR="$withval"
+ ;;
+ esac])
+AC_MSG_RESULT([${DESTDIR:-(none)}])
+AC_SUBST(DESTDIR)
+
+AC_MSG_CHECKING(if installation directory prefix should be merged)
+CF_ARG_ENABLE(install-prefix,
+ [ --enable-install-prefix merge DESTDIR with installation prefix],
+ cf_install_prefix=yes,
+ cf_install_prefix=no)
+AC_MSG_RESULT($cf_install_prefix)
+
+if test "$cf_install_prefix" = yes ; then
+ MERGE_PREFIX=':$(prefix)%=%'
+else
+ MERGE_PREFIX=''
+fi
+
+AC_SUBST(MERGE_PREFIX)
+])dnl
+dnl ---------------------------------------------------------------------------
dnl CF_INTEL_COMPILER version: 9 updated: 2023/02/18 17:41:25
dnl -----------------
dnl Check if the given compiler is really the Intel compiler for Linux. It
@@ -2258,7 +2513,7 @@ cf_save_CFLAGS="$cf_save_CFLAGS -we147"
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_LARGEFILE version: 12 updated: 2020/03/19 20:23:48
+dnl CF_LARGEFILE version: 13 updated: 2023/12/03 19:09:59
dnl ------------
dnl Add checks for large file support.
AC_DEFUN([CF_LARGEFILE],[
@@ -2292,11 +2547,15 @@ ifdef([AC_FUNC_FSEEKO],[
#pragma GCC diagnostic error "-Wincompatible-pointer-types"
#include
#include
+
+#ifndef __REDIRECT
+/* if transitional largefile support is setup, this is true */
+extern struct dirent64 * readdir(DIR *);
+#endif
],[
- /* if transitional largefile support is setup, this is true */
- extern struct dirent64 * readdir(DIR *);
- struct dirent64 *x = readdir((DIR *)0);
- struct dirent *y = readdir((DIR *)0);
+ DIR *dp = opendir(".");
+ struct dirent64 *x = readdir(dp);
+ struct dirent *y = readdir(dp);
int z = x - y;
(void)z;
],
@@ -2527,7 +2786,7 @@ AC_DEFUN([CF_LIB_TYPE],
test -n "$LIB_SUFFIX" && $2="${LIB_SUFFIX}[$]{$2}"
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_LINK_DATAONLY version: 13 updated: 2020/02/08 15:59:30
+dnl CF_LINK_DATAONLY version: 15 updated: 2023/12/03 10:03:10
dnl ----------------
dnl Some systems have a non-ANSI linker that doesn't pull in modules that have
dnl only data (i.e., no functions), for example NeXT. On those systems we'll
@@ -2549,17 +2808,21 @@ EOF
rm -f conftest.$ac_ext data.o
cat >conftest.$ac_ext <&AC_FD_CC
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_NCURSES_ADDON version: 6 updated: 2021/01/04 19:33:05
+dnl CF_NCURSES_ADDON version: 7 updated: 2024/06/01 17:37:13
dnl ----------------
dnl Configure an ncurses add-on, built outside the ncurses tree.
AC_DEFUN([CF_NCURSES_ADDON],[
@@ -2852,18 +3115,29 @@ AC_REQUIRE([CF_NCURSES_CONFIG])
AC_PROVIDE([CF_SUBST_NCURSES_VERSION])
-AC_MSG_CHECKING(if you want wide-character code)
-AC_ARG_ENABLE(widec,
- [ --enable-widec compile with wide-char/UTF-8 code],
- [with_widec=$enableval],
- [with_widec=no])
-AC_MSG_RESULT($with_widec)
-if test "$with_widec" = yes ; then
+AC_MSG_CHECKING(for specified curses library type)
+AC_ARG_WITH(screen,
+ [ --with-screen=XXX use specified curses-libraries],
+ [cf_cv_screen=$withval],
+ [cf_cv_screen=ncurses])
+
+case $cf_cv_screen in
+(curses|curses_*)
+ CF_CURSES_CONFIG
+ ;;
+(ncursesw*)
CF_UTF8_LIB
- CF_NCURSES_CONFIG(ncursesw)
-else
- CF_NCURSES_CONFIG(ncurses)
-fi
+ CF_NCURSES_CONFIG($cf_cv_screen)
+ ;;
+(ncurses*)
+ CF_NCURSES_CONFIG($cf_cv_screen)
+ ;;
+(*)
+ AC_MSG_ERROR(unexpected screen-value: $cf_cv_screen)
+ ;;
+esac
+
+AC_SUBST(cf_cv_screen)
if test "$NCURSES_CONFIG_PKG" != none ; then
cf_version=`$PKG_CONFIG --modversion $NCURSES_CONFIG_PKG 2>/dev/null`
@@ -2927,11 +3201,14 @@ dnl We need these values in the generated makefiles
AC_SUBST(cf_cv_rel_version)
AC_SUBST(cf_cv_abi_version)
-dnl FIXME - not needed for Ada95
-AC_SUBST(cf_cv_builtin_bool)
-AC_SUBST(cf_cv_header_stdbool_h)
-AC_SUBST(cf_cv_type_of_bool)dnl
-
+AC_CACHE_CHECK(if KEY_RESIZE is supported,cf_cv_curses_resizes,[
+ AC_TRY_COMPILE([#include <${cf_cv_ncurses_header:-curses.h}>],
+ [int key = KEY_RESIZE; (void)key],
+ cf_cv_curses_resizes=yes,
+ cf_cv_curses_resizes=no)])
+cf_cv_enable_sigwinch=0
+test "$cf_cv_curses_resizes" = yes && cf_cv_enable_sigwinch=1
+AC_SUBST(cf_cv_enable_sigwinch)
])
dnl ---------------------------------------------------------------------------
dnl CF_NCURSES_CC_CHECK version: 6 updated: 2023/02/18 17:47:58
@@ -2967,7 +3244,7 @@ printf("old\\n");
,[$1=no])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_NCURSES_CONFIG version: 28 updated: 2021/08/28 15:20:37
+dnl CF_NCURSES_CONFIG version: 29 updated: 2025/01/10 19:55:54
dnl -----------------
dnl Tie together the configure-script macros for ncurses, preferring these in
dnl order:
@@ -3028,6 +3305,7 @@ if test "x${PKG_CONFIG:=none}" != xnone; then
;;
esac
+ CF_REQUIRE_PKG($cf_ncuconfig_root)
CF_APPEND_CFLAGS($cf_pkg_cflags)
CF_ADD_LIBS($cf_pkg_libs)
@@ -3282,7 +3560,7 @@ CF_UPPER(cf_nculib_ROOT,HAVE_LIB$cf_nculib_root)
AC_DEFINE_UNQUOTED($cf_nculib_ROOT)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_NCURSES_VERSION version: 17 updated: 2023/01/05 18:54:02
+dnl CF_NCURSES_VERSION version: 18 updated: 2024/01/07 06:34:16
dnl ------------------
dnl Check for the version of ncurses, to aid in reporting bugs, etc.
dnl Call CF_CURSES_CPPFLAGS first, or CF_NCURSES_CPPFLAGS. We don't use
@@ -3312,7 +3590,7 @@ int main(void)
# ifdef __NCURSES_H
fprintf(fp, "old\\n");
# else
- make an error
+ #error expected ncurses header to define __NCURSES_H
# endif
#endif
${cf_cv_main_return:-return}(0);
@@ -3382,35 +3660,35 @@ ifelse([$1],,,[$1=$PATH_SEPARATOR])
AC_MSG_RESULT($PATH_SEPARATOR)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_PATH_SYNTAX version: 18 updated: 2020/12/31 18:40:20
+dnl CF_PATH_SYNTAX version: 19 updated: 2024/08/03 13:08:58
dnl --------------
dnl Check the argument to see that it looks like a pathname. Rewrite it if it
dnl begins with one of the prefix/exec_prefix variables, and then again if the
dnl result begins with 'NONE'. This is necessary to work around autoconf's
dnl delayed evaluation of those symbols.
AC_DEFUN([CF_PATH_SYNTAX],[
+AC_REQUIRE([CF_GLOB_FULLPATH])dnl
+
if test "x$prefix" != xNONE; then
cf_path_syntax="$prefix"
else
cf_path_syntax="$ac_default_prefix"
fi
-case ".[$]$1" in
-(.\[$]\(*\)*|.\'*\'*)
- ;;
-(..|./*|.\\*)
+case "x[$]$1" in
+(x\[$]\(*\)*|x\'*\'*)
;;
-(.[[a-zA-Z]]:[[\\/]]*) # OS/2 EMX
+(x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
;;
-(.\[$]\{*prefix\}*|.\[$]\{*dir\}*)
+(x\[$]\{*prefix\}*|x\[$]\{*dir\}*)
eval $1="[$]$1"
- case ".[$]$1" in
- (.NONE/*)
+ case "x[$]$1" in
+ (xNONE/*)
$1=`echo "[$]$1" | sed -e s%NONE%$cf_path_syntax%`
;;
esac
;;
-(.no|.NONE/*)
+(xno|xNONE/*)
$1=`echo "[$]$1" | sed -e s%NONE%$cf_path_syntax%`
;;
(*)
@@ -3419,7 +3697,7 @@ case ".[$]$1" in
esac
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_PKG_CONFIG version: 12 updated: 2021/10/10 20:18:09
+dnl CF_PKG_CONFIG version: 13 updated: 2023/10/28 11:59:01
dnl -------------
dnl Check for the package-config program, unless disabled by command-line.
dnl
@@ -3428,7 +3706,7 @@ AC_DEFUN([CF_PKG_CONFIG],
[
AC_MSG_CHECKING(if you want to use pkg-config)
AC_ARG_WITH(pkg-config,
- [ --with-pkg-config{=path} enable/disable use of pkg-config],
+ [[ --with-pkg-config[=CMD] enable/disable use of pkg-config and its name CMD]],
[cf_pkg_config=$withval],
[cf_pkg_config=yes])
AC_MSG_RESULT($cf_pkg_config)
@@ -3782,15 +4060,16 @@ AC_SUBST(cf_ada_config_Ada)
AC_SUBST(cf_ada_config_C)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_PROG_INSTALL version: 10 updated: 2021/01/04 19:33:05
+dnl CF_PROG_INSTALL version: 11 updated: 2024/08/03 13:08:58
dnl ---------------
dnl Force $INSTALL to be an absolute-path. Otherwise, edit_man.sh and the
dnl misc/tabset install won't work properly. Usually this happens only when
dnl using the fallback mkinstalldirs script
AC_DEFUN([CF_PROG_INSTALL],
[AC_PROG_INSTALL
-case $INSTALL in
-(/*)
+AC_REQUIRE([CF_GLOB_FULLPATH])dnl
+case x$INSTALL in
+(x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
;;
(*)
CF_DIRNAME(cf_dir,$INSTALL)
@@ -3870,6 +4149,30 @@ define([CF_REMOVE_LIB],
$1=`echo "$2" | sed -e 's/-l$3[[ ]]//g' -e 's/-l$3[$]//'`
])dnl
dnl ---------------------------------------------------------------------------
+dnl CF_REQUIRE_PKG version: 1 updated: 2025/01/10 19:55:54
+dnl --------------
+dnl Update $REQUIRE_PKG, which lists the known required packages for this
+dnl program.
+dnl
+dnl $1 = package(s) to require, e.g., in the generated ".pc" file
+define([CF_REQUIRE_PKG],
+[
+for cf_required in $1
+do
+ # check for duplicates
+ for cf_require_pkg in $REQUIRE_PKG
+ do
+ if test "$cf_required" = "$cf_require_pkg"
+ then
+ cf_required=
+ break
+ fi
+ done
+ test -n "$cf_required" && REQUIRE_PKG="$REQUIRE_PKG $cf_required"
+done
+AC_SUBST(REQUIRE_PKG)
+])dnl
+dnl ---------------------------------------------------------------------------
dnl CF_RESTORE_XTRA_FLAGS version: 1 updated: 2020/01/11 16:47:45
dnl ---------------------
dnl Restore flags saved in CF_SAVE_XTRA_FLAGS
@@ -3906,7 +4209,7 @@ do
done
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_SHARED_OPTS version: 107 updated: 2021/09/04 06:47:34
+dnl CF_SHARED_OPTS version: 112 updated: 2024/12/14 16:09:34
dnl --------------
dnl --------------
dnl Attempt to determine the appropriate CC/LD options for creating a shared
@@ -3952,9 +4255,9 @@ AC_DEFUN([CF_SHARED_OPTS],
cf_ld_rpath_opt=
test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
- AC_MSG_CHECKING(if release/abi version should be used for shared libs)
+ AC_MSG_CHECKING(whether to use release or ABI version in shared library file names)
AC_ARG_WITH(shlib-version,
- [ --with-shlib-version=X Specify rel or abi version for shared libs],
+ [[ --with-shlib-version[={rel|abi}] use release or ABI version in shared library file names]],
[test -z "$withval" && withval=auto
case "$withval" in
(yes)
@@ -3996,7 +4299,7 @@ AC_DEFUN([CF_SHARED_OPTS],
for CC_SHARED_OPTS in -fPIC -fpic ''
do
CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
- AC_TRY_COMPILE([#include ],[int x = 1],[break],[])
+ AC_TRY_COMPILE([#include ],[int x = 1; (void)x],[break],[])
done
AC_MSG_RESULT($CC_SHARED_OPTS)
CFLAGS="$cf_save_CFLAGS"
@@ -4366,11 +4669,11 @@ CF_EOF
# tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
# tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
if test "$DFT_LWR_MODEL" = "shared" ; then
- LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
+ LOCAL_LDFLAGS="-R\$(LOCAL_LIBDIR):\${libdir}"
LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
fi
if test "$cf_cv_enable_rpath" = yes ; then
- EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
+ EXTRA_LDFLAGS="-R\${libdir} $EXTRA_LDFLAGS"
fi
CF_SHARED_SONAME
if test "$GCC" != yes; then
@@ -4382,9 +4685,9 @@ CF_EOF
done
CFLAGS="$cf_save_CFLAGS"
CC_SHARED_OPTS=$cf_shared_opts
- MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $[@]'
+ MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -Wl,-h,'$cf_cv_shared_soname' -o $[@]'
else
- MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $[@]'
+ MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -Wl,-h,'$cf_cv_shared_soname' -o $[@]'
fi
;;
(sysv5uw7*|unix_sv*)
@@ -4422,7 +4725,7 @@ cat > conftest.$ac_ext </dev/null`
+ case "x$cf_file_gnatgcc" in
+ (*script*)
+ cf_cv_path_gnatgcc=`sh -x "$cf_cv_path_gnatgcc" --version 2>&1 | grep -w exec | sed -e 's/^[[ ]]*+[[ ]]*//' -e 's/exec[[ ]]//' -e 's/ .*//'`
+ ;;
+ (*)
+ cf_cv_path_gnatgcc=no
+ ;;
+ esac
+ AC_MSG_RESULT($cf_cv_path_gnatgcc)
+ test "$cf_cv_path_gnatgcc" = no && cf_cv_path_gnatgcc=gnatgcc
+ cf_prog_cc="$cf_cv_path_gnatgcc $cf_prog_cc"
+ fi
+ fi
+fi
+case "$cf_prog_cc" in
+(*/*)
+ CC="$cf_prog_cc"
+ AC_SUBST(CC)
+ ;;
+(*)
+ CF_PROG_CC($cf_prog_cc)
+ ;;
+esac
+])dnl
+dnl ---------------------------------------------------------------------------
+dnl CF_WITH_ADA_COMPILER version: 3 updated: 2023/10/28 11:59:01
dnl --------------------
dnl Command-line option to specify the Ada95 compiler.
AC_DEFUN([CF_WITH_ADA_COMPILER],[
-AC_MSG_CHECKING(for ada-compiler)
+AC_MSG_CHECKING(for Ada95 compiler)
AC_ARG_WITH(ada-compiler,
- [ --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)],
+ [[ --with-ada-compiler[=CMD] use CMD as Ada95 compiler (default: gnatmake)]],
[cf_ada_compiler=$withval],
[cf_ada_compiler=gnatmake])
AC_SUBST(cf_ada_compiler)
AC_MSG_RESULT($cf_ada_compiler)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_ADA_INCLUDE version: 2 updated: 2010/06/26 17:35:58
+dnl CF_WITH_ADA_INCLUDE version: 3 updated: 2023/10/28 11:59:01
dnl -------------------
dnl Command-line option to specify where Ada includes will install.
AC_DEFUN([CF_WITH_ADA_INCLUDE],[
-AC_MSG_CHECKING(for ada-include)
+AC_MSG_CHECKING(for Ada95 include directory)
CF_WITH_PATH(ada-include,
- [ --with-ada-include=DIR Ada includes are in DIR],
+ [ --with-ada-include=DIR find Ada95 includes in DIR],
ADA_INCLUDE,
PREFIX/share/ada/adainclude,
[$]prefix/share/ada/adainclude)
@@ -4697,16 +5050,16 @@ AC_SUBST(ADA_INCLUDE)
AC_MSG_RESULT($ADA_INCLUDE)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_ADA_LIBNAME version: 1 updated: 2019/09/07 18:59:41
+dnl CF_WITH_ADA_LIBNAME version: 3 updated: 2023/11/22 20:48:30
dnl -------------------
dnl CF_WITH_ADA_LIBNAME
dnl -------------------
dnl Command-line option to specify how to name the resulting Ada library.
dnl $1 = default value
AC_DEFUN([CF_WITH_ADA_LIBNAME],[
-AC_MSG_CHECKING(for ada-libname)
+AC_MSG_CHECKING(for Ada95 curses library name)
AC_ARG_WITH(ada-libname,
- [ --with-ada-libname=XXX override default Ada library-name],
+ [[ --with-ada-libname[=XXX] use XXX as Ada95 library name]],
ADA_LIBNAME=[$]withval,
ADA_LIBNAME=$1)
case "x$ADA_LIBNAME" in
@@ -4718,13 +5071,13 @@ AC_SUBST(ADA_LIBNAME)
AC_MSG_RESULT($ADA_LIBNAME)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_ADA_OBJECTS version: 2 updated: 2010/06/26 17:35:58
+dnl CF_WITH_ADA_OBJECTS version: 3 updated: 2023/10/28 11:59:01
dnl -------------------
dnl Command-line option to specify where Ada objects will install.
AC_DEFUN([CF_WITH_ADA_OBJECTS],[
-AC_MSG_CHECKING(for ada-objects)
+AC_MSG_CHECKING(for Ada95 object directory)
CF_WITH_PATH(ada-objects,
- [ --with-ada-objects=DIR Ada objects are in DIR],
+ [ --with-ada-objects=DIR find Ada95 objects in DIR],
ADA_OBJECTS,
PREFIX/lib/ada/adalib,
[$]prefix/lib/ada/adalib)
@@ -4732,28 +5085,34 @@ AC_SUBST(ADA_OBJECTS)
AC_MSG_RESULT($ADA_OBJECTS)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_ADA_SHAREDLIB version: 5 updated: 2018/07/21 19:10:35
+dnl CF_WITH_ADA_SHAREDLIB version: 6 updated: 2023/10/28 11:59:01
dnl ---------------------
-dnl Command-line option to specify if an Ada95 shared-library should be built,
+dnl Command-line option to specify if an Ada95 shared library should be built,
dnl and optionally what its soname should be.
AC_DEFUN([CF_WITH_ADA_SHAREDLIB],[
AC_REQUIRE([CF_GNAT_PROJECTS])
-AC_MSG_CHECKING(if an Ada95 shared-library should be built)
+AC_MSG_CHECKING(whether to build an Ada95 shared library)
AC_ARG_WITH(ada-sharedlib,
- [ --with-ada-sharedlib=soname build shared-library (requires GNAT projects)],
+ [ --with-ada-sharedlib build Ada95 shared library; requires GNAT project support],
[with_ada_sharedlib=$withval],
[with_ada_sharedlib=no])
-AC_MSG_RESULT($with_ada_sharedlib)
+cf_ada_sharedlib_warn=no
if test "x$with_ada_sharedlib" != xno
then
if test "x$cf_gnat_projects" != xyes
then
- AC_MSG_WARN(disabling shared-library since GNAT projects are not supported)
with_ada_sharedlib=no
+ cf_ada_sharedlib_warn=yes
fi
fi
+AC_MSG_RESULT($with_ada_sharedlib)
+if test "x$cf_ada_sharedlib_warn" != xno
+then
+ AC_MSG_WARN(disabling Ada95 shared library since GNAT projects are not supported)
+fi
+
ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
MAKE_ADA_SHAREDLIB="#"
@@ -4841,7 +5200,7 @@ eval $3="$withval"
AC_SUBST($3)dnl
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_PKG_CONFIG_LIBDIR version: 21 updated: 2023/01/22 13:37:42
+dnl CF_WITH_PKG_CONFIG_LIBDIR version: 25 updated: 2024/08/03 13:34:29
dnl -------------------------
dnl Allow the choice of the pkg-config library directory to be overridden.
dnl
@@ -4855,6 +5214,7 @@ dnl pkgconf (used with some systems such as FreeBSD in place of pkg-config)
dnl optionally ignores $PKG_CONFIG_LIBDIR. Very old versions of pkg-config,
dnl e.g., Solaris 10 also do not recognize $PKG_CONFIG_LIBDIR.
AC_DEFUN([CF_WITH_PKG_CONFIG_LIBDIR],[
+AC_REQUIRE([CF_GLOB_FULLPATH])dnl
case "$PKG_CONFIG" in
(no|none|yes)
@@ -4876,7 +5236,7 @@ fi
# if the option is used, let that override. otherwise default to "libdir"
AC_ARG_WITH(pkg-config-libdir,
- [ --with-pkg-config-libdir=XXX use given directory for installing pc-files],
+ [[ --with-pkg-config-libdir[=XXX] use given directory for installing pc-files]],
[cf_search_path=$withval],
[test "x$PKG_CONFIG" != xnone && test -z "$cf_search_path" && cf_search_path=libdir])
@@ -4888,10 +5248,10 @@ case "x$cf_search_path" in
;;
(x)
;;
-(x/*\ *)
+(x$GLOB_FULLPATH_POSIX\ *|x$GLOB_FULLPATH_OTHER\ *)
PKG_CONFIG_LIBDIR=
;;
-(x/*)
+(x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
PKG_CONFIG_LIBDIR="$cf_search_path"
AC_MSG_RESULT($PKG_CONFIG_LIBDIR)
cf_search_path=
@@ -4910,7 +5270,15 @@ case "x$cf_search_path" in
pkg-config \
pkgconf
do
- cf_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null | tr : ' '`
+ cf_raw_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null`
+ case "$cf_raw_search_path" in
+ (*\\*)
+ cf_search_path=`echo "$cf_raw_search_path" | tr ';' ' ' | tr '\' '/'`
+ ;;
+ (*/*)
+ cf_search_path=`echo "$cf_raw_search_path" | tr : ' '`
+ ;;
+ esac
test -n "$cf_search_path" && break
done
@@ -5045,7 +5413,7 @@ AC_ARG_WITH(system-type,
])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_XOPEN_SOURCE version: 64 updated: 2023/02/18 17:41:25
+dnl CF_XOPEN_SOURCE version: 68 updated: 2024/11/09 18:07:29
dnl ---------------
dnl Try to get _XOPEN_SOURCE defined properly that we can use POSIX functions,
dnl or adapt to the vendor's definitions to get equivalent functionality,
@@ -5054,6 +5422,18 @@ dnl
dnl Parameters:
dnl $1 is the nominal value for _XOPEN_SOURCE
dnl $2 is the nominal value for _POSIX_C_SOURCE
+dnl
+dnl The default case prefers _XOPEN_SOURCE over _POSIX_C_SOURCE if the
+dnl implementation predefines it, because X/Open and most implementations agree
+dnl that the latter is a legacy or "aligned" value.
+dnl
+dnl Because _XOPEN_SOURCE is preferred, if defining _POSIX_C_SOURCE turns
+dnl that off, then refrain from setting _POSIX_C_SOURCE explicitly.
+dnl
+dnl References:
+dnl https://pubs.opengroup.org/onlinepubs/007904975/functions/xsh_chap02_02.html
+dnl https://docs.oracle.com/cd/E19253-01/816-5175/standards-5/index.html
+dnl https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html
AC_DEFUN([CF_XOPEN_SOURCE],[
AC_REQUIRE([AC_CANONICAL_HOST])
AC_REQUIRE([CF_POSIX_VISIBLE])
@@ -5093,9 +5473,12 @@ case "$host_os" in
cf_xopen_source="-D_SGI_SOURCE"
cf_XOPEN_SOURCE=
;;
-(linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys)
+(linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*|linux*uclibc)
CF_GNU_SOURCE($cf_XOPEN_SOURCE)
;;
+linux*musl)
+ cf_xopen_source="-D_BSD_SOURCE"
+ ;;
(minix*)
cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
;;
@@ -5145,8 +5528,8 @@ case "$host_os" in
cf_save_xopen_cppflags="$CPPFLAGS"
CF_POSIX_C_SOURCE($cf_POSIX_C_SOURCE)
# Some of these niche implementations use copy/paste, double-check...
- if test "$cf_cv_xopen_source" != no ; then
- CF_VERBOSE(checking if _POSIX_C_SOURCE inteferes)
+ if test "$cf_cv_xopen_source" = no ; then
+ CF_VERBOSE(checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE)
AC_TRY_COMPILE(CF__XOPEN_SOURCE_HEAD,CF__XOPEN_SOURCE_BODY,,[
AC_MSG_WARN(_POSIX_C_SOURCE definition is not usable)
CPPFLAGS="$cf_save_xopen_cppflags"])
diff --git a/Ada95/configure b/Ada95/configure
index 64aefa5e..b7e8e5f6 100755
--- a/Ada95/configure
+++ b/Ada95/configure
@@ -1,7 +1,7 @@
#! /bin/sh
-# From configure.in Revision: 1.91 .
+# From configure.in Revision: 1.94 .
# Guess values for system-dependent variables and create Makefiles.
-# Generated by Autoconf 2.52.20230114.
+# Generated by Autoconf 2.52.20240618.
#
# Copyright 2003-2022,2023 Thomas E. Dickey
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
@@ -481,6 +481,10 @@ do
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
x_libraries=$ac_optarg ;;
+ -*dir | -dvi* | -doc* | -html* | -local* | -pdf* | -ps* )
+ echo "$as_me: WARNING: unsupported option: $ac_option" >&2
+ ;;
+
-*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
{ (exit 1); exit 1; }; }
@@ -703,12 +707,15 @@ Optional Features:
General Options:
--with-system-type=XXX test: override derived host system-type
+ --without-ada suppress check for Ada compiler
--disable-stripping do not strip (debug info) installed executables
- --with-pkg-config{=path} enable/disable use of pkg-config
- --with-pkg-config-libdir=XXX use given directory for installing pc-files
+ --with-strip-program=XX specify program to use when stripping in install
+ --with-pkg-config[=CMD] enable/disable use of pkg-config and its name CMD
+ --with-pkg-config-libdir[=XXX] use given directory for installing pc-files
--without-tests suppress build with test-programs
--enable-mixed-case tic should assume mixed-case filenames
- --with-install-prefix prefixes actual install-location ($DESTDIR)
+ --with-install-prefix=DESTDIR use DESTDIR as installation directory prefix
+ --enable-install-prefix merge DESTDIR with installation prefix
Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
--with-build-cc=XXX the build C compiler ($BUILD_CC)
--with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
@@ -719,9 +726,9 @@ Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
Options to Specify the Libraries Built/Used:
--with-shared generate shared C-objects (needed for --with-ada-sharedlib)
--with-curses-dir=DIR directory in which (n)curses is installed
- --enable-widec compile with wide-char/UTF-8 code
+ --with-screen=XXX use specified curses-libraries
--with-lib-prefix override library-prefix
- --with-shlib-version=X Specify rel or abi version for shared libs
+ --with-shlib-version[={rel|abi}] use release or ABI version in shared library file names
--enable-rpath-link link sample programs with rpath option
Fine-Tuning Your Configuration:
--enable-broken_linker compile with broken-linker support code
@@ -747,11 +754,11 @@ Testing/development Options:
--with-trace test: add trace() function to all models of ncurses
--disable-gnat-projects test: disable GNAT projects even if usable
Ada95 Binding Options:
- --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
- --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
- --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
- --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
- --with-ada-libname=XXX override default Ada library-name
+ --with-ada-compiler[=CMD] use CMD as Ada95 compiler (default: gnatmake)
+ --with-ada-include=DIR find Ada95 includes in DIR (default: PREFIX/share/ada/adainclude)
+ --with-ada-objects=DIR find Ada95 objects in DIR (default: PREFIX/lib/ada/adalib)
+ --with-ada-sharedlib build Ada95 shared library; requires GNAT project support
+ --with-ada-libname[=XXX] use XXX as Ada95 library name
Some influential environment variables:
CC C compiler command
@@ -822,7 +829,7 @@ This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by $as_me, which was
-generated by GNU Autoconf 2.52.20230114. Invocation command line was
+generated by GNU Autoconf 2.52.20240618. Invocation command line was
$ $0 $@
@@ -946,7 +953,7 @@ if test -z "$CONFIG_SITE"; then
fi
for ac_site_file in $CONFIG_SITE; do
if test -r "$ac_site_file"; then
- { echo "$as_me:949: loading site script $ac_site_file" >&5
+ { echo "$as_me:956: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
cat "$ac_site_file" >&5
. "$ac_site_file"
@@ -957,7 +964,7 @@ if test -r "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special
# files actually), so we avoid doing that.
if test -f "$cache_file"; then
- { echo "$as_me:960: loading cache $cache_file" >&5
+ { echo "$as_me:967: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
case $cache_file in
[\\/]* | ?:[\\/]* ) . $cache_file;;
@@ -965,7 +972,7 @@ echo "$as_me: loading cache $cache_file" >&6;}
esac
fi
else
- { echo "$as_me:968: creating cache $cache_file" >&5
+ { echo "$as_me:975: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
>$cache_file
fi
@@ -981,21 +988,21 @@ for ac_var in `(set) 2>&1 |
eval ac_new_val="\$ac_env_${ac_var}_value"
case "$ac_old_set,$ac_new_set" in
set,)
- { echo "$as_me:984: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+ { echo "$as_me:991: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ac_cache_corrupted=: ;;
,set)
- { echo "$as_me:988: error: \`$ac_var' was not set in the previous run" >&5
+ { echo "$as_me:995: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ac_cache_corrupted=: ;;
,);;
*)
if test "x$ac_old_val" != "x$ac_new_val"; then
- { echo "$as_me:994: error: \`$ac_var' has changed since the previous run:" >&5
+ { echo "$as_me:1001: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
- { echo "$as_me:996: former value: $ac_old_val" >&5
+ { echo "$as_me:1003: former value: $ac_old_val" >&5
echo "$as_me: former value: $ac_old_val" >&2;}
- { echo "$as_me:998: current value: $ac_new_val" >&5
+ { echo "$as_me:1005: current value: $ac_new_val" >&5
echo "$as_me: current value: $ac_new_val" >&2;}
ac_cache_corrupted=:
fi;;
@@ -1014,9 +1021,9 @@ echo "$as_me: current value: $ac_new_val" >&2;}
fi
done
if "$ac_cache_corrupted"; then
- { echo "$as_me:1017: error: changes in the environment can compromise the build" >&5
+ { echo "$as_me:1024: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
- { { echo "$as_me:1019: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
+ { { echo "$as_me:1026: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
{ (exit 1); exit 1; }; }
fi
@@ -1045,10 +1052,10 @@ esac
echo "#! $SHELL" >conftest.sh
echo "exit 0" >>conftest.sh
chmod +x conftest.sh
-if { (echo "$as_me:1048: PATH=\".;.\"; conftest.sh") >&5
+if { (echo "$as_me:1055: PATH=\".;.\"; conftest.sh") >&5
(PATH=".;."; conftest.sh) 2>&5
ac_status=$?
- echo "$as_me:1051: \$? = $ac_status" >&5
+ echo "$as_me:1058: \$? = $ac_status" >&5
(exit "$ac_status"); }; then
ac_path_separator=';'
else
@@ -1080,7 +1087,7 @@ for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
fi
done
if test -z "$ac_aux_dir"; then
- { { echo "$as_me:1083: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
+ { { echo "$as_me:1090: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
{ (exit 1); exit 1; }; }
fi
@@ -1090,11 +1097,11 @@ ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
- { { echo "$as_me:1093: error: cannot run $ac_config_sub" >&5
+ { { echo "$as_me:1100: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
{ (exit 1); exit 1; }; }
-echo "$as_me:1097: checking build system type" >&5
+echo "$as_me:1104: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1103,23 +1110,23 @@ else
test -z "$ac_cv_build_alias" &&
ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
- { { echo "$as_me:1106: error: cannot guess build type; you must specify one" >&5
+ { { echo "$as_me:1113: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
{ (exit 1); exit 1; }; }
ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
- { { echo "$as_me:1110: error: $ac_config_sub $ac_cv_build_alias failed." >&5
+ { { echo "$as_me:1117: error: $ac_config_sub $ac_cv_build_alias failed." >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
{ (exit 1); exit 1; }; }
fi
-echo "$as_me:1115: result: $ac_cv_build" >&5
+echo "$as_me:1122: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build
build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-echo "$as_me:1122: checking host system type" >&5
+echo "$as_me:1129: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1128,12 +1135,12 @@ else
test -z "$ac_cv_host_alias" &&
ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
- { { echo "$as_me:1131: error: $ac_config_sub $ac_cv_host_alias failed" >&5
+ { { echo "$as_me:1138: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
{ (exit 1); exit 1; }; }
fi
-echo "$as_me:1136: result: $ac_cv_host" >&5
+echo "$as_me:1143: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host
host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
@@ -1141,7 +1148,7 @@ host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
- echo "$as_me:1144: checking target system type" >&5
+ echo "$as_me:1151: checking target system type" >&5
echo $ECHO_N "checking target system type... $ECHO_C" >&6
if test "${ac_cv_target+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1150,12 +1157,12 @@ else
test "x$ac_cv_target_alias" = "x" &&
ac_cv_target_alias=$ac_cv_host_alias
ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
- { { echo "$as_me:1153: error: $ac_config_sub $ac_cv_target_alias failed" >&5
+ { { echo "$as_me:1160: error: $ac_config_sub $ac_cv_target_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
{ (exit 1); exit 1; }; }
fi
-echo "$as_me:1158: result: $ac_cv_target" >&5
+echo "$as_me:1165: result: $ac_cv_target" >&5
echo "${ECHO_T}$ac_cv_target" >&6
target=$ac_cv_target
target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
@@ -1187,13 +1194,13 @@ else
fi
test -z "$system_name" && system_name="$cf_cv_system_name"
-test -n "$cf_cv_system_name" && echo "$as_me:1190: result: Configuring for $cf_cv_system_name" >&5
+test -n "$cf_cv_system_name" && echo "$as_me:1197: result: Configuring for $cf_cv_system_name" >&5
echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
if test ".$system_name" != ".$cf_cv_system_name" ; then
- echo "$as_me:1194: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
+ echo "$as_me:1201: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
- { { echo "$as_me:1196: error: \"Please remove config.cache and try again.\"" >&5
+ { { echo "$as_me:1203: error: \"Please remove config.cache and try again.\"" >&5
echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
{ (exit 1); exit 1; }; }
fi
@@ -1201,7 +1208,7 @@ fi
# Check whether --with-system-type or --without-system-type was given.
if test "${with_system_type+set}" = set; then
withval="$with_system_type"
- { echo "$as_me:1204: WARNING: overriding system type to $withval" >&5
+ { echo "$as_me:1211: WARNING: overriding system type to $withval" >&5
echo "$as_me: WARNING: overriding system type to $withval" >&2;}
cf_cv_system_name=$withval
host_os=$withval
@@ -1216,7 +1223,7 @@ for ac_prog in ggrep grep
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
-echo "$as_me:1219: checking for $ac_word" >&5
+echo "$as_me:1226: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_GREP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1231,7 +1238,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_GREP="$ac_prog"
-echo "$as_me:1234: found $ac_dir/$ac_word" >&5
+echo "$as_me:1241: found $ac_dir/$ac_word" >&5
break
done
@@ -1239,10 +1246,10 @@ fi
fi
GREP=$ac_cv_prog_GREP
if test -n "$GREP"; then
- echo "$as_me:1242: result: $GREP" >&5
+ echo "$as_me:1249: result: $GREP" >&5
echo "${ECHO_T}$GREP" >&6
else
- echo "$as_me:1245: result: no" >&5
+ echo "$as_me:1252: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -1250,7 +1257,7 @@ fi
done
test -n "$GREP" || GREP=": "
-echo "$as_me:1253: checking for fgrep" >&5
+echo "$as_me:1260: checking for fgrep" >&5
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
if test "${ac_cv_path_FGREP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1262,7 +1269,7 @@ else
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
-echo "$as_me:1265: checking for $ac_word" >&5
+echo "$as_me:1272: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_FGREP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1279,7 +1286,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if $as_executable_p "$ac_dir/$ac_word"; then
ac_cv_path_FGREP="$ac_dir/$ac_word"
- echo "$as_me:1282: found $ac_dir/$ac_word" >&5
+ echo "$as_me:1289: found $ac_dir/$ac_word" >&5
break
fi
done
@@ -1290,10 +1297,10 @@ fi
FGREP=$ac_cv_path_FGREP
if test -n "$FGREP"; then
- echo "$as_me:1293: result: $FGREP" >&5
+ echo "$as_me:1300: result: $FGREP" >&5
echo "${ECHO_T}$FGREP" >&6
else
- echo "$as_me:1296: result: no" >&5
+ echo "$as_me:1303: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -1301,16 +1308,16 @@ fi
done
test -n "$FGREP" || FGREP=": "
- test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1304: error: cannot find workable fgrep" >&5
+ test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1311: error: cannot find workable fgrep" >&5
echo "$as_me: error: cannot find workable fgrep" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
-echo "$as_me:1309: result: $ac_cv_path_FGREP" >&5
+echo "$as_me:1316: result: $ac_cv_path_FGREP" >&5
echo "${ECHO_T}$ac_cv_path_FGREP" >&6
FGREP="$ac_cv_path_FGREP"
-echo "$as_me:1313: checking for prefix" >&5
+echo "$as_me:1320: checking for prefix" >&5
echo $ECHO_N "checking for prefix... $ECHO_C" >&6
if test "x$prefix" = "xNONE" ; then
case "$cf_cv_system_name" in
@@ -1322,11 +1329,11 @@ if test "x$prefix" = "xNONE" ; then
;;
esac
fi
-echo "$as_me:1325: result: $prefix" >&5
+echo "$as_me:1332: result: $prefix" >&5
echo "${ECHO_T}$prefix" >&6
if test "x$prefix" = "xNONE" ; then
-echo "$as_me:1329: checking for default include-directory" >&5
+echo "$as_me:1336: checking for default include-directory" >&5
echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
test -n "$verbose" && echo 1>&6
for cf_symbol in \
@@ -1349,12 +1356,322 @@ do
fi
test -n "$verbose" && echo " tested $cf_dir" 1>&6
done
-echo "$as_me:1352: result: $includedir" >&5
+echo "$as_me:1359: result: $includedir" >&5
echo "${ECHO_T}$includedir" >&6
fi
### Checks for programs.
+# Check whether --with-ada or --without-ada was given.
+if test "${with_ada+set}" = set; then
+ withval="$with_ada"
+ cf_with_ada=$withval
+else
+ cf_with_ada=yes
+fi;
+
+cf_prog_cc="gcc cc"
+if test "x$cf_with_ada" = xyes
+then
+
+for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
+do
+
+cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
+
+ unset ac_cv_path_cf_TEMP_gnat
+ unset cf_TEMP_gnat
+ # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
+set dummy $cf_prog_gnat; ac_word=$2
+echo "$as_me:1386: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $cf_TEMP_gnat in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
+ ;;
+ *)
+ ac_save_IFS=$IFS; IFS=$ac_path_separator
+ac_dummy="$PATH"
+for ac_dir in $ac_dummy; do
+ IFS=$ac_save_IFS
+ test -z "$ac_dir" && ac_dir=.
+ if $as_executable_p "$ac_dir/$ac_word"; then
+ ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
+ echo "$as_me:1403: found $ac_dir/$ac_word" >&5
+ break
+fi
+done
+
+ test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
+ ;;
+esac
+fi
+cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
+
+if test -n "$cf_TEMP_gnat"; then
+ echo "$as_me:1415: result: $cf_TEMP_gnat" >&5
+echo "${ECHO_T}$cf_TEMP_gnat" >&6
+else
+ echo "$as_me:1418: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
+
+ if test "x$cf_TEMP_gnat" != xno; then
+ unset cf_cv_gnat_version
+ unset cf_TEMP_gnat
+
+echo "$as_me:1428: checking for $cf_prog_gnat version" >&5
+echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
+if test "${cf_cv_gnat_version+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
+ grep '[0-9].[0-9][0-9]*' |\
+ sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
+
+fi
+echo "$as_me:1439: result: $cf_cv_gnat_version" >&5
+echo "${ECHO_T}$cf_cv_gnat_version" >&6
+test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
+eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
+
+ fi
+ eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
+
+ unset cf_TEMP_gnat
+ unset cf_cv_gnat_version
+ unset ac_cv_path_cf_TEMP_gnat
+done
+
+if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
+ cf_ada_make=
+ cf_cv_prog_gnat_correct=no
+else
+ cf_ada_make=gnatmake
+ if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
+ # gprconfig is newer than gnatmake; we can continue...
+ cf_ada_config="##"
+ else
+ rm -rf ./conftest* ./*~conftest*
+ if mkdir conftest.src
+ then
+ cf_ada_config=""
+ cd conftest.src
+ for cf_gprconfig in Ada C
+ do
+ echo "$as_me:1468: checking for gprconfig name for $cf_gprconfig" >&5
+echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
+ if test "$cf_gprconfig" = C
+ then
+ for cf_gprconfig_param in \
+ "$cf_gprconfig,,,,GNATGCC" \
+ "$cf_gprconfig,,,,GCC" \
+ "$cf_gprconfig"
+ do
+ cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
+ test -n "$cf_gprconfig_value" && break
+ done
+ else
+ cf_gprconfig_param=$cf_gprconfig
+ cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
+ fi
+ if test -n "$cf_gprconfig_value"
+ then
+ eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
+ echo "$as_me:1487: result: $cf_gprconfig_value" >&5
+echo "${ECHO_T}$cf_gprconfig_value" >&6
+ else
+ echo "$as_me:1490: result: missing" >&5
+echo "${ECHO_T}missing" >&6
+ cf_ada_config="#"
+ break
+ fi
+ done
+ cd ..
+ rm -rf ./conftest* ./*~conftest*
+ fi
+ fi
+ if test "x$cf_ada_config" != "x#"
+ then
+
+echo "$as_me:1503: checking for gnat version" >&5
+echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
+if test "${cf_cv_gnat_version+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
+ grep '[0-9].[0-9][0-9]*' |\
+ sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
+
+fi
+echo "$as_me:1514: result: $cf_cv_gnat_version" >&5
+echo "${ECHO_T}$cf_cv_gnat_version" >&6
+test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
+
+case "$cf_cv_gnat_version" in
+(3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
+ cf_cv_prog_gnat_correct=yes
+ ;;
+(*)
+ { echo "$as_me:1523: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
+echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
+ cf_cv_prog_gnat_correct=no
+ ;;
+esac
+
+ # Extract the first word of "m4", so it can be a program name with args.
+set dummy m4; ac_word=$2
+echo "$as_me:1531: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_M4_exists+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$M4_exists"; then
+ ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
+else
+ ac_save_IFS=$IFS; IFS=$ac_path_separator
+ac_dummy="$PATH"
+for ac_dir in $ac_dummy; do
+ IFS=$ac_save_IFS
+ test -z "$ac_dir" && ac_dir=.
+ $as_executable_p "$ac_dir/$ac_word" || continue
+ac_cv_prog_M4_exists="yes"
+echo "$as_me:1546: found $ac_dir/$ac_word" >&5
+break
+done
+
+ test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
+fi
+fi
+M4_exists=$ac_cv_prog_M4_exists
+if test -n "$M4_exists"; then
+ echo "$as_me:1555: result: $M4_exists" >&5
+echo "${ECHO_T}$M4_exists" >&6
+else
+ echo "$as_me:1558: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ if test "$ac_cv_prog_M4_exists" = no; then
+ cf_cv_prog_gnat_correct=no
+ { echo "$as_me:1564: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
+echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
+ fi
+ if test "$cf_cv_prog_gnat_correct" = yes; then
+ echo "$as_me:1568: checking if GNAT works" >&5
+echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
+
+rm -rf ./conftest* ./*~conftest*
+cat >>conftest.ads <>conftest.adb <&5 2>&1 ) ; then
+ if ( ./conftest 1>&5 2>&1 ) ; then
+ cf_cv_prog_gnat_correct=yes
+ else
+ cf_cv_prog_gnat_correct=no
+ fi
+else
+ cf_cv_prog_gnat_correct=no
+fi
+rm -rf ./conftest* ./*~conftest*
+
+ echo "$as_me:1596: result: $cf_cv_prog_gnat_correct" >&5
+echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
+ fi
+ else
+ cf_cv_prog_gnat_correct=no
+ fi
+fi
+
+ if test "x$cf_cv_prog_gnat_correct" = xyes; then
+ # gcc's developers chose to deprecate gnatgcc before making gprconfig
+ # work. They replaced gnatgcc in gcc 13 with a script which spits out
+ # a warning offering advice which could never work.
+ #
+ # Here is a workaround.
+ # Extract the first word of "gnatgcc", so it can be a program name with args.
+set dummy gnatgcc; ac_word=$2
+echo "$as_me:1612: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_path_cf_cv_path_gnatgcc+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $cf_cv_path_gnatgcc in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_cf_cv_path_gnatgcc="$cf_cv_path_gnatgcc" # Let the user override the test with a path.
+ ;;
+ *)
+ ac_save_IFS=$IFS; IFS=$ac_path_separator
+ac_dummy="$PATH"
+for ac_dir in $ac_dummy; do
+ IFS=$ac_save_IFS
+ test -z "$ac_dir" && ac_dir=.
+ if $as_executable_p "$ac_dir/$ac_word"; then
+ ac_cv_path_cf_cv_path_gnatgcc="$ac_dir/$ac_word"
+ echo "$as_me:1629: found $ac_dir/$ac_word" >&5
+ break
+fi
+done
+
+ test -z "$ac_cv_path_cf_cv_path_gnatgcc" && ac_cv_path_cf_cv_path_gnatgcc="no"
+ ;;
+esac
+fi
+cf_cv_path_gnatgcc=$ac_cv_path_cf_cv_path_gnatgcc
+
+if test -n "$cf_cv_path_gnatgcc"; then
+ echo "$as_me:1641: result: $cf_cv_path_gnatgcc" >&5
+echo "${ECHO_T}$cf_cv_path_gnatgcc" >&6
+else
+ echo "$as_me:1644: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+ if test "$cf_cv_path_gnatgcc" != no
+ then
+ echo "$as_me:1650: checking for improvement" >&5
+echo $ECHO_N "checking for improvement... $ECHO_C" >&6
+ cf_file_gnatgcc=`file -L "$cf_cv_path_gnatgcc" 2>/dev/null`
+ case "x$cf_file_gnatgcc" in
+ (*script*)
+ cf_cv_path_gnatgcc=`sh -x "$cf_cv_path_gnatgcc" --version 2>&1 | grep -w exec | sed -e 's/^[ ]*+[ ]*//' -e 's/exec[ ]//' -e 's/ .*//'`
+ ;;
+ (*)
+ cf_cv_path_gnatgcc=no
+ ;;
+ esac
+ echo "$as_me:1661: result: $cf_cv_path_gnatgcc" >&5
+echo "${ECHO_T}$cf_cv_path_gnatgcc" >&6
+ test "$cf_cv_path_gnatgcc" = no && cf_cv_path_gnatgcc=gnatgcc
+ cf_prog_cc="$cf_cv_path_gnatgcc $cf_prog_cc"
+ fi
+ fi
+fi
+case "$cf_prog_cc" in
+(*/*)
+ CC="$cf_prog_cc"
+
+ ;;
+(*)
+
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
@@ -1362,11 +1679,11 @@ ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ex
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return="return"
if test -n "$ac_tool_prefix"; then
- for ac_prog in gnatgcc gcc cc
+ for ac_prog in $cf_prog_cc
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
-echo "$as_me:1369: checking for $ac_word" >&5
+echo "$as_me:1686: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1381,7 +1698,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
-echo "$as_me:1384: found $ac_dir/$ac_word" >&5
+echo "$as_me:1701: found $ac_dir/$ac_word" >&5
break
done
@@ -1389,10 +1706,10 @@ fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
- echo "$as_me:1392: result: $CC" >&5
+ echo "$as_me:1709: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
- echo "$as_me:1395: result: no" >&5
+ echo "$as_me:1712: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -1401,11 +1718,11 @@ fi
fi
if test -z "$CC"; then
ac_ct_CC=$CC
- for ac_prog in gnatgcc gcc cc
+ for ac_prog in $cf_prog_cc
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
-echo "$as_me:1408: checking for $ac_word" >&5
+echo "$as_me:1725: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -1420,7 +1737,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="$ac_prog"
-echo "$as_me:1423: found $ac_dir/$ac_word" >&5
+echo "$as_me:1740: found $ac_dir/$ac_word" >&5
break
done
@@ -1428,10 +1745,10 @@ fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
- echo "$as_me:1431: result: $ac_ct_CC" >&5
+ echo "$as_me:1748: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
- echo "$as_me:1434: result: no" >&5
+ echo "$as_me:1751: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -1441,32 +1758,32 @@ done
CC=$ac_ct_CC
fi
-test -z "$CC" && { { echo "$as_me:1444: error: no acceptable cc found in \$PATH" >&5
+test -z "$CC" && { { echo "$as_me:1761: error: no acceptable cc found in \$PATH" >&5
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
{ (exit 1); exit 1; }; }
# Provide some information about the compiler.
-echo "$as_me:1449:" \
+echo "$as_me:1766:" \
"checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo "$2"`
-{ (eval echo "$as_me:1452: \"$ac_compiler --version &5\"") >&5
+{ (eval echo "$as_me:1769: \"$ac_compiler --version &5\"") >&5
(eval $ac_compiler --version &5) 2>&5
ac_status=$?
- echo "$as_me:1455: \$? = $ac_status" >&5
+ echo "$as_me:1772: \$? = $ac_status" >&5
(exit "$ac_status"); }
-{ (eval echo "$as_me:1457: \"$ac_compiler -v &5\"") >&5
+{ (eval echo "$as_me:1774: \"$ac_compiler -v &5\"") >&5
(eval $ac_compiler -v &5) 2>&5
ac_status=$?
- echo "$as_me:1460: \$? = $ac_status" >&5
+ echo "$as_me:1777: \$? = $ac_status" >&5
(exit "$ac_status"); }
-{ (eval echo "$as_me:1462: \"$ac_compiler -V &5\"") >&5
+{ (eval echo "$as_me:1779: \"$ac_compiler -V &5\"") >&5
(eval $ac_compiler -V &5) 2>&5
ac_status=$?
- echo "$as_me:1465: \$? = $ac_status" >&5
+ echo "$as_me:1782: \$? = $ac_status" >&5
(exit "$ac_status"); }
cat >"conftest.$ac_ext" <<_ACEOF
-#line 1469 "configure"
+#line 1786 "configure"
#include "confdefs.h"
int
@@ -1482,13 +1799,13 @@ ac_clean_files="$ac_clean_files a.out a.exe"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
-echo "$as_me:1485: checking for C compiler default output" >&5
+echo "$as_me:1802: checking for C compiler default output" >&5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
-if { (eval echo "$as_me:1488: \"$ac_link_default\"") >&5
+if { (eval echo "$as_me:1805: \"$ac_link_default\"") >&5
(eval $ac_link_default) 2>&5
ac_status=$?
- echo "$as_me:1491: \$? = $ac_status" >&5
+ echo "$as_me:1808: \$? = $ac_status" >&5
(exit "$ac_status"); }; then
# Find the output, starting from the most likely. This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
@@ -1511,34 +1828,34 @@ done
else
echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5
-{ { echo "$as_me:1514: error: C compiler cannot create executables" >&5
+{ { echo "$as_me:1831: error: C compiler cannot create executables" >&5
echo "$as_me: error: C compiler cannot create executables" >&2;}
{ (exit 77); exit 77; }; }
fi
ac_exeext=$ac_cv_exeext
-echo "$as_me:1520: result: $ac_file" >&5
+echo "$as_me:1837: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6
# Check the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
-echo "$as_me:1525: checking whether the C compiler works" >&5
+echo "$as_me:1842: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
if { ac_try='./$ac_file'
- { (eval echo "$as_me:1531: \"$ac_try\"") >&5
+ { (eval echo "$as_me:1848: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:1534: \$? = $ac_status" >&5
+ echo "$as_me:1851: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cross_compiling=no
else
if test "$cross_compiling" = maybe; then
cross_compiling=yes
else
- { { echo "$as_me:1541: error: cannot run C compiled programs.
+ { { echo "$as_me:1858: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&2;}
@@ -1546,24 +1863,24 @@ If you meant to cross compile, use \`--host'." >&2;}
fi
fi
fi
-echo "$as_me:1549: result: yes" >&5
+echo "$as_me:1866: result: yes" >&5
echo "${ECHO_T}yes" >&6
rm -f a.out a.exe "conftest$ac_cv_exeext"
ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
-echo "$as_me:1556: checking whether we are cross compiling" >&5
+echo "$as_me:1873: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
-echo "$as_me:1558: result: $cross_compiling" >&5
+echo "$as_me:1875: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6
-echo "$as_me:1561: checking for executable suffix" >&5
+echo "$as_me:1878: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
-if { (eval echo "$as_me:1563: \"$ac_link\"") >&5
+if { (eval echo "$as_me:1880: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:1566: \$? = $ac_status" >&5
+ echo "$as_me:1883: \$? = $ac_status" >&5
(exit "$ac_status"); }; then
# If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
@@ -1579,25 +1896,25 @@ for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
esac
done
else
- { { echo "$as_me:1582: error: cannot compute EXEEXT: cannot compile and link" >&5
+ { { echo "$as_me:1899: error: cannot compute EXEEXT: cannot compile and link" >&5
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f "conftest$ac_cv_exeext"
-echo "$as_me:1588: result: $ac_cv_exeext" >&5
+echo "$as_me:1905: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6
rm -f "conftest.$ac_ext"
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
-echo "$as_me:1594: checking for object suffix" >&5
+echo "$as_me:1911: checking for object suffix" >&5
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 1600 "configure"
+#line 1917 "configure"
#include "confdefs.h"
int
@@ -1609,10 +1926,10 @@ main (void)
}
_ACEOF
rm -f conftest.o conftest.obj
-if { (eval echo "$as_me:1612: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:1929: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:1615: \$? = $ac_status" >&5
+ echo "$as_me:1932: \$? = $ac_status" >&5
(exit "$ac_status"); }; then
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
case $ac_file in
@@ -1624,24 +1941,24 @@ done
else
echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5
-{ { echo "$as_me:1627: error: cannot compute OBJEXT: cannot compile" >&5
+{ { echo "$as_me:1944: error: cannot compute OBJEXT: cannot compile" >&5
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
fi
-echo "$as_me:1634: result: $ac_cv_objext" >&5
+echo "$as_me:1951: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
-echo "$as_me:1638: checking whether we are using the GNU C compiler" >&5
+echo "$as_me:1955: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
if test "${ac_cv_c_compiler_gnu+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 1644 "configure"
+#line 1961 "configure"
#include "confdefs.h"
int
@@ -1656,16 +1973,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:1659: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:1976: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:1662: \$? = $ac_status" >&5
+ echo "$as_me:1979: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:1665: \"$ac_try\"") >&5
+ { (eval echo "$as_me:1982: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:1668: \$? = $ac_status" >&5
+ echo "$as_me:1985: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_compiler_gnu=yes
else
@@ -1677,19 +1994,19 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
ac_cv_c_compiler_gnu=$ac_compiler_gnu
fi
-echo "$as_me:1680: result: $ac_cv_c_compiler_gnu" >&5
+echo "$as_me:1997: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g"
-echo "$as_me:1686: checking whether $CC accepts -g" >&5
+echo "$as_me:2003: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 1692 "configure"
+#line 2009 "configure"
#include "confdefs.h"
int
@@ -1701,16 +2018,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:1704: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:2021: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:1707: \$? = $ac_status" >&5
+ echo "$as_me:2024: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:1710: \"$ac_try\"") >&5
+ { (eval echo "$as_me:2027: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:1713: \$? = $ac_status" >&5
+ echo "$as_me:2030: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_prog_cc_g=yes
else
@@ -1720,7 +2037,7 @@ ac_cv_prog_cc_g=no
fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:1723: result: $ac_cv_prog_cc_g" >&5
+echo "$as_me:2040: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
@@ -1747,16 +2064,16 @@ cat >"conftest.$ac_ext" <<_ACEOF
#endif
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:1750: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:2067: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:1753: \$? = $ac_status" >&5
+ echo "$as_me:2070: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:1756: \"$ac_try\"") >&5
+ { (eval echo "$as_me:2073: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:1759: \$? = $ac_status" >&5
+ echo "$as_me:2076: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
for ac_declaration in \
''\
@@ -1768,7 +2085,7 @@ if { (eval echo "$as_me:1750: \"$ac_compile\"") >&5
'void exit (int);'
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 1771 "configure"
+#line 2088 "configure"
#include "confdefs.h"
#include
$ac_declaration
@@ -1781,16 +2098,16 @@ exit (42);
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:1784: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:2101: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:1787: \$? = $ac_status" >&5
+ echo "$as_me:2104: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:1790: \"$ac_try\"") >&5
+ { (eval echo "$as_me:2107: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:1793: \$? = $ac_status" >&5
+ echo "$as_me:2110: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -1800,7 +2117,7 @@ continue
fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 1803 "configure"
+#line 2120 "configure"
#include "confdefs.h"
$ac_declaration
int
@@ -1812,16 +2129,16 @@ exit (42);
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:2132: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:1818: \$? = $ac_status" >&5
+ echo "$as_me:2135: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:1821: \"$ac_try\"") >&5
+ { (eval echo "$as_me:2138: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:1824: \$? = $ac_status" >&5
+ echo "$as_me:2141: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
break
else
@@ -1851,11 +2168,11 @@ ac_main_return="return"
GCC_VERSION=none
if test "$GCC" = yes ; then
- echo "$as_me:1854: checking version of $CC" >&5
+ echo "$as_me:2171: checking version of $CC" >&5
echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
- GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
+ GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
test -z "$GCC_VERSION" && GCC_VERSION=unknown
- echo "$as_me:1858: result: $GCC_VERSION" >&5
+ echo "$as_me:2175: result: $GCC_VERSION" >&5
echo "${ECHO_T}$GCC_VERSION" >&6
fi
@@ -1864,12 +2181,12 @@ INTEL_COMPILER=no
if test "$GCC" = yes ; then
case "$host_os" in
(linux*|gnu*)
- echo "$as_me:1867: checking if this is really Intel C compiler" >&5
+ echo "$as_me:2184: checking if this is really Intel C compiler" >&5
echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
cf_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -no-gcc"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 1872 "configure"
+#line 2189 "configure"
#include "confdefs.h"
int
@@ -1886,16 +2203,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:1889: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:2206: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:1892: \$? = $ac_status" >&5
+ echo "$as_me:2209: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:1895: \"$ac_try\"") >&5
+ { (eval echo "$as_me:2212: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:1898: \$? = $ac_status" >&5
+ echo "$as_me:2215: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
INTEL_COMPILER=yes
cf_save_CFLAGS="$cf_save_CFLAGS -we147"
@@ -1906,7 +2223,7 @@ cat "conftest.$ac_ext" >&5
fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CFLAGS="$cf_save_CFLAGS"
- echo "$as_me:1909: result: $INTEL_COMPILER" >&5
+ echo "$as_me:2226: result: $INTEL_COMPILER" >&5
echo "${ECHO_T}$INTEL_COMPILER" >&6
;;
esac
@@ -1915,11 +2232,11 @@ fi
CLANG_COMPILER=no
if test "$GCC" = yes ; then
- echo "$as_me:1918: checking if this is really Clang C compiler" >&5
+ echo "$as_me:2235: checking if this is really Clang C compiler" >&5
echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
cf_save_CFLAGS="$CFLAGS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 1922 "configure"
+#line 2239 "configure"
#include "confdefs.h"
int
@@ -1936,16 +2253,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:1939: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:2256: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:1942: \$? = $ac_status" >&5
+ echo "$as_me:2259: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:1945: \"$ac_try\"") >&5
+ { (eval echo "$as_me:2262: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:1948: \$? = $ac_status" >&5
+ echo "$as_me:2265: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
CLANG_COMPILER=yes
@@ -1955,7 +2272,7 @@ cat "conftest.$ac_ext" >&5
fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CFLAGS="$cf_save_CFLAGS"
- echo "$as_me:1958: result: $CLANG_COMPILER" >&5
+ echo "$as_me:2275: result: $CLANG_COMPILER" >&5
echo "${ECHO_T}$CLANG_COMPILER" >&6
fi
@@ -1964,30 +2281,30 @@ CLANG_VERSION=none
if test "x$CLANG_COMPILER" = "xyes" ; then
case "$CC" in
(c[1-9][0-9]|*/c[1-9][0-9])
- { echo "$as_me:1967: WARNING: replacing broken compiler alias $CC" >&5
+ { echo "$as_me:2284: WARNING: replacing broken compiler alias $CC" >&5
echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
CC=clang
;;
esac
- echo "$as_me:1974: checking version of $CC" >&5
+ echo "$as_me:2291: checking version of $CC" >&5
echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
- echo "$as_me:1978: result: $CLANG_VERSION" >&5
+ echo "$as_me:2295: result: $CLANG_VERSION" >&5
echo "${ECHO_T}$CLANG_VERSION" >&6
for cf_clang_opt in \
-Qunused-arguments \
-Wno-error=implicit-function-declaration
do
- echo "$as_me:1985: checking if option $cf_clang_opt works" >&5
+ echo "$as_me:2302: checking if option $cf_clang_opt works" >&5
echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
cf_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $cf_clang_opt"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 1990 "configure"
+#line 2307 "configure"
#include "confdefs.h"
#include
@@ -2001,16 +2318,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:2004: \"$ac_link\"") >&5
+if { (eval echo "$as_me:2321: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:2007: \$? = $ac_status" >&5
+ echo "$as_me:2324: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:2010: \"$ac_try\"") >&5
+ { (eval echo "$as_me:2327: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:2013: \$? = $ac_status" >&5
+ echo "$as_me:2330: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_clang_optok=yes
@@ -2021,13 +2338,13 @@ cat "conftest.$ac_ext" >&5
cf_clang_optok=no
fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
- echo "$as_me:2024: result: $cf_clang_optok" >&5
+ echo "$as_me:2341: result: $cf_clang_optok" >&5
echo "${ECHO_T}$cf_clang_optok" >&6
CFLAGS="$cf_save_CFLAGS"
if test "$cf_clang_optok" = yes; then
test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
-echo "${as_me:-configure}:2030: testing adding option $cf_clang_opt ..." 1>&5
+echo "${as_me:-configure}:2347: testing adding option $cf_clang_opt ..." 1>&5
test -n "$CFLAGS" && CFLAGS="$CFLAGS "
CFLAGS="${CFLAGS}$cf_clang_opt"
@@ -2036,7 +2353,7 @@ echo "${as_me:-configure}:2030: testing adding option $cf_clang_opt ..." 1>&5
done
fi
-echo "$as_me:2039: checking for $CC option to accept ANSI C" >&5
+echo "$as_me:2356: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -2044,7 +2361,7 @@ else
ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >"conftest.$ac_ext" <<_ACEOF
-#line 2047 "configure"
+#line 2364 "configure"
#include "confdefs.h"
#include
#include
@@ -2091,16 +2408,16 @@ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIO
do
CC="$ac_save_CC $ac_arg"
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:2094: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:2411: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:2097: \$? = $ac_status" >&5
+ echo "$as_me:2414: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:2100: \"$ac_try\"") >&5
+ { (eval echo "$as_me:2417: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:2103: \$? = $ac_status" >&5
+ echo "$as_me:2420: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_prog_cc_stdc=$ac_arg
break
@@ -2117,10 +2434,10 @@ fi
case "x$ac_cv_prog_cc_stdc" in
x|xno)
- echo "$as_me:2120: result: none needed" >&5
+ echo "$as_me:2437: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
*)
- echo "$as_me:2123: result: $ac_cv_prog_cc_stdc" >&5
+ echo "$as_me:2440: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
CC="$CC $ac_cv_prog_cc_stdc" ;;
esac
@@ -2128,13 +2445,13 @@ esac
# This should have been defined by AC_PROG_CC
: "${CC:=cc}"
-echo "$as_me:2131: checking \$CFLAGS variable" >&5
+echo "$as_me:2448: checking \$CFLAGS variable" >&5
echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
case "x$CFLAGS" in
(*-[IUD]*)
- echo "$as_me:2135: result: broken" >&5
+ echo "$as_me:2452: result: broken" >&5
echo "${ECHO_T}broken" >&6
- { echo "$as_me:2137: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
+ { echo "$as_me:2454: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
cf_flags="$CFLAGS"
CFLAGS=
@@ -2242,18 +2559,18 @@ fi
done
;;
(*)
- echo "$as_me:2245: result: ok" >&5
+ echo "$as_me:2562: result: ok" >&5
echo "${ECHO_T}ok" >&6
;;
esac
-echo "$as_me:2250: checking \$CC variable" >&5
+echo "$as_me:2567: checking \$CC variable" >&5
echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
case "$CC" in
(*[\ \ ]-*)
- echo "$as_me:2254: result: broken" >&5
+ echo "$as_me:2571: result: broken" >&5
echo "${ECHO_T}broken" >&6
- { echo "$as_me:2256: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
+ { echo "$as_me:2573: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
# humor him...
cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
@@ -2370,24 +2687,27 @@ fi
done
test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
-echo "${as_me:-configure}:2373: testing resulting CC: '$CC' ..." 1>&5
+echo "${as_me:-configure}:2690: testing resulting CC: '$CC' ..." 1>&5
test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
-echo "${as_me:-configure}:2377: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
+echo "${as_me:-configure}:2694: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
-echo "${as_me:-configure}:2381: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
+echo "${as_me:-configure}:2698: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
;;
(*)
- echo "$as_me:2385: result: ok" >&5
+ echo "$as_me:2702: result: ok" >&5
echo "${ECHO_T}ok" >&6
;;
esac
-echo "$as_me:2390: checking for egrep" >&5
+ ;;
+esac
+
+echo "$as_me:2710: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_path_EGREP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -2399,7 +2719,7 @@ else
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
-echo "$as_me:2402: checking for $ac_word" >&5
+echo "$as_me:2722: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_EGREP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -2416,7 +2736,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if $as_executable_p "$ac_dir/$ac_word"; then
ac_cv_path_EGREP="$ac_dir/$ac_word"
- echo "$as_me:2419: found $ac_dir/$ac_word" >&5
+ echo "$as_me:2739: found $ac_dir/$ac_word" >&5
break
fi
done
@@ -2427,10 +2747,10 @@ fi
EGREP=$ac_cv_path_EGREP
if test -n "$EGREP"; then
- echo "$as_me:2430: result: $EGREP" >&5
+ echo "$as_me:2750: result: $EGREP" >&5
echo "${ECHO_T}$EGREP" >&6
else
- echo "$as_me:2433: result: no" >&5
+ echo "$as_me:2753: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -2438,12 +2758,12 @@ fi
done
test -n "$EGREP" || EGREP=": "
- test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:2441: error: cannot find workable egrep" >&5
+ test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:2761: error: cannot find workable egrep" >&5
echo "$as_me: error: cannot find workable egrep" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
-echo "$as_me:2446: result: $ac_cv_path_EGREP" >&5
+echo "$as_me:2766: result: $ac_cv_path_EGREP" >&5
echo "${ECHO_T}$ac_cv_path_EGREP" >&6
EGREP="$ac_cv_path_EGREP"
@@ -2453,7 +2773,7 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return="return"
-echo "$as_me:2456: checking how to run the C preprocessor" >&5
+echo "$as_me:2776: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
@@ -2474,18 +2794,18 @@ do
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
cat >"conftest.$ac_ext" <<_ACEOF
-#line 2477 "configure"
+#line 2797 "configure"
#include "confdefs.h"
#include
Syntax error
_ACEOF
-if { (eval echo "$as_me:2482: \"$ac_cpp "conftest.$ac_ext"\"") >&5
+if { (eval echo "$as_me:2802: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
- echo "$as_me:2488: \$? = $ac_status" >&5
+ echo "$as_me:2808: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
@@ -2508,17 +2828,17 @@ rm -f conftest.err "conftest.$ac_ext"
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
cat >"conftest.$ac_ext" <<_ACEOF
-#line 2511 "configure"
+#line 2831 "configure"
#include "confdefs.h"
#include
_ACEOF
-if { (eval echo "$as_me:2515: \"$ac_cpp "conftest.$ac_ext"\"") >&5
+if { (eval echo "$as_me:2835: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
- echo "$as_me:2521: \$? = $ac_status" >&5
+ echo "$as_me:2841: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
@@ -2555,7 +2875,7 @@ fi
else
ac_cv_prog_CPP=$CPP
fi
-echo "$as_me:2558: result: $CPP" >&5
+echo "$as_me:2878: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
@@ -2565,18 +2885,18 @@ do
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
cat >"conftest.$ac_ext" <<_ACEOF
-#line 2568 "configure"
+#line 2888 "configure"
#include "confdefs.h"
#include
Syntax error
_ACEOF
-if { (eval echo "$as_me:2573: \"$ac_cpp "conftest.$ac_ext"\"") >&5
+if { (eval echo "$as_me:2893: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
- echo "$as_me:2579: \$? = $ac_status" >&5
+ echo "$as_me:2899: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
@@ -2599,17 +2919,17 @@ rm -f conftest.err "conftest.$ac_ext"
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
cat >"conftest.$ac_ext" <<_ACEOF
-#line 2602 "configure"
+#line 2922 "configure"
#include "confdefs.h"
#include
_ACEOF
-if { (eval echo "$as_me:2606: \"$ac_cpp "conftest.$ac_ext"\"") >&5
+if { (eval echo "$as_me:2926: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
- echo "$as_me:2612: \$? = $ac_status" >&5
+ echo "$as_me:2932: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
@@ -2637,7 +2957,7 @@ rm -f conftest.err "conftest.$ac_ext"
if $ac_preproc_ok; then
:
else
- { { echo "$as_me:2640: error: C preprocessor \"$CPP\" fails sanity check" >&5
+ { { echo "$as_me:2960: error: C preprocessor \"$CPP\" fails sanity check" >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
{ (exit 1); exit 1; }; }
fi
@@ -2650,14 +2970,14 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return="return"
if test $ac_cv_c_compiler_gnu = yes; then
- echo "$as_me:2653: checking whether $CC needs -traditional" >&5
+ echo "$as_me:2973: checking whether $CC needs -traditional" >&5
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_pattern="Autoconf.*'x'"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 2660 "configure"
+#line 2980 "configure"
#include "confdefs.h"
#include
int Autoconf = TIOCGETP;
@@ -2672,7 +2992,7 @@ rm -rf conftest*
if test $ac_cv_prog_gcc_traditional = no; then
cat >"conftest.$ac_ext" <<_ACEOF
-#line 2675 "configure"
+#line 2995 "configure"
#include "confdefs.h"
#include
int Autoconf = TCGETA;
@@ -2685,14 +3005,14 @@ rm -rf conftest*
fi
fi
-echo "$as_me:2688: result: $ac_cv_prog_gcc_traditional" >&5
+echo "$as_me:3008: result: $ac_cv_prog_gcc_traditional" >&5
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
if test $ac_cv_prog_gcc_traditional = yes; then
CC="$CC -traditional"
fi
fi
-echo "$as_me:2695: checking whether $CC understands -c and -o together" >&5
+echo "$as_me:3015: checking whether $CC understands -c and -o together" >&5
echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
if test "${cf_cv_prog_CC_c_o+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -2707,15 +3027,15 @@ CF_EOF
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
-if { (eval echo "$as_me:2710: \"$ac_try\"") >&5
+if { (eval echo "$as_me:3030: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:2713: \$? = $ac_status" >&5
+ echo "$as_me:3033: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
- test -f conftest2.$ac_objext && { (eval echo "$as_me:2715: \"$ac_try\"") >&5
+ test -f conftest2.$ac_objext && { (eval echo "$as_me:3035: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:2718: \$? = $ac_status" >&5
+ echo "$as_me:3038: \$? = $ac_status" >&5
(exit "$ac_status"); };
then
eval cf_cv_prog_CC_c_o=yes
@@ -2726,10 +3046,10 @@ rm -rf ./conftest*
fi
if test "$cf_cv_prog_CC_c_o" = yes; then
- echo "$as_me:2729: result: yes" >&5
+ echo "$as_me:3049: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
- echo "$as_me:2732: result: no" >&5
+ echo "$as_me:3052: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -2750,7 +3070,7 @@ for ac_prog in mawk gawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
-echo "$as_me:2753: checking for $ac_word" >&5
+echo "$as_me:3073: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -2765,7 +3085,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AWK="$ac_prog"
-echo "$as_me:2768: found $ac_dir/$ac_word" >&5
+echo "$as_me:3088: found $ac_dir/$ac_word" >&5
break
done
@@ -2773,21 +3093,21 @@ fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
- echo "$as_me:2776: result: $AWK" >&5
+ echo "$as_me:3096: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
else
- echo "$as_me:2779: result: no" >&5
+ echo "$as_me:3099: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -n "$AWK" && break
done
-test -z "$AWK" && { { echo "$as_me:2786: error: No awk program found" >&5
+test -z "$AWK" && { { echo "$as_me:3106: error: No awk program found" >&5
echo "$as_me: error: No awk program found" >&2;}
{ (exit 1); exit 1; }; }
-echo "$as_me:2790: checking for egrep" >&5
+echo "$as_me:3110: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -2797,11 +3117,11 @@ else
else ac_cv_prog_egrep='egrep'
fi
fi
-echo "$as_me:2800: result: $ac_cv_prog_egrep" >&5
+echo "$as_me:3120: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
EGREP=$ac_cv_prog_egrep
- test -z "$EGREP" && { { echo "$as_me:2804: error: No egrep program found" >&5
+ test -z "$EGREP" && { { echo "$as_me:3124: error: No egrep program found" >&5
echo "$as_me: error: No egrep program found" >&2;}
{ (exit 1); exit 1; }; }
@@ -2817,7 +3137,7 @@ echo "$as_me: error: No egrep program found" >&2;}
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
-echo "$as_me:2820: checking for a BSD compatible install" >&5
+echo "$as_me:3140: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
@@ -2866,7 +3186,7 @@ fi
INSTALL=$ac_install_sh
fi
fi
-echo "$as_me:2869: result: $INSTALL" >&5
+echo "$as_me:3189: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
@@ -2877,18 +3197,18 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-echo "$as_me:2880: checking whether ln -s works" >&5
+echo "$as_me:3200: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then
- echo "$as_me:2884: result: yes" >&5
+ echo "$as_me:3204: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
- echo "$as_me:2887: result: no, using $LN_S" >&5
+ echo "$as_me:3207: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6
fi
-echo "$as_me:2891: checking if $LN_S -f options work" >&5
+echo "$as_me:3211: checking if $LN_S -f options work" >&5
echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
rm -f conf$$.src conf$$dst
@@ -2900,13 +3220,24 @@ else
cf_prog_ln_sf=no
fi
rm -f conf$$.dst conf$$src
-echo "$as_me:2903: result: $cf_prog_ln_sf" >&5
+echo "$as_me:3223: result: $cf_prog_ln_sf" >&5
echo "${ECHO_T}$cf_prog_ln_sf" >&6
test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
-# Find a good install program. We prefer a C program (faster),
-# so one script is as good as another. But avoid the broken or
+case "$cf_cv_system_name" in
+(cygwin*|msys*|mingw32*|mingw64|os2*)
+ GLOB_FULLPATH_POSIX='/*'
+ GLOB_FULLPATH_OTHER='[a-zA-Z]:[\\/]*'
+ ;;
+(*)
+ GLOB_FULLPATH_POSIX='/*'
+ GLOB_FULLPATH_OTHER=$GLOB_FULLPATH_POSIX
+ ;;
+esac
+
+# Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
@@ -2917,7 +3248,7 @@ test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
-echo "$as_me:2920: checking for a BSD compatible install" >&5
+echo "$as_me:3251: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
@@ -2966,7 +3297,7 @@ fi
INSTALL=$ac_install_sh
fi
fi
-echo "$as_me:2969: result: $INSTALL" >&5
+echo "$as_me:3300: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
@@ -2977,8 +3308,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-case $INSTALL in
-(/*)
+case x$INSTALL in
+(x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
;;
(*)
cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
@@ -2987,7 +3318,7 @@ case $INSTALL in
;;
esac
-echo "$as_me:2990: checking if you want to install stripped executables" >&5
+echo "$as_me:3321: checking if you want to install stripped executables" >&5
echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
# Check whether --enable-stripping or --disable-stripping was given.
@@ -3004,7 +3335,7 @@ else
enable_stripping=yes
fi;
-echo "$as_me:3007: result: $enable_stripping" >&5
+echo "$as_me:3338: result: $enable_stripping" >&5
echo "${ECHO_T}$enable_stripping" >&6
if test "$enable_stripping" = yes
@@ -3015,7 +3346,7 @@ else
fi
: "${INSTALL:=install}"
-echo "$as_me:3018: checking if install accepts -p option" >&5
+echo "$as_me:3349: checking if install accepts -p option" >&5
echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
if test "${cf_cv_install_p+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3046,10 +3377,10 @@ else
rm -rf ./conftest*
fi
-echo "$as_me:3049: result: $cf_cv_install_p" >&5
+echo "$as_me:3380: result: $cf_cv_install_p" >&5
echo "${ECHO_T}$cf_cv_install_p" >&6
-echo "$as_me:3052: checking if install needs to be told about ownership" >&5
+echo "$as_me:3383: checking if install needs to be told about ownership" >&5
echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
case `$ac_config_guess` in
(*minix)
@@ -3060,7 +3391,7 @@ case `$ac_config_guess` in
;;
esac
-echo "$as_me:3063: result: $with_install_o" >&5
+echo "$as_me:3394: result: $with_install_o" >&5
echo "${ECHO_T}$with_install_o" >&6
if test "x$with_install_o" = xyes
then
@@ -3069,7 +3400,73 @@ else
INSTALL_OPT_O=
fi
-echo "$as_me:3072: checking for long file names" >&5
+if test -n "$INSTALL_OPT_S"
+then
+ echo "$as_me:3405: checking if you want to specify strip-program" >&5
+echo $ECHO_N "checking if you want to specify strip-program... $ECHO_C" >&6
+
+# Check whether --with-strip-program or --without-strip-program was given.
+if test "${with_strip_program+set}" = set; then
+ withval="$with_strip_program"
+ with_strip_program=$withval
+else
+ with_strip_program=no
+fi;
+ echo "$as_me:3415: result: $with_strip_program" >&5
+echo "${ECHO_T}$with_strip_program" >&6
+ if test "$with_strip_program" != no
+ then
+ echo "$as_me:3419: checking if strip-program is supported with this installer" >&5
+echo $ECHO_N "checking if strip-program is supported with this installer... $ECHO_C" >&6
+ cf_install_program=`echo "$INSTALL" | sed -e 's%[ ]*[ ]-.%%'`
+ check_install_strip=no
+ if test -f "$cf_install_program"
+ then
+ check_install_version=`"$cf_install_program" --version 2>/dev/null | head -n 1 | grep coreutils`
+ if test -n "$check_install_version"
+ then
+ check_install_strip="option"
+ else
+ for check_strip_variable in STRIPBIN STRIP
+ do
+ if strings "$cf_install_program" | grep "^$check_strip_variable$" >/dev/null
+ then
+ check_install_strip="environ"
+ break
+ fi
+ done
+ fi
+ fi
+ echo "$as_me:3440: result: $check_install_strip" >&5
+echo "${ECHO_T}$check_install_strip" >&6
+ case "$check_install_strip" in
+ (no)
+ { echo "$as_me:3444: WARNING: $cf_install_program does not support strip program option" >&5
+echo "$as_me: WARNING: $cf_install_program does not support strip program option" >&2;}
+ with_strip_program=no
+ ;;
+ (environ)
+ cat >install.tmp <<-CF_EOF
+ #! $SHELL
+ STRIPBIN="$with_strip_program" \\
+ STRIP="$with_strip_program" \\
+ $INSTALL "$@"
+ CF_EOF
+ INSTALL="`pwd`/install.tmp"
+ chmod +x "$INSTALL"
+ test -n "$verbose" && echo " created $INSTALL" 1>&6
+
+echo "${as_me:-configure}:3459: testing created $INSTALL ..." 1>&5
+
+ ;;
+ (option)
+ INSTALL_OPT_S="$INSTALL_OPT_S --strip-program=\"$with_strip_program\""
+ ;;
+ esac
+ fi
+fi
+
+echo "$as_me:3469: checking for long file names" >&5
echo $ECHO_N "checking for long file names... $ECHO_C" >&6
if test "${ac_cv_sys_long_file_names+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3108,7 +3505,7 @@ for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do
rm -rf "$ac_xdir" 2>/dev/null
done
fi
-echo "$as_me:3111: result: $ac_cv_sys_long_file_names" >&5
+echo "$as_me:3508: result: $ac_cv_sys_long_file_names" >&5
echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
if test "$ac_cv_sys_long_file_names" = yes; then
@@ -3120,7 +3517,7 @@ fi
# if we find pkg-config, check if we should install the ".pc" files.
-echo "$as_me:3123: checking if you want to use pkg-config" >&5
+echo "$as_me:3520: checking if you want to use pkg-config" >&5
echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
# Check whether --with-pkg-config or --without-pkg-config was given.
@@ -3130,7 +3527,7 @@ if test "${with_pkg_config+set}" = set; then
else
cf_pkg_config=yes
fi;
-echo "$as_me:3133: result: $cf_pkg_config" >&5
+echo "$as_me:3530: result: $cf_pkg_config" >&5
echo "${ECHO_T}$cf_pkg_config" >&6
case "$cf_pkg_config" in
@@ -3142,7 +3539,7 @@ case "$cf_pkg_config" in
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
-echo "$as_me:3145: checking for $ac_word" >&5
+echo "$as_me:3542: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3159,7 +3556,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if $as_executable_p "$ac_dir/$ac_word"; then
ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
- echo "$as_me:3162: found $ac_dir/$ac_word" >&5
+ echo "$as_me:3559: found $ac_dir/$ac_word" >&5
break
fi
done
@@ -3170,10 +3567,10 @@ fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
- echo "$as_me:3173: result: $PKG_CONFIG" >&5
+ echo "$as_me:3570: result: $PKG_CONFIG" >&5
echo "${ECHO_T}$PKG_CONFIG" >&6
else
- echo "$as_me:3176: result: no" >&5
+ echo "$as_me:3573: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -3182,7 +3579,7 @@ if test -z "$ac_cv_path_PKG_CONFIG"; then
ac_pt_PKG_CONFIG=$PKG_CONFIG
# Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
-echo "$as_me:3185: checking for $ac_word" >&5
+echo "$as_me:3582: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3199,7 +3596,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if $as_executable_p "$ac_dir/$ac_word"; then
ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
- echo "$as_me:3202: found $ac_dir/$ac_word" >&5
+ echo "$as_me:3599: found $ac_dir/$ac_word" >&5
break
fi
done
@@ -3211,10 +3608,10 @@ fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
- echo "$as_me:3214: result: $ac_pt_PKG_CONFIG" >&5
+ echo "$as_me:3611: result: $ac_pt_PKG_CONFIG" >&5
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
else
- echo "$as_me:3217: result: no" >&5
+ echo "$as_me:3614: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -3238,43 +3635,41 @@ else
cf_path_syntax="$ac_default_prefix"
fi
-case ".$PKG_CONFIG" in
-(.\$\(*\)*|.\'*\'*)
- ;;
-(..|./*|.\\*)
+case "x$PKG_CONFIG" in
+(x\$\(*\)*|x\'*\'*)
;;
-(.[a-zA-Z]:[\\/]*) # OS/2 EMX
+(x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
;;
-(.\$\{*prefix\}*|.\$\{*dir\}*)
+(x\$\{*prefix\}*|x\$\{*dir\}*)
eval PKG_CONFIG="$PKG_CONFIG"
- case ".$PKG_CONFIG" in
- (.NONE/*)
+ case "x$PKG_CONFIG" in
+ (xNONE/*)
PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
;;
esac
;;
-(.no|.NONE/*)
+(xno|xNONE/*)
PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
;;
(*)
- { { echo "$as_me:3260: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
+ { { echo "$as_me:3655: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
{ (exit 1); exit 1; }; }
;;
esac
elif test "x$cf_pkg_config" != xno ; then
- { echo "$as_me:3267: WARNING: pkg-config is not installed" >&5
+ { echo "$as_me:3662: WARNING: pkg-config is not installed" >&5
echo "$as_me: WARNING: pkg-config is not installed" >&2;}
fi
case "$PKG_CONFIG" in
(no|none|yes)
- echo "$as_me:3273: checking for pkg-config library directory" >&5
+ echo "$as_me:3668: checking for pkg-config library directory" >&5
echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
;;
(*)
- echo "$as_me:3277: checking for $PKG_CONFIG library directory" >&5
+ echo "$as_me:3672: checking for $PKG_CONFIG library directory" >&5
echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
;;
esac
@@ -3301,27 +3696,27 @@ fi;
case "x$cf_search_path" in
(xlibdir)
PKG_CONFIG_LIBDIR='${libdir}/pkgconfig'
- echo "$as_me:3304: result: $PKG_CONFIG_LIBDIR" >&5
+ echo "$as_me:3699: result: $PKG_CONFIG_LIBDIR" >&5
echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
cf_search_path=
;;
(x)
;;
-(x/*\ *)
+(x$GLOB_FULLPATH_POSIX\ *|x$GLOB_FULLPATH_OTHER\ *)
PKG_CONFIG_LIBDIR=
;;
-(x/*)
+(x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
PKG_CONFIG_LIBDIR="$cf_search_path"
- echo "$as_me:3315: result: $PKG_CONFIG_LIBDIR" >&5
+ echo "$as_me:3710: result: $PKG_CONFIG_LIBDIR" >&5
echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
cf_search_path=
;;
(xyes|xauto)
- echo "$as_me:3320: result: auto" >&5
+ echo "$as_me:3715: result: auto" >&5
echo "${ECHO_T}auto" >&6
cf_search_path=
# Look for the library directory using the same prefix as the executable
- echo "$as_me:3324: checking for search-list" >&5
+ echo "$as_me:3719: checking for search-list" >&5
echo $ECHO_N "checking for search-list... $ECHO_C" >&6
if test "x$PKG_CONFIG" != xnone
then
@@ -3332,7 +3727,15 @@ echo $ECHO_N "checking for search-list... $ECHO_C" >&6
pkg-config \
pkgconf
do
- cf_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null | tr : ' '`
+ cf_raw_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null`
+ case "$cf_raw_search_path" in
+ (*\\*)
+ cf_search_path=`echo "$cf_raw_search_path" | tr ';' ' ' | tr '\' '/'`
+ ;;
+ (*/*)
+ cf_search_path=`echo "$cf_raw_search_path" | tr : ' '`
+ ;;
+ esac
test -n "$cf_search_path" && break
done
@@ -3348,11 +3751,11 @@ echo $ECHO_N "checking for search-list... $ECHO_C" >&6
"`
fi
- echo "$as_me:3351: result: $cf_search_path" >&5
+ echo "$as_me:3754: result: $cf_search_path" >&5
echo "${ECHO_T}$cf_search_path" >&6
;;
(*)
- { { echo "$as_me:3355: error: Unexpected option value: $cf_search_path" >&5
+ { { echo "$as_me:3758: error: Unexpected option value: $cf_search_path" >&5
echo "$as_me: error: Unexpected option value: $cf_search_path" >&2;}
{ (exit 1); exit 1; }; }
;;
@@ -3360,7 +3763,7 @@ esac
if test -n "$cf_search_path"
then
- echo "$as_me:3363: checking for first directory" >&5
+ echo "$as_me:3766: checking for first directory" >&5
echo $ECHO_N "checking for first directory... $ECHO_C" >&6
cf_pkg_config_path=none
for cf_config in $cf_search_path
@@ -3371,7 +3774,7 @@ echo $ECHO_N "checking for first directory... $ECHO_C" >&6
break
fi
done
- echo "$as_me:3374: result: $cf_pkg_config_path" >&5
+ echo "$as_me:3777: result: $cf_pkg_config_path" >&5
echo "${ECHO_T}$cf_pkg_config_path" >&6
if test "x$cf_pkg_config_path" != xnone ; then
@@ -3381,7 +3784,7 @@ echo "${ECHO_T}$cf_pkg_config_path" >&6
if test -z "$PKG_CONFIG_LIBDIR" && test -n "$cf_search_path"
then
- echo "$as_me:3384: checking for workaround" >&5
+ echo "$as_me:3787: checking for workaround" >&5
echo $ECHO_N "checking for workaround... $ECHO_C" >&6
if test "$prefix" = "NONE" ; then
cf_prefix="$ac_default_prefix"
@@ -3404,12 +3807,12 @@ echo $ECHO_N "checking for workaround... $ECHO_C" >&6
esac
done
test -z "$PKG_CONFIG_LIBDIR" && PKG_CONFIG_LIBDIR=$cf_backup
- echo "$as_me:3407: result: $PKG_CONFIG_LIBDIR" >&5
+ echo "$as_me:3810: result: $PKG_CONFIG_LIBDIR" >&5
echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
fi
fi
-echo "$as_me:3412: checking if you want to build test-programs" >&5
+echo "$as_me:3815: checking if you want to build test-programs" >&5
echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
# Check whether --with-tests or --without-tests was given.
@@ -3419,10 +3822,10 @@ if test "${with_tests+set}" = set; then
else
cf_with_tests=yes
fi;
-echo "$as_me:3422: result: $cf_with_tests" >&5
+echo "$as_me:3825: result: $cf_with_tests" >&5
echo "${ECHO_T}$cf_with_tests" >&6
-echo "$as_me:3425: checking if we should assume mixed-case filenames" >&5
+echo "$as_me:3828: checking if we should assume mixed-case filenames" >&5
echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
# Check whether --enable-mixed-case or --disable-mixed-case was given.
@@ -3432,11 +3835,11 @@ if test "${enable_mixed_case+set}" = set; then
else
enable_mixedcase=auto
fi;
-echo "$as_me:3435: result: $enable_mixedcase" >&5
+echo "$as_me:3838: result: $enable_mixedcase" >&5
echo "${ECHO_T}$enable_mixedcase" >&6
if test "$enable_mixedcase" = "auto" ; then
-echo "$as_me:3439: checking if filesystem supports mixed-case filenames" >&5
+echo "$as_me:3842: checking if filesystem supports mixed-case filenames" >&5
echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
if test "${cf_cv_mixedcase+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3463,7 +3866,7 @@ else
fi
fi
-echo "$as_me:3466: result: $cf_cv_mixedcase" >&5
+echo "$as_me:3869: result: $cf_cv_mixedcase" >&5
echo "${ECHO_T}$cf_cv_mixedcase" >&6
test "$cf_cv_mixedcase" = yes &&
cat >>confdefs.h <<\EOF
@@ -3481,7 +3884,7 @@ EOF
fi
# do this after mixed-case option (tags/TAGS is not as important as tic).
-echo "$as_me:3484: checking whether ${MAKE-make} sets \${MAKE}" >&5
+echo "$as_me:3887: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
@@ -3501,16 +3904,16 @@ fi
rm -f conftest.make
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
- echo "$as_me:3504: result: yes" >&5
+ echo "$as_me:3907: result: yes" >&5
echo "${ECHO_T}yes" >&6
SET_MAKE=
else
- echo "$as_me:3508: result: no" >&5
+ echo "$as_me:3911: result: no" >&5
echo "${ECHO_T}no" >&6
SET_MAKE="MAKE=${MAKE-make}"
fi
-echo "$as_me:3513: checking for \".PHONY\" make-support" >&5
+echo "$as_me:3916: checking for \".PHONY\" make-support" >&5
echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
if test "${cf_cv_make_PHONY+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3565,7 +3968,7 @@ CF_EOF
rm -rf conftest*
fi
-echo "$as_me:3568: result: $cf_cv_make_PHONY" >&5
+echo "$as_me:3971: result: $cf_cv_make_PHONY" >&5
echo "${ECHO_T}$cf_cv_make_PHONY" >&6
MAKE_NO_PHONY="#"
MAKE_PHONY="#"
@@ -3576,7 +3979,7 @@ for ac_prog in exctags ctags
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
-echo "$as_me:3579: checking for $ac_word" >&5
+echo "$as_me:3982: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CTAGS+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3591,7 +3994,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CTAGS="$ac_prog"
-echo "$as_me:3594: found $ac_dir/$ac_word" >&5
+echo "$as_me:3997: found $ac_dir/$ac_word" >&5
break
done
@@ -3599,10 +4002,10 @@ fi
fi
CTAGS=$ac_cv_prog_CTAGS
if test -n "$CTAGS"; then
- echo "$as_me:3602: result: $CTAGS" >&5
+ echo "$as_me:4005: result: $CTAGS" >&5
echo "${ECHO_T}$CTAGS" >&6
else
- echo "$as_me:3605: result: no" >&5
+ echo "$as_me:4008: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -3613,7 +4016,7 @@ for ac_prog in exetags etags
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
-echo "$as_me:3616: checking for $ac_word" >&5
+echo "$as_me:4019: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ETAGS+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3628,7 +4031,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ETAGS="$ac_prog"
-echo "$as_me:3631: found $ac_dir/$ac_word" >&5
+echo "$as_me:4034: found $ac_dir/$ac_word" >&5
break
done
@@ -3636,10 +4039,10 @@ fi
fi
ETAGS=$ac_cv_prog_ETAGS
if test -n "$ETAGS"; then
- echo "$as_me:3639: result: $ETAGS" >&5
+ echo "$as_me:4042: result: $ETAGS" >&5
echo "${ECHO_T}$ETAGS" >&6
else
- echo "$as_me:3642: result: no" >&5
+ echo "$as_me:4045: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -3648,7 +4051,7 @@ done
# Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
set dummy ${CTAGS:-ctags}; ac_word=$2
-echo "$as_me:3651: checking for $ac_word" >&5
+echo "$as_me:4054: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3663,7 +4066,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_MAKE_LOWER_TAGS="yes"
-echo "$as_me:3666: found $ac_dir/$ac_word" >&5
+echo "$as_me:4069: found $ac_dir/$ac_word" >&5
break
done
@@ -3672,17 +4075,17 @@ fi
fi
MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
if test -n "$MAKE_LOWER_TAGS"; then
- echo "$as_me:3675: result: $MAKE_LOWER_TAGS" >&5
+ echo "$as_me:4078: result: $MAKE_LOWER_TAGS" >&5
echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
else
- echo "$as_me:3678: result: no" >&5
+ echo "$as_me:4081: result: no" >&5
echo "${ECHO_T}no" >&6
fi
if test "$cf_cv_mixedcase" = yes ; then
# Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
set dummy ${ETAGS:-etags}; ac_word=$2
-echo "$as_me:3685: checking for $ac_word" >&5
+echo "$as_me:4088: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3697,7 +4100,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_MAKE_UPPER_TAGS="yes"
-echo "$as_me:3700: found $ac_dir/$ac_word" >&5
+echo "$as_me:4103: found $ac_dir/$ac_word" >&5
break
done
@@ -3706,10 +4109,10 @@ fi
fi
MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
if test -n "$MAKE_UPPER_TAGS"; then
- echo "$as_me:3709: result: $MAKE_UPPER_TAGS" >&5
+ echo "$as_me:4112: result: $MAKE_UPPER_TAGS" >&5
echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
else
- echo "$as_me:3712: result: no" >&5
+ echo "$as_me:4115: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -3729,7 +4132,7 @@ else
MAKE_LOWER_TAGS="#"
fi
-echo "$as_me:3732: checking for makeflags variable" >&5
+echo "$as_me:4135: checking for makeflags variable" >&5
echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
if test "${cf_cv_makeflags+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3759,7 +4162,7 @@ CF_EOF
;;
(*)
-echo "${as_me:-configure}:3762: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
+echo "${as_me:-configure}:4165: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
;;
esac
@@ -3767,13 +4170,13 @@ echo "${as_me:-configure}:3762: testing given option \"$cf_option\",no match \"$
rm -f cf_makeflags.tmp
fi
-echo "$as_me:3770: result: $cf_cv_makeflags" >&5
+echo "$as_me:4173: result: $cf_cv_makeflags" >&5
echo "${ECHO_T}$cf_cv_makeflags" >&6
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
-echo "$as_me:3776: checking for $ac_word" >&5
+echo "$as_me:4179: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_RANLIB+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3788,7 +4191,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
-echo "$as_me:3791: found $ac_dir/$ac_word" >&5
+echo "$as_me:4194: found $ac_dir/$ac_word" >&5
break
done
@@ -3796,10 +4199,10 @@ fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
- echo "$as_me:3799: result: $RANLIB" >&5
+ echo "$as_me:4202: result: $RANLIB" >&5
echo "${ECHO_T}$RANLIB" >&6
else
- echo "$as_me:3802: result: no" >&5
+ echo "$as_me:4205: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -3808,7 +4211,7 @@ if test -z "$ac_cv_prog_RANLIB"; then
ac_ct_RANLIB=$RANLIB
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
-echo "$as_me:3811: checking for $ac_word" >&5
+echo "$as_me:4214: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3823,7 +4226,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_RANLIB="ranlib"
-echo "$as_me:3826: found $ac_dir/$ac_word" >&5
+echo "$as_me:4229: found $ac_dir/$ac_word" >&5
break
done
@@ -3832,10 +4235,10 @@ fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
- echo "$as_me:3835: result: $ac_ct_RANLIB" >&5
+ echo "$as_me:4238: result: $ac_ct_RANLIB" >&5
echo "${ECHO_T}$ac_ct_RANLIB" >&6
else
- echo "$as_me:3838: result: no" >&5
+ echo "$as_me:4241: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -3847,7 +4250,7 @@ fi
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
set dummy ${ac_tool_prefix}ld; ac_word=$2
-echo "$as_me:3850: checking for $ac_word" >&5
+echo "$as_me:4253: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LD+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3862,7 +4265,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_LD="${ac_tool_prefix}ld"
-echo "$as_me:3865: found $ac_dir/$ac_word" >&5
+echo "$as_me:4268: found $ac_dir/$ac_word" >&5
break
done
@@ -3870,10 +4273,10 @@ fi
fi
LD=$ac_cv_prog_LD
if test -n "$LD"; then
- echo "$as_me:3873: result: $LD" >&5
+ echo "$as_me:4276: result: $LD" >&5
echo "${ECHO_T}$LD" >&6
else
- echo "$as_me:3876: result: no" >&5
+ echo "$as_me:4279: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -3882,7 +4285,7 @@ if test -z "$ac_cv_prog_LD"; then
ac_ct_LD=$LD
# Extract the first word of "ld", so it can be a program name with args.
set dummy ld; ac_word=$2
-echo "$as_me:3885: checking for $ac_word" >&5
+echo "$as_me:4288: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3897,7 +4300,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_LD="ld"
-echo "$as_me:3900: found $ac_dir/$ac_word" >&5
+echo "$as_me:4303: found $ac_dir/$ac_word" >&5
break
done
@@ -3906,10 +4309,10 @@ fi
fi
ac_ct_LD=$ac_cv_prog_ac_ct_LD
if test -n "$ac_ct_LD"; then
- echo "$as_me:3909: result: $ac_ct_LD" >&5
+ echo "$as_me:4312: result: $ac_ct_LD" >&5
echo "${ECHO_T}$ac_ct_LD" >&6
else
- echo "$as_me:3912: result: no" >&5
+ echo "$as_me:4315: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -3921,7 +4324,7 @@ fi
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
-echo "$as_me:3924: checking for $ac_word" >&5
+echo "$as_me:4327: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AR+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3936,7 +4339,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AR="${ac_tool_prefix}ar"
-echo "$as_me:3939: found $ac_dir/$ac_word" >&5
+echo "$as_me:4342: found $ac_dir/$ac_word" >&5
break
done
@@ -3944,10 +4347,10 @@ fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
- echo "$as_me:3947: result: $AR" >&5
+ echo "$as_me:4350: result: $AR" >&5
echo "${ECHO_T}$AR" >&6
else
- echo "$as_me:3950: result: no" >&5
+ echo "$as_me:4353: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -3956,7 +4359,7 @@ if test -z "$ac_cv_prog_AR"; then
ac_ct_AR=$AR
# Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
-echo "$as_me:3959: checking for $ac_word" >&5
+echo "$as_me:4362: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -3971,7 +4374,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_AR="ar"
-echo "$as_me:3974: found $ac_dir/$ac_word" >&5
+echo "$as_me:4377: found $ac_dir/$ac_word" >&5
break
done
@@ -3980,10 +4383,10 @@ fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
- echo "$as_me:3983: result: $ac_ct_AR" >&5
+ echo "$as_me:4386: result: $ac_ct_AR" >&5
echo "${ECHO_T}$ac_ct_AR" >&6
else
- echo "$as_me:3986: result: no" >&5
+ echo "$as_me:4389: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -3995,7 +4398,7 @@ fi
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
-echo "$as_me:3998: checking for $ac_word" >&5
+echo "$as_me:4401: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AR+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -4010,7 +4413,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AR="${ac_tool_prefix}ar"
-echo "$as_me:4013: found $ac_dir/$ac_word" >&5
+echo "$as_me:4416: found $ac_dir/$ac_word" >&5
break
done
@@ -4018,10 +4421,10 @@ fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
- echo "$as_me:4021: result: $AR" >&5
+ echo "$as_me:4424: result: $AR" >&5
echo "${ECHO_T}$AR" >&6
else
- echo "$as_me:4024: result: no" >&5
+ echo "$as_me:4427: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -4030,7 +4433,7 @@ if test -z "$ac_cv_prog_AR"; then
ac_ct_AR=$AR
# Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
-echo "$as_me:4033: checking for $ac_word" >&5
+echo "$as_me:4436: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -4045,7 +4448,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_AR="ar"
-echo "$as_me:4048: found $ac_dir/$ac_word" >&5
+echo "$as_me:4451: found $ac_dir/$ac_word" >&5
break
done
@@ -4054,10 +4457,10 @@ fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
- echo "$as_me:4057: result: $ac_ct_AR" >&5
+ echo "$as_me:4460: result: $ac_ct_AR" >&5
echo "${ECHO_T}$ac_ct_AR" >&6
else
- echo "$as_me:4060: result: no" >&5
+ echo "$as_me:4463: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -4066,7 +4469,7 @@ else
AR="$ac_cv_prog_AR"
fi
-echo "$as_me:4069: checking for options to update archives" >&5
+echo "$as_me:4472: checking for options to update archives" >&5
echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
if test "${cf_cv_ar_flags+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -4103,13 +4506,13 @@ else
rm -f conftest.a
cat >"conftest.$ac_ext" <&5
+ if { (eval echo "$as_me:4512: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:4112: \$? = $ac_status" >&5
+ echo "$as_me:4515: \$? = $ac_status" >&5
(exit "$ac_status"); } ; then
echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
$AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null
@@ -4120,7 +4523,7 @@ EOF
else
test -n "$verbose" && echo " cannot compile test-program" 1>&6
-echo "${as_me:-configure}:4123: testing cannot compile test-program ..." 1>&5
+echo "${as_me:-configure}:4526: testing cannot compile test-program ..." 1>&5
break
fi
@@ -4130,7 +4533,7 @@ echo "${as_me:-configure}:4123: testing cannot compile test-program ..." 1>&5
esac
fi
-echo "$as_me:4133: result: $cf_cv_ar_flags" >&5
+echo "$as_me:4536: result: $cf_cv_ar_flags" >&5
echo "${ECHO_T}$cf_cv_ar_flags" >&6
if test -n "$ARFLAGS" ; then
@@ -4141,31 +4544,57 @@ else
ARFLAGS=$cf_cv_ar_flags
fi
- echo "$as_me:4144: checking for PATH separator" >&5
+ echo "$as_me:4547: checking for PATH separator" >&5
echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
case "$cf_cv_system_name" in
(os2*) PATH_SEPARATOR=';' ;;
(*) ${PATH_SEPARATOR:=':'} ;;
esac
- echo "$as_me:4151: result: $PATH_SEPARATOR" >&5
+ echo "$as_me:4554: result: $PATH_SEPARATOR" >&5
echo "${ECHO_T}$PATH_SEPARATOR" >&6
-echo "$as_me:4154: checking if you have specified an install-prefix" >&5
-echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
+echo "$as_me:4557: checking for an installation directory prefix" >&5
+echo $ECHO_N "checking for an installation directory prefix... $ECHO_C" >&6
# Check whether --with-install-prefix or --without-install-prefix was given.
if test "${with_install_prefix+set}" = set; then
withval="$with_install_prefix"
- case "$withval" in
- (yes|no)
+ case "x$withval" in
+ (xyes|xno)
;;
(*) DESTDIR="$withval"
;;
esac
fi;
-echo "$as_me:4167: result: $DESTDIR" >&5
-echo "${ECHO_T}$DESTDIR" >&6
+echo "$as_me:4570: result: ${DESTDIR:-(none)}" >&5
+echo "${ECHO_T}${DESTDIR:-(none)}" >&6
+
+echo "$as_me:4573: checking if installation directory prefix should be merged" >&5
+echo $ECHO_N "checking if installation directory prefix should be merged... $ECHO_C" >&6
+
+# Check whether --enable-install-prefix or --disable-install-prefix was given.
+if test "${enable_install_prefix+set}" = set; then
+ enableval="$enable_install_prefix"
+ test "$enableval" != yes && enableval=no
+ if test "$enableval" != "no" ; then
+ cf_install_prefix=yes
+ else
+ cf_install_prefix=no
+ fi
+else
+ enableval=no
+ cf_install_prefix=no
+
+fi;
+echo "$as_me:4590: result: $cf_install_prefix" >&5
+echo "${ECHO_T}$cf_install_prefix" >&6
+
+if test "$cf_install_prefix" = yes ; then
+ MERGE_PREFIX=':$(prefix)%=%'
+else
+ MERGE_PREFIX=''
+fi
###############################################################################
@@ -4192,7 +4621,7 @@ else
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
-echo "$as_me:4195: checking for $ac_word" >&5
+echo "$as_me:4624: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_BUILD_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -4207,7 +4636,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_BUILD_CC="$ac_prog"
-echo "$as_me:4210: found $ac_dir/$ac_word" >&5
+echo "$as_me:4639: found $ac_dir/$ac_word" >&5
break
done
@@ -4215,10 +4644,10 @@ fi
fi
BUILD_CC=$ac_cv_prog_BUILD_CC
if test -n "$BUILD_CC"; then
- echo "$as_me:4218: result: $BUILD_CC" >&5
+ echo "$as_me:4647: result: $BUILD_CC" >&5
echo "${ECHO_T}$BUILD_CC" >&6
else
- echo "$as_me:4221: result: no" >&5
+ echo "$as_me:4650: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -4227,12 +4656,12 @@ done
test -n "$BUILD_CC" || BUILD_CC="none"
fi;
- echo "$as_me:4230: checking for native build C compiler" >&5
+ echo "$as_me:4659: checking for native build C compiler" >&5
echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
- echo "$as_me:4232: result: $BUILD_CC" >&5
+ echo "$as_me:4661: result: $BUILD_CC" >&5
echo "${ECHO_T}$BUILD_CC" >&6
- echo "$as_me:4235: checking for native build C preprocessor" >&5
+ echo "$as_me:4664: checking for native build C preprocessor" >&5
echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
# Check whether --with-build-cpp or --without-build-cpp was given.
@@ -4242,10 +4671,10 @@ if test "${with_build_cpp+set}" = set; then
else
BUILD_CPP='${BUILD_CC} -E'
fi;
- echo "$as_me:4245: result: $BUILD_CPP" >&5
+ echo "$as_me:4674: result: $BUILD_CPP" >&5
echo "${ECHO_T}$BUILD_CPP" >&6
- echo "$as_me:4248: checking for native build C flags" >&5
+ echo "$as_me:4677: checking for native build C flags" >&5
echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
# Check whether --with-build-cflags or --without-build-cflags was given.
@@ -4253,10 +4682,10 @@ if test "${with_build_cflags+set}" = set; then
withval="$with_build_cflags"
BUILD_CFLAGS="$withval"
fi;
- echo "$as_me:4256: result: $BUILD_CFLAGS" >&5
+ echo "$as_me:4685: result: $BUILD_CFLAGS" >&5
echo "${ECHO_T}$BUILD_CFLAGS" >&6
- echo "$as_me:4259: checking for native build C preprocessor-flags" >&5
+ echo "$as_me:4688: checking for native build C preprocessor-flags" >&5
echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
# Check whether --with-build-cppflags or --without-build-cppflags was given.
@@ -4264,10 +4693,10 @@ if test "${with_build_cppflags+set}" = set; then
withval="$with_build_cppflags"
BUILD_CPPFLAGS="$withval"
fi;
- echo "$as_me:4267: result: $BUILD_CPPFLAGS" >&5
+ echo "$as_me:4696: result: $BUILD_CPPFLAGS" >&5
echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
- echo "$as_me:4270: checking for native build linker-flags" >&5
+ echo "$as_me:4699: checking for native build linker-flags" >&5
echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
# Check whether --with-build-ldflags or --without-build-ldflags was given.
@@ -4275,10 +4704,10 @@ if test "${with_build_ldflags+set}" = set; then
withval="$with_build_ldflags"
BUILD_LDFLAGS="$withval"
fi;
- echo "$as_me:4278: result: $BUILD_LDFLAGS" >&5
+ echo "$as_me:4707: result: $BUILD_LDFLAGS" >&5
echo "${ECHO_T}$BUILD_LDFLAGS" >&6
- echo "$as_me:4281: checking for native build linker-libraries" >&5
+ echo "$as_me:4710: checking for native build linker-libraries" >&5
echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
# Check whether --with-build-libs or --without-build-libs was given.
@@ -4286,7 +4715,7 @@ if test "${with_build_libs+set}" = set; then
withval="$with_build_libs"
BUILD_LIBS="$withval"
fi;
- echo "$as_me:4289: result: $BUILD_LIBS" >&5
+ echo "$as_me:4718: result: $BUILD_LIBS" >&5
echo "${ECHO_T}$BUILD_LIBS" >&6
# this assumes we're on Unix.
@@ -4295,7 +4724,7 @@ echo "${ECHO_T}$BUILD_LIBS" >&6
: ${BUILD_CC:='${CC}'}
- echo "$as_me:4298: checking if the build-compiler \"$BUILD_CC\" works" >&5
+ echo "$as_me:4727: checking if the build-compiler \"$BUILD_CC\" works" >&5
echo $ECHO_N "checking if the build-compiler \"$BUILD_CC\" works... $ECHO_C" >&6
cf_save_crossed=$cross_compiling
@@ -4309,25 +4738,25 @@ echo $ECHO_N "checking if the build-compiler \"$BUILD_CC\" works... $ECHO_C" >&6
cf_ok_build_cc=unknown
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 4312 "configure"
+#line 4741 "configure"
#include "confdefs.h"
#include
int main(int argc, char *argv[])
{
- ${cf_cv_main_return:-return}(argc < 0 || argv == 0 || argv[0] == 0);
+ ${cf_cv_main_return:-return}(argc < 0 || argv == (void*)0 || argv[0] == (void*)0);
}
_ACEOF
rm -f "conftest$ac_exeext"
-if { (eval echo "$as_me:4322: \"$ac_link\"") >&5
+if { (eval echo "$as_me:4751: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:4325: \$? = $ac_status" >&5
+ echo "$as_me:4754: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
- { (eval echo "$as_me:4327: \"$ac_try\"") >&5
+ { (eval echo "$as_me:4756: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:4330: \$? = $ac_status" >&5
+ echo "$as_me:4759: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_ok_build_cc=yes
else
@@ -4342,12 +4771,12 @@ fi
cross_compiling=$cf_save_crossed
ac_link=$cf_save_ac_link
- echo "$as_me:4345: result: $cf_ok_build_cc" >&5
+ echo "$as_me:4774: result: $cf_ok_build_cc" >&5
echo "${ECHO_T}$cf_ok_build_cc" >&6
if test "$cf_ok_build_cc" != yes
then
- { { echo "$as_me:4350: error: Cross-build requires two compilers.
+ { { echo "$as_me:4779: error: Cross-build requires two compilers.
Use --with-build-cc to specify the native compiler." >&5
echo "$as_me: error: Cross-build requires two compilers.
Use --with-build-cc to specify the native compiler." >&2;}
@@ -4372,7 +4801,7 @@ fi
### shared, for example.
cf_list_models=""
-echo "$as_me:4375: checking if you want to build shared C-objects" >&5
+echo "$as_me:4804: checking if you want to build shared C-objects" >&5
echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
# Check whether --with-shared or --without-shared was given.
@@ -4382,27 +4811,27 @@ if test "${with_shared+set}" = set; then
else
with_shared=no
fi;
-echo "$as_me:4385: result: $with_shared" >&5
+echo "$as_me:4814: result: $with_shared" >&5
echo "${ECHO_T}$with_shared" >&6
test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
-echo "$as_me:4389: checking for specified models" >&5
+echo "$as_me:4818: checking for specified models" >&5
echo $ECHO_N "checking for specified models... $ECHO_C" >&6
test -z "$cf_list_models" && cf_list_models=normal
-echo "$as_me:4392: result: $cf_list_models" >&5
+echo "$as_me:4821: result: $cf_list_models" >&5
echo "${ECHO_T}$cf_list_models" >&6
### Use the first model as the default, and save its suffix for use in building
### up test-applications.
-echo "$as_me:4397: checking for default model" >&5
+echo "$as_me:4826: checking for default model" >&5
echo $ECHO_N "checking for default model... $ECHO_C" >&6
DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
-echo "$as_me:4400: result: $DFT_LWR_MODEL" >&5
+echo "$as_me:4829: result: $DFT_LWR_MODEL" >&5
echo "${ECHO_T}$DFT_LWR_MODEL" >&6
DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
-echo "$as_me:4405: checking for specific curses-directory" >&5
+echo "$as_me:4834: checking for specific curses-directory" >&5
echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
# Check whether --with-curses-dir or --without-curses-dir was given.
@@ -4412,7 +4841,7 @@ if test "${with_curses_dir+set}" = set; then
else
cf_cv_curses_dir=no
fi;
-echo "$as_me:4415: result: $cf_cv_curses_dir" >&5
+echo "$as_me:4844: result: $cf_cv_curses_dir" >&5
echo "${ECHO_T}$cf_cv_curses_dir" >&6
if test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no"
@@ -4424,26 +4853,24 @@ else
cf_path_syntax="$ac_default_prefix"
fi
-case ".$withval" in
-(.\$\(*\)*|.\'*\'*)
+case "x$withval" in
+(x\$\(*\)*|x\'*\'*)
;;
-(..|./*|.\\*)
+(x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
;;
-(.[a-zA-Z]:[\\/]*) # OS/2 EMX
- ;;
-(.\$\{*prefix\}*|.\$\{*dir\}*)
+(x\$\{*prefix\}*|x\$\{*dir\}*)
eval withval="$withval"
- case ".$withval" in
- (.NONE/*)
+ case "x$withval" in
+ (xNONE/*)
withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
;;
esac
;;
-(.no|.NONE/*)
+(xno|xNONE/*)
withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
;;
(*)
- { { echo "$as_me:4446: error: expected a pathname, not \"$withval\"" >&5
+ { { echo "$as_me:4873: error: expected a pathname, not \"$withval\"" >&5
echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
{ (exit 1); exit 1; }; }
;;
@@ -4479,7 +4906,7 @@ if test -n "$cf_cv_curses_dir/include" ; then
CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 4482 "configure"
+#line 4909 "configure"
#include "confdefs.h"
#include
int
@@ -4491,16 +4918,16 @@ printf("Hello")
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:4494: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:4921: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:4497: \$? = $ac_status" >&5
+ echo "$as_me:4924: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:4500: \"$ac_try\"") >&5
+ { (eval echo "$as_me:4927: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:4503: \$? = $ac_status" >&5
+ echo "$as_me:4930: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -4517,7 +4944,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
if test "$cf_have_incdir" = no ; then
test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
-echo "${as_me:-configure}:4520: testing adding $cf_add_incdir to include-path ..." 1>&5
+echo "${as_me:-configure}:4947: testing adding $cf_add_incdir to include-path ..." 1>&5
CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
@@ -4553,7 +4980,7 @@ if test -n "$cf_cv_curses_dir/lib" ; then
if test "$cf_have_libdir" = no ; then
test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
-echo "${as_me:-configure}:4556: testing adding $cf_add_libdir to library-path ..." 1>&5
+echo "${as_me:-configure}:4983: testing adding $cf_add_libdir to library-path ..." 1>&5
LDFLAGS="-L$cf_add_libdir $LDFLAGS"
fi
@@ -4568,13 +4995,13 @@ cf_ncuconfig_root=ncurses
cf_have_ncuconfig=no
if test "x${PKG_CONFIG:=none}" != xnone; then
- echo "$as_me:4571: checking pkg-config for $cf_ncuconfig_root" >&5
+ echo "$as_me:4998: checking pkg-config for $cf_ncuconfig_root" >&5
echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
- echo "$as_me:4574: result: yes" >&5
+ echo "$as_me:5001: result: yes" >&5
echo "${ECHO_T}yes" >&6
- echo "$as_me:4577: checking if the $cf_ncuconfig_root package files work" >&5
+ echo "$as_me:5004: checking if the $cf_ncuconfig_root package files work" >&5
echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
cf_have_ncuconfig=unknown
@@ -4707,7 +5134,7 @@ done
LIBS="$cf_add_libs"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 4710 "configure"
+#line 5137 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int
@@ -4719,37 +5146,37 @@ initscr(); mousemask(0,0); tigetstr((char *)0);
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:4722: \"$ac_link\"") >&5
+if { (eval echo "$as_me:5149: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:4725: \$? = $ac_status" >&5
+ echo "$as_me:5152: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:4728: \"$ac_try\"") >&5
+ { (eval echo "$as_me:5155: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:4731: \$? = $ac_status" >&5
+ echo "$as_me:5158: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
if test "$cross_compiling" = yes; then
cf_test_ncuconfig=maybe
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 4737 "configure"
+#line 5164 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int main(void)
{ const char *xx = curses_version(); return (xx == 0); }
_ACEOF
rm -f "conftest$ac_exeext"
-if { (eval echo "$as_me:4744: \"$ac_link\"") >&5
+if { (eval echo "$as_me:5171: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:4747: \$? = $ac_status" >&5
+ echo "$as_me:5174: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
- { (eval echo "$as_me:4749: \"$ac_try\"") >&5
+ { (eval echo "$as_me:5176: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:4752: \$? = $ac_status" >&5
+ echo "$as_me:5179: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_test_ncuconfig=yes
else
@@ -4780,6 +5207,20 @@ rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
;;
esac
+for cf_required in $cf_ncuconfig_root
+do
+ # check for duplicates
+ for cf_require_pkg in $REQUIRE_PKG
+ do
+ if test "$cf_required" = "$cf_require_pkg"
+ then
+ cf_required=
+ break
+ fi
+ done
+ test -n "$cf_required" && REQUIRE_PKG="$REQUIRE_PKG $cf_required"
+done
+
for cf_add_cflags in $cf_pkg_cflags
do
case "x$cf_add_cflags" in
@@ -4923,7 +5364,7 @@ done
LIBS="$cf_add_libs"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 4926 "configure"
+#line 5367 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int
@@ -4935,37 +5376,37 @@ initscr(); mousemask(0,0); tigetstr((char *)0);
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:4938: \"$ac_link\"") >&5
+if { (eval echo "$as_me:5379: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:4941: \$? = $ac_status" >&5
+ echo "$as_me:5382: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:4944: \"$ac_try\"") >&5
+ { (eval echo "$as_me:5385: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:4947: \$? = $ac_status" >&5
+ echo "$as_me:5388: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
if test "$cross_compiling" = yes; then
cf_have_ncuconfig=maybe
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 4953 "configure"
+#line 5394 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int main(void)
{ const char *xx = curses_version(); return (xx == 0); }
_ACEOF
rm -f "conftest$ac_exeext"
-if { (eval echo "$as_me:4960: \"$ac_link\"") >&5
+if { (eval echo "$as_me:5401: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:4963: \$? = $ac_status" >&5
+ echo "$as_me:5404: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
- { (eval echo "$as_me:4965: \"$ac_try\"") >&5
+ { (eval echo "$as_me:5406: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:4968: \$? = $ac_status" >&5
+ echo "$as_me:5409: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_have_ncuconfig=yes
else
@@ -4982,7 +5423,7 @@ cat "conftest.$ac_ext" >&5
cf_have_ncuconfig=no
fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
- echo "$as_me:4985: result: $cf_have_ncuconfig" >&5
+ echo "$as_me:5426: result: $cf_have_ncuconfig" >&5
echo "${ECHO_T}$cf_have_ncuconfig" >&6
test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
if test "$cf_have_ncuconfig" != "yes"
@@ -4998,7 +5439,7 @@ EOF
NCURSES_CONFIG_PKG=$cf_ncuconfig_root
-echo "$as_me:5001: checking for terminfo header" >&5
+echo "$as_me:5442: checking for terminfo header" >&5
echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
if test "${cf_cv_term_header+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -5016,7 +5457,7 @@ esac
for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 5019 "configure"
+#line 5460 "configure"
#include "confdefs.h"
#include
#include <${cf_cv_ncurses_header:-curses.h}>
@@ -5031,16 +5472,16 @@ int x = auto_left_margin; (void)x
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:5034: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:5475: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:5037: \$? = $ac_status" >&5
+ echo "$as_me:5478: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:5040: \"$ac_try\"") >&5
+ { (eval echo "$as_me:5481: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:5043: \$? = $ac_status" >&5
+ echo "$as_me:5484: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_term_header="$cf_test"
@@ -5056,7 +5497,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done
fi
-echo "$as_me:5059: result: $cf_cv_term_header" >&5
+echo "$as_me:5500: result: $cf_cv_term_header" >&5
echo "${ECHO_T}$cf_cv_term_header" >&6
# Set definitions to allow ifdef'ing to accommodate subdirectories
@@ -5091,7 +5532,7 @@ esac
fi
else
- echo "$as_me:5094: result: no" >&5
+ echo "$as_me:5535: result: no" >&5
echo "${ECHO_T}no" >&6
NCURSES_CONFIG_PKG=none
fi
@@ -5107,7 +5548,7 @@ if test -n "$ac_tool_prefix"; then
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
-echo "$as_me:5110: checking for $ac_word" >&5
+echo "$as_me:5551: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -5122,7 +5563,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
-echo "$as_me:5125: found $ac_dir/$ac_word" >&5
+echo "$as_me:5566: found $ac_dir/$ac_word" >&5
break
done
@@ -5130,10 +5571,10 @@ fi
fi
NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
if test -n "$NCURSES_CONFIG"; then
- echo "$as_me:5133: result: $NCURSES_CONFIG" >&5
+ echo "$as_me:5574: result: $NCURSES_CONFIG" >&5
echo "${ECHO_T}$NCURSES_CONFIG" >&6
else
- echo "$as_me:5136: result: no" >&5
+ echo "$as_me:5577: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -5146,7 +5587,7 @@ if test -z "$NCURSES_CONFIG"; then
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
-echo "$as_me:5149: checking for $ac_word" >&5
+echo "$as_me:5590: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -5161,7 +5602,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
-echo "$as_me:5164: found $ac_dir/$ac_word" >&5
+echo "$as_me:5605: found $ac_dir/$ac_word" >&5
break
done
@@ -5169,10 +5610,10 @@ fi
fi
ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
if test -n "$ac_ct_NCURSES_CONFIG"; then
- echo "$as_me:5172: result: $ac_ct_NCURSES_CONFIG" >&5
+ echo "$as_me:5613: result: $ac_ct_NCURSES_CONFIG" >&5
echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
else
- echo "$as_me:5175: result: no" >&5
+ echo "$as_me:5616: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -5329,7 +5770,7 @@ LIBS="$cf_add_libs"
# even with config script, some packages use no-override for curses.h
-echo "$as_me:5332: checking if we have identified curses headers" >&5
+echo "$as_me:5773: checking if we have identified curses headers" >&5
echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
if test "${cf_cv_ncurses_header+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -5341,7 +5782,7 @@ for cf_header in \
curses.h ncurses/curses.h
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 5344 "configure"
+#line 5785 "configure"
#include "confdefs.h"
#include <${cf_header}>
int
@@ -5353,16 +5794,16 @@ initscr(); endwin()
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:5356: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:5797: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:5359: \$? = $ac_status" >&5
+ echo "$as_me:5800: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:5362: \"$ac_try\"") >&5
+ { (eval echo "$as_me:5803: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:5365: \$? = $ac_status" >&5
+ echo "$as_me:5806: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_ncurses_header=$cf_header; break
else
@@ -5373,11 +5814,11 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done
fi
-echo "$as_me:5376: result: $cf_cv_ncurses_header" >&5
+echo "$as_me:5817: result: $cf_cv_ncurses_header" >&5
echo "${ECHO_T}$cf_cv_ncurses_header" >&6
if test "$cf_cv_ncurses_header" = none ; then
- { { echo "$as_me:5380: error: No curses header-files found" >&5
+ { { echo "$as_me:5821: error: No curses header-files found" >&5
echo "$as_me: error: No curses header-files found" >&2;}
{ (exit 1); exit 1; }; }
fi
@@ -5387,23 +5828,23 @@ fi
for ac_header in $cf_cv_ncurses_header
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-echo "$as_me:5390: checking for $ac_header" >&5
+echo "$as_me:5831: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 5396 "configure"
+#line 5837 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
-if { (eval echo "$as_me:5400: \"$ac_cpp "conftest.$ac_ext"\"") >&5
+if { (eval echo "$as_me:5841: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
- echo "$as_me:5406: \$? = $ac_status" >&5
+ echo "$as_me:5847: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
@@ -5422,7 +5863,7 @@ else
fi
rm -f conftest.err "conftest.$ac_ext"
fi
-echo "$as_me:5425: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
+echo "$as_me:5866: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <"conftest.$ac_ext" <<_ACEOF
-#line 5481 "configure"
+#line 5922 "configure"
#include "confdefs.h"
#include
int
@@ -5490,16 +5931,16 @@ printf("Hello")
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:5493: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:5934: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:5496: \$? = $ac_status" >&5
+ echo "$as_me:5937: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:5499: \"$ac_try\"") >&5
+ { (eval echo "$as_me:5940: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:5502: \$? = $ac_status" >&5
+ echo "$as_me:5943: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -5516,7 +5957,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
if test "$cf_have_incdir" = no ; then
test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
-echo "${as_me:-configure}:5519: testing adding $cf_add_incdir to include-path ..." 1>&5
+echo "${as_me:-configure}:5960: testing adding $cf_add_incdir to include-path ..." 1>&5
CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
@@ -5535,7 +5976,7 @@ fi
}
-echo "$as_me:5538: checking for $cf_ncuhdr_root header in include-path" >&5
+echo "$as_me:5979: checking for $cf_ncuhdr_root header in include-path" >&5
echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
if test "${cf_cv_ncurses_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -5547,7 +5988,7 @@ else
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 5550 "configure"
+#line 5991 "configure"
#include "confdefs.h"
#include <$cf_header>
@@ -5571,16 +6012,16 @@ printf("old\\n");
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:5574: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:6015: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:5577: \$? = $ac_status" >&5
+ echo "$as_me:6018: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:5580: \"$ac_try\"") >&5
+ { (eval echo "$as_me:6021: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:5583: \$? = $ac_status" >&5
+ echo "$as_me:6024: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_ncurses_h=$cf_header
@@ -5595,14 +6036,14 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done
fi
-echo "$as_me:5598: result: $cf_cv_ncurses_h" >&5
+echo "$as_me:6039: result: $cf_cv_ncurses_h" >&5
echo "${ECHO_T}$cf_cv_ncurses_h" >&6
if test "$cf_cv_ncurses_h" != no ; then
cf_cv_ncurses_header=$cf_cv_ncurses_h
else
-echo "$as_me:5605: checking for $cf_ncuhdr_root include-path" >&5
+echo "$as_me:6046: checking for $cf_ncuhdr_root include-path" >&5
echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
if test "${cf_cv_ncurses_h2+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -5723,7 +6164,7 @@ if test -n "$cf_incdir" ; then
CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 5726 "configure"
+#line 6167 "configure"
#include "confdefs.h"
#include
int
@@ -5735,16 +6176,16 @@ printf("Hello")
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:5738: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:6179: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:5741: \$? = $ac_status" >&5
+ echo "$as_me:6182: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:5744: \"$ac_try\"") >&5
+ { (eval echo "$as_me:6185: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:5747: \$? = $ac_status" >&5
+ echo "$as_me:6188: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -5761,7 +6202,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
if test "$cf_have_incdir" = no ; then
test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
-echo "${as_me:-configure}:5764: testing adding $cf_add_incdir to include-path ..." 1>&5
+echo "${as_me:-configure}:6205: testing adding $cf_add_incdir to include-path ..." 1>&5
CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
@@ -5784,7 +6225,7 @@ fi
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 5787 "configure"
+#line 6228 "configure"
#include "confdefs.h"
#include <$cf_header>
@@ -5808,16 +6249,16 @@ printf("old\\n");
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:5811: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:6252: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:5814: \$? = $ac_status" >&5
+ echo "$as_me:6255: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:5817: \"$ac_try\"") >&5
+ { (eval echo "$as_me:6258: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:5820: \$? = $ac_status" >&5
+ echo "$as_me:6261: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_ncurses_h2=$cf_header
@@ -5838,12 +6279,12 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CPPFLAGS="$cf_save2_CPPFLAGS"
test "$cf_cv_ncurses_h2" != no && break
done
- test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:5841: error: not found" >&5
+ test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:6282: error: not found" >&5
echo "$as_me: error: not found" >&2;}
{ (exit 1); exit 1; }; }
fi
-echo "$as_me:5846: result: $cf_cv_ncurses_h2" >&5
+echo "$as_me:6287: result: $cf_cv_ncurses_h2" >&5
echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
cf_1st_incdir=`echo "$cf_cv_ncurses_h2" | sed -e 's%/[^/]*$%%'`
@@ -5879,7 +6320,7 @@ if test -n "$cf_1st_incdir" ; then
CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 5882 "configure"
+#line 6323 "configure"
#include "confdefs.h"
#include
int
@@ -5891,16 +6332,16 @@ printf("Hello")
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:5894: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:6335: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:5897: \$? = $ac_status" >&5
+ echo "$as_me:6338: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:5900: \"$ac_try\"") >&5
+ { (eval echo "$as_me:6341: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:5903: \$? = $ac_status" >&5
+ echo "$as_me:6344: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -5917,7 +6358,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
if test "$cf_have_incdir" = no ; then
test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
-echo "${as_me:-configure}:5920: testing adding $cf_add_incdir to include-path ..." 1>&5
+echo "${as_me:-configure}:6361: testing adding $cf_add_incdir to include-path ..." 1>&5
CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
@@ -5965,7 +6406,7 @@ EOF
;;
esac
-echo "$as_me:5968: checking for terminfo header" >&5
+echo "$as_me:6409: checking for terminfo header" >&5
echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
if test "${cf_cv_term_header+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -5983,7 +6424,7 @@ esac
for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 5986 "configure"
+#line 6427 "configure"
#include "confdefs.h"
#include
#include <${cf_cv_ncurses_header:-curses.h}>
@@ -5998,16 +6439,16 @@ int x = auto_left_margin; (void)x
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:6001: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:6442: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:6004: \$? = $ac_status" >&5
+ echo "$as_me:6445: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:6007: \"$ac_try\"") >&5
+ { (eval echo "$as_me:6448: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:6010: \$? = $ac_status" >&5
+ echo "$as_me:6451: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_term_header="$cf_test"
@@ -6023,7 +6464,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done
fi
-echo "$as_me:6026: result: $cf_cv_term_header" >&5
+echo "$as_me:6467: result: $cf_cv_term_header" >&5
echo "${ECHO_T}$cf_cv_term_header" >&6
# Set definitions to allow ifdef'ing to accommodate subdirectories
@@ -6061,7 +6502,7 @@ cat >>confdefs.h <<\EOF
#define NCURSES 1
EOF
-echo "$as_me:6064: checking for ncurses version" >&5
+echo "$as_me:6505: checking for ncurses version" >&5
echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
if test "${cf_cv_ncurses_version+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -6087,10 +6528,10 @@ Autoconf "old"
#endif
EOF
cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
- { (eval echo "$as_me:6090: \"$cf_try\"") >&5
+ { (eval echo "$as_me:6531: \"$cf_try\"") >&5
(eval $cf_try) 2>&5
ac_status=$?
- echo "$as_me:6093: \$? = $ac_status" >&5
+ echo "$as_me:6534: \$? = $ac_status" >&5
(exit "$ac_status"); }
if test -f conftest.out ; then
cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
@@ -6100,7 +6541,7 @@ EOF
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 6103 "configure"
+#line 6544 "configure"
#include "confdefs.h"
$ac_includes_default
@@ -6120,22 +6561,22 @@ int main(void)
# ifdef __NCURSES_H
fprintf(fp, "old\\n");
# else
- make an error
+ #error expected ncurses header to define __NCURSES_H
# endif
#endif
${cf_cv_main_return:-return}(0);
}
_ACEOF
rm -f "conftest$ac_exeext"
-if { (eval echo "$as_me:6130: \"$ac_link\"") >&5
+if { (eval echo "$as_me:6571: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:6133: \$? = $ac_status" >&5
+ echo "$as_me:6574: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
- { (eval echo "$as_me:6135: \"$ac_try\"") >&5
+ { (eval echo "$as_me:6576: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:6138: \$? = $ac_status" >&5
+ echo "$as_me:6579: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_ncurses_version=`cat $cf_tempfile`
@@ -6149,7 +6590,7 @@ fi
rm -f "$cf_tempfile"
fi
-echo "$as_me:6152: result: $cf_cv_ncurses_version" >&5
+echo "$as_me:6593: result: $cf_cv_ncurses_version" >&5
echo "${ECHO_T}$cf_cv_ncurses_version" >&6
test "$cf_cv_ncurses_version" = no ||
cat >>confdefs.h <<\EOF
@@ -6162,7 +6603,7 @@ cf_nculib_root=ncurses
# to link gpm.
cf_ncurses_LIBS=""
cf_ncurses_SAVE="$LIBS"
-echo "$as_me:6165: checking for Gpm_Open in -lgpm" >&5
+echo "$as_me:6606: checking for Gpm_Open in -lgpm" >&5
echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -6170,7 +6611,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lgpm $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 6173 "configure"
+#line 6614 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
@@ -6179,7 +6620,7 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char Gpm_Open ();
+char Gpm_Open (void);
int
main (void)
{
@@ -6189,16 +6630,16 @@ Gpm_Open ();
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:6192: \"$ac_link\"") >&5
+if { (eval echo "$as_me:6633: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:6195: \$? = $ac_status" >&5
+ echo "$as_me:6636: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:6198: \"$ac_try\"") >&5
+ { (eval echo "$as_me:6639: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:6201: \$? = $ac_status" >&5
+ echo "$as_me:6642: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_lib_gpm_Gpm_Open=yes
else
@@ -6209,10 +6650,10 @@ fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:6212: result: $ac_cv_lib_gpm_Gpm_Open" >&5
+echo "$as_me:6653: result: $ac_cv_lib_gpm_Gpm_Open" >&5
echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
- echo "$as_me:6215: checking for initscr in -lgpm" >&5
+ echo "$as_me:6656: checking for initscr in -lgpm" >&5
echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
if test "${ac_cv_lib_gpm_initscr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -6220,7 +6661,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lgpm $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 6223 "configure"
+#line 6664 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
@@ -6229,7 +6670,7 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char initscr ();
+char initscr (void);
int
main (void)
{
@@ -6239,16 +6680,16 @@ initscr ();
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:6242: \"$ac_link\"") >&5
+if { (eval echo "$as_me:6683: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:6245: \$? = $ac_status" >&5
+ echo "$as_me:6686: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:6248: \"$ac_try\"") >&5
+ { (eval echo "$as_me:6689: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:6251: \$? = $ac_status" >&5
+ echo "$as_me:6692: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_lib_gpm_initscr=yes
else
@@ -6259,7 +6700,7 @@ fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:6262: result: $ac_cv_lib_gpm_initscr" >&5
+echo "$as_me:6703: result: $ac_cv_lib_gpm_initscr" >&5
echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
if test "$ac_cv_lib_gpm_initscr" = yes; then
LIBS="$cf_ncurses_SAVE"
@@ -6274,7 +6715,7 @@ case "$host_os" in
# This is only necessary if you are linking against an obsolete
# version of ncurses (but it should do no harm, since it is static).
if test "$cf_nculib_root" = ncurses ; then
- echo "$as_me:6277: checking for tgoto in -lmytinfo" >&5
+ echo "$as_me:6718: checking for tgoto in -lmytinfo" >&5
echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -6282,7 +6723,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lmytinfo $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 6285 "configure"
+#line 6726 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
@@ -6291,7 +6732,7 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char tgoto ();
+char tgoto (void);
int
main (void)
{
@@ -6301,16 +6742,16 @@ tgoto ();
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:6304: \"$ac_link\"") >&5
+if { (eval echo "$as_me:6745: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:6307: \$? = $ac_status" >&5
+ echo "$as_me:6748: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:6310: \"$ac_try\"") >&5
+ { (eval echo "$as_me:6751: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:6313: \$? = $ac_status" >&5
+ echo "$as_me:6754: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_lib_mytinfo_tgoto=yes
else
@@ -6321,7 +6762,7 @@ fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:6324: result: $ac_cv_lib_mytinfo_tgoto" >&5
+echo "$as_me:6765: result: $ac_cv_lib_mytinfo_tgoto" >&5
echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
if test "$ac_cv_lib_mytinfo_tgoto" = yes; then
cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
@@ -6370,13 +6811,13 @@ else
eval 'cf_cv_have_lib_'"$cf_nculib_root"'=no'
cf_libdir=""
- echo "$as_me:6373: checking for initscr" >&5
+ echo "$as_me:6814: checking for initscr" >&5
echo $ECHO_N "checking for initscr... $ECHO_C" >&6
if test "${ac_cv_func_initscr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 6379 "configure"
+#line 6820 "configure"
#include "confdefs.h"
#define initscr autoconf_temporary
#include /* least-intrusive standard header which defines gcc2 __stub macros */
@@ -6407,16 +6848,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:6410: \"$ac_link\"") >&5
+if { (eval echo "$as_me:6851: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:6413: \$? = $ac_status" >&5
+ echo "$as_me:6854: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:6416: \"$ac_try\"") >&5
+ { (eval echo "$as_me:6857: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:6419: \$? = $ac_status" >&5
+ echo "$as_me:6860: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_func_initscr=yes
else
@@ -6426,18 +6867,18 @@ ac_cv_func_initscr=no
fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi
-echo "$as_me:6429: result: $ac_cv_func_initscr" >&5
+echo "$as_me:6870: result: $ac_cv_func_initscr" >&5
echo "${ECHO_T}$ac_cv_func_initscr" >&6
if test "$ac_cv_func_initscr" = yes; then
eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
else
cf_save_LIBS="$LIBS"
- echo "$as_me:6436: checking for initscr in -l$cf_nculib_root" >&5
+ echo "$as_me:6877: checking for initscr in -l$cf_nculib_root" >&5
echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
LIBS="-l$cf_nculib_root $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 6440 "configure"
+#line 6881 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int
@@ -6449,25 +6890,25 @@ initscr()
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:6452: \"$ac_link\"") >&5
+if { (eval echo "$as_me:6893: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:6455: \$? = $ac_status" >&5
+ echo "$as_me:6896: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:6458: \"$ac_try\"") >&5
+ { (eval echo "$as_me:6899: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:6461: \$? = $ac_status" >&5
+ echo "$as_me:6902: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
- echo "$as_me:6463: result: yes" >&5
+ echo "$as_me:6904: result: yes" >&5
echo "${ECHO_T}yes" >&6
eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
else
echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5
-echo "$as_me:6470: result: no" >&5
+echo "$as_me:6911: result: no" >&5
echo "${ECHO_T}no" >&6
cf_search=
@@ -6535,11 +6976,11 @@ cf_search="$cf_library_path_list $cf_search"
for cf_libdir in $cf_search
do
- echo "$as_me:6538: checking for -l$cf_nculib_root in $cf_libdir" >&5
+ echo "$as_me:6979: checking for -l$cf_nculib_root in $cf_libdir" >&5
echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 6542 "configure"
+#line 6983 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int
@@ -6551,25 +6992,25 @@ initscr()
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:6554: \"$ac_link\"") >&5
+if { (eval echo "$as_me:6995: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:6557: \$? = $ac_status" >&5
+ echo "$as_me:6998: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:6560: \"$ac_try\"") >&5
+ { (eval echo "$as_me:7001: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:6563: \$? = $ac_status" >&5
+ echo "$as_me:7004: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
- echo "$as_me:6565: result: yes" >&5
+ echo "$as_me:7006: result: yes" >&5
echo "${ECHO_T}yes" >&6
eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
break
else
echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5
-echo "$as_me:6572: result: no" >&5
+echo "$as_me:7013: result: no" >&5
echo "${ECHO_T}no" >&6
LIBS="$cf_save_LIBS"
fi
@@ -6584,7 +7025,7 @@ fi
eval 'cf_found_library="$cf_cv_have_lib_'"$cf_nculib_root"\"
if test "$cf_found_library" = no ; then
- { { echo "$as_me:6587: error: Cannot link $cf_nculib_root library" >&5
+ { { echo "$as_me:7028: error: Cannot link $cf_nculib_root library" >&5
echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
{ (exit 1); exit 1; }; }
fi
@@ -6592,7 +7033,7 @@ fi
fi
if test -n "$cf_ncurses_LIBS" ; then
- echo "$as_me:6595: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
+ echo "$as_me:7036: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
cf_ncurses_SAVE="$LIBS"
for p in $cf_ncurses_LIBS ; do
@@ -6602,7 +7043,7 @@ echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS..
fi
done
cat >"conftest.$ac_ext" <<_ACEOF
-#line 6605 "configure"
+#line 7046 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int
@@ -6614,23 +7055,23 @@ initscr(); mousemask(0,0); tigetstr((char *)0);
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:6617: \"$ac_link\"") >&5
+if { (eval echo "$as_me:7058: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:6620: \$? = $ac_status" >&5
+ echo "$as_me:7061: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:6623: \"$ac_try\"") >&5
+ { (eval echo "$as_me:7064: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:6626: \$? = $ac_status" >&5
+ echo "$as_me:7067: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
- echo "$as_me:6628: result: yes" >&5
+ echo "$as_me:7069: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5
-echo "$as_me:6633: result: no" >&5
+echo "$as_me:7074: result: no" >&5
echo "${ECHO_T}no" >&6
LIBS="$cf_ncurses_SAVE"
fi
@@ -6648,40 +7089,131 @@ else
NCURSES_CONFIG=none
fi
-echo "$as_me:6651: checking if you want wide-character code" >&5
-echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
+echo "$as_me:7092: checking for specified curses library type" >&5
+echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
-# Check whether --enable-widec or --disable-widec was given.
-if test "${enable_widec+set}" = set; then
- enableval="$enable_widec"
- with_widec=$enableval
+# Check whether --with-screen or --without-screen was given.
+if test "${with_screen+set}" = set; then
+ withval="$with_screen"
+ cf_cv_screen=$withval
else
- with_widec=no
+ cf_cv_screen=ncurses
fi;
-echo "$as_me:6661: result: $with_widec" >&5
-echo "${ECHO_T}$with_widec" >&6
-if test "$with_widec" = yes ; then
-for ac_header in wchar.h
+case $cf_cv_screen in
+(curses|curses_*)
+
+echo "$as_me:7106: checking for extra include directories" >&5
+echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
+if test "${cf_cv_curses_incdir+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+cf_cv_curses_incdir=no
+case "$host_os" in
+(hpux10.*)
+ if test "x$cf_cv_screen" = "xcurses_colr"
+ then
+ test -d /usr/include/curses_colr && \
+ cf_cv_curses_incdir="-I/usr/include/curses_colr"
+ fi
+ ;;
+(sunos3*|sunos4*)
+ if test "x$cf_cv_screen" = "xcurses_5lib"
+ then
+ test -d /usr/5lib && \
+ test -d /usr/5include && \
+ cf_cv_curses_incdir="-I/usr/5include"
+ fi
+ ;;
+esac
+
+fi
+echo "$as_me:7132: result: $cf_cv_curses_incdir" >&5
+echo "${ECHO_T}$cf_cv_curses_incdir" >&6
+if test "$cf_cv_curses_incdir" != no
+then
+
+ test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
+ CPPFLAGS="${CPPFLAGS}$cf_cv_curses_incdir"
+
+fi
+
+echo "$as_me:7142: checking if we have identified curses headers" >&5
+echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
+if test "${cf_cv_ncurses_header+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+cf_cv_ncurses_header=none
+for cf_header in \
+ ncurses.h \
+ curses.h ncurses/ncurses.h ncurses/curses.h
+do
+cat >"conftest.$ac_ext" <<_ACEOF
+#line 7154 "configure"
+#include "confdefs.h"
+#include <${cf_header}>
+int
+main (void)
+{
+initscr(); endwin()
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext"
+if { (eval echo "$as_me:7166: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:7169: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest.$ac_objext"'
+ { (eval echo "$as_me:7172: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:7175: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+ cf_cv_ncurses_header=$cf_header; break
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+fi
+rm -f "conftest.$ac_objext" "conftest.$ac_ext"
+done
+
+fi
+echo "$as_me:7186: result: $cf_cv_ncurses_header" >&5
+echo "${ECHO_T}$cf_cv_ncurses_header" >&6
+
+if test "$cf_cv_ncurses_header" = none ; then
+ { { echo "$as_me:7190: error: No curses header-files found" >&5
+echo "$as_me: error: No curses header-files found" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+# cheat, to get the right #define's for HAVE_NCURSES_H, etc.
+
+for ac_header in $cf_cv_ncurses_header
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-echo "$as_me:6668: checking for $ac_header" >&5
+echo "$as_me:7200: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 6674 "configure"
+#line 7206 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
-if { (eval echo "$as_me:6678: \"$ac_cpp "conftest.$ac_ext"\"") >&5
+if { (eval echo "$as_me:7210: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
- echo "$as_me:6684: \$? = $ac_status" >&5
+ echo "$as_me:7216: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
@@ -6700,7 +7232,7 @@ else
fi
rm -f conftest.err "conftest.$ac_ext"
fi
-echo "$as_me:6703: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
+echo "$as_me:7235: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <&5
-echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
-if test "${cf_cv_utf8_lib+set}" = set; then
+echo "$as_me:7245: checking for terminfo header" >&5
+echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
+if test "${cf_cv_term_header+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- cf_save_LIBS="$LIBS"
- cat >"conftest.$ac_ext" <<_ACEOF
-#line 6721 "configure"
-#include "confdefs.h"
-
-$ac_includes_default
-#ifdef HAVE_WCHAR_H
-#include
-#endif
-
-int
-main (void)
-{
-putwc(0,0);
- ;
- return 0;
-}
-_ACEOF
-rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:6738: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:6741: \$? = $ac_status" >&5
- (exit "$ac_status"); } &&
- { ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:6744: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:6747: \$? = $ac_status" >&5
- (exit "$ac_status"); }; }; then
- cf_cv_utf8_lib=yes
-else
- echo "$as_me: failed program was:" >&5
-cat "conftest.$ac_ext" >&5
-
-# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
-# will be set on completion of the AC_TRY_LINK below.
-cf_cv_header_path_utf8=
-cf_cv_library_path_utf8=
-
-echo "${as_me:-configure}:6759: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
-
-cf_save_LIBS="$LIBS"
+case "${cf_cv_ncurses_header}" in
+(*/ncurses.h|*/ncursesw.h)
+ cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
+ ;;
+(*)
+ cf_term_header=term.h
+ ;;
+esac
+for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
+do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 6764 "configure"
+#line 7263 "configure"
#include "confdefs.h"
+#include
+#include <${cf_cv_ncurses_header:-curses.h}>
+#include <$cf_test>
-#include
int
main (void)
{
-putwc(0,0);
+int x = auto_left_margin; (void)x
;
return 0;
}
_ACEOF
-rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:6777: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+rm -f "conftest.$ac_objext"
+if { (eval echo "$as_me:7278: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:6780: \$? = $ac_status" >&5
+ echo "$as_me:7281: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
- { ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:6783: \"$ac_try\"") >&5
+ { ac_try='test -s "conftest.$ac_objext"'
+ { (eval echo "$as_me:7284: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:6786: \$? = $ac_status" >&5
+ echo "$as_me:7287: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
- cf_cv_find_linkage_utf8=yes
- cf_cv_header_path_utf8=/usr/include
- cf_cv_library_path_utf8=/usr/lib
-
+ cf_cv_term_header="$cf_test"
else
echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5
-LIBS="-lutf8 $cf_save_LIBS"
-
-cat >"conftest.$ac_ext" <<_ACEOF
-#line 6800 "configure"
-#include "confdefs.h"
+ cf_cv_term_header=unknown
-#include
-int
-main (void)
-{
-putwc(0,0);
- ;
- return 0;
-}
-_ACEOF
-rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:6813: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:6816: \$? = $ac_status" >&5
- (exit "$ac_status"); } &&
- { ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:6819: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:6822: \$? = $ac_status" >&5
- (exit "$ac_status"); }; }; then
+fi
+rm -f "conftest.$ac_objext" "conftest.$ac_ext"
+ test "$cf_cv_term_header" != unknown && break
+done
- cf_cv_find_linkage_utf8=yes
- cf_cv_header_path_utf8=/usr/include
- cf_cv_library_path_utf8=/usr/lib
- cf_cv_library_file_utf8="-lutf8"
+fi
+echo "$as_me:7303: result: $cf_cv_term_header" >&5
+echo "${ECHO_T}$cf_cv_term_header" >&6
-else
- echo "$as_me: failed program was:" >&5
-cat "conftest.$ac_ext" >&5
+# Set definitions to allow ifdef'ing to accommodate subdirectories
- cf_cv_find_linkage_utf8=no
- LIBS="$cf_save_LIBS"
+case "$cf_cv_term_header" in
+(*term.h)
- test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
+cat >>confdefs.h <<\EOF
+#define HAVE_TERM_H 1
+EOF
-echo "${as_me:-configure}:6839: testing find linkage for utf8 library ..." 1>&5
+ ;;
+esac
-echo "${as_me:-configure}:6841: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
+case "$cf_cv_term_header" in
+(ncurses/term.h)
- cf_save_CPPFLAGS="$CPPFLAGS"
- cf_test_CPPFLAGS="$CPPFLAGS"
+cat >>confdefs.h <<\EOF
+#define HAVE_NCURSES_TERM_H 1
+EOF
-cf_search=
+ ;;
+(ncursesw/term.h)
-# collect the current set of include-directories from compiler flags
-cf_header_path_list=""
-if test -n "${CFLAGS}${CPPFLAGS}" ; then
- for cf_header_path in $CPPFLAGS $CFLAGS
- do
- case "$cf_header_path" in
- (-I*)
- cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
+cat >>confdefs.h <<\EOF
+#define HAVE_NCURSESW_TERM_H 1
+EOF
+
+ ;;
+esac
+
+echo "$as_me:7335: checking for ncurses version" >&5
+echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
+if test "${cf_cv_ncurses_version+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+ cf_cv_ncurses_version=no
+ cf_tempfile=out$$
+ rm -f "$cf_tempfile"
+ if test "$cross_compiling" = yes; then
+
+ # This will not work if the preprocessor splits the line after the
+ # Autoconf token. The 'unproto' program does that.
+ cat > "conftest.$ac_ext" <
+#undef Autoconf
+#ifdef NCURSES_VERSION
+Autoconf NCURSES_VERSION
+#else
+#ifdef __NCURSES_H
+Autoconf "old"
+#endif
+;
+#endif
+EOF
+ cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
+ { (eval echo "$as_me:7361: \"$cf_try\"") >&5
+ (eval $cf_try) 2>&5
+ ac_status=$?
+ echo "$as_me:7364: \$? = $ac_status" >&5
+ (exit "$ac_status"); }
+ if test -f conftest.out ; then
+ cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
+ test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
+ rm -f conftest.out
+ fi
+
+else
+ cat >"conftest.$ac_ext" <<_ACEOF
+#line 7374 "configure"
+#include "confdefs.h"
+
+$ac_includes_default
+
+#include <${cf_cv_ncurses_header:-curses.h}>
+
+int main(void)
+{
+ FILE *fp = fopen("$cf_tempfile", "w");
+#ifdef NCURSES_VERSION
+# ifdef NCURSES_VERSION_PATCH
+ fprintf(fp, "%s.%d\\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
+# else
+ fprintf(fp, "%s\\n", NCURSES_VERSION);
+# endif
+#else
+# ifdef __NCURSES_H
+ fprintf(fp, "old\\n");
+# else
+ #error expected ncurses header to define __NCURSES_H
+# endif
+#endif
+ ${cf_cv_main_return:-return}(0);
+}
+_ACEOF
+rm -f "conftest$ac_exeext"
+if { (eval echo "$as_me:7401: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:7404: \$? = $ac_status" >&5
+ (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
+ { (eval echo "$as_me:7406: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:7409: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+
+ cf_cv_ncurses_version=`cat $cf_tempfile`
+else
+ echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+fi
+rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
+fi
+ rm -f "$cf_tempfile"
+
+fi
+echo "$as_me:7423: result: $cf_cv_ncurses_version" >&5
+echo "${ECHO_T}$cf_cv_ncurses_version" >&6
+test "$cf_cv_ncurses_version" = no ||
+cat >>confdefs.h <<\EOF
+#define NCURSES 1
+EOF
+
+echo "$as_me:7430: checking if we have identified curses libraries" >&5
+echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
+cat >"conftest.$ac_ext" <<_ACEOF
+#line 7433 "configure"
+#include "confdefs.h"
+#include <${cf_cv_ncurses_header:-curses.h}>
+int
+main (void)
+{
+initscr(); endwin()
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext" "conftest$ac_exeext"
+if { (eval echo "$as_me:7445: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:7448: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest$ac_exeext"'
+ { (eval echo "$as_me:7451: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:7454: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+ cf_result=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+cf_result=no
+fi
+rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
+echo "$as_me:7463: result: $cf_result" >&5
+echo "${ECHO_T}$cf_result" >&6
+
+if test "$cf_result" = no ; then
+case "$host_os" in
+(freebsd*)
+ echo "$as_me:7469: checking for tgoto in -lmytinfo" >&5
+echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
+if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lmytinfo $LIBS"
+cat >"conftest.$ac_ext" <<_ACEOF
+#line 7477 "configure"
+#include "confdefs.h"
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char tgoto (void);
+int
+main (void)
+{
+tgoto ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext" "conftest$ac_exeext"
+if { (eval echo "$as_me:7496: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:7499: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest$ac_exeext"'
+ { (eval echo "$as_me:7502: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:7505: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+ ac_cv_lib_mytinfo_tgoto=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+ac_cv_lib_mytinfo_tgoto=no
+fi
+rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:7516: result: $ac_cv_lib_mytinfo_tgoto" >&5
+echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
+if test "$ac_cv_lib_mytinfo_tgoto" = yes; then
+
+cf_add_libs="$LIBS"
+# reverse order
+cf_add_0lib=
+for cf_add_1lib in -lmytinfo; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
+# filter duplicates
+for cf_add_1lib in $cf_add_0lib; do
+ for cf_add_2lib in $cf_add_libs; do
+ if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
+ cf_add_1lib=
+ break
+ fi
+ done
+ test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
+done
+LIBS="$cf_add_libs"
+
+fi
+
+ ;;
+(hpux10.*)
+ # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
+ # next (1998), and xcurses "newer" (2000). There is no header file for
+ # Hcurses; the subdirectory curses_colr has the headers (curses.h and
+ # term.h) for cur_colr
+ if test "x$cf_cv_screen" = "xcurses_colr"
+ then
+ echo "$as_me:7546: checking for initscr in -lcur_colr" >&5
+echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
+if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lcur_colr $LIBS"
+cat >"conftest.$ac_ext" <<_ACEOF
+#line 7554 "configure"
+#include "confdefs.h"
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char initscr (void);
+int
+main (void)
+{
+initscr ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext" "conftest$ac_exeext"
+if { (eval echo "$as_me:7573: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:7576: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest$ac_exeext"'
+ { (eval echo "$as_me:7579: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:7582: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+ ac_cv_lib_cur_colr_initscr=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+ac_cv_lib_cur_colr_initscr=no
+fi
+rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:7593: result: $ac_cv_lib_cur_colr_initscr" >&5
+echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
+if test "$ac_cv_lib_cur_colr_initscr" = yes; then
+
+cf_add_libs="$LIBS"
+# reverse order
+cf_add_0lib=
+for cf_add_1lib in -lcur_colr; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
+# filter duplicates
+for cf_add_1lib in $cf_add_0lib; do
+ for cf_add_2lib in $cf_add_libs; do
+ if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
+ cf_add_1lib=
+ break
+ fi
+ done
+ test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
+done
+LIBS="$cf_add_libs"
+
+ ac_cv_func_initscr=yes
+
+else
+
+ echo "$as_me:7617: checking for initscr in -lHcurses" >&5
+echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
+if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lHcurses $LIBS"
+cat >"conftest.$ac_ext" <<_ACEOF
+#line 7625 "configure"
+#include "confdefs.h"
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char initscr (void);
+int
+main (void)
+{
+initscr ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext" "conftest$ac_exeext"
+if { (eval echo "$as_me:7644: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:7647: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest$ac_exeext"'
+ { (eval echo "$as_me:7650: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:7653: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+ ac_cv_lib_Hcurses_initscr=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+ac_cv_lib_Hcurses_initscr=no
+fi
+rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:7664: result: $ac_cv_lib_Hcurses_initscr" >&5
+echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
+if test "$ac_cv_lib_Hcurses_initscr" = yes; then
+
+ # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
+
+cf_add_libs="$LIBS"
+# reverse order
+cf_add_0lib=
+for cf_add_1lib in -lHcurses; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
+# filter duplicates
+for cf_add_1lib in $cf_add_0lib; do
+ for cf_add_2lib in $cf_add_libs; do
+ if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
+ cf_add_1lib=
+ break
+ fi
+ done
+ test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
+done
+LIBS="$cf_add_libs"
+
+ test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
+ CPPFLAGS="${CPPFLAGS}-D__HP_CURSES -D_HP_CURSES"
+
+ ac_cv_func_initscr=yes
+
+fi
+
+fi
+
+ fi
+ ;;
+(linux*)
+ case `arch 2>/dev/null` in
+ (x86_64)
+ if test -d /lib64
+ then
+
+if test -n "/lib64" ; then
+ for cf_add_libdir in /lib64
+ do
+ if test "$cf_add_libdir" = /usr/lib ; then
+ :
+ elif test -d "$cf_add_libdir"
+ then
+ cf_have_libdir=no
+ if test -n "$LDFLAGS$LIBS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_libdir in $LDFLAGS $LIBS ; do
+ if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
+ cf_have_libdir=yes; break
+ fi
+ done
+ fi
+ if test "$cf_have_libdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
+
+echo "${as_me:-configure}:7722: testing adding $cf_add_libdir to library-path ..." 1>&5
+
+ LDFLAGS="-L$cf_add_libdir $LDFLAGS"
+ fi
+ fi
+ done
+fi
+
+ else
+
+if test -n "/lib" ; then
+ for cf_add_libdir in /lib
+ do
+ if test "$cf_add_libdir" = /usr/lib ; then
+ :
+ elif test -d "$cf_add_libdir"
+ then
+ cf_have_libdir=no
+ if test -n "$LDFLAGS$LIBS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_libdir in $LDFLAGS $LIBS ; do
+ if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
+ cf_have_libdir=yes; break
+ fi
+ done
+ fi
+ if test "$cf_have_libdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
+
+echo "${as_me:-configure}:7751: testing adding $cf_add_libdir to library-path ..." 1>&5
+
+ LDFLAGS="-L$cf_add_libdir $LDFLAGS"
+ fi
+ fi
+ done
+fi
+
+ fi
+ ;;
+ (*)
+
+if test -n "/lib" ; then
+ for cf_add_libdir in /lib
+ do
+ if test "$cf_add_libdir" = /usr/lib ; then
+ :
+ elif test -d "$cf_add_libdir"
+ then
+ cf_have_libdir=no
+ if test -n "$LDFLAGS$LIBS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_libdir in $LDFLAGS $LIBS ; do
+ if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
+ cf_have_libdir=yes; break
+ fi
+ done
+ fi
+ if test "$cf_have_libdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
+
+echo "${as_me:-configure}:7782: testing adding $cf_add_libdir to library-path ..." 1>&5
+
+ LDFLAGS="-L$cf_add_libdir $LDFLAGS"
+ fi
+ fi
+ done
+fi
+
+ ;;
+ esac
+ ;;
+(sunos3*|sunos4*)
+ if test "x$cf_cv_screen" = "xcurses_5lib"
+ then
+ if test -d /usr/5lib ; then
+
+if test -n "/usr/5lib" ; then
+ for cf_add_libdir in /usr/5lib
+ do
+ if test "$cf_add_libdir" = /usr/lib ; then
+ :
+ elif test -d "$cf_add_libdir"
+ then
+ cf_have_libdir=no
+ if test -n "$LDFLAGS$LIBS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_libdir in $LDFLAGS $LIBS ; do
+ if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
+ cf_have_libdir=yes; break
+ fi
+ done
+ fi
+ if test "$cf_have_libdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
+
+echo "${as_me:-configure}:7817: testing adding $cf_add_libdir to library-path ..." 1>&5
+
+ LDFLAGS="-L$cf_add_libdir $LDFLAGS"
+ fi
+ fi
+ done
+fi
+
+cf_add_libs="$LIBS"
+# reverse order
+cf_add_0lib=
+for cf_add_1lib in -lcurses -ltermcap; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
+# filter duplicates
+for cf_add_1lib in $cf_add_0lib; do
+ for cf_add_2lib in $cf_add_libs; do
+ if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
+ cf_add_1lib=
+ break
+ fi
+ done
+ test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
+done
+LIBS="$cf_add_libs"
+
+ fi
+ fi
+ ac_cv_func_initscr=yes
+ ;;
+esac
+
+if test ".$ac_cv_func_initscr" != .yes ; then
+ cf_save_LIBS="$LIBS"
+
+ if test ".${cf_cv_ncurses_version:-no}" != .no
+ then
+ cf_check_list="ncurses curses cursesX"
+ else
+ cf_check_list="cursesX curses ncurses"
+ fi
+
+ # Check for library containing tgoto. Do this before curses library
+ # because it may be needed to link the test-case for initscr.
+ if test "x$cf_term_lib" = x
+ then
+ echo "$as_me:7861: checking for tgoto" >&5
+echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
+if test "${ac_cv_func_tgoto+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >"conftest.$ac_ext" <<_ACEOF
+#line 7867 "configure"
+#include "confdefs.h"
+#define tgoto autoconf_temporary
+#include /* least-intrusive standard header which defines gcc2 __stub macros */
+#undef tgoto
+
+#ifdef __cplusplus
+extern "C"
+#endif
+
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char tgoto (void);
+
+int
+main (void)
+{
+
+/* The GNU C library defines stubs for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_tgoto) || defined (__stub___tgoto)
+#error found stub for tgoto
+#endif
+
+ return tgoto ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext" "conftest$ac_exeext"
+if { (eval echo "$as_me:7898: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:7901: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest$ac_exeext"'
+ { (eval echo "$as_me:7904: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:7907: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+ ac_cv_func_tgoto=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+ac_cv_func_tgoto=no
+fi
+rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
+fi
+echo "$as_me:7917: result: $ac_cv_func_tgoto" >&5
+echo "${ECHO_T}$ac_cv_func_tgoto" >&6
+if test "$ac_cv_func_tgoto" = yes; then
+ cf_term_lib=predefined
+else
+
+ for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
+ do
+ as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
+echo "$as_me:7926: checking for tgoto in -l$cf_term_lib" >&5
+echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Lib+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-l$cf_term_lib $LIBS"
+cat >"conftest.$ac_ext" <<_ACEOF
+#line 7934 "configure"
+#include "confdefs.h"
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char tgoto (void);
+int
+main (void)
+{
+tgoto ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext" "conftest$ac_exeext"
+if { (eval echo "$as_me:7953: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:7956: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest$ac_exeext"'
+ { (eval echo "$as_me:7959: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:7962: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+ eval "$as_ac_Lib=yes"
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+eval "$as_ac_Lib=no"
+fi
+rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:7973: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
+echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
+if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
+
+ : "${cf_nculib_root:=$cf_term_lib}"
+ break
+
+fi
+
+ done
+
+fi
+
+ fi
+
+ # Check for library containing initscr
+ test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
+ if test "x$cf_curs_lib" = x
+ then
+ for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
+ do
+ LIBS="-l$cf_curs_lib $cf_save_LIBS"
+ if test "$cf_term_lib" = unknown || test "$cf_term_lib" = "$cf_curs_lib" ; then
+ echo "$as_me:7996: checking if we can link with $cf_curs_lib library" >&5
+echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
+ cat >"conftest.$ac_ext" <<_ACEOF
+#line 7999 "configure"
+#include "confdefs.h"
+#include <${cf_cv_ncurses_header:-curses.h}>
+int
+main (void)
+{
+initscr()
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext" "conftest$ac_exeext"
+if { (eval echo "$as_me:8011: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:8014: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest$ac_exeext"'
+ { (eval echo "$as_me:8017: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:8020: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+ cf_result=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+cf_result=no
+fi
+rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
+ echo "$as_me:8029: result: $cf_result" >&5
+echo "${ECHO_T}$cf_result" >&6
+ test "$cf_result" = yes && break
+ elif test "$cf_curs_lib" = "$cf_term_lib" ; then
+ cf_result=no
+ elif test "$cf_term_lib" != predefined ; then
+ echo "$as_me:8035: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
+echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
+ cat >"conftest.$ac_ext" <<_ACEOF
+#line 8038 "configure"
+#include "confdefs.h"
+#include <${cf_cv_ncurses_header:-curses.h}>
+int
+main (void)
+{
+initscr(); endwin();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext" "conftest$ac_exeext"
+if { (eval echo "$as_me:8050: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:8053: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest$ac_exeext"'
+ { (eval echo "$as_me:8056: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:8059: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+ cf_result=no
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+
+ LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
+ cat >"conftest.$ac_ext" <<_ACEOF
+#line 8068 "configure"
+#include "confdefs.h"
+#include <${cf_cv_ncurses_header:-curses.h}>
+int
+main (void)
+{
+initscr()
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext" "conftest$ac_exeext"
+if { (eval echo "$as_me:8080: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:8083: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest$ac_exeext"'
+ { (eval echo "$as_me:8086: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:8089: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+ cf_result=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+cf_result=error
+fi
+rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
+
+fi
+rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
+ echo "$as_me:8101: result: $cf_result" >&5
+echo "${ECHO_T}$cf_result" >&6
+ test "$cf_result" != error && break
+ fi
+ done
+ fi
+ test "$cf_curs_lib" = unknown && { { echo "$as_me:8107: error: no curses library found" >&5
+echo "$as_me: error: no curses library found" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+fi
+
+ ;;
+(ncursesw*)
+
+for ac_header in wchar.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+echo "$as_me:8119: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >"conftest.$ac_ext" <<_ACEOF
+#line 8125 "configure"
+#include "confdefs.h"
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:8129: \"$ac_cpp "conftest.$ac_ext"\"") >&5
+ (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ $EGREP -v '^ *\+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:8135: \$? = $ac_status" >&5
+ (exit "$ac_status"); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_c_preproc_warn_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ eval "$as_ac_Header=yes"
+else
+ echo "$as_me: failed program was:" >&5
+ cat "conftest.$ac_ext" >&5
+ eval "$as_ac_Header=no"
+fi
+rm -f conftest.err "conftest.$ac_ext"
+fi
+echo "$as_me:8154: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
+echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
+if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
+ cat >>confdefs.h <&5
+echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
+if test "${cf_cv_utf8_lib+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+ cf_save_LIBS="$LIBS"
+ cat >"conftest.$ac_ext" <<_ACEOF
+#line 8172 "configure"
+#include "confdefs.h"
+
+$ac_includes_default
+#ifdef HAVE_WCHAR_H
+#include
+#endif
+
+int
+main (void)
+{
+putwc(0,0);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext" "conftest$ac_exeext"
+if { (eval echo "$as_me:8189: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:8192: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest$ac_exeext"'
+ { (eval echo "$as_me:8195: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:8198: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+ cf_cv_utf8_lib=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+
+# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
+# will be set on completion of the AC_TRY_LINK below.
+cf_cv_header_path_utf8=
+cf_cv_library_path_utf8=
+
+echo "${as_me:-configure}:8210: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
+
+cf_save_LIBS="$LIBS"
+
+cat >"conftest.$ac_ext" <<_ACEOF
+#line 8215 "configure"
+#include "confdefs.h"
+
+#include
+int
+main (void)
+{
+putwc(0,0);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext" "conftest$ac_exeext"
+if { (eval echo "$as_me:8228: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:8231: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest$ac_exeext"'
+ { (eval echo "$as_me:8234: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:8237: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+
+ cf_cv_find_linkage_utf8=yes
+ cf_cv_header_path_utf8=/usr/include
+ cf_cv_library_path_utf8=/usr/lib
+
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+
+LIBS="-lutf8 $cf_save_LIBS"
+
+cat >"conftest.$ac_ext" <<_ACEOF
+#line 8251 "configure"
+#include "confdefs.h"
+
+#include
+int
+main (void)
+{
+putwc(0,0);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext" "conftest$ac_exeext"
+if { (eval echo "$as_me:8264: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:8267: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest$ac_exeext"'
+ { (eval echo "$as_me:8270: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:8273: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+
+ cf_cv_find_linkage_utf8=yes
+ cf_cv_header_path_utf8=/usr/include
+ cf_cv_library_path_utf8=/usr/lib
+ cf_cv_library_file_utf8="-lutf8"
+
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+
+ cf_cv_find_linkage_utf8=no
+ LIBS="$cf_save_LIBS"
+
+ test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
+
+echo "${as_me:-configure}:8290: testing find linkage for utf8 library ..." 1>&5
+
+echo "${as_me:-configure}:8292: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
+
+ cf_save_CPPFLAGS="$CPPFLAGS"
+ cf_test_CPPFLAGS="$CPPFLAGS"
+
+cf_search=
+
+# collect the current set of include-directories from compiler flags
+cf_header_path_list=""
+if test -n "${CFLAGS}${CPPFLAGS}" ; then
+ for cf_header_path in $CPPFLAGS $CFLAGS
+ do
+ case "$cf_header_path" in
+ (-I*)
+ cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
test "x$cf_header_path" != "xNONE" && \
test -d "$cf_header_path" && \
@@ -6929,7 +8380,7 @@ cf_search="$cf_search $cf_header_path_list"
if test -d "$cf_cv_header_path_utf8" ; then
test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
-echo "${as_me:-configure}:6932: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
+echo "${as_me:-configure}:8383: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
CPPFLAGS="$cf_save_CPPFLAGS"
@@ -6937,7 +8388,7 @@ echo "${as_me:-configure}:6932: testing ... testing $cf_cv_header_path_utf8 ..."
CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 6940 "configure"
+#line 8391 "configure"
#include "confdefs.h"
#include
@@ -6950,21 +8401,21 @@ putwc(0,0);
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:6953: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:8404: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:6956: \$? = $ac_status" >&5
+ echo "$as_me:8407: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:6959: \"$ac_try\"") >&5
+ { (eval echo "$as_me:8410: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:6962: \$? = $ac_status" >&5
+ echo "$as_me:8413: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
-echo "${as_me:-configure}:6967: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
+echo "${as_me:-configure}:8418: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
cf_cv_find_linkage_utf8=maybe
cf_test_CPPFLAGS="$CPPFLAGS"
@@ -6982,7 +8433,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
if test "$cf_cv_find_linkage_utf8" = maybe ; then
-echo "${as_me:-configure}:6985: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
+echo "${as_me:-configure}:8436: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
cf_save_LIBS="$LIBS"
cf_save_LDFLAGS="$LDFLAGS"
@@ -7057,13 +8508,13 @@ cf_search="$cf_library_path_list $cf_search"
if test -d "$cf_cv_library_path_utf8" ; then
test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
-echo "${as_me:-configure}:7060: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
+echo "${as_me:-configure}:8511: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
CPPFLAGS="$cf_test_CPPFLAGS"
LIBS="-lutf8 $cf_save_LIBS"
LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 7066 "configure"
+#line 8517 "configure"
#include "confdefs.h"
#include
@@ -7076,21 +8527,21 @@ putwc(0,0);
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:7079: \"$ac_link\"") >&5
+if { (eval echo "$as_me:8530: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:7082: \$? = $ac_status" >&5
+ echo "$as_me:8533: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:7085: \"$ac_try\"") >&5
+ { (eval echo "$as_me:8536: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:7088: \$? = $ac_status" >&5
+ echo "$as_me:8539: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
-echo "${as_me:-configure}:7093: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
+echo "${as_me:-configure}:8544: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
cf_cv_find_linkage_utf8=yes
cf_cv_library_file_utf8="-lutf8"
@@ -7132,7 +8583,7 @@ fi
fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi
-echo "$as_me:7135: result: $cf_cv_utf8_lib" >&5
+echo "$as_me:8586: result: $cf_cv_utf8_lib" >&5
echo "${ECHO_T}$cf_cv_utf8_lib" >&6
# HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
@@ -7170,7 +8621,7 @@ if test -n "$cf_cv_header_path_utf8" ; then
CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 7173 "configure"
+#line 8624 "configure"
#include "confdefs.h"
#include
int
@@ -7182,16 +8633,16 @@ printf("Hello")
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:7185: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:8636: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:7188: \$? = $ac_status" >&5
+ echo "$as_me:8639: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:7191: \"$ac_try\"") >&5
+ { (eval echo "$as_me:8642: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:7194: \$? = $ac_status" >&5
+ echo "$as_me:8645: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -7208,7 +8659,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
if test "$cf_have_incdir" = no ; then
test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
-echo "${as_me:-configure}:7211: testing adding $cf_add_incdir to include-path ..." 1>&5
+echo "${as_me:-configure}:8662: testing adding $cf_add_incdir to include-path ..." 1>&5
CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
@@ -7244,7 +8695,7 @@ if test -n "$cf_cv_library_path_utf8" ; then
if test "$cf_have_libdir" = no ; then
test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
-echo "${as_me:-configure}:7247: testing adding $cf_add_libdir to library-path ..." 1>&5
+echo "${as_me:-configure}:8698: testing adding $cf_add_libdir to library-path ..." 1>&5
LDFLAGS="-L$cf_add_libdir $LDFLAGS"
fi
@@ -7270,17 +8721,17 @@ LIBS="$cf_add_libs"
fi
-cf_ncuconfig_root=ncursesw
+cf_ncuconfig_root=$cf_cv_screen
cf_have_ncuconfig=no
if test "x${PKG_CONFIG:=none}" != xnone; then
- echo "$as_me:7277: checking pkg-config for $cf_ncuconfig_root" >&5
+ echo "$as_me:8728: checking pkg-config for $cf_ncuconfig_root" >&5
echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
- echo "$as_me:7280: result: yes" >&5
+ echo "$as_me:8731: result: yes" >&5
echo "${ECHO_T}yes" >&6
- echo "$as_me:7283: checking if the $cf_ncuconfig_root package files work" >&5
+ echo "$as_me:8734: checking if the $cf_ncuconfig_root package files work" >&5
echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
cf_have_ncuconfig=unknown
@@ -7413,7 +8864,7 @@ done
LIBS="$cf_add_libs"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 7416 "configure"
+#line 8867 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int
@@ -7425,37 +8876,37 @@ initscr(); mousemask(0,0); tigetstr((char *)0);
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:7428: \"$ac_link\"") >&5
+if { (eval echo "$as_me:8879: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:7431: \$? = $ac_status" >&5
+ echo "$as_me:8882: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:7434: \"$ac_try\"") >&5
+ { (eval echo "$as_me:8885: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:7437: \$? = $ac_status" >&5
+ echo "$as_me:8888: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
if test "$cross_compiling" = yes; then
cf_test_ncuconfig=maybe
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 7443 "configure"
+#line 8894 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int main(void)
{ const char *xx = curses_version(); return (xx == 0); }
_ACEOF
rm -f "conftest$ac_exeext"
-if { (eval echo "$as_me:7450: \"$ac_link\"") >&5
+if { (eval echo "$as_me:8901: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:7453: \$? = $ac_status" >&5
+ echo "$as_me:8904: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
- { (eval echo "$as_me:7455: \"$ac_try\"") >&5
+ { (eval echo "$as_me:8906: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:7458: \$? = $ac_status" >&5
+ echo "$as_me:8909: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_test_ncuconfig=yes
else
@@ -7486,6 +8937,20 @@ rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
;;
esac
+for cf_required in $cf_ncuconfig_root
+do
+ # check for duplicates
+ for cf_require_pkg in $REQUIRE_PKG
+ do
+ if test "$cf_required" = "$cf_require_pkg"
+ then
+ cf_required=
+ break
+ fi
+ done
+ test -n "$cf_required" && REQUIRE_PKG="$REQUIRE_PKG $cf_required"
+done
+
for cf_add_cflags in $cf_pkg_cflags
do
case "x$cf_add_cflags" in
@@ -7629,7 +9094,7 @@ done
LIBS="$cf_add_libs"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 7632 "configure"
+#line 9097 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int
@@ -7641,37 +9106,37 @@ initscr(); mousemask(0,0); tigetstr((char *)0);
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:7644: \"$ac_link\"") >&5
+if { (eval echo "$as_me:9109: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:7647: \$? = $ac_status" >&5
+ echo "$as_me:9112: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:7650: \"$ac_try\"") >&5
+ { (eval echo "$as_me:9115: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:7653: \$? = $ac_status" >&5
+ echo "$as_me:9118: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
if test "$cross_compiling" = yes; then
cf_have_ncuconfig=maybe
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 7659 "configure"
+#line 9124 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int main(void)
{ const char *xx = curses_version(); return (xx == 0); }
_ACEOF
rm -f "conftest$ac_exeext"
-if { (eval echo "$as_me:7666: \"$ac_link\"") >&5
+if { (eval echo "$as_me:9131: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:7669: \$? = $ac_status" >&5
+ echo "$as_me:9134: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
- { (eval echo "$as_me:7671: \"$ac_try\"") >&5
+ { (eval echo "$as_me:9136: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:7674: \$? = $ac_status" >&5
+ echo "$as_me:9139: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_have_ncuconfig=yes
else
@@ -7688,7 +9153,7 @@ cat "conftest.$ac_ext" >&5
cf_have_ncuconfig=no
fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
- echo "$as_me:7691: result: $cf_have_ncuconfig" >&5
+ echo "$as_me:9156: result: $cf_have_ncuconfig" >&5
echo "${ECHO_T}$cf_have_ncuconfig" >&6
test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
if test "$cf_have_ncuconfig" != "yes"
@@ -7704,7 +9169,7 @@ EOF
NCURSES_CONFIG_PKG=$cf_ncuconfig_root
-echo "$as_me:7707: checking for terminfo header" >&5
+echo "$as_me:9172: checking for terminfo header" >&5
echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
if test "${cf_cv_term_header+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -7722,7 +9187,7 @@ esac
for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 7725 "configure"
+#line 9190 "configure"
#include "confdefs.h"
#include
#include <${cf_cv_ncurses_header:-curses.h}>
@@ -7737,16 +9202,16 @@ int x = auto_left_margin; (void)x
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:7740: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:9205: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:7743: \$? = $ac_status" >&5
+ echo "$as_me:9208: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:7746: \"$ac_try\"") >&5
+ { (eval echo "$as_me:9211: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:7749: \$? = $ac_status" >&5
+ echo "$as_me:9214: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_term_header="$cf_test"
@@ -7762,7 +9227,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done
fi
-echo "$as_me:7765: result: $cf_cv_term_header" >&5
+echo "$as_me:9230: result: $cf_cv_term_header" >&5
echo "${ECHO_T}$cf_cv_term_header" >&6
# Set definitions to allow ifdef'ing to accommodate subdirectories
@@ -7797,7 +9262,7 @@ esac
fi
else
- echo "$as_me:7800: result: no" >&5
+ echo "$as_me:9265: result: no" >&5
echo "${ECHO_T}no" >&6
NCURSES_CONFIG_PKG=none
fi
@@ -7813,7 +9278,7 @@ if test -n "$ac_tool_prefix"; then
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
-echo "$as_me:7816: checking for $ac_word" >&5
+echo "$as_me:9281: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -7828,7 +9293,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
-echo "$as_me:7831: found $ac_dir/$ac_word" >&5
+echo "$as_me:9296: found $ac_dir/$ac_word" >&5
break
done
@@ -7836,10 +9301,10 @@ fi
fi
NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
if test -n "$NCURSES_CONFIG"; then
- echo "$as_me:7839: result: $NCURSES_CONFIG" >&5
+ echo "$as_me:9304: result: $NCURSES_CONFIG" >&5
echo "${ECHO_T}$NCURSES_CONFIG" >&6
else
- echo "$as_me:7842: result: no" >&5
+ echo "$as_me:9307: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -7852,7 +9317,7 @@ if test -z "$NCURSES_CONFIG"; then
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
-echo "$as_me:7855: checking for $ac_word" >&5
+echo "$as_me:9320: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -7867,7 +9332,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
-echo "$as_me:7870: found $ac_dir/$ac_word" >&5
+echo "$as_me:9335: found $ac_dir/$ac_word" >&5
break
done
@@ -7875,10 +9340,10 @@ fi
fi
ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
if test -n "$ac_ct_NCURSES_CONFIG"; then
- echo "$as_me:7878: result: $ac_ct_NCURSES_CONFIG" >&5
+ echo "$as_me:9343: result: $ac_ct_NCURSES_CONFIG" >&5
echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
else
- echo "$as_me:7881: result: no" >&5
+ echo "$as_me:9346: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -8035,7 +9500,7 @@ LIBS="$cf_add_libs"
# even with config script, some packages use no-override for curses.h
-echo "$as_me:8038: checking if we have identified curses headers" >&5
+echo "$as_me:9503: checking if we have identified curses headers" >&5
echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
if test "${cf_cv_ncurses_header+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -8043,11 +9508,11 @@ else
cf_cv_ncurses_header=none
for cf_header in \
- ncurses.h ncursesw/ncurses.h \
- curses.h ncursesw/curses.h
+ ncurses.h $cf_cv_screen/ncurses.h \
+ curses.h $cf_cv_screen/curses.h
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 8050 "configure"
+#line 9515 "configure"
#include "confdefs.h"
#include <${cf_header}>
int
@@ -8059,16 +9524,16 @@ initscr(); endwin()
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:8062: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:9527: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:8065: \$? = $ac_status" >&5
+ echo "$as_me:9530: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:8068: \"$ac_try\"") >&5
+ { (eval echo "$as_me:9533: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:8071: \$? = $ac_status" >&5
+ echo "$as_me:9536: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_ncurses_header=$cf_header; break
else
@@ -8079,11 +9544,11 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done
fi
-echo "$as_me:8082: result: $cf_cv_ncurses_header" >&5
+echo "$as_me:9547: result: $cf_cv_ncurses_header" >&5
echo "${ECHO_T}$cf_cv_ncurses_header" >&6
if test "$cf_cv_ncurses_header" = none ; then
- { { echo "$as_me:8086: error: No curses header-files found" >&5
+ { { echo "$as_me:9551: error: No curses header-files found" >&5
echo "$as_me: error: No curses header-files found" >&2;}
{ (exit 1); exit 1; }; }
fi
@@ -8093,23 +9558,23 @@ fi
for ac_header in $cf_cv_ncurses_header
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-echo "$as_me:8096: checking for $ac_header" >&5
+echo "$as_me:9561: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 8102 "configure"
+#line 9567 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
-if { (eval echo "$as_me:8106: \"$ac_cpp "conftest.$ac_ext"\"") >&5
+if { (eval echo "$as_me:9571: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
- echo "$as_me:8112: \$? = $ac_status" >&5
+ echo "$as_me:9577: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
@@ -8128,7 +9593,7 @@ else
fi
rm -f conftest.err "conftest.$ac_ext"
fi
-echo "$as_me:8131: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
+echo "$as_me:9596: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <"conftest.$ac_ext" <<_ACEOF
-#line 8187 "configure"
+#line 9652 "configure"
#include "confdefs.h"
#include
int
@@ -8196,16 +9661,16 @@ printf("Hello")
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:8199: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:9664: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:8202: \$? = $ac_status" >&5
+ echo "$as_me:9667: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:8205: \"$ac_try\"") >&5
+ { (eval echo "$as_me:9670: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:8208: \$? = $ac_status" >&5
+ echo "$as_me:9673: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -8222,7 +9687,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
if test "$cf_have_incdir" = no ; then
test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
-echo "${as_me:-configure}:8225: testing adding $cf_add_incdir to include-path ..." 1>&5
+echo "${as_me:-configure}:9690: testing adding $cf_add_incdir to include-path ..." 1>&5
CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
@@ -8241,7 +9706,7 @@ fi
}
-echo "$as_me:8244: checking for $cf_ncuhdr_root header in include-path" >&5
+echo "$as_me:9709: checking for $cf_ncuhdr_root header in include-path" >&5
echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
if test "${cf_cv_ncurses_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -8253,13 +9718,9 @@ else
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 8256 "configure"
+#line 9721 "configure"
#include "confdefs.h"
-#define _XOPEN_SOURCE_EXTENDED
-#undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
-#define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
-
#include <$cf_header>
int
main (void)
@@ -8267,10 +9728,6 @@ main (void)
#ifdef NCURSES_VERSION
-#ifndef WACS_BSSB
- #error WACS_BSSB is not defined
-#endif
-
printf("%s\\n", NCURSES_VERSION);
#else
#ifdef __NCURSES_H
@@ -8285,16 +9742,16 @@ printf("old\\n");
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:8288: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:9745: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:8291: \$? = $ac_status" >&5
+ echo "$as_me:9748: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:8294: \"$ac_try\"") >&5
+ { (eval echo "$as_me:9751: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:8297: \$? = $ac_status" >&5
+ echo "$as_me:9754: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_ncurses_h=$cf_header
@@ -8309,14 +9766,14 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done
fi
-echo "$as_me:8312: result: $cf_cv_ncurses_h" >&5
+echo "$as_me:9769: result: $cf_cv_ncurses_h" >&5
echo "${ECHO_T}$cf_cv_ncurses_h" >&6
if test "$cf_cv_ncurses_h" != no ; then
cf_cv_ncurses_header=$cf_cv_ncurses_h
else
-echo "$as_me:8319: checking for $cf_ncuhdr_root include-path" >&5
+echo "$as_me:9776: checking for $cf_ncuhdr_root include-path" >&5
echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
if test "${cf_cv_ncurses_h2+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -8437,7 +9894,7 @@ if test -n "$cf_incdir" ; then
CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 8440 "configure"
+#line 9897 "configure"
#include "confdefs.h"
#include
int
@@ -8449,16 +9906,16 @@ printf("Hello")
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:8452: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:9909: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:8455: \$? = $ac_status" >&5
+ echo "$as_me:9912: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:8458: \"$ac_try\"") >&5
+ { (eval echo "$as_me:9915: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:8461: \$? = $ac_status" >&5
+ echo "$as_me:9918: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -8475,7 +9932,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
if test "$cf_have_incdir" = no ; then
test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
-echo "${as_me:-configure}:8478: testing adding $cf_add_incdir to include-path ..." 1>&5
+echo "${as_me:-configure}:9935: testing adding $cf_add_incdir to include-path ..." 1>&5
CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
@@ -8498,7 +9955,7 @@ fi
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 8501 "configure"
+#line 9958 "configure"
#include "confdefs.h"
#include <$cf_header>
@@ -8522,16 +9979,16 @@ printf("old\\n");
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:8525: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:9982: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:8528: \$? = $ac_status" >&5
+ echo "$as_me:9985: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:8531: \"$ac_try\"") >&5
+ { (eval echo "$as_me:9988: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:8534: \$? = $ac_status" >&5
+ echo "$as_me:9991: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_ncurses_h2=$cf_header
@@ -8552,12 +10009,12 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CPPFLAGS="$cf_save2_CPPFLAGS"
test "$cf_cv_ncurses_h2" != no && break
done
- test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:8555: error: not found" >&5
+ test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:10012: error: not found" >&5
echo "$as_me: error: not found" >&2;}
{ (exit 1); exit 1; }; }
fi
-echo "$as_me:8560: result: $cf_cv_ncurses_h2" >&5
+echo "$as_me:10017: result: $cf_cv_ncurses_h2" >&5
echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
cf_1st_incdir=`echo "$cf_cv_ncurses_h2" | sed -e 's%/[^/]*$%%'`
@@ -8593,7 +10050,7 @@ if test -n "$cf_1st_incdir" ; then
CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 8596 "configure"
+#line 10053 "configure"
#include "confdefs.h"
#include
int
@@ -8605,16 +10062,16 @@ printf("Hello")
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:8608: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:10065: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:8611: \$? = $ac_status" >&5
+ echo "$as_me:10068: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:8614: \"$ac_try\"") >&5
+ { (eval echo "$as_me:10071: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:8617: \$? = $ac_status" >&5
+ echo "$as_me:10074: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -8631,7 +10088,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
if test "$cf_have_incdir" = no ; then
test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
-echo "${as_me:-configure}:8634: testing adding $cf_add_incdir to include-path ..." 1>&5
+echo "${as_me:-configure}:10091: testing adding $cf_add_incdir to include-path ..." 1>&5
CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
@@ -8679,7 +10136,7 @@ EOF
;;
esac
-echo "$as_me:8682: checking for terminfo header" >&5
+echo "$as_me:10139: checking for terminfo header" >&5
echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
if test "${cf_cv_term_header+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -8697,7 +10154,7 @@ esac
for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 8700 "configure"
+#line 10157 "configure"
#include "confdefs.h"
#include
#include <${cf_cv_ncurses_header:-curses.h}>
@@ -8712,16 +10169,16 @@ int x = auto_left_margin; (void)x
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:8715: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:10172: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:8718: \$? = $ac_status" >&5
+ echo "$as_me:10175: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:8721: \"$ac_try\"") >&5
+ { (eval echo "$as_me:10178: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:8724: \$? = $ac_status" >&5
+ echo "$as_me:10181: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_term_header="$cf_test"
@@ -8737,7 +10194,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done
fi
-echo "$as_me:8740: result: $cf_cv_term_header" >&5
+echo "$as_me:10197: result: $cf_cv_term_header" >&5
echo "${ECHO_T}$cf_cv_term_header" >&6
# Set definitions to allow ifdef'ing to accommodate subdirectories
@@ -8775,7 +10232,7 @@ cat >>confdefs.h <<\EOF
#define NCURSES 1
EOF
-echo "$as_me:8778: checking for ncurses version" >&5
+echo "$as_me:10235: checking for ncurses version" >&5
echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
if test "${cf_cv_ncurses_version+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -8801,10 +10258,10 @@ Autoconf "old"
#endif
EOF
cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
- { (eval echo "$as_me:8804: \"$cf_try\"") >&5
+ { (eval echo "$as_me:10261: \"$cf_try\"") >&5
(eval $cf_try) 2>&5
ac_status=$?
- echo "$as_me:8807: \$? = $ac_status" >&5
+ echo "$as_me:10264: \$? = $ac_status" >&5
(exit "$ac_status"); }
if test -f conftest.out ; then
cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
@@ -8814,7 +10271,7 @@ EOF
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 8817 "configure"
+#line 10274 "configure"
#include "confdefs.h"
$ac_includes_default
@@ -8834,22 +10291,22 @@ int main(void)
# ifdef __NCURSES_H
fprintf(fp, "old\\n");
# else
- make an error
+ #error expected ncurses header to define __NCURSES_H
# endif
#endif
${cf_cv_main_return:-return}(0);
}
_ACEOF
rm -f "conftest$ac_exeext"
-if { (eval echo "$as_me:8844: \"$ac_link\"") >&5
+if { (eval echo "$as_me:10301: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:8847: \$? = $ac_status" >&5
+ echo "$as_me:10304: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
- { (eval echo "$as_me:8849: \"$ac_try\"") >&5
+ { (eval echo "$as_me:10306: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:8852: \$? = $ac_status" >&5
+ echo "$as_me:10309: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_ncurses_version=`cat $cf_tempfile`
@@ -8863,20 +10320,20 @@ fi
rm -f "$cf_tempfile"
fi
-echo "$as_me:8866: result: $cf_cv_ncurses_version" >&5
+echo "$as_me:10323: result: $cf_cv_ncurses_version" >&5
echo "${ECHO_T}$cf_cv_ncurses_version" >&6
test "$cf_cv_ncurses_version" = no ||
cat >>confdefs.h <<\EOF
#define NCURSES 1
EOF
-cf_nculib_root=ncursesw
+cf_nculib_root=$cf_cv_screen
# This works, except for the special case where we find gpm, but
# ncurses is in a nonstandard location via $LIBS, and we really want
# to link gpm.
cf_ncurses_LIBS=""
cf_ncurses_SAVE="$LIBS"
-echo "$as_me:8879: checking for Gpm_Open in -lgpm" >&5
+echo "$as_me:10336: checking for Gpm_Open in -lgpm" >&5
echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -8884,7 +10341,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lgpm $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 8887 "configure"
+#line 10344 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
@@ -8893,7 +10350,7 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char Gpm_Open ();
+char Gpm_Open (void);
int
main (void)
{
@@ -8903,16 +10360,16 @@ Gpm_Open ();
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:8906: \"$ac_link\"") >&5
+if { (eval echo "$as_me:10363: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:8909: \$? = $ac_status" >&5
+ echo "$as_me:10366: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:8912: \"$ac_try\"") >&5
+ { (eval echo "$as_me:10369: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:8915: \$? = $ac_status" >&5
+ echo "$as_me:10372: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_lib_gpm_Gpm_Open=yes
else
@@ -8923,10 +10380,10 @@ fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:8926: result: $ac_cv_lib_gpm_Gpm_Open" >&5
+echo "$as_me:10383: result: $ac_cv_lib_gpm_Gpm_Open" >&5
echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
- echo "$as_me:8929: checking for initscr in -lgpm" >&5
+ echo "$as_me:10386: checking for initscr in -lgpm" >&5
echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
if test "${ac_cv_lib_gpm_initscr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -8934,7 +10391,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lgpm $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 8937 "configure"
+#line 10394 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
@@ -8943,7 +10400,7 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char initscr ();
+char initscr (void);
int
main (void)
{
@@ -8953,16 +10410,16 @@ initscr ();
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:8956: \"$ac_link\"") >&5
+if { (eval echo "$as_me:10413: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:8959: \$? = $ac_status" >&5
+ echo "$as_me:10416: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:8962: \"$ac_try\"") >&5
+ { (eval echo "$as_me:10419: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:8965: \$? = $ac_status" >&5
+ echo "$as_me:10422: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_lib_gpm_initscr=yes
else
@@ -8973,7 +10430,7 @@ fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:8976: result: $ac_cv_lib_gpm_initscr" >&5
+echo "$as_me:10433: result: $ac_cv_lib_gpm_initscr" >&5
echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
if test "$ac_cv_lib_gpm_initscr" = yes; then
LIBS="$cf_ncurses_SAVE"
@@ -8988,7 +10445,7 @@ case "$host_os" in
# This is only necessary if you are linking against an obsolete
# version of ncurses (but it should do no harm, since it is static).
if test "$cf_nculib_root" = ncurses ; then
- echo "$as_me:8991: checking for tgoto in -lmytinfo" >&5
+ echo "$as_me:10448: checking for tgoto in -lmytinfo" >&5
echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -8996,7 +10453,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lmytinfo $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 8999 "configure"
+#line 10456 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
@@ -9005,7 +10462,7 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char tgoto ();
+char tgoto (void);
int
main (void)
{
@@ -9015,16 +10472,16 @@ tgoto ();
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:9018: \"$ac_link\"") >&5
+if { (eval echo "$as_me:10475: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:9021: \$? = $ac_status" >&5
+ echo "$as_me:10478: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:9024: \"$ac_try\"") >&5
+ { (eval echo "$as_me:10481: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:9027: \$? = $ac_status" >&5
+ echo "$as_me:10484: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_lib_mytinfo_tgoto=yes
else
@@ -9035,7 +10492,7 @@ fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:9038: result: $ac_cv_lib_mytinfo_tgoto" >&5
+echo "$as_me:10495: result: $ac_cv_lib_mytinfo_tgoto" >&5
echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
if test "$ac_cv_lib_mytinfo_tgoto" = yes; then
cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
@@ -9084,13 +10541,13 @@ else
eval 'cf_cv_have_lib_'"$cf_nculib_root"'=no'
cf_libdir=""
- echo "$as_me:9087: checking for initscr" >&5
+ echo "$as_me:10544: checking for initscr" >&5
echo $ECHO_N "checking for initscr... $ECHO_C" >&6
if test "${ac_cv_func_initscr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 9093 "configure"
+#line 10550 "configure"
#include "confdefs.h"
#define initscr autoconf_temporary
#include /* least-intrusive standard header which defines gcc2 __stub macros */
@@ -9121,16 +10578,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:9124: \"$ac_link\"") >&5
+if { (eval echo "$as_me:10581: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:9127: \$? = $ac_status" >&5
+ echo "$as_me:10584: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:9130: \"$ac_try\"") >&5
+ { (eval echo "$as_me:10587: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:9133: \$? = $ac_status" >&5
+ echo "$as_me:10590: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_func_initscr=yes
else
@@ -9140,18 +10597,18 @@ ac_cv_func_initscr=no
fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi
-echo "$as_me:9143: result: $ac_cv_func_initscr" >&5
+echo "$as_me:10600: result: $ac_cv_func_initscr" >&5
echo "${ECHO_T}$ac_cv_func_initscr" >&6
if test "$ac_cv_func_initscr" = yes; then
eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
else
cf_save_LIBS="$LIBS"
- echo "$as_me:9150: checking for initscr in -l$cf_nculib_root" >&5
+ echo "$as_me:10607: checking for initscr in -l$cf_nculib_root" >&5
echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
LIBS="-l$cf_nculib_root $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 9154 "configure"
+#line 10611 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int
@@ -9163,25 +10620,25 @@ initscr()
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:9166: \"$ac_link\"") >&5
+if { (eval echo "$as_me:10623: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:9169: \$? = $ac_status" >&5
+ echo "$as_me:10626: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:9172: \"$ac_try\"") >&5
+ { (eval echo "$as_me:10629: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:9175: \$? = $ac_status" >&5
+ echo "$as_me:10632: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
- echo "$as_me:9177: result: yes" >&5
+ echo "$as_me:10634: result: yes" >&5
echo "${ECHO_T}yes" >&6
eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
else
echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5
-echo "$as_me:9184: result: no" >&5
+echo "$as_me:10641: result: no" >&5
echo "${ECHO_T}no" >&6
cf_search=
@@ -9249,11 +10706,11 @@ cf_search="$cf_library_path_list $cf_search"
for cf_libdir in $cf_search
do
- echo "$as_me:9252: checking for -l$cf_nculib_root in $cf_libdir" >&5
+ echo "$as_me:10709: checking for -l$cf_nculib_root in $cf_libdir" >&5
echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 9256 "configure"
+#line 10713 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int
@@ -9265,25 +10722,25 @@ initscr()
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:9268: \"$ac_link\"") >&5
+if { (eval echo "$as_me:10725: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:9271: \$? = $ac_status" >&5
+ echo "$as_me:10728: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:9274: \"$ac_try\"") >&5
+ { (eval echo "$as_me:10731: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:9277: \$? = $ac_status" >&5
+ echo "$as_me:10734: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
- echo "$as_me:9279: result: yes" >&5
+ echo "$as_me:10736: result: yes" >&5
echo "${ECHO_T}yes" >&6
eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
break
else
echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5
-echo "$as_me:9286: result: no" >&5
+echo "$as_me:10743: result: no" >&5
echo "${ECHO_T}no" >&6
LIBS="$cf_save_LIBS"
fi
@@ -9298,7 +10755,7 @@ fi
eval 'cf_found_library="$cf_cv_have_lib_'"$cf_nculib_root"\"
if test "$cf_found_library" = no ; then
- { { echo "$as_me:9301: error: Cannot link $cf_nculib_root library" >&5
+ { { echo "$as_me:10758: error: Cannot link $cf_nculib_root library" >&5
echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
{ (exit 1); exit 1; }; }
fi
@@ -9306,7 +10763,7 @@ fi
fi
if test -n "$cf_ncurses_LIBS" ; then
- echo "$as_me:9309: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
+ echo "$as_me:10766: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
cf_ncurses_SAVE="$LIBS"
for p in $cf_ncurses_LIBS ; do
@@ -9316,7 +10773,7 @@ echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS..
fi
done
cat >"conftest.$ac_ext" <<_ACEOF
-#line 9319 "configure"
+#line 10776 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int
@@ -9328,23 +10785,23 @@ initscr(); mousemask(0,0); tigetstr((char *)0);
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:9331: \"$ac_link\"") >&5
+if { (eval echo "$as_me:10788: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:9334: \$? = $ac_status" >&5
+ echo "$as_me:10791: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:9337: \"$ac_try\"") >&5
+ { (eval echo "$as_me:10794: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:9340: \$? = $ac_status" >&5
+ echo "$as_me:10797: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
- echo "$as_me:9342: result: yes" >&5
+ echo "$as_me:10799: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5
-echo "$as_me:9347: result: no" >&5
+echo "$as_me:10804: result: no" >&5
echo "${ECHO_T}no" >&6
LIBS="$cf_ncurses_SAVE"
fi
@@ -9362,19 +10819,20 @@ else
NCURSES_CONFIG=none
fi
-else
+ ;;
+(ncurses*)
-cf_ncuconfig_root=ncurses
+cf_ncuconfig_root=$cf_cv_screen
cf_have_ncuconfig=no
if test "x${PKG_CONFIG:=none}" != xnone; then
- echo "$as_me:9371: checking pkg-config for $cf_ncuconfig_root" >&5
+ echo "$as_me:10829: checking pkg-config for $cf_ncuconfig_root" >&5
echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
- echo "$as_me:9374: result: yes" >&5
+ echo "$as_me:10832: result: yes" >&5
echo "${ECHO_T}yes" >&6
- echo "$as_me:9377: checking if the $cf_ncuconfig_root package files work" >&5
+ echo "$as_me:10835: checking if the $cf_ncuconfig_root package files work" >&5
echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
cf_have_ncuconfig=unknown
@@ -9507,7 +10965,7 @@ done
LIBS="$cf_add_libs"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 9510 "configure"
+#line 10968 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int
@@ -9519,37 +10977,37 @@ initscr(); mousemask(0,0); tigetstr((char *)0);
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:9522: \"$ac_link\"") >&5
+if { (eval echo "$as_me:10980: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:9525: \$? = $ac_status" >&5
+ echo "$as_me:10983: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:9528: \"$ac_try\"") >&5
+ { (eval echo "$as_me:10986: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:9531: \$? = $ac_status" >&5
+ echo "$as_me:10989: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
if test "$cross_compiling" = yes; then
cf_test_ncuconfig=maybe
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 9537 "configure"
+#line 10995 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int main(void)
{ const char *xx = curses_version(); return (xx == 0); }
_ACEOF
rm -f "conftest$ac_exeext"
-if { (eval echo "$as_me:9544: \"$ac_link\"") >&5
+if { (eval echo "$as_me:11002: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:9547: \$? = $ac_status" >&5
+ echo "$as_me:11005: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
- { (eval echo "$as_me:9549: \"$ac_try\"") >&5
+ { (eval echo "$as_me:11007: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:9552: \$? = $ac_status" >&5
+ echo "$as_me:11010: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_test_ncuconfig=yes
else
@@ -9580,6 +11038,20 @@ rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
;;
esac
+for cf_required in $cf_ncuconfig_root
+do
+ # check for duplicates
+ for cf_require_pkg in $REQUIRE_PKG
+ do
+ if test "$cf_required" = "$cf_require_pkg"
+ then
+ cf_required=
+ break
+ fi
+ done
+ test -n "$cf_required" && REQUIRE_PKG="$REQUIRE_PKG $cf_required"
+done
+
for cf_add_cflags in $cf_pkg_cflags
do
case "x$cf_add_cflags" in
@@ -9723,7 +11195,7 @@ done
LIBS="$cf_add_libs"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 9726 "configure"
+#line 11198 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int
@@ -9735,37 +11207,37 @@ initscr(); mousemask(0,0); tigetstr((char *)0);
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:9738: \"$ac_link\"") >&5
+if { (eval echo "$as_me:11210: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:9741: \$? = $ac_status" >&5
+ echo "$as_me:11213: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:9744: \"$ac_try\"") >&5
+ { (eval echo "$as_me:11216: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:9747: \$? = $ac_status" >&5
+ echo "$as_me:11219: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
if test "$cross_compiling" = yes; then
cf_have_ncuconfig=maybe
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 9753 "configure"
+#line 11225 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int main(void)
{ const char *xx = curses_version(); return (xx == 0); }
_ACEOF
rm -f "conftest$ac_exeext"
-if { (eval echo "$as_me:9760: \"$ac_link\"") >&5
+if { (eval echo "$as_me:11232: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:9763: \$? = $ac_status" >&5
+ echo "$as_me:11235: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
- { (eval echo "$as_me:9765: \"$ac_try\"") >&5
+ { (eval echo "$as_me:11237: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:9768: \$? = $ac_status" >&5
+ echo "$as_me:11240: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_have_ncuconfig=yes
else
@@ -9782,7 +11254,7 @@ cat "conftest.$ac_ext" >&5
cf_have_ncuconfig=no
fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
- echo "$as_me:9785: result: $cf_have_ncuconfig" >&5
+ echo "$as_me:11257: result: $cf_have_ncuconfig" >&5
echo "${ECHO_T}$cf_have_ncuconfig" >&6
test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
if test "$cf_have_ncuconfig" != "yes"
@@ -9798,7 +11270,7 @@ EOF
NCURSES_CONFIG_PKG=$cf_ncuconfig_root
-echo "$as_me:9801: checking for terminfo header" >&5
+echo "$as_me:11273: checking for terminfo header" >&5
echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
if test "${cf_cv_term_header+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -9816,7 +11288,7 @@ esac
for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 9819 "configure"
+#line 11291 "configure"
#include "confdefs.h"
#include
#include <${cf_cv_ncurses_header:-curses.h}>
@@ -9831,16 +11303,16 @@ int x = auto_left_margin; (void)x
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:9834: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:11306: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:9837: \$? = $ac_status" >&5
+ echo "$as_me:11309: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:9840: \"$ac_try\"") >&5
+ { (eval echo "$as_me:11312: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:9843: \$? = $ac_status" >&5
+ echo "$as_me:11315: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_term_header="$cf_test"
@@ -9856,7 +11328,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done
fi
-echo "$as_me:9859: result: $cf_cv_term_header" >&5
+echo "$as_me:11331: result: $cf_cv_term_header" >&5
echo "${ECHO_T}$cf_cv_term_header" >&6
# Set definitions to allow ifdef'ing to accommodate subdirectories
@@ -9891,7 +11363,7 @@ esac
fi
else
- echo "$as_me:9894: result: no" >&5
+ echo "$as_me:11366: result: no" >&5
echo "${ECHO_T}no" >&6
NCURSES_CONFIG_PKG=none
fi
@@ -9907,7 +11379,7 @@ if test -n "$ac_tool_prefix"; then
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
-echo "$as_me:9910: checking for $ac_word" >&5
+echo "$as_me:11382: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -9922,7 +11394,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
-echo "$as_me:9925: found $ac_dir/$ac_word" >&5
+echo "$as_me:11397: found $ac_dir/$ac_word" >&5
break
done
@@ -9930,10 +11402,10 @@ fi
fi
NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
if test -n "$NCURSES_CONFIG"; then
- echo "$as_me:9933: result: $NCURSES_CONFIG" >&5
+ echo "$as_me:11405: result: $NCURSES_CONFIG" >&5
echo "${ECHO_T}$NCURSES_CONFIG" >&6
else
- echo "$as_me:9936: result: no" >&5
+ echo "$as_me:11408: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -9946,7 +11418,7 @@ if test -z "$NCURSES_CONFIG"; then
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
-echo "$as_me:9949: checking for $ac_word" >&5
+echo "$as_me:11421: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -9961,7 +11433,7 @@ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
-echo "$as_me:9964: found $ac_dir/$ac_word" >&5
+echo "$as_me:11436: found $ac_dir/$ac_word" >&5
break
done
@@ -9969,10 +11441,10 @@ fi
fi
ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
if test -n "$ac_ct_NCURSES_CONFIG"; then
- echo "$as_me:9972: result: $ac_ct_NCURSES_CONFIG" >&5
+ echo "$as_me:11444: result: $ac_ct_NCURSES_CONFIG" >&5
echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
else
- echo "$as_me:9975: result: no" >&5
+ echo "$as_me:11447: result: no" >&5
echo "${ECHO_T}no" >&6
fi
@@ -10129,7 +11601,7 @@ LIBS="$cf_add_libs"
# even with config script, some packages use no-override for curses.h
-echo "$as_me:10132: checking if we have identified curses headers" >&5
+echo "$as_me:11604: checking if we have identified curses headers" >&5
echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
if test "${cf_cv_ncurses_header+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -10137,11 +11609,11 @@ else
cf_cv_ncurses_header=none
for cf_header in \
- ncurses.h ncurses/ncurses.h \
- curses.h ncurses/curses.h
+ ncurses.h $cf_cv_screen/ncurses.h \
+ curses.h $cf_cv_screen/curses.h
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 10144 "configure"
+#line 11616 "configure"
#include "confdefs.h"
#include <${cf_header}>
int
@@ -10153,16 +11625,16 @@ initscr(); endwin()
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:10156: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:11628: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:10159: \$? = $ac_status" >&5
+ echo "$as_me:11631: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:10162: \"$ac_try\"") >&5
+ { (eval echo "$as_me:11634: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:10165: \$? = $ac_status" >&5
+ echo "$as_me:11637: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_ncurses_header=$cf_header; break
else
@@ -10173,11 +11645,11 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done
fi
-echo "$as_me:10176: result: $cf_cv_ncurses_header" >&5
+echo "$as_me:11648: result: $cf_cv_ncurses_header" >&5
echo "${ECHO_T}$cf_cv_ncurses_header" >&6
if test "$cf_cv_ncurses_header" = none ; then
- { { echo "$as_me:10180: error: No curses header-files found" >&5
+ { { echo "$as_me:11652: error: No curses header-files found" >&5
echo "$as_me: error: No curses header-files found" >&2;}
{ (exit 1); exit 1; }; }
fi
@@ -10187,23 +11659,23 @@ fi
for ac_header in $cf_cv_ncurses_header
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-echo "$as_me:10190: checking for $ac_header" >&5
+echo "$as_me:11662: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 10196 "configure"
+#line 11668 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
-if { (eval echo "$as_me:10200: \"$ac_cpp "conftest.$ac_ext"\"") >&5
+if { (eval echo "$as_me:11672: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
- echo "$as_me:10206: \$? = $ac_status" >&5
+ echo "$as_me:11678: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
@@ -10222,7 +11694,7 @@ else
fi
rm -f conftest.err "conftest.$ac_ext"
fi
-echo "$as_me:10225: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
+echo "$as_me:11697: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <"conftest.$ac_ext" <<_ACEOF
-#line 10281 "configure"
+#line 11753 "configure"
#include "confdefs.h"
#include
int
@@ -10290,16 +11762,16 @@ printf("Hello")
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:10293: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:11765: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:10296: \$? = $ac_status" >&5
+ echo "$as_me:11768: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:10299: \"$ac_try\"") >&5
+ { (eval echo "$as_me:11771: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:10302: \$? = $ac_status" >&5
+ echo "$as_me:11774: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -10316,7 +11788,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
if test "$cf_have_incdir" = no ; then
test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
-echo "${as_me:-configure}:10319: testing adding $cf_add_incdir to include-path ..." 1>&5
+echo "${as_me:-configure}:11791: testing adding $cf_add_incdir to include-path ..." 1>&5
CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
@@ -10335,7 +11807,7 @@ fi
}
-echo "$as_me:10338: checking for $cf_ncuhdr_root header in include-path" >&5
+echo "$as_me:11810: checking for $cf_ncuhdr_root header in include-path" >&5
echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
if test "${cf_cv_ncurses_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -10347,7 +11819,7 @@ else
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 10350 "configure"
+#line 11822 "configure"
#include "confdefs.h"
#include <$cf_header>
@@ -10371,16 +11843,16 @@ printf("old\\n");
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:10374: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:11846: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:10377: \$? = $ac_status" >&5
+ echo "$as_me:11849: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:10380: \"$ac_try\"") >&5
+ { (eval echo "$as_me:11852: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:10383: \$? = $ac_status" >&5
+ echo "$as_me:11855: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_ncurses_h=$cf_header
@@ -10395,14 +11867,14 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done
fi
-echo "$as_me:10398: result: $cf_cv_ncurses_h" >&5
+echo "$as_me:11870: result: $cf_cv_ncurses_h" >&5
echo "${ECHO_T}$cf_cv_ncurses_h" >&6
if test "$cf_cv_ncurses_h" != no ; then
cf_cv_ncurses_header=$cf_cv_ncurses_h
else
-echo "$as_me:10405: checking for $cf_ncuhdr_root include-path" >&5
+echo "$as_me:11877: checking for $cf_ncuhdr_root include-path" >&5
echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
if test "${cf_cv_ncurses_h2+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -10523,7 +11995,7 @@ if test -n "$cf_incdir" ; then
CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 10526 "configure"
+#line 11998 "configure"
#include "confdefs.h"
#include
int
@@ -10535,16 +12007,16 @@ printf("Hello")
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:10538: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:12010: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:10541: \$? = $ac_status" >&5
+ echo "$as_me:12013: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:10544: \"$ac_try\"") >&5
+ { (eval echo "$as_me:12016: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:10547: \$? = $ac_status" >&5
+ echo "$as_me:12019: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -10561,7 +12033,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
if test "$cf_have_incdir" = no ; then
test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
-echo "${as_me:-configure}:10564: testing adding $cf_add_incdir to include-path ..." 1>&5
+echo "${as_me:-configure}:12036: testing adding $cf_add_incdir to include-path ..." 1>&5
CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
@@ -10584,7 +12056,7 @@ fi
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 10587 "configure"
+#line 12059 "configure"
#include "confdefs.h"
#include <$cf_header>
@@ -10608,16 +12080,16 @@ printf("old\\n");
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:10611: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:12083: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:10614: \$? = $ac_status" >&5
+ echo "$as_me:12086: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:10617: \"$ac_try\"") >&5
+ { (eval echo "$as_me:12089: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:10620: \$? = $ac_status" >&5
+ echo "$as_me:12092: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_ncurses_h2=$cf_header
@@ -10638,12 +12110,12 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CPPFLAGS="$cf_save2_CPPFLAGS"
test "$cf_cv_ncurses_h2" != no && break
done
- test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:10641: error: not found" >&5
+ test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:12113: error: not found" >&5
echo "$as_me: error: not found" >&2;}
{ (exit 1); exit 1; }; }
fi
-echo "$as_me:10646: result: $cf_cv_ncurses_h2" >&5
+echo "$as_me:12118: result: $cf_cv_ncurses_h2" >&5
echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
cf_1st_incdir=`echo "$cf_cv_ncurses_h2" | sed -e 's%/[^/]*$%%'`
@@ -10679,7 +12151,7 @@ if test -n "$cf_1st_incdir" ; then
CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 10682 "configure"
+#line 12154 "configure"
#include "confdefs.h"
#include
int
@@ -10691,16 +12163,16 @@ printf("Hello")
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:10694: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:12166: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:10697: \$? = $ac_status" >&5
+ echo "$as_me:12169: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:10700: \"$ac_try\"") >&5
+ { (eval echo "$as_me:12172: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:10703: \$? = $ac_status" >&5
+ echo "$as_me:12175: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -10717,7 +12189,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
if test "$cf_have_incdir" = no ; then
test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
-echo "${as_me:-configure}:10720: testing adding $cf_add_incdir to include-path ..." 1>&5
+echo "${as_me:-configure}:12192: testing adding $cf_add_incdir to include-path ..." 1>&5
CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
@@ -10765,7 +12237,7 @@ EOF
;;
esac
-echo "$as_me:10768: checking for terminfo header" >&5
+echo "$as_me:12240: checking for terminfo header" >&5
echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
if test "${cf_cv_term_header+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -10783,7 +12255,7 @@ esac
for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 10786 "configure"
+#line 12258 "configure"
#include "confdefs.h"
#include
#include <${cf_cv_ncurses_header:-curses.h}>
@@ -10798,16 +12270,16 @@ int x = auto_left_margin; (void)x
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:10801: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:12273: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:10804: \$? = $ac_status" >&5
+ echo "$as_me:12276: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:10807: \"$ac_try\"") >&5
+ { (eval echo "$as_me:12279: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:10810: \$? = $ac_status" >&5
+ echo "$as_me:12282: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_term_header="$cf_test"
@@ -10823,7 +12295,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done
fi
-echo "$as_me:10826: result: $cf_cv_term_header" >&5
+echo "$as_me:12298: result: $cf_cv_term_header" >&5
echo "${ECHO_T}$cf_cv_term_header" >&6
# Set definitions to allow ifdef'ing to accommodate subdirectories
@@ -10861,7 +12333,7 @@ cat >>confdefs.h <<\EOF
#define NCURSES 1
EOF
-echo "$as_me:10864: checking for ncurses version" >&5
+echo "$as_me:12336: checking for ncurses version" >&5
echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
if test "${cf_cv_ncurses_version+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -10887,10 +12359,10 @@ Autoconf "old"
#endif
EOF
cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
- { (eval echo "$as_me:10890: \"$cf_try\"") >&5
+ { (eval echo "$as_me:12362: \"$cf_try\"") >&5
(eval $cf_try) 2>&5
ac_status=$?
- echo "$as_me:10893: \$? = $ac_status" >&5
+ echo "$as_me:12365: \$? = $ac_status" >&5
(exit "$ac_status"); }
if test -f conftest.out ; then
cf_out=`sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%' conftest.out`
@@ -10900,7 +12372,7 @@ EOF
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 10903 "configure"
+#line 12375 "configure"
#include "confdefs.h"
$ac_includes_default
@@ -10920,22 +12392,22 @@ int main(void)
# ifdef __NCURSES_H
fprintf(fp, "old\\n");
# else
- make an error
+ #error expected ncurses header to define __NCURSES_H
# endif
#endif
${cf_cv_main_return:-return}(0);
}
_ACEOF
rm -f "conftest$ac_exeext"
-if { (eval echo "$as_me:10930: \"$ac_link\"") >&5
+if { (eval echo "$as_me:12402: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:10933: \$? = $ac_status" >&5
+ echo "$as_me:12405: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
- { (eval echo "$as_me:10935: \"$ac_try\"") >&5
+ { (eval echo "$as_me:12407: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:10938: \$? = $ac_status" >&5
+ echo "$as_me:12410: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_ncurses_version=`cat $cf_tempfile`
@@ -10949,20 +12421,20 @@ fi
rm -f "$cf_tempfile"
fi
-echo "$as_me:10952: result: $cf_cv_ncurses_version" >&5
+echo "$as_me:12424: result: $cf_cv_ncurses_version" >&5
echo "${ECHO_T}$cf_cv_ncurses_version" >&6
test "$cf_cv_ncurses_version" = no ||
cat >>confdefs.h <<\EOF
#define NCURSES 1
EOF
-cf_nculib_root=ncurses
+cf_nculib_root=$cf_cv_screen
# This works, except for the special case where we find gpm, but
# ncurses is in a nonstandard location via $LIBS, and we really want
# to link gpm.
cf_ncurses_LIBS=""
cf_ncurses_SAVE="$LIBS"
-echo "$as_me:10965: checking for Gpm_Open in -lgpm" >&5
+echo "$as_me:12437: checking for Gpm_Open in -lgpm" >&5
echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -10970,7 +12442,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lgpm $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 10973 "configure"
+#line 12445 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
@@ -10979,7 +12451,7 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char Gpm_Open ();
+char Gpm_Open (void);
int
main (void)
{
@@ -10989,16 +12461,16 @@ Gpm_Open ();
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:10992: \"$ac_link\"") >&5
+if { (eval echo "$as_me:12464: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:10995: \$? = $ac_status" >&5
+ echo "$as_me:12467: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:10998: \"$ac_try\"") >&5
+ { (eval echo "$as_me:12470: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:11001: \$? = $ac_status" >&5
+ echo "$as_me:12473: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_lib_gpm_Gpm_Open=yes
else
@@ -11009,10 +12481,10 @@ fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:11012: result: $ac_cv_lib_gpm_Gpm_Open" >&5
+echo "$as_me:12484: result: $ac_cv_lib_gpm_Gpm_Open" >&5
echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
- echo "$as_me:11015: checking for initscr in -lgpm" >&5
+ echo "$as_me:12487: checking for initscr in -lgpm" >&5
echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
if test "${ac_cv_lib_gpm_initscr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -11020,7 +12492,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lgpm $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 11023 "configure"
+#line 12495 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
@@ -11029,7 +12501,7 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char initscr ();
+char initscr (void);
int
main (void)
{
@@ -11039,16 +12511,16 @@ initscr ();
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:11042: \"$ac_link\"") >&5
+if { (eval echo "$as_me:12514: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:11045: \$? = $ac_status" >&5
+ echo "$as_me:12517: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:11048: \"$ac_try\"") >&5
+ { (eval echo "$as_me:12520: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:11051: \$? = $ac_status" >&5
+ echo "$as_me:12523: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_lib_gpm_initscr=yes
else
@@ -11059,7 +12531,7 @@ fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:11062: result: $ac_cv_lib_gpm_initscr" >&5
+echo "$as_me:12534: result: $ac_cv_lib_gpm_initscr" >&5
echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
if test "$ac_cv_lib_gpm_initscr" = yes; then
LIBS="$cf_ncurses_SAVE"
@@ -11074,7 +12546,7 @@ case "$host_os" in
# This is only necessary if you are linking against an obsolete
# version of ncurses (but it should do no harm, since it is static).
if test "$cf_nculib_root" = ncurses ; then
- echo "$as_me:11077: checking for tgoto in -lmytinfo" >&5
+ echo "$as_me:12549: checking for tgoto in -lmytinfo" >&5
echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -11082,7 +12554,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lmytinfo $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 11085 "configure"
+#line 12557 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
@@ -11091,7 +12563,7 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char tgoto ();
+char tgoto (void);
int
main (void)
{
@@ -11101,16 +12573,16 @@ tgoto ();
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:11104: \"$ac_link\"") >&5
+if { (eval echo "$as_me:12576: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:11107: \$? = $ac_status" >&5
+ echo "$as_me:12579: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:11110: \"$ac_try\"") >&5
+ { (eval echo "$as_me:12582: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:11113: \$? = $ac_status" >&5
+ echo "$as_me:12585: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_lib_mytinfo_tgoto=yes
else
@@ -11121,7 +12593,7 @@ fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:11124: result: $ac_cv_lib_mytinfo_tgoto" >&5
+echo "$as_me:12596: result: $ac_cv_lib_mytinfo_tgoto" >&5
echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
if test "$ac_cv_lib_mytinfo_tgoto" = yes; then
cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
@@ -11170,13 +12642,13 @@ else
eval 'cf_cv_have_lib_'"$cf_nculib_root"'=no'
cf_libdir=""
- echo "$as_me:11173: checking for initscr" >&5
+ echo "$as_me:12645: checking for initscr" >&5
echo $ECHO_N "checking for initscr... $ECHO_C" >&6
if test "${ac_cv_func_initscr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 11179 "configure"
+#line 12651 "configure"
#include "confdefs.h"
#define initscr autoconf_temporary
#include /* least-intrusive standard header which defines gcc2 __stub macros */
@@ -11207,16 +12679,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:11210: \"$ac_link\"") >&5
+if { (eval echo "$as_me:12682: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:11213: \$? = $ac_status" >&5
+ echo "$as_me:12685: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:11216: \"$ac_try\"") >&5
+ { (eval echo "$as_me:12688: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:11219: \$? = $ac_status" >&5
+ echo "$as_me:12691: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_func_initscr=yes
else
@@ -11226,18 +12698,18 @@ ac_cv_func_initscr=no
fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi
-echo "$as_me:11229: result: $ac_cv_func_initscr" >&5
+echo "$as_me:12701: result: $ac_cv_func_initscr" >&5
echo "${ECHO_T}$ac_cv_func_initscr" >&6
if test "$ac_cv_func_initscr" = yes; then
eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
else
cf_save_LIBS="$LIBS"
- echo "$as_me:11236: checking for initscr in -l$cf_nculib_root" >&5
+ echo "$as_me:12708: checking for initscr in -l$cf_nculib_root" >&5
echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
LIBS="-l$cf_nculib_root $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 11240 "configure"
+#line 12712 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int
@@ -11249,25 +12721,25 @@ initscr()
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:11252: \"$ac_link\"") >&5
+if { (eval echo "$as_me:12724: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:11255: \$? = $ac_status" >&5
+ echo "$as_me:12727: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:11258: \"$ac_try\"") >&5
+ { (eval echo "$as_me:12730: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:11261: \$? = $ac_status" >&5
+ echo "$as_me:12733: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
- echo "$as_me:11263: result: yes" >&5
+ echo "$as_me:12735: result: yes" >&5
echo "${ECHO_T}yes" >&6
eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
else
echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5
-echo "$as_me:11270: result: no" >&5
+echo "$as_me:12742: result: no" >&5
echo "${ECHO_T}no" >&6
cf_search=
@@ -11335,11 +12807,11 @@ cf_search="$cf_library_path_list $cf_search"
for cf_libdir in $cf_search
do
- echo "$as_me:11338: checking for -l$cf_nculib_root in $cf_libdir" >&5
+ echo "$as_me:12810: checking for -l$cf_nculib_root in $cf_libdir" >&5
echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 11342 "configure"
+#line 12814 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int
@@ -11351,25 +12823,25 @@ initscr()
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:11354: \"$ac_link\"") >&5
+if { (eval echo "$as_me:12826: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:11357: \$? = $ac_status" >&5
+ echo "$as_me:12829: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:11360: \"$ac_try\"") >&5
+ { (eval echo "$as_me:12832: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:11363: \$? = $ac_status" >&5
+ echo "$as_me:12835: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
- echo "$as_me:11365: result: yes" >&5
+ echo "$as_me:12837: result: yes" >&5
echo "${ECHO_T}yes" >&6
eval 'cf_cv_have_lib_'"$cf_nculib_root"'=yes'
break
else
echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5
-echo "$as_me:11372: result: no" >&5
+echo "$as_me:12844: result: no" >&5
echo "${ECHO_T}no" >&6
LIBS="$cf_save_LIBS"
fi
@@ -11384,7 +12856,7 @@ fi
eval 'cf_found_library="$cf_cv_have_lib_'"$cf_nculib_root"\"
if test "$cf_found_library" = no ; then
- { { echo "$as_me:11387: error: Cannot link $cf_nculib_root library" >&5
+ { { echo "$as_me:12859: error: Cannot link $cf_nculib_root library" >&5
echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
{ (exit 1); exit 1; }; }
fi
@@ -11392,7 +12864,7 @@ fi
fi
if test -n "$cf_ncurses_LIBS" ; then
- echo "$as_me:11395: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
+ echo "$as_me:12867: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
cf_ncurses_SAVE="$LIBS"
for p in $cf_ncurses_LIBS ; do
@@ -11402,7 +12874,7 @@ echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS..
fi
done
cat >"conftest.$ac_ext" <<_ACEOF
-#line 11405 "configure"
+#line 12877 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header:-curses.h}>
int
@@ -11414,23 +12886,23 @@ initscr(); mousemask(0,0); tigetstr((char *)0);
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:11417: \"$ac_link\"") >&5
+if { (eval echo "$as_me:12889: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:11420: \$? = $ac_status" >&5
+ echo "$as_me:12892: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:11423: \"$ac_try\"") >&5
+ { (eval echo "$as_me:12895: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:11426: \$? = $ac_status" >&5
+ echo "$as_me:12898: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
- echo "$as_me:11428: result: yes" >&5
+ echo "$as_me:12900: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5
-echo "$as_me:11433: result: no" >&5
+echo "$as_me:12905: result: no" >&5
echo "${ECHO_T}no" >&6
LIBS="$cf_ncurses_SAVE"
fi
@@ -11448,7 +12920,13 @@ else
NCURSES_CONFIG=none
fi
-fi
+ ;;
+(*)
+ { { echo "$as_me:12925: error: unexpected screen-value: $cf_cv_screen" >&5
+echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+esac
if test "$NCURSES_CONFIG_PKG" != none ; then
cf_version=`$PKG_CONFIG --modversion $NCURSES_CONFIG_PKG 2>/dev/null`
@@ -11483,10 +12961,10 @@ else
AUTOCONF_$cf_name NCURSES_VERSION_$cf_name
CF_EOF
cf_try="$ac_cpp conftest.$ac_ext 2>&5 | fgrep AUTOCONF_$cf_name >conftest.out"
- { (eval echo "$as_me:11486: \"$cf_try\"") >&5
+ { (eval echo "$as_me:12964: \"$cf_try\"") >&5
(eval $cf_try) 2>&5
ac_status=$?
- echo "$as_me:11489: \$? = $ac_status" >&5
+ echo "$as_me:12967: \$? = $ac_status" >&5
(exit "$ac_status"); }
if test -f conftest.out ; then
cf_result=`sed -e "s/^.*AUTOCONF_${cf_name}[ ][ ]*//" conftest.out`
@@ -11504,10 +12982,53 @@ cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
cf_cv_timestamp=`date`
-echo "$as_me:11507: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
+echo "$as_me:12985: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
-echo "$as_me:11510: checking if you want to have a library-prefix" >&5
+echo "$as_me:12988: checking if KEY_RESIZE is supported" >&5
+echo $ECHO_N "checking if KEY_RESIZE is supported... $ECHO_C" >&6
+if test "${cf_cv_curses_resizes+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+ cat >"conftest.$ac_ext" <<_ACEOF
+#line 12995 "configure"
+#include "confdefs.h"
+#include <${cf_cv_ncurses_header:-curses.h}>
+int
+main (void)
+{
+int key = KEY_RESIZE; (void)key
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext"
+if { (eval echo "$as_me:13007: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ echo "$as_me:13010: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest.$ac_objext"'
+ { (eval echo "$as_me:13013: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:13016: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+ cf_cv_curses_resizes=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+cf_cv_curses_resizes=no
+fi
+rm -f "conftest.$ac_objext" "conftest.$ac_ext"
+fi
+echo "$as_me:13026: result: $cf_cv_curses_resizes" >&5
+echo "${ECHO_T}$cf_cv_curses_resizes" >&6
+cf_cv_enable_sigwinch=0
+test "$cf_cv_curses_resizes" = yes && cf_cv_enable_sigwinch=1
+
+echo "$as_me:13031: checking if you want to have a library-prefix" >&5
echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
# Check whether --with-lib-prefix or --without-lib-prefix was given.
@@ -11517,7 +13038,7 @@ if test "${with_lib_prefix+set}" = set; then
else
with_lib_prefix=auto
fi;
-echo "$as_me:11520: result: $with_lib_prefix" >&5
+echo "$as_me:13041: result: $with_lib_prefix" >&5
echo "${ECHO_T}$with_lib_prefix" >&6
if test "$with_lib_prefix" = auto
@@ -11555,7 +13076,7 @@ if test X"$CC_G_OPT" = X"" ; then
test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
fi
-echo "$as_me:11558: checking for default loader flags" >&5
+echo "$as_me:13079: checking for default loader flags" >&5
echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
case $DFT_LWR_MODEL in
(normal) LD_MODEL='' ;;
@@ -11563,13 +13084,13 @@ case $DFT_LWR_MODEL in
(profile) LD_MODEL='-pg';;
(shared) LD_MODEL='' ;;
esac
-echo "$as_me:11566: result: $LD_MODEL" >&5
+echo "$as_me:13087: result: $LD_MODEL" >&5
echo "${ECHO_T}$LD_MODEL" >&6
LD_RPATH_OPT=
if test "x$cf_cv_enable_rpath" != xno
then
- echo "$as_me:11572: checking for an rpath option" >&5
+ echo "$as_me:13093: checking for an rpath option" >&5
echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
case "$cf_cv_system_name" in
(irix*)
@@ -11600,12 +13121,12 @@ echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
(*)
;;
esac
- echo "$as_me:11603: result: $LD_RPATH_OPT" >&5
+ echo "$as_me:13124: result: $LD_RPATH_OPT" >&5
echo "${ECHO_T}$LD_RPATH_OPT" >&6
case "x$LD_RPATH_OPT" in
(x-R*)
- echo "$as_me:11608: checking if we need a space after rpath option" >&5
+ echo "$as_me:13129: checking if we need a space after rpath option" >&5
echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
cf_save_LIBS="$LIBS"
@@ -11626,7 +13147,7 @@ done
LIBS="$cf_add_libs"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 11629 "configure"
+#line 13150 "configure"
#include "confdefs.h"
int
@@ -11638,16 +13159,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:11641: \"$ac_link\"") >&5
+if { (eval echo "$as_me:13162: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:11644: \$? = $ac_status" >&5
+ echo "$as_me:13165: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:11647: \"$ac_try\"") >&5
+ { (eval echo "$as_me:13168: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:11650: \$? = $ac_status" >&5
+ echo "$as_me:13171: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_rpath_space=no
else
@@ -11657,7 +13178,7 @@ cf_rpath_space=yes
fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS="$cf_save_LIBS"
- echo "$as_me:11660: result: $cf_rpath_space" >&5
+ echo "$as_me:13181: result: $cf_rpath_space" >&5
echo "${ECHO_T}$cf_rpath_space" >&6
test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
;;
@@ -11679,8 +13200,8 @@ fi
cf_ld_rpath_opt=
test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
- echo "$as_me:11682: checking if release/abi version should be used for shared libs" >&5
-echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
+ echo "$as_me:13203: checking whether to use release or ABI version in shared library file names" >&5
+echo $ECHO_N "checking whether to use release or ABI version in shared library file names... $ECHO_C" >&6
# Check whether --with-shlib-version or --without-shlib-version was given.
if test "${with_shlib_version+set}" = set; then
@@ -11694,9 +13215,9 @@ if test "${with_shlib_version+set}" = set; then
cf_cv_shlib_version=$withval
;;
(*)
- echo "$as_me:11697: result: $withval" >&5
+ echo "$as_me:13218: result: $withval" >&5
echo "${ECHO_T}$withval" >&6
- { { echo "$as_me:11699: error: option value must be one of: rel, abi, or auto" >&5
+ { { echo "$as_me:13220: error: option value must be one of: rel, abi, or auto" >&5
echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
{ (exit 1); exit 1; }; }
;;
@@ -11705,7 +13226,7 @@ echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
else
cf_cv_shlib_version=auto
fi;
- echo "$as_me:11708: result: $cf_cv_shlib_version" >&5
+ echo "$as_me:13229: result: $cf_cv_shlib_version" >&5
echo "${ECHO_T}$cf_cv_shlib_version" >&6
cf_cv_rm_so_locs=no
@@ -11728,35 +13249,35 @@ echo "${ECHO_T}$cf_cv_shlib_version" >&6
if test "$cf_try_fPIC" = yes
then
- echo "$as_me:11731: checking which $CC option to use" >&5
+ echo "$as_me:13252: checking which $CC option to use" >&5
echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
cf_save_CFLAGS="$CFLAGS"
for CC_SHARED_OPTS in -fPIC -fpic ''
do
CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 11738 "configure"
+#line 13259 "configure"
#include "confdefs.h"
#include
int
main (void)
{
-int x = 1
+int x = 1; (void)x
;
return 0;
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:11750: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:13271: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:11753: \$? = $ac_status" >&5
+ echo "$as_me:13274: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:11756: \"$ac_try\"") >&5
+ { (eval echo "$as_me:13277: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:11759: \$? = $ac_status" >&5
+ echo "$as_me:13280: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
break
else
@@ -11765,7 +13286,7 @@ cat "conftest.$ac_ext" >&5
fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done
- echo "$as_me:11768: result: $CC_SHARED_OPTS" >&5
+ echo "$as_me:13289: result: $CC_SHARED_OPTS" >&5
echo "${ECHO_T}$CC_SHARED_OPTS" >&6
CFLAGS="$cf_save_CFLAGS"
fi
@@ -11836,7 +13357,7 @@ CF_EOF
MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
cf_cv_shlib_version_infix=yes
- echo "$as_me:11839: checking if ld -search_paths_first works" >&5
+ echo "$as_me:13360: checking if ld -search_paths_first works" >&5
echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -11845,7 +13366,7 @@ else
cf_save_LDFLAGS=$LDFLAGS
LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 11848 "configure"
+#line 13369 "configure"
#include "confdefs.h"
int
@@ -11857,16 +13378,16 @@ int i;
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:11860: \"$ac_link\"") >&5
+if { (eval echo "$as_me:13381: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:11863: \$? = $ac_status" >&5
+ echo "$as_me:13384: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:11866: \"$ac_try\"") >&5
+ { (eval echo "$as_me:13387: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:11869: \$? = $ac_status" >&5
+ echo "$as_me:13390: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_ldflags_search_paths_first=yes
else
@@ -11877,7 +13398,7 @@ fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LDFLAGS=$cf_save_LDFLAGS
fi
-echo "$as_me:11880: result: $cf_cv_ldflags_search_paths_first" >&5
+echo "$as_me:13401: result: $cf_cv_ldflags_search_paths_first" >&5
echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
if test "$cf_cv_ldflags_search_paths_first" = yes; then
LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
@@ -12207,11 +13728,11 @@ CF_EOF
# tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
# tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
if test "$DFT_LWR_MODEL" = "shared" ; then
- LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
+ LOCAL_LDFLAGS="-R\$(LOCAL_LIBDIR):\${libdir}"
LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
fi
if test "$cf_cv_enable_rpath" = yes ; then
- EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
+ EXTRA_LDFLAGS="-R\${libdir} $EXTRA_LDFLAGS"
fi
test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
@@ -12227,7 +13748,7 @@ CF_EOF
do
CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 12230 "configure"
+#line 13751 "configure"
#include "confdefs.h"
#include
int
@@ -12239,16 +13760,16 @@ printf("Hello\\n");
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:12242: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:13763: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:12245: \$? = $ac_status" >&5
+ echo "$as_me:13766: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:12248: \"$ac_try\"") >&5
+ { (eval echo "$as_me:13769: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:12251: \$? = $ac_status" >&5
+ echo "$as_me:13772: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
break
else
@@ -12259,9 +13780,9 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done
CFLAGS="$cf_save_CFLAGS"
CC_SHARED_OPTS=$cf_shared_opts
- MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
+ MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -Wl,-h,'$cf_cv_shared_soname' -o $@'
else
- MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
+ MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -Wl,-h,'$cf_cv_shared_soname' -o $@'
fi
;;
(sysv5uw7*|unix_sv*)
@@ -12285,7 +13806,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
;;
(*)
- { echo "$as_me:12288: WARNING: ignored --with-shlib-version" >&5
+ { echo "$as_me:13809: WARNING: ignored --with-shlib-version" >&5
echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
;;
esac
@@ -12295,30 +13816,30 @@ echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
if test -n "$cf_try_cflags"
then
cat > conftest.$ac_ext <
int main(int argc, char *argv[])
{
printf("hello\\n");
- return (argv[argc-1] == 0) ;
+ return (argv[argc-1] == NULL) ;
}
EOF
cf_save_CFLAGS="$CFLAGS"
for cf_opt in $cf_try_cflags
do
CFLAGS="$cf_save_CFLAGS -$cf_opt"
- echo "$as_me:12310: checking if CFLAGS option -$cf_opt works" >&5
+ echo "$as_me:13831: checking if CFLAGS option -$cf_opt works" >&5
echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
- if { (eval echo "$as_me:12312: \"$ac_compile\"") >&5
+ if { (eval echo "$as_me:13833: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:12315: \$? = $ac_status" >&5
+ echo "$as_me:13836: \$? = $ac_status" >&5
(exit "$ac_status"); }; then
- echo "$as_me:12317: result: yes" >&5
+ echo "$as_me:13838: result: yes" >&5
echo "${ECHO_T}yes" >&6
cf_save_CFLAGS="$CFLAGS"
else
- echo "$as_me:12321: result: no" >&5
+ echo "$as_me:13842: result: no" >&5
echo "${ECHO_T}no" >&6
fi
done
@@ -12333,17 +13854,17 @@ echo "${ECHO_T}no" >&6
test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
-echo "${as_me:-configure}:12336: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
+echo "${as_me:-configure}:13857: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
-echo "${as_me:-configure}:12340: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
+echo "${as_me:-configure}:13861: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
# The test/sample programs in the original tree link using rpath option.
# Make it optional for packagers.
if test -n "$LOCAL_LDFLAGS"
then
- echo "$as_me:12346: checking if you want to link sample programs with rpath option" >&5
+ echo "$as_me:13867: checking if you want to link sample programs with rpath option" >&5
echo $ECHO_N "checking if you want to link sample programs with rpath option... $ECHO_C" >&6
# Check whether --enable-rpath-link or --disable-rpath-link was given.
@@ -12353,7 +13874,7 @@ if test "${enable_rpath_link+set}" = set; then
else
with_rpath_link=yes
fi;
- echo "$as_me:12356: result: $with_rpath_link" >&5
+ echo "$as_me:13877: result: $with_rpath_link" >&5
echo "${ECHO_T}$with_rpath_link" >&6
if test "$with_rpath_link" = no
then
@@ -12366,7 +13887,7 @@ fi
### use option --enable-broken-linker to force on use of broken-linker support
-echo "$as_me:12369: checking if you want broken-linker support code" >&5
+echo "$as_me:13890: checking if you want broken-linker support code" >&5
echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
# Check whether --enable-broken_linker or --disable-broken_linker was given.
@@ -12376,7 +13897,7 @@ if test "${enable_broken_linker+set}" = set; then
else
with_broken_linker=no
fi;
-echo "$as_me:12379: result: $with_broken_linker" >&5
+echo "$as_me:13900: result: $with_broken_linker" >&5
echo "${ECHO_T}$with_broken_linker" >&6
: "${BROKEN_LINKER:=0}"
@@ -12391,14 +13912,14 @@ fi
# Check to define _XOPEN_SOURCE "automatically"
-echo "$as_me:12394: checking if the POSIX test-macros are already defined" >&5
+echo "$as_me:13915: checking if the POSIX test-macros are already defined" >&5
echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
if test "${cf_cv_posix_visible+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 12401 "configure"
+#line 13922 "configure"
#include "confdefs.h"
#include
int
@@ -12417,16 +13938,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:12420: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:13941: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:12423: \$? = $ac_status" >&5
+ echo "$as_me:13944: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:12426: \"$ac_try\"") >&5
+ { (eval echo "$as_me:13947: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:12429: \$? = $ac_status" >&5
+ echo "$as_me:13950: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_posix_visible=no
else
@@ -12437,7 +13958,7 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:12440: result: $cf_cv_posix_visible" >&5
+echo "$as_me:13961: result: $cf_cv_posix_visible" >&5
echo "${ECHO_T}$cf_cv_posix_visible" >&6
if test "$cf_cv_posix_visible" = no; then
@@ -12475,18 +13996,18 @@ case "$host_os" in
cf_xopen_source="-D_SGI_SOURCE"
cf_XOPEN_SOURCE=
;;
-(linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys)
+(linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*|linux*uclibc)
cf_gnu_xopen_source=$cf_XOPEN_SOURCE
-echo "$as_me:12482: checking if this is the GNU C library" >&5
+echo "$as_me:14003: checking if this is the GNU C library" >&5
echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
if test "${cf_cv_gnu_library+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 12489 "configure"
+#line 14010 "configure"
#include "confdefs.h"
#include
int
@@ -12505,16 +14026,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:12508: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:14029: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:12511: \$? = $ac_status" >&5
+ echo "$as_me:14032: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:12514: \"$ac_try\"") >&5
+ { (eval echo "$as_me:14035: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:12517: \$? = $ac_status" >&5
+ echo "$as_me:14038: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_gnu_library=yes
else
@@ -12525,7 +14046,7 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:12528: result: $cf_cv_gnu_library" >&5
+echo "$as_me:14049: result: $cf_cv_gnu_library" >&5
echo "${ECHO_T}$cf_cv_gnu_library" >&6
if test x$cf_cv_gnu_library = xyes; then
@@ -12533,7 +14054,7 @@ if test x$cf_cv_gnu_library = xyes; then
# With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
# was changed to help a little. newlib incorporated the change about 4
# years later.
- echo "$as_me:12536: checking if _DEFAULT_SOURCE can be used as a basis" >&5
+ echo "$as_me:14057: checking if _DEFAULT_SOURCE can be used as a basis" >&5
echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
if test "${cf_cv_gnu_library_219+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -12545,7 +14066,7 @@ else
CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 12548 "configure"
+#line 14069 "configure"
#include "confdefs.h"
#include
int
@@ -12564,16 +14085,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:12567: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:14088: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:12570: \$? = $ac_status" >&5
+ echo "$as_me:14091: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:12573: \"$ac_try\"") >&5
+ { (eval echo "$as_me:14094: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:12576: \$? = $ac_status" >&5
+ echo "$as_me:14097: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_gnu_library_219=yes
else
@@ -12585,12 +14106,12 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CPPFLAGS="$cf_save"
fi
-echo "$as_me:12588: result: $cf_cv_gnu_library_219" >&5
+echo "$as_me:14109: result: $cf_cv_gnu_library_219" >&5
echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
if test "x$cf_cv_gnu_library_219" = xyes; then
cf_save="$CPPFLAGS"
- echo "$as_me:12593: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
+ echo "$as_me:14114: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -12695,7 +14216,7 @@ if test -n "$cf_new_extra_cppflags" ; then
fi
cat >"conftest.$ac_ext" <<_ACEOF
-#line 12698 "configure"
+#line 14219 "configure"
#include "confdefs.h"
#include
@@ -12715,16 +14236,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:12718: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:14239: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:12721: \$? = $ac_status" >&5
+ echo "$as_me:14242: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:12724: \"$ac_try\"") >&5
+ { (eval echo "$as_me:14245: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:12727: \$? = $ac_status" >&5
+ echo "$as_me:14248: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_gnu_dftsrc_219=yes
else
@@ -12735,7 +14256,7 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:12738: result: $cf_cv_gnu_dftsrc_219" >&5
+echo "$as_me:14259: result: $cf_cv_gnu_dftsrc_219" >&5
echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
else
@@ -12744,14 +14265,14 @@ echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
- echo "$as_me:12747: checking if we must define _GNU_SOURCE" >&5
+ echo "$as_me:14268: checking if we must define _GNU_SOURCE" >&5
echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
if test "${cf_cv_gnu_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 12754 "configure"
+#line 14275 "configure"
#include "confdefs.h"
#include
int
@@ -12766,16 +14287,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:12769: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:14290: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:12772: \$? = $ac_status" >&5
+ echo "$as_me:14293: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:12775: \"$ac_try\"") >&5
+ { (eval echo "$as_me:14296: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:12778: \$? = $ac_status" >&5
+ echo "$as_me:14299: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_gnu_source=no
else
@@ -12882,7 +14403,7 @@ if test -n "$cf_new_extra_cppflags" ; then
fi
cat >"conftest.$ac_ext" <<_ACEOF
-#line 12885 "configure"
+#line 14406 "configure"
#include "confdefs.h"
#include
int
@@ -12897,16 +14418,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:12900: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:14421: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:12903: \$? = $ac_status" >&5
+ echo "$as_me:14424: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:12906: \"$ac_try\"") >&5
+ { (eval echo "$as_me:14427: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:12909: \$? = $ac_status" >&5
+ echo "$as_me:14430: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_gnu_source=no
else
@@ -12921,12 +14442,12 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:12924: result: $cf_cv_gnu_source" >&5
+echo "$as_me:14445: result: $cf_cv_gnu_source" >&5
echo "${ECHO_T}$cf_cv_gnu_source" >&6
if test "$cf_cv_gnu_source" = yes
then
- echo "$as_me:12929: checking if we should also define _DEFAULT_SOURCE" >&5
+ echo "$as_me:14450: checking if we should also define _DEFAULT_SOURCE" >&5
echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
if test "${cf_cv_default_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -12936,7 +14457,7 @@ else
CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 12939 "configure"
+#line 14460 "configure"
#include "confdefs.h"
#include
int
@@ -12951,16 +14472,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:12954: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:14475: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:12957: \$? = $ac_status" >&5
+ echo "$as_me:14478: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:12960: \"$ac_try\"") >&5
+ { (eval echo "$as_me:14481: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:12963: \$? = $ac_status" >&5
+ echo "$as_me:14484: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_default_source=no
else
@@ -12971,7 +14492,7 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:12974: result: $cf_cv_default_source" >&5
+echo "$as_me:14495: result: $cf_cv_default_source" >&5
echo "${ECHO_T}$cf_cv_default_source" >&6
if test "$cf_cv_default_source" = yes
then
@@ -12985,6 +14506,9 @@ echo "${ECHO_T}$cf_cv_default_source" >&6
fi
+ ;;
+linux*musl)
+ cf_xopen_source="-D_BSD_SOURCE"
;;
(minix*)
cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
@@ -13008,16 +14532,16 @@ cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
-echo "$as_me:13011: checking if we should define _POSIX_C_SOURCE" >&5
+echo "$as_me:14535: checking if we should define _POSIX_C_SOURCE" >&5
echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
if test "${cf_cv_posix_c_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
-echo "${as_me:-configure}:13017: testing if the symbol is already defined go no further ..." 1>&5
+echo "${as_me:-configure}:14541: testing if the symbol is already defined go no further ..." 1>&5
cat >"conftest.$ac_ext" <<_ACEOF
-#line 13020 "configure"
+#line 14544 "configure"
#include "confdefs.h"
#include
int
@@ -13032,16 +14556,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:13035: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:14559: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:13038: \$? = $ac_status" >&5
+ echo "$as_me:14562: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:13041: \"$ac_try\"") >&5
+ { (eval echo "$as_me:14565: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:13044: \$? = $ac_status" >&5
+ echo "$as_me:14568: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_posix_c_source=no
else
@@ -13062,7 +14586,7 @@ cf_want_posix_source=no
esac
if test "$cf_want_posix_source" = yes ; then
cat >"conftest.$ac_ext" <<_ACEOF
-#line 13065 "configure"
+#line 14589 "configure"
#include "confdefs.h"
#include
int
@@ -13077,16 +14601,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:13080: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:14604: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:13083: \$? = $ac_status" >&5
+ echo "$as_me:14607: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:13086: \"$ac_try\"") >&5
+ { (eval echo "$as_me:14610: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:13089: \$? = $ac_status" >&5
+ echo "$as_me:14613: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -13097,7 +14621,7 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "${as_me:-configure}:13100: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
+echo "${as_me:-configure}:14624: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
CFLAGS="$cf_trim_CFLAGS"
CPPFLAGS="$cf_trim_CPPFLAGS"
@@ -13105,10 +14629,10 @@ echo "${as_me:-configure}:13100: testing ifdef from value $cf_POSIX_C_SOURCE ...
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
-echo "${as_me:-configure}:13108: testing if the second compile does not leave our definition intact error ..." 1>&5
+echo "${as_me:-configure}:14632: testing if the second compile does not leave our definition intact error ..." 1>&5
cat >"conftest.$ac_ext" <<_ACEOF
-#line 13111 "configure"
+#line 14635 "configure"
#include "confdefs.h"
#include
int
@@ -13123,16 +14647,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:13126: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:14650: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:13129: \$? = $ac_status" >&5
+ echo "$as_me:14653: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:13132: \"$ac_try\"") >&5
+ { (eval echo "$as_me:14656: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:13135: \$? = $ac_status" >&5
+ echo "$as_me:14659: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -13148,7 +14672,7 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:13151: result: $cf_cv_posix_c_source" >&5
+echo "$as_me:14675: result: $cf_cv_posix_c_source" >&5
echo "${ECHO_T}$cf_cv_posix_c_source" >&6
if test "$cf_cv_posix_c_source" != no ; then
@@ -13265,7 +14789,7 @@ fi # cf_cv_posix_visible
# OpenBSD 6.x has broken locale support, both compile-time and runtime.
# see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
# Abusing the conformance level is a workaround.
- { echo "$as_me:13268: WARNING: this system does not provide usable locale support" >&5
+ { echo "$as_me:14792: WARNING: this system does not provide usable locale support" >&5
echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
cf_xopen_source="-D_BSD_SOURCE"
cf_XOPEN_SOURCE=700
@@ -13297,14 +14821,14 @@ echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
;;
(*)
-echo "$as_me:13300: checking if we should define _XOPEN_SOURCE" >&5
+echo "$as_me:14824: checking if we should define _XOPEN_SOURCE" >&5
echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
if test "${cf_cv_xopen_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 13307 "configure"
+#line 14831 "configure"
#include "confdefs.h"
$ac_includes_default
@@ -13322,16 +14846,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:13325: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:14849: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:13328: \$? = $ac_status" >&5
+ echo "$as_me:14852: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:13331: \"$ac_try\"") >&5
+ { (eval echo "$as_me:14855: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:13334: \$? = $ac_status" >&5
+ echo "$as_me:14858: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_xopen_source=no
else
@@ -13343,7 +14867,7 @@ cf_save="$CPPFLAGS"
CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 13346 "configure"
+#line 14870 "configure"
#include "confdefs.h"
$ac_includes_default
@@ -13361,16 +14885,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:13364: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:14888: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:13367: \$? = $ac_status" >&5
+ echo "$as_me:14891: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:13370: \"$ac_try\"") >&5
+ { (eval echo "$as_me:14894: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:13373: \$? = $ac_status" >&5
+ echo "$as_me:14897: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_xopen_source=no
else
@@ -13385,7 +14909,7 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:13388: result: $cf_cv_xopen_source" >&5
+echo "$as_me:14912: result: $cf_cv_xopen_source" >&5
echo "${ECHO_T}$cf_cv_xopen_source" >&6
if test "$cf_cv_xopen_source" != no ; then
@@ -13545,16 +15069,16 @@ cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
-echo "$as_me:13548: checking if we should define _POSIX_C_SOURCE" >&5
+echo "$as_me:15072: checking if we should define _POSIX_C_SOURCE" >&5
echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
if test "${cf_cv_posix_c_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
-echo "${as_me:-configure}:13554: testing if the symbol is already defined go no further ..." 1>&5
+echo "${as_me:-configure}:15078: testing if the symbol is already defined go no further ..." 1>&5
cat >"conftest.$ac_ext" <<_ACEOF
-#line 13557 "configure"
+#line 15081 "configure"
#include "confdefs.h"
#include
int
@@ -13569,16 +15093,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:13572: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:15096: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:13575: \$? = $ac_status" >&5
+ echo "$as_me:15099: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:13578: \"$ac_try\"") >&5
+ { (eval echo "$as_me:15102: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:13581: \$? = $ac_status" >&5
+ echo "$as_me:15105: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_posix_c_source=no
else
@@ -13599,7 +15123,7 @@ cf_want_posix_source=no
esac
if test "$cf_want_posix_source" = yes ; then
cat >"conftest.$ac_ext" <<_ACEOF
-#line 13602 "configure"
+#line 15126 "configure"
#include "confdefs.h"
#include
int
@@ -13614,16 +15138,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:13617: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:15141: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:13620: \$? = $ac_status" >&5
+ echo "$as_me:15144: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:13623: \"$ac_try\"") >&5
+ { (eval echo "$as_me:15147: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:13626: \$? = $ac_status" >&5
+ echo "$as_me:15150: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -13634,7 +15158,7 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "${as_me:-configure}:13637: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
+echo "${as_me:-configure}:15161: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
CFLAGS="$cf_trim_CFLAGS"
CPPFLAGS="$cf_trim_CPPFLAGS"
@@ -13642,10 +15166,10 @@ echo "${as_me:-configure}:13637: testing ifdef from value $cf_POSIX_C_SOURCE ...
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
-echo "${as_me:-configure}:13645: testing if the second compile does not leave our definition intact error ..." 1>&5
+echo "${as_me:-configure}:15169: testing if the second compile does not leave our definition intact error ..." 1>&5
cat >"conftest.$ac_ext" <<_ACEOF
-#line 13648 "configure"
+#line 15172 "configure"
#include "confdefs.h"
#include
int
@@ -13660,16 +15184,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:13663: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:15187: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:13666: \$? = $ac_status" >&5
+ echo "$as_me:15190: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:13669: \"$ac_try\"") >&5
+ { (eval echo "$as_me:15193: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:13672: \$? = $ac_status" >&5
+ echo "$as_me:15196: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -13685,7 +15209,7 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:13688: result: $cf_cv_posix_c_source" >&5
+echo "$as_me:15212: result: $cf_cv_posix_c_source" >&5
echo "${ECHO_T}$cf_cv_posix_c_source" >&6
if test "$cf_cv_posix_c_source" != no ; then
@@ -13795,13 +15319,13 @@ fi
fi # cf_cv_posix_visible
# Some of these niche implementations use copy/paste, double-check...
- if test "$cf_cv_xopen_source" != no ; then
- test -n "$verbose" && echo " checking if _POSIX_C_SOURCE inteferes" 1>&6
+ if test "$cf_cv_xopen_source" = no ; then
+ test -n "$verbose" && echo " checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE" 1>&6
-echo "${as_me:-configure}:13801: testing checking if _POSIX_C_SOURCE inteferes ..." 1>&5
+echo "${as_me:-configure}:15325: testing checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE ..." 1>&5
cat >"conftest.$ac_ext" <<_ACEOF
-#line 13804 "configure"
+#line 15328 "configure"
#include "confdefs.h"
$ac_includes_default
@@ -13819,23 +15343,23 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:13822: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:15346: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:13825: \$? = $ac_status" >&5
+ echo "$as_me:15349: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:13828: \"$ac_try\"") >&5
+ { (eval echo "$as_me:15352: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:13831: \$? = $ac_status" >&5
+ echo "$as_me:15355: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5
- { echo "$as_me:13838: WARNING: _POSIX_C_SOURCE definition is not usable" >&5
+ { echo "$as_me:15362: WARNING: _POSIX_C_SOURCE definition is not usable" >&5
echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;}
CPPFLAGS="$cf_save_xopen_cppflags"
fi
@@ -13858,7 +15382,7 @@ do
test "$CFLAGS" != "$cf_old_cflag" || break
test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
-echo "${as_me:-configure}:13861: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
+echo "${as_me:-configure}:15385: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
CFLAGS="$cf_old_cflag"
done
@@ -13870,7 +15394,7 @@ do
test "$CPPFLAGS" != "$cf_old_cflag" || break
test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
-echo "${as_me:-configure}:13873: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
+echo "${as_me:-configure}:15397: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
CPPFLAGS="$cf_old_cflag"
done
@@ -13958,7 +15482,7 @@ done
if test -n "$cf_new_cflags" ; then
test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
-echo "${as_me:-configure}:13961: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
+echo "${as_me:-configure}:15485: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
test -n "$CFLAGS" && CFLAGS="$CFLAGS "
CFLAGS="${CFLAGS}$cf_new_cflags"
@@ -13968,7 +15492,7 @@ fi
if test -n "$cf_new_cppflags" ; then
test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
-echo "${as_me:-configure}:13971: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
+echo "${as_me:-configure}:15495: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
@@ -13978,7 +15502,7 @@ fi
if test -n "$cf_new_extra_cppflags" ; then
test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
-echo "${as_me:-configure}:13981: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
+echo "${as_me:-configure}:15505: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
@@ -13990,10 +15514,10 @@ done
fi
if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
- echo "$as_me:13993: checking if _XOPEN_SOURCE really is set" >&5
+ echo "$as_me:15517: checking if _XOPEN_SOURCE really is set" >&5
echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
cat >"conftest.$ac_ext" <<_ACEOF
-#line 13996 "configure"
+#line 15520 "configure"
#include "confdefs.h"
#include
int
@@ -14008,16 +15532,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:14011: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:15535: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:14014: \$? = $ac_status" >&5
+ echo "$as_me:15538: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:14017: \"$ac_try\"") >&5
+ { (eval echo "$as_me:15541: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14020: \$? = $ac_status" >&5
+ echo "$as_me:15544: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_XOPEN_SOURCE_set=yes
else
@@ -14026,12 +15550,12 @@ cat "conftest.$ac_ext" >&5
cf_XOPEN_SOURCE_set=no
fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
- echo "$as_me:14029: result: $cf_XOPEN_SOURCE_set" >&5
+ echo "$as_me:15553: result: $cf_XOPEN_SOURCE_set" >&5
echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
if test "$cf_XOPEN_SOURCE_set" = yes
then
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14034 "configure"
+#line 15558 "configure"
#include "confdefs.h"
#include
int
@@ -14046,16 +15570,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:14049: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:15573: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:14052: \$? = $ac_status" >&5
+ echo "$as_me:15576: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:14055: \"$ac_try\"") >&5
+ { (eval echo "$as_me:15579: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14058: \$? = $ac_status" >&5
+ echo "$as_me:15582: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_XOPEN_SOURCE_set_ok=yes
else
@@ -14066,19 +15590,19 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
if test "$cf_XOPEN_SOURCE_set_ok" = no
then
- { echo "$as_me:14069: WARNING: _XOPEN_SOURCE is lower than requested" >&5
+ { echo "$as_me:15593: WARNING: _XOPEN_SOURCE is lower than requested" >&5
echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
fi
else
-echo "$as_me:14074: checking if we should define _XOPEN_SOURCE" >&5
+echo "$as_me:15598: checking if we should define _XOPEN_SOURCE" >&5
echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
if test "${cf_cv_xopen_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14081 "configure"
+#line 15605 "configure"
#include "confdefs.h"
$ac_includes_default
@@ -14096,16 +15620,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:14099: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:15623: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:14102: \$? = $ac_status" >&5
+ echo "$as_me:15626: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:14105: \"$ac_try\"") >&5
+ { (eval echo "$as_me:15629: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14108: \$? = $ac_status" >&5
+ echo "$as_me:15632: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_xopen_source=no
else
@@ -14117,7 +15641,7 @@ cf_save="$CPPFLAGS"
CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14120 "configure"
+#line 15644 "configure"
#include "confdefs.h"
$ac_includes_default
@@ -14135,16 +15659,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:14138: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:15662: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:14141: \$? = $ac_status" >&5
+ echo "$as_me:15665: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:14144: \"$ac_try\"") >&5
+ { (eval echo "$as_me:15668: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14147: \$? = $ac_status" >&5
+ echo "$as_me:15671: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_xopen_source=no
else
@@ -14159,7 +15683,7 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:14162: result: $cf_cv_xopen_source" >&5
+echo "$as_me:15686: result: $cf_cv_xopen_source" >&5
echo "${ECHO_T}$cf_cv_xopen_source" >&6
if test "$cf_cv_xopen_source" != no ; then
@@ -14306,13 +15830,13 @@ fi
fi
fi # cf_cv_posix_visible
-echo "$as_me:14309: checking for ANSI C header files" >&5
+echo "$as_me:15833: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14315 "configure"
+#line 15839 "configure"
#include "confdefs.h"
#include
#include
@@ -14320,13 +15844,13 @@ else
#include
_ACEOF
-if { (eval echo "$as_me:14323: \"$ac_cpp "conftest.$ac_ext"\"") >&5
+if { (eval echo "$as_me:15847: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
- echo "$as_me:14329: \$? = $ac_status" >&5
+ echo "$as_me:15853: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
@@ -14348,7 +15872,7 @@ rm -f conftest.err "conftest.$ac_ext"
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14351 "configure"
+#line 15875 "configure"
#include "confdefs.h"
#include
@@ -14366,7 +15890,7 @@ fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14369 "configure"
+#line 15893 "configure"
#include "confdefs.h"
#include
@@ -14387,7 +15911,7 @@ if test $ac_cv_header_stdc = yes; then
:
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14390 "configure"
+#line 15914 "configure"
#include "confdefs.h"
#include
#if ((' ' & 0x0FF) == 0x020)
@@ -14413,15 +15937,15 @@ main (void)
}
_ACEOF
rm -f "conftest$ac_exeext"
-if { (eval echo "$as_me:14416: \"$ac_link\"") >&5
+if { (eval echo "$as_me:15940: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:14419: \$? = $ac_status" >&5
+ echo "$as_me:15943: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
- { (eval echo "$as_me:14421: \"$ac_try\"") >&5
+ { (eval echo "$as_me:15945: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14424: \$? = $ac_status" >&5
+ echo "$as_me:15948: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
:
else
@@ -14434,7 +15958,7 @@ rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes
fi
fi
fi
-echo "$as_me:14437: result: $ac_cv_header_stdc" >&5
+echo "$as_me:15961: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then
@@ -14450,28 +15974,28 @@ for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
inttypes.h stdint.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-echo "$as_me:14453: checking for $ac_header" >&5
+echo "$as_me:15977: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14459 "configure"
+#line 15983 "configure"
#include "confdefs.h"
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:14465: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:15989: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:14468: \$? = $ac_status" >&5
+ echo "$as_me:15992: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:14471: \"$ac_try\"") >&5
+ { (eval echo "$as_me:15995: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14474: \$? = $ac_status" >&5
+ echo "$as_me:15998: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
eval "$as_ac_Header=yes"
else
@@ -14481,7 +16005,7 @@ eval "$as_ac_Header=no"
fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:14484: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
+echo "$as_me:16008: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <&5
+echo "$as_me:16018: checking whether exit is declared" >&5
echo $ECHO_N "checking whether exit is declared... $ECHO_C" >&6
if test "${ac_cv_have_decl_exit+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14500 "configure"
+#line 16024 "configure"
#include "confdefs.h"
$ac_includes_default
int
main (void)
{
#ifndef exit
- char *p = (char *) exit; (void) p;
+ (void) exit;
#endif
;
@@ -14512,16 +16036,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:14515: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:16039: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:14518: \$? = $ac_status" >&5
+ echo "$as_me:16042: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:14521: \"$ac_try\"") >&5
+ { (eval echo "$as_me:16045: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14524: \$? = $ac_status" >&5
+ echo "$as_me:16048: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_have_decl_exit=yes
else
@@ -14531,7 +16055,7 @@ ac_cv_have_decl_exit=no
fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:14534: result: $ac_cv_have_decl_exit" >&5
+echo "$as_me:16058: result: $ac_cv_have_decl_exit" >&5
echo "${ECHO_T}$ac_cv_have_decl_exit" >&6
# Check whether --enable-largefile or --disable-largefile was given.
@@ -14541,7 +16065,7 @@ if test "${enable_largefile+set}" = set; then
fi;
if test "$enable_largefile" != no; then
- echo "$as_me:14544: checking for special C compiler options needed for large files" >&5
+ echo "$as_me:16068: checking for special C compiler options needed for large files" >&5
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -14553,7 +16077,7 @@ else
# IRIX 6.2 and later do not support large files by default,
# so use the C compiler's -n32 option if that helps.
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14556 "configure"
+#line 16080 "configure"
#include "confdefs.h"
#include
/* Check that off_t can represent 2**63 - 1 correctly.
@@ -14573,16 +16097,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:14576: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:16100: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:14579: \$? = $ac_status" >&5
+ echo "$as_me:16103: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:14582: \"$ac_try\"") >&5
+ { (eval echo "$as_me:16106: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14585: \$? = $ac_status" >&5
+ echo "$as_me:16109: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
break
else
@@ -14592,16 +16116,16 @@ fi
rm -f "conftest.$ac_objext"
CC="$CC -n32"
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:14595: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:16119: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:14598: \$? = $ac_status" >&5
+ echo "$as_me:16122: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:14601: \"$ac_try\"") >&5
+ { (eval echo "$as_me:16125: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14604: \$? = $ac_status" >&5
+ echo "$as_me:16128: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_sys_largefile_CC=' -n32'; break
else
@@ -14615,13 +16139,13 @@ rm -f "conftest.$ac_objext"
rm -f "conftest.$ac_ext"
fi
fi
-echo "$as_me:14618: result: $ac_cv_sys_largefile_CC" >&5
+echo "$as_me:16142: result: $ac_cv_sys_largefile_CC" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
if test "$ac_cv_sys_largefile_CC" != no; then
CC=$CC$ac_cv_sys_largefile_CC
fi
- echo "$as_me:14624: checking for _FILE_OFFSET_BITS value needed for large files" >&5
+ echo "$as_me:16148: checking for _FILE_OFFSET_BITS value needed for large files" >&5
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -14629,7 +16153,7 @@ else
while :; do
ac_cv_sys_file_offset_bits=no
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14632 "configure"
+#line 16156 "configure"
#include "confdefs.h"
#include
/* Check that off_t can represent 2**63 - 1 correctly.
@@ -14649,16 +16173,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:14652: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:16176: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:14655: \$? = $ac_status" >&5
+ echo "$as_me:16179: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:14658: \"$ac_try\"") >&5
+ { (eval echo "$as_me:16182: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14661: \$? = $ac_status" >&5
+ echo "$as_me:16185: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
break
else
@@ -14667,7 +16191,7 @@ cat "conftest.$ac_ext" >&5
fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14670 "configure"
+#line 16194 "configure"
#include "confdefs.h"
#define _FILE_OFFSET_BITS 64
#include
@@ -14688,16 +16212,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:14691: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:16215: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:14694: \$? = $ac_status" >&5
+ echo "$as_me:16218: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:14697: \"$ac_try\"") >&5
+ { (eval echo "$as_me:16221: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14700: \$? = $ac_status" >&5
+ echo "$as_me:16224: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_sys_file_offset_bits=64; break
else
@@ -14708,7 +16232,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
break
done
fi
-echo "$as_me:14711: result: $ac_cv_sys_file_offset_bits" >&5
+echo "$as_me:16235: result: $ac_cv_sys_file_offset_bits" >&5
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
if test "$ac_cv_sys_file_offset_bits" != no; then
@@ -14718,7 +16242,7 @@ EOF
fi
rm -rf conftest*
- echo "$as_me:14721: checking for _LARGE_FILES value needed for large files" >&5
+ echo "$as_me:16245: checking for _LARGE_FILES value needed for large files" >&5
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_large_files+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -14726,7 +16250,7 @@ else
while :; do
ac_cv_sys_large_files=no
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14729 "configure"
+#line 16253 "configure"
#include "confdefs.h"
#include
/* Check that off_t can represent 2**63 - 1 correctly.
@@ -14746,16 +16270,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:14749: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:16273: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:14752: \$? = $ac_status" >&5
+ echo "$as_me:16276: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:14755: \"$ac_try\"") >&5
+ { (eval echo "$as_me:16279: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14758: \$? = $ac_status" >&5
+ echo "$as_me:16282: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
break
else
@@ -14764,7 +16288,7 @@ cat "conftest.$ac_ext" >&5
fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14767 "configure"
+#line 16291 "configure"
#include "confdefs.h"
#define _LARGE_FILES 1
#include
@@ -14785,16 +16309,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:14788: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:16312: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:14791: \$? = $ac_status" >&5
+ echo "$as_me:16315: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:14794: \"$ac_try\"") >&5
+ { (eval echo "$as_me:16318: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14797: \$? = $ac_status" >&5
+ echo "$as_me:16321: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_sys_large_files=1; break
else
@@ -14805,7 +16329,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
break
done
fi
-echo "$as_me:14808: result: $ac_cv_sys_large_files" >&5
+echo "$as_me:16332: result: $ac_cv_sys_large_files" >&5
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
if test "$ac_cv_sys_large_files" != no; then
@@ -14818,7 +16342,7 @@ rm -rf conftest*
fi
if test "$enable_largefile" != no ; then
- echo "$as_me:14821: checking for _LARGEFILE_SOURCE value needed for large files" >&5
+ echo "$as_me:16345: checking for _LARGEFILE_SOURCE value needed for large files" >&5
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -14826,28 +16350,31 @@ else
while :; do
ac_cv_sys_largefile_source=no
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14829 "configure"
+#line 16353 "configure"
#include "confdefs.h"
#include
+ #include
int
main (void)
{
-return !fseeko;
+
+ int (*my_fseeko)(FILE *, off_t, int) = fseeko;
+ return my_fseeko(stdin, 0, 0);
;
return 0;
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:14841: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:16368: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:14844: \$? = $ac_status" >&5
+ echo "$as_me:16371: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:14847: \"$ac_try\"") >&5
+ { (eval echo "$as_me:16374: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14850: \$? = $ac_status" >&5
+ echo "$as_me:16377: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
break
else
@@ -14856,29 +16383,32 @@ cat "conftest.$ac_ext" >&5
fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14859 "configure"
+#line 16386 "configure"
#include "confdefs.h"
#define _LARGEFILE_SOURCE 1
#include
+ #include
int
main (void)
{
-return !fseeko;
+
+ int (*my_fseeko)(FILE *, off_t, int) = fseeko;
+ return my_fseeko(stdin, 0, 0);
;
return 0;
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:14872: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:16402: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:14875: \$? = $ac_status" >&5
+ echo "$as_me:16405: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:14878: \"$ac_try\"") >&5
+ { (eval echo "$as_me:16408: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14881: \$? = $ac_status" >&5
+ echo "$as_me:16411: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_sys_largefile_source=1; break
else
@@ -14889,7 +16419,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
break
done
fi
-echo "$as_me:14892: result: $ac_cv_sys_largefile_source" >&5
+echo "$as_me:16422: result: $ac_cv_sys_largefile_source" >&5
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
if test "$ac_cv_sys_largefile_source" != no; then
@@ -14903,34 +16433,36 @@ rm -rf conftest*
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
# in glibc 2.1.3, but that breaks too many other things.
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
-echo "$as_me:14906: checking for fseeko" >&5
+echo "$as_me:16436: checking for fseeko" >&5
echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
if test "${ac_cv_func_fseeko+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14912 "configure"
+#line 16442 "configure"
#include "confdefs.h"
#include
+ #include
int
main (void)
{
-return fseeko && fseeko (stdin, 0, 0);
+int (*my_fseeko)(FILE *, off_t, int) = fseeko;
+ return my_fseeko && my_fseeko (stdin, 0, 0);
;
return 0;
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:14924: \"$ac_link\"") >&5
+if { (eval echo "$as_me:16456: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:14927: \$? = $ac_status" >&5
+ echo "$as_me:16459: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:14930: \"$ac_try\"") >&5
+ { (eval echo "$as_me:16462: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:14933: \$? = $ac_status" >&5
+ echo "$as_me:16465: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_func_fseeko=yes
else
@@ -14940,7 +16472,7 @@ ac_cv_func_fseeko=no
fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi
-echo "$as_me:14943: result: $ac_cv_func_fseeko" >&5
+echo "$as_me:16475: result: $ac_cv_func_fseeko" >&5
echo "${ECHO_T}$ac_cv_func_fseeko" >&6
if test $ac_cv_func_fseeko = yes; then
@@ -14979,28 +16511,32 @@ fi
fi
- echo "$as_me:14982: checking whether to use struct dirent64" >&5
+ echo "$as_me:16514: checking whether to use struct dirent64" >&5
echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
if test "${cf_cv_struct_dirent64+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 14989 "configure"
+#line 16521 "configure"
#include "confdefs.h"
#pragma GCC diagnostic error "-Wincompatible-pointer-types"
#include
#include
+#ifndef __REDIRECT
+/* if transitional largefile support is setup, this is true */
+extern struct dirent64 * readdir(DIR *);
+#endif
+
int
main (void)
{
- /* if transitional largefile support is setup, this is true */
- extern struct dirent64 * readdir(DIR *);
- struct dirent64 *x = readdir((DIR *)0);
- struct dirent *y = readdir((DIR *)0);
+ DIR *dp = opendir(".");
+ struct dirent64 *x = readdir(dp);
+ struct dirent *y = readdir(dp);
int z = x - y;
(void)z;
@@ -15009,16 +16545,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:15012: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:16548: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:15015: \$? = $ac_status" >&5
+ echo "$as_me:16551: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:15018: \"$ac_try\"") >&5
+ { (eval echo "$as_me:16554: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:15021: \$? = $ac_status" >&5
+ echo "$as_me:16557: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_struct_dirent64=yes
else
@@ -15029,7 +16565,7 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:15032: result: $cf_cv_struct_dirent64" >&5
+echo "$as_me:16568: result: $cf_cv_struct_dirent64" >&5
echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
test "$cf_cv_struct_dirent64" = yes &&
cat >>confdefs.h <<\EOF
@@ -15039,7 +16575,7 @@ EOF
fi
### Enable compiling-in rcs id's
-echo "$as_me:15042: checking if RCS identifiers should be compiled-in" >&5
+echo "$as_me:16578: checking if RCS identifiers should be compiled-in" >&5
echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
# Check whether --with-rcs-ids or --without-rcs-ids was given.
@@ -15049,7 +16585,7 @@ if test "${with_rcs_ids+set}" = set; then
else
with_rcs_ids=no
fi;
-echo "$as_me:15052: result: $with_rcs_ids" >&5
+echo "$as_me:16588: result: $with_rcs_ids" >&5
echo "${ECHO_T}$with_rcs_ids" >&6
test "$with_rcs_ids" = yes &&
cat >>confdefs.h <<\EOF
@@ -15059,7 +16595,7 @@ EOF
###############################################################################
### Note that some functions (such as const) are normally disabled anyway.
-echo "$as_me:15062: checking if you want to build with function extensions" >&5
+echo "$as_me:16598: checking if you want to build with function extensions" >&5
echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
# Check whether --enable-ext-funcs or --disable-ext-funcs was given.
@@ -15069,7 +16605,7 @@ if test "${enable_ext_funcs+set}" = set; then
else
with_ext_funcs=yes
fi;
-echo "$as_me:15072: result: $with_ext_funcs" >&5
+echo "$as_me:16608: result: $with_ext_funcs" >&5
echo "${ECHO_T}$with_ext_funcs" >&6
if test "$with_ext_funcs" = yes ; then
NCURSES_EXT_FUNCS=1
@@ -15087,7 +16623,7 @@ else
fi
### use option --enable-const to turn on use of const beyond that in XSI.
-echo "$as_me:15090: checking for extended use of const keyword" >&5
+echo "$as_me:16626: checking for extended use of const keyword" >&5
echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
# Check whether --enable-const or --disable-const was given.
@@ -15097,7 +16633,7 @@ if test "${enable_const+set}" = set; then
else
with_ext_const=no
fi;
-echo "$as_me:15100: result: $with_ext_const" >&5
+echo "$as_me:16636: result: $with_ext_const" >&5
echo "${ECHO_T}$with_ext_const" >&6
NCURSES_CONST='/*nothing*/'
if test "$with_ext_const" = yes ; then
@@ -15107,7 +16643,7 @@ fi
###############################################################################
# These options are relatively safe to experiment with.
-echo "$as_me:15110: checking if you want all development code" >&5
+echo "$as_me:16646: checking if you want all development code" >&5
echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
# Check whether --with-develop or --without-develop was given.
@@ -15117,7 +16653,7 @@ if test "${with_develop+set}" = set; then
else
with_develop=no
fi;
-echo "$as_me:15120: result: $with_develop" >&5
+echo "$as_me:16656: result: $with_develop" >&5
echo "${ECHO_T}$with_develop" >&6
###############################################################################
@@ -15126,7 +16662,7 @@ echo "${ECHO_T}$with_develop" >&6
# This is still experimental (20080329), but should ultimately be moved to
# the script-block --with-normal, etc.
-echo "$as_me:15129: checking if you want to link with the pthread library" >&5
+echo "$as_me:16665: checking if you want to link with the pthread library" >&5
echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
# Check whether --with-pthread or --without-pthread was given.
@@ -15136,27 +16672,27 @@ if test "${with_pthread+set}" = set; then
else
with_pthread=no
fi;
-echo "$as_me:15139: result: $with_pthread" >&5
+echo "$as_me:16675: result: $with_pthread" >&5
echo "${ECHO_T}$with_pthread" >&6
if test "$with_pthread" != no ; then
- echo "$as_me:15143: checking for pthread.h" >&5
+ echo "$as_me:16679: checking for pthread.h" >&5
echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
if test "${ac_cv_header_pthread_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 15149 "configure"
+#line 16685 "configure"
#include "confdefs.h"
#include
_ACEOF
-if { (eval echo "$as_me:15153: \"$ac_cpp "conftest.$ac_ext"\"") >&5
+if { (eval echo "$as_me:16689: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
- echo "$as_me:15159: \$? = $ac_status" >&5
+ echo "$as_me:16695: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
@@ -15175,7 +16711,7 @@ else
fi
rm -f conftest.err "conftest.$ac_ext"
fi
-echo "$as_me:15178: result: $ac_cv_header_pthread_h" >&5
+echo "$as_me:16714: result: $ac_cv_header_pthread_h" >&5
echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
if test "$ac_cv_header_pthread_h" = yes; then
@@ -15185,7 +16721,7 @@ EOF
for cf_lib_pthread in pthread c_r
do
- echo "$as_me:15188: checking if we can link with the $cf_lib_pthread library" >&5
+ echo "$as_me:16724: checking if we can link with the $cf_lib_pthread library" >&5
echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
cf_save_LIBS="$LIBS"
@@ -15206,7 +16742,7 @@ done
LIBS="$cf_add_libs"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 15209 "configure"
+#line 16745 "configure"
#include "confdefs.h"
#include
@@ -15223,16 +16759,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:15226: \"$ac_link\"") >&5
+if { (eval echo "$as_me:16762: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:15229: \$? = $ac_status" >&5
+ echo "$as_me:16765: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:15232: \"$ac_try\"") >&5
+ { (eval echo "$as_me:16768: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:15235: \$? = $ac_status" >&5
+ echo "$as_me:16771: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
with_pthread=yes
else
@@ -15242,7 +16778,7 @@ with_pthread=no
fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS="$cf_save_LIBS"
- echo "$as_me:15245: result: $with_pthread" >&5
+ echo "$as_me:16781: result: $with_pthread" >&5
echo "${ECHO_T}$with_pthread" >&6
test "$with_pthread" = yes && break
done
@@ -15270,7 +16806,7 @@ cat >>confdefs.h <<\EOF
EOF
else
- { { echo "$as_me:15273: error: Cannot link with pthread library" >&5
+ { { echo "$as_me:16809: error: Cannot link with pthread library" >&5
echo "$as_me: error: Cannot link with pthread library" >&2;}
{ (exit 1); exit 1; }; }
fi
@@ -15279,7 +16815,7 @@ fi
fi
-echo "$as_me:15282: checking if you want to use weak-symbols for pthreads" >&5
+echo "$as_me:16818: checking if you want to use weak-symbols for pthreads" >&5
echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
# Check whether --enable-weak-symbols or --disable-weak-symbols was given.
@@ -15289,18 +16825,18 @@ if test "${enable_weak_symbols+set}" = set; then
else
use_weak_symbols=no
fi;
-echo "$as_me:15292: result: $use_weak_symbols" >&5
+echo "$as_me:16828: result: $use_weak_symbols" >&5
echo "${ECHO_T}$use_weak_symbols" >&6
if test "$use_weak_symbols" = yes ; then
-echo "$as_me:15296: checking if $CC supports weak symbols" >&5
+echo "$as_me:16832: checking if $CC supports weak symbols" >&5
echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
if test "${cf_cv_weak_symbols+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 15303 "configure"
+#line 16839 "configure"
#include "confdefs.h"
#include
@@ -15326,16 +16862,16 @@ weak_symbol(fopen);
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:15329: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:16865: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:15332: \$? = $ac_status" >&5
+ echo "$as_me:16868: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:15335: \"$ac_try\"") >&5
+ { (eval echo "$as_me:16871: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:15338: \$? = $ac_status" >&5
+ echo "$as_me:16874: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_weak_symbols=yes
else
@@ -15346,7 +16882,7 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:15349: result: $cf_cv_weak_symbols" >&5
+echo "$as_me:16885: result: $cf_cv_weak_symbols" >&5
echo "${ECHO_T}$cf_cv_weak_symbols" >&6
else
@@ -15375,13 +16911,13 @@ EOF
fi
# OpenSUSE is installing ncurses6, using reentrant option.
-echo "$as_me:15378: checking for _nc_TABSIZE" >&5
+echo "$as_me:16914: checking for _nc_TABSIZE" >&5
echo $ECHO_N "checking for _nc_TABSIZE... $ECHO_C" >&6
if test "${ac_cv_func__nc_TABSIZE+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 15384 "configure"
+#line 16920 "configure"
#include "confdefs.h"
#define _nc_TABSIZE autoconf_temporary
#include /* least-intrusive standard header which defines gcc2 __stub macros */
@@ -15412,16 +16948,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:15415: \"$ac_link\"") >&5
+if { (eval echo "$as_me:16951: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:15418: \$? = $ac_status" >&5
+ echo "$as_me:16954: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:15421: \"$ac_try\"") >&5
+ { (eval echo "$as_me:16957: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:15424: \$? = $ac_status" >&5
+ echo "$as_me:16960: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_func__nc_TABSIZE=yes
else
@@ -15431,7 +16967,7 @@ ac_cv_func__nc_TABSIZE=no
fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi
-echo "$as_me:15434: result: $ac_cv_func__nc_TABSIZE" >&5
+echo "$as_me:16970: result: $ac_cv_func__nc_TABSIZE" >&5
echo "${ECHO_T}$ac_cv_func__nc_TABSIZE" >&6
if test "$ac_cv_func__nc_TABSIZE" = yes; then
assume_reentrant=yes
@@ -15443,7 +16979,7 @@ fi
# opaque outside of that, so there is no --enable-opaque option. We can use
# this option without --with-pthreads, but this will be always set for
# pthreads.
-echo "$as_me:15446: checking if you want experimental reentrant code" >&5
+echo "$as_me:16982: checking if you want experimental reentrant code" >&5
echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
# Check whether --enable-reentrant or --disable-reentrant was given.
@@ -15453,7 +16989,7 @@ if test "${enable_reentrant+set}" = set; then
else
with_reentrant=$assume_reentrant
fi;
-echo "$as_me:15456: result: $with_reentrant" >&5
+echo "$as_me:16992: result: $with_reentrant" >&5
echo "${ECHO_T}$with_reentrant" >&6
if test "$with_reentrant" = yes ; then
cf_cv_enable_reentrant=1
@@ -15476,7 +17012,7 @@ fi
### Allow using a different wrap-prefix
if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
- echo "$as_me:15479: checking for prefix used to wrap public variables" >&5
+ echo "$as_me:17015: checking for prefix used to wrap public variables" >&5
echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
# Check whether --with-wrap-prefix or --without-wrap-prefix was given.
@@ -15486,7 +17022,7 @@ if test "${with_wrap_prefix+set}" = set; then
else
NCURSES_WRAP_PREFIX=_nc_
fi;
- echo "$as_me:15489: result: $NCURSES_WRAP_PREFIX" >&5
+ echo "$as_me:17025: result: $NCURSES_WRAP_PREFIX" >&5
echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
else
NCURSES_WRAP_PREFIX=_nc_
@@ -15500,7 +17036,7 @@ EOF
### use option --disable-echo to suppress full display compiling commands
-echo "$as_me:15503: checking if you want to see long compiling messages" >&5
+echo "$as_me:17039: checking if you want to see long compiling messages" >&5
echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
# Check whether --enable-echo or --disable-echo was given.
@@ -15534,10 +17070,10 @@ else
ECHO_CC=''
fi;
-echo "$as_me:15537: result: $enableval" >&5
+echo "$as_me:17073: result: $enableval" >&5
echo "${ECHO_T}$enableval" >&6
-echo "$as_me:15540: checking if you want to use C11 _Noreturn feature" >&5
+echo "$as_me:17076: checking if you want to use C11 _Noreturn feature" >&5
echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
# Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
@@ -15554,17 +17090,17 @@ else
enable_stdnoreturn=no
fi;
-echo "$as_me:15557: result: $enable_stdnoreturn" >&5
+echo "$as_me:17093: result: $enable_stdnoreturn" >&5
echo "${ECHO_T}$enable_stdnoreturn" >&6
if test $enable_stdnoreturn = yes; then
-echo "$as_me:15561: checking for C11 _Noreturn feature" >&5
+echo "$as_me:17097: checking for C11 _Noreturn feature" >&5
echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
if test "${cf_cv_c11_noreturn+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 15567 "configure"
+#line 17103 "configure"
#include "confdefs.h"
$ac_includes_default
@@ -15580,16 +17116,16 @@ if (feof(stdin)) giveup()
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:15583: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:17119: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:15586: \$? = $ac_status" >&5
+ echo "$as_me:17122: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:15589: \"$ac_try\"") >&5
+ { (eval echo "$as_me:17125: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:15592: \$? = $ac_status" >&5
+ echo "$as_me:17128: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_c11_noreturn=yes
else
@@ -15600,7 +17136,7 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:15603: result: $cf_cv_c11_noreturn" >&5
+echo "$as_me:17139: result: $cf_cv_c11_noreturn" >&5
echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
else
cf_cv_c11_noreturn=no,
@@ -15656,16 +17192,16 @@ then
then
test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
-echo "${as_me:-configure}:15659: testing repairing CFLAGS: $CFLAGS ..." 1>&5
+echo "${as_me:-configure}:17195: testing repairing CFLAGS: $CFLAGS ..." 1>&5
CFLAGS="$cf_temp_flags"
test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
-echo "${as_me:-configure}:15664: testing ... fixed $CFLAGS ..." 1>&5
+echo "${as_me:-configure}:17200: testing ... fixed $CFLAGS ..." 1>&5
test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
-echo "${as_me:-configure}:15668: testing ... extra $EXTRA_CFLAGS ..." 1>&5
+echo "${as_me:-configure}:17204: testing ... extra $EXTRA_CFLAGS ..." 1>&5
fi
;;
@@ -15704,16 +17240,16 @@ then
then
test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
-echo "${as_me:-configure}:15707: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
+echo "${as_me:-configure}:17243: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
CPPFLAGS="$cf_temp_flags"
test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
-echo "${as_me:-configure}:15712: testing ... fixed $CPPFLAGS ..." 1>&5
+echo "${as_me:-configure}:17248: testing ... fixed $CPPFLAGS ..." 1>&5
test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
-echo "${as_me:-configure}:15716: testing ... extra $EXTRA_CFLAGS ..." 1>&5
+echo "${as_me:-configure}:17252: testing ... extra $EXTRA_CFLAGS ..." 1>&5
fi
;;
@@ -15752,23 +17288,23 @@ then
then
test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
-echo "${as_me:-configure}:15755: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
+echo "${as_me:-configure}:17291: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
LDFLAGS="$cf_temp_flags"
test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
-echo "${as_me:-configure}:15760: testing ... fixed $LDFLAGS ..." 1>&5
+echo "${as_me:-configure}:17296: testing ... fixed $LDFLAGS ..." 1>&5
test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
-echo "${as_me:-configure}:15764: testing ... extra $EXTRA_CFLAGS ..." 1>&5
+echo "${as_me:-configure}:17300: testing ... extra $EXTRA_CFLAGS ..." 1>&5
fi
;;
esac
fi
-echo "$as_me:15771: checking if you want to turn on gcc warnings" >&5
+echo "$as_me:17307: checking if you want to turn on gcc warnings" >&5
echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
# Check whether --enable-warnings or --disable-warnings was given.
@@ -15785,7 +17321,7 @@ else
enable_warnings=no
fi;
-echo "$as_me:15788: result: $enable_warnings" >&5
+echo "$as_me:17324: result: $enable_warnings" >&5
echo "${ECHO_T}$enable_warnings" >&6
if test "$enable_warnings" = "yes"
then
@@ -15809,10 +17345,10 @@ do
done
cat >"conftest.$ac_ext" <<_ACEOF
-#line 15812 "configure"
+#line 17348 "configure"
#include "confdefs.h"
-#include
+$ac_includes_default
#include
int
@@ -15824,31 +17360,32 @@ String foo = malloc(1); free((void*)foo)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:15827: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:17363: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:15830: \$? = $ac_status" >&5
+ echo "$as_me:17366: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:15833: \"$ac_try\"") >&5
+ { (eval echo "$as_me:17369: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:15836: \$? = $ac_status" >&5
+ echo "$as_me:17372: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
-echo "$as_me:15839: checking for X11/Xt const-feature" >&5
+echo "$as_me:17375: checking for X11/Xt const-feature" >&5
echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
if test "${cf_cv_const_x_string+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 15846 "configure"
+#line 17382 "configure"
#include "confdefs.h"
+#undef _CONST_X_STRING
#define _CONST_X_STRING /* X11R7.8 (perhaps) */
#undef XTSTRINGDEFINES /* X11R5 and later */
-#include
+$ac_includes_default
#include
int
@@ -15860,16 +17397,16 @@ String foo = malloc(1); *foo = 0
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:15863: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:17400: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:15866: \$? = $ac_status" >&5
+ echo "$as_me:17403: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:15869: \"$ac_try\"") >&5
+ { (eval echo "$as_me:17406: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:15872: \$? = $ac_status" >&5
+ echo "$as_me:17409: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_const_x_string=no
@@ -15884,7 +17421,7 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:15887: result: $cf_cv_const_x_string" >&5
+echo "$as_me:17424: result: $cf_cv_const_x_string" >&5
echo "${ECHO_T}$cf_cv_const_x_string" >&6
LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
@@ -15913,7 +17450,7 @@ fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
cat > "conftest.$ac_ext" <&5
+ { echo "$as_me:17469: checking for $CC warning options..." >&5
echo "$as_me: checking for $CC warning options..." >&6;}
cf_save_CFLAGS="$CFLAGS"
EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
@@ -15945,12 +17482,12 @@ echo "$as_me: checking for $CC warning options..." >&6;}
wd981
do
CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
- if { (eval echo "$as_me:15948: \"$ac_compile\"") >&5
+ if { (eval echo "$as_me:17485: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:15951: \$? = $ac_status" >&5
+ echo "$as_me:17488: \$? = $ac_status" >&5
(exit "$ac_status"); }; then
- test -n "$verbose" && echo "$as_me:15953: result: ... -$cf_opt" >&5
+ test -n "$verbose" && echo "$as_me:17490: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
fi
@@ -15958,7 +17495,7 @@ echo "${ECHO_T}... -$cf_opt" >&6
CFLAGS="$cf_save_CFLAGS"
elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
then
- { echo "$as_me:15961: checking for $CC warning options..." >&5
+ { echo "$as_me:17498: checking for $CC warning options..." >&5
echo "$as_me: checking for $CC warning options..." >&6;}
cf_save_CFLAGS="$CFLAGS"
cf_warn_CONST=""
@@ -15981,12 +17518,12 @@ echo "$as_me: checking for $CC warning options..." >&6;}
Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
do
CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
- if { (eval echo "$as_me:15984: \"$ac_compile\"") >&5
+ if { (eval echo "$as_me:17521: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:15987: \$? = $ac_status" >&5
+ echo "$as_me:17524: \$? = $ac_status" >&5
(exit "$ac_status"); }; then
- test -n "$verbose" && echo "$as_me:15989: result: ... -$cf_opt" >&5
+ test -n "$verbose" && echo "$as_me:17526: result: ... -$cf_opt" >&5
echo "${ECHO_T}... -$cf_opt" >&6
case "$cf_opt" in
(Winline)
@@ -15994,7 +17531,7 @@ echo "${ECHO_T}... -$cf_opt" >&6
([34].*)
test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
-echo "${as_me:-configure}:15997: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
+echo "${as_me:-configure}:17534: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
continue;;
esac
@@ -16004,7 +17541,7 @@ echo "${as_me:-configure}:15997: testing feature is broken in gcc $GCC_VERSION .
([12].*)
test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
-echo "${as_me:-configure}:16007: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
+echo "${as_me:-configure}:17544: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
continue;;
esac
@@ -16037,10 +17574,10 @@ cat > conftest.i <&5
+ { echo "$as_me:17577: checking for $CC __attribute__ directives..." >&5
echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
cat > "conftest.$ac_ext" <
#include "confdefs.h"
#include "conftest.h"
@@ -16090,12 +17627,12 @@ EOF
;;
esac
- if { (eval echo "$as_me:16093: \"$ac_compile\"") >&5
+ if { (eval echo "$as_me:17630: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:16096: \$? = $ac_status" >&5
+ echo "$as_me:17633: \$? = $ac_status" >&5
(exit "$ac_status"); }; then
- test -n "$verbose" && echo "$as_me:16098: result: ... $cf_attribute" >&5
+ test -n "$verbose" && echo "$as_me:17635: result: ... $cf_attribute" >&5
echo "${ECHO_T}... $cf_attribute" >&6
cat conftest.h >>confdefs.h
case "$cf_attribute" in
@@ -16163,7 +17700,7 @@ if test "x$enable_warnings" = "xyes"; then
fi
### use option --enable-assertions to turn on generation of assertion code
-echo "$as_me:16166: checking if you want to enable runtime assertions" >&5
+echo "$as_me:17703: checking if you want to enable runtime assertions" >&5
echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
# Check whether --enable-assertions or --disable-assertions was given.
@@ -16173,7 +17710,7 @@ if test "${enable_assertions+set}" = set; then
else
with_assertions=no
fi;
-echo "$as_me:16176: result: $with_assertions" >&5
+echo "$as_me:17713: result: $with_assertions" >&5
echo "${ECHO_T}$with_assertions" >&6
if test -n "$GCC"
then
@@ -16226,7 +17763,7 @@ case "$CFLAGS $CPPFLAGS" in
;;
esac
-echo "$as_me:16229: checking whether to add trace feature to all models" >&5
+echo "$as_me:17766: checking whether to add trace feature to all models" >&5
echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
# Check whether --with-trace or --without-trace was given.
@@ -16236,115 +17773,21 @@ if test "${with_trace+set}" = set; then
else
cf_with_trace=$cf_all_traces
fi;
-echo "$as_me:16239: result: $cf_with_trace" >&5
+echo "$as_me:17776: result: $cf_with_trace" >&5
echo "${ECHO_T}$cf_with_trace" >&6
if test "$cf_with_trace" = yes ; then
ADA_TRACE=TRUE
-cf_fix_cppflags=no
-cf_new_cflags=
-cf_new_cppflags=
-cf_new_extra_cppflags=
-
-for cf_add_cflags in -DTRACE
-do
-case "$cf_fix_cppflags" in
-(no)
- case "$cf_add_cflags" in
- (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
- case "$cf_add_cflags" in
- (-D*)
- cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
-
- test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
- && test -z "${cf_tst_cflags}" \
- && cf_fix_cppflags=yes
-
- if test "$cf_fix_cppflags" = yes ; then
-
- test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
- cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
-
- continue
- elif test "${cf_tst_cflags}" = "\"'" ; then
-
- test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
- cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
-
- continue
- fi
- ;;
- esac
- case "$CPPFLAGS" in
- (*$cf_add_cflags)
- ;;
- (*)
- case "$cf_add_cflags" in
- (-D*)
- cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
-
-CPPFLAGS=`echo "$CPPFLAGS" | \
- sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
- -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
-
- ;;
- esac
-
- test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
- cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
-
- ;;
- esac
- ;;
- (*)
-
- test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
- cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
-
- ;;
- esac
- ;;
-(yes)
-
- test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
- cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
-
- cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
-
- test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
- && test -z "${cf_tst_cflags}" \
- && cf_fix_cppflags=no
- ;;
-esac
-done
-
-if test -n "$cf_new_cflags" ; then
-
- test -n "$CFLAGS" && CFLAGS="$CFLAGS "
- CFLAGS="${CFLAGS}$cf_new_cflags"
-
-fi
-
-if test -n "$cf_new_cppflags" ; then
-
- test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
- CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
-
-fi
-
-if test -n "$cf_new_extra_cppflags" ; then
-
- test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
- EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
-
-fi
+cat >>confdefs.h <<\EOF
+#define TRACE 1
+EOF
else
ADA_TRACE=FALSE
fi
-echo "$as_me:16347: checking if we want to use GNAT projects" >&5
+echo "$as_me:17790: checking if we want to use GNAT projects" >&5
echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
# Check whether --enable-gnat-projects or --disable-gnat-projects was given.
@@ -16361,21 +17804,21 @@ else
enable_gnat_projects=yes
fi;
-echo "$as_me:16364: result: $enable_gnat_projects" >&5
+echo "$as_me:17807: result: $enable_gnat_projects" >&5
echo "${ECHO_T}$enable_gnat_projects" >&6
### Checks for libraries.
case $cf_cv_system_name in
(*mingw32*)
-echo "$as_me:16371: checking if ssp library is needed" >&5
+echo "$as_me:17814: checking if ssp library is needed" >&5
echo $ECHO_N "checking if ssp library is needed... $ECHO_C" >&6
if test "${cf_cv_need_libssp+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 16378 "configure"
+#line 17821 "configure"
#include "confdefs.h"
#include
@@ -16392,16 +17835,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:16395: \"$ac_link\"") >&5
+if { (eval echo "$as_me:17838: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:16398: \$? = $ac_status" >&5
+ echo "$as_me:17841: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:16401: \"$ac_try\"") >&5
+ { (eval echo "$as_me:17844: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:16404: \$? = $ac_status" >&5
+ echo "$as_me:17847: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_need_libssp=no
else
@@ -16411,7 +17854,7 @@ cat "conftest.$ac_ext" >&5
cf_save_LIBS="$LIBS"
LIBS="$LIBS -lssp"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 16414 "configure"
+#line 17857 "configure"
#include "confdefs.h"
#include
@@ -16428,16 +17871,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:16431: \"$ac_link\"") >&5
+if { (eval echo "$as_me:17874: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:16434: \$? = $ac_status" >&5
+ echo "$as_me:17877: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:16437: \"$ac_try\"") >&5
+ { (eval echo "$as_me:17880: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:16440: \$? = $ac_status" >&5
+ echo "$as_me:17883: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_need_libssp=yes
else
@@ -16451,7 +17894,7 @@ rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi
-echo "$as_me:16454: result: $cf_cv_need_libssp" >&5
+echo "$as_me:17897: result: $cf_cv_need_libssp" >&5
echo "${ECHO_T}$cf_cv_need_libssp" >&6
if test "x$cf_cv_need_libssp" = xyes
@@ -16475,39 +17918,165 @@ LIBS="$cf_add_libs"
fi
- ;;
-(*)
+ ;;
+(*)
+
+cf_save_libs="$LIBS"
+echo "$as_me:17925: checking for clock_gettime" >&5
+echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6
+if test "${ac_cv_func_clock_gettime+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >"conftest.$ac_ext" <<_ACEOF
+#line 17931 "configure"
+#include "confdefs.h"
+#define clock_gettime autoconf_temporary
+#include /* least-intrusive standard header which defines gcc2 __stub macros */
+#undef clock_gettime
+
+#ifdef __cplusplus
+extern "C"
+#endif
+
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char clock_gettime (void);
+
+int
+main (void)
+{
+
+/* The GNU C library defines stubs for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_clock_gettime) || defined (__stub___clock_gettime)
+#error found stub for clock_gettime
+#endif
+
+ return clock_gettime ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext" "conftest$ac_exeext"
+if { (eval echo "$as_me:17962: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:17965: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest$ac_exeext"'
+ { (eval echo "$as_me:17968: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:17971: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+ ac_cv_func_clock_gettime=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+ac_cv_func_clock_gettime=no
+fi
+rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
+fi
+echo "$as_me:17981: result: $ac_cv_func_clock_gettime" >&5
+echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6
+if test "$ac_cv_func_clock_gettime" = yes; then
+ cf_cv_test_clock_gettime=yes
+else
+ echo "$as_me:17986: checking for clock_gettime in -lrt" >&5
+echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
+if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lrt $LIBS"
+cat >"conftest.$ac_ext" <<_ACEOF
+#line 17994 "configure"
+#include "confdefs.h"
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char clock_gettime (void);
+int
+main (void)
+{
+clock_gettime ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f "conftest.$ac_objext" "conftest$ac_exeext"
+if { (eval echo "$as_me:18013: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ echo "$as_me:18016: \$? = $ac_status" >&5
+ (exit "$ac_status"); } &&
+ { ac_try='test -s "conftest$ac_exeext"'
+ { (eval echo "$as_me:18019: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:18022: \$? = $ac_status" >&5
+ (exit "$ac_status"); }; }; then
+ ac_cv_lib_rt_clock_gettime=yes
+else
+ echo "$as_me: failed program was:" >&5
+cat "conftest.$ac_ext" >&5
+ac_cv_lib_rt_clock_gettime=no
+fi
+rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:18033: result: $ac_cv_lib_rt_clock_gettime" >&5
+echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
+if test "$ac_cv_lib_rt_clock_gettime" = yes; then
+ LIBS="-lrt $LIBS"
+ cf_cv_test_clock_gettime=yes
+else
+ cf_cv_test_clock_gettime=no
+fi
+
+fi
-echo "$as_me:16481: checking for clock_gettime" >&5
-echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6
+if test "$cf_cv_test_clock_gettime" = yes ; then
+echo "$as_me:18045: checking if clock_gettime links" >&5
+echo $ECHO_N "checking if clock_gettime links... $ECHO_C" >&6
if test "${cf_cv_func_clock_gettime+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 16488 "configure"
+#line 18052 "configure"
#include "confdefs.h"
+
+$ac_includes_default
#include
+
int
main (void)
{
struct timespec ts;
- int rc = clock_gettime(CLOCK_REALTIME, &ts); (void) rc; (void)ts
+ int rc = clock_gettime(CLOCK_REALTIME, &ts)
+ + clock_gettime(CLOCK_MONOTONIC, &ts);
+ (void) rc; (void)ts
;
return 0;
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:16501: \"$ac_link\"") >&5
+if { (eval echo "$as_me:18070: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:16504: \$? = $ac_status" >&5
+ echo "$as_me:18073: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:16507: \"$ac_try\"") >&5
+ { (eval echo "$as_me:18076: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:16510: \$? = $ac_status" >&5
+ echo "$as_me:18079: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_func_clock_gettime=yes
else
@@ -16518,8 +18087,11 @@ fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi
-echo "$as_me:16521: result: $cf_cv_func_clock_gettime" >&5
+echo "$as_me:18090: result: $cf_cv_func_clock_gettime" >&5
echo "${ECHO_T}$cf_cv_func_clock_gettime" >&6
+else
+ cf_cv_func_clock_gettime=no
+fi
if test "$cf_cv_func_clock_gettime" = yes
then
@@ -16529,13 +18101,13 @@ cat >>confdefs.h <<\EOF
EOF
else
-echo "$as_me:16532: checking for gettimeofday" >&5
+echo "$as_me:18104: checking for gettimeofday" >&5
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
if test "${ac_cv_func_gettimeofday+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 16538 "configure"
+#line 18110 "configure"
#include "confdefs.h"
#define gettimeofday autoconf_temporary
#include /* least-intrusive standard header which defines gcc2 __stub macros */
@@ -16566,16 +18138,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:16569: \"$ac_link\"") >&5
+if { (eval echo "$as_me:18141: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:16572: \$? = $ac_status" >&5
+ echo "$as_me:18144: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:16575: \"$ac_try\"") >&5
+ { (eval echo "$as_me:18147: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:16578: \$? = $ac_status" >&5
+ echo "$as_me:18150: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_func_gettimeofday=yes
else
@@ -16585,7 +18157,7 @@ ac_cv_func_gettimeofday=no
fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi
-echo "$as_me:16588: result: $ac_cv_func_gettimeofday" >&5
+echo "$as_me:18160: result: $ac_cv_func_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
if test "$ac_cv_func_gettimeofday" = yes; then
@@ -16595,7 +18167,7 @@ EOF
else
-echo "$as_me:16598: checking for gettimeofday in -lbsd" >&5
+echo "$as_me:18170: checking for gettimeofday in -lbsd" >&5
echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -16603,7 +18175,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 16606 "configure"
+#line 18178 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
@@ -16612,7 +18184,7 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char gettimeofday ();
+char gettimeofday (void);
int
main (void)
{
@@ -16622,16 +18194,16 @@ gettimeofday ();
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:16625: \"$ac_link\"") >&5
+if { (eval echo "$as_me:18197: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:16628: \$? = $ac_status" >&5
+ echo "$as_me:18200: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:16631: \"$ac_try\"") >&5
+ { (eval echo "$as_me:18203: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:16634: \$? = $ac_status" >&5
+ echo "$as_me:18206: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_lib_bsd_gettimeofday=yes
else
@@ -16642,7 +18214,7 @@ fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:16645: result: $ac_cv_lib_bsd_gettimeofday" >&5
+echo "$as_me:18217: result: $ac_cv_lib_bsd_gettimeofday" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
if test "$ac_cv_lib_bsd_gettimeofday" = yes; then
@@ -16675,13 +18247,13 @@ fi
esac
### Checks for header files.
-echo "$as_me:16678: checking for signed char" >&5
+echo "$as_me:18250: checking for signed char" >&5
echo $ECHO_N "checking for signed char... $ECHO_C" >&6
if test "${ac_cv_type_signed_char+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 16684 "configure"
+#line 18256 "configure"
#include "confdefs.h"
$ac_includes_default
int
@@ -16696,16 +18268,16 @@ if (sizeof (signed char))
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:16699: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:18271: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:16702: \$? = $ac_status" >&5
+ echo "$as_me:18274: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:16705: \"$ac_try\"") >&5
+ { (eval echo "$as_me:18277: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:16708: \$? = $ac_status" >&5
+ echo "$as_me:18280: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_type_signed_char=yes
else
@@ -16715,10 +18287,10 @@ ac_cv_type_signed_char=no
fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:16718: result: $ac_cv_type_signed_char" >&5
+echo "$as_me:18290: result: $ac_cv_type_signed_char" >&5
echo "${ECHO_T}$ac_cv_type_signed_char" >&6
-echo "$as_me:16721: checking size of signed char" >&5
+echo "$as_me:18293: checking size of signed char" >&5
echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
if test "${ac_cv_sizeof_signed_char+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -16727,7 +18299,7 @@ else
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >"conftest.$ac_ext" <<_ACEOF
-#line 16730 "configure"
+#line 18302 "configure"
#include "confdefs.h"
$ac_includes_default
int
@@ -16739,21 +18311,21 @@ int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:16742: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:18314: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:16745: \$? = $ac_status" >&5
+ echo "$as_me:18317: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:16748: \"$ac_try\"") >&5
+ { (eval echo "$as_me:18320: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:16751: \$? = $ac_status" >&5
+ echo "$as_me:18323: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 16756 "configure"
+#line 18328 "configure"
#include "confdefs.h"
$ac_includes_default
int
@@ -16765,16 +18337,16 @@ int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:16768: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:18340: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:16771: \$? = $ac_status" >&5
+ echo "$as_me:18343: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:16774: \"$ac_try\"") >&5
+ { (eval echo "$as_me:18346: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:16777: \$? = $ac_status" >&5
+ echo "$as_me:18349: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_hi=$ac_mid; break
else
@@ -16790,7 +18362,7 @@ cat "conftest.$ac_ext" >&5
ac_hi=-1 ac_mid=-1
while :; do
cat >"conftest.$ac_ext" <<_ACEOF
-#line 16793 "configure"
+#line 18365 "configure"
#include "confdefs.h"
$ac_includes_default
int
@@ -16802,16 +18374,16 @@ int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:16805: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:18377: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:16808: \$? = $ac_status" >&5
+ echo "$as_me:18380: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:16811: \"$ac_try\"") >&5
+ { (eval echo "$as_me:18383: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:16814: \$? = $ac_status" >&5
+ echo "$as_me:18386: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_lo=$ac_mid; break
else
@@ -16827,7 +18399,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
cat >"conftest.$ac_ext" <<_ACEOF
-#line 16830 "configure"
+#line 18402 "configure"
#include "confdefs.h"
$ac_includes_default
int
@@ -16839,16 +18411,16 @@ int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:16842: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:18414: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:16845: \$? = $ac_status" >&5
+ echo "$as_me:18417: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:16848: \"$ac_try\"") >&5
+ { (eval echo "$as_me:18420: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:16851: \$? = $ac_status" >&5
+ echo "$as_me:18423: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_hi=$ac_mid
else
@@ -16861,12 +18433,12 @@ done
ac_cv_sizeof_signed_char=$ac_lo
else
if test "$cross_compiling" = yes; then
- { { echo "$as_me:16864: error: cannot run test program while cross compiling" >&5
+ { { echo "$as_me:18436: error: cannot run test program while cross compiling" >&5
echo "$as_me: error: cannot run test program while cross compiling" >&2;}
{ (exit 1); exit 1; }; }
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 16869 "configure"
+#line 18441 "configure"
#include "confdefs.h"
$ac_includes_default
int
@@ -16882,15 +18454,15 @@ fclose (f);
}
_ACEOF
rm -f "conftest$ac_exeext"
-if { (eval echo "$as_me:16885: \"$ac_link\"") >&5
+if { (eval echo "$as_me:18457: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:16888: \$? = $ac_status" >&5
+ echo "$as_me:18460: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
- { (eval echo "$as_me:16890: \"$ac_try\"") >&5
+ { (eval echo "$as_me:18462: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:16893: \$? = $ac_status" >&5
+ echo "$as_me:18465: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_sizeof_signed_char=`cat conftest.val`
else
@@ -16906,7 +18478,7 @@ else
ac_cv_sizeof_signed_char=0
fi
fi
-echo "$as_me:16909: result: $ac_cv_sizeof_signed_char" >&5
+echo "$as_me:18481: result: $ac_cv_sizeof_signed_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
cat >>confdefs.h <&5
+echo "$as_me:18490: checking for $ac_hdr that defines DIR" >&5
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 16924 "configure"
+#line 18496 "configure"
#include "confdefs.h"
#include
#include <$ac_hdr>
@@ -16936,16 +18508,16 @@ return 0;
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:16939: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:18511: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:16942: \$? = $ac_status" >&5
+ echo "$as_me:18514: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:16945: \"$ac_try\"") >&5
+ { (eval echo "$as_me:18517: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:16948: \$? = $ac_status" >&5
+ echo "$as_me:18520: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
eval "$as_ac_Header=yes"
else
@@ -16955,7 +18527,7 @@ eval "$as_ac_Header=no"
fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:16958: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
+echo "$as_me:18530: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <&5
+ echo "$as_me:18543: checking for opendir in -ldir" >&5
echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
if test "${ac_cv_lib_dir_opendir+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -16976,7 +18548,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-ldir $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 16979 "configure"
+#line 18551 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
@@ -16985,7 +18557,7 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char opendir ();
+char opendir (void);
int
main (void)
{
@@ -16995,16 +18567,16 @@ opendir ();
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:16998: \"$ac_link\"") >&5
+if { (eval echo "$as_me:18570: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:17001: \$? = $ac_status" >&5
+ echo "$as_me:18573: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:17004: \"$ac_try\"") >&5
+ { (eval echo "$as_me:18576: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:17007: \$? = $ac_status" >&5
+ echo "$as_me:18579: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_lib_dir_opendir=yes
else
@@ -17015,14 +18587,14 @@ fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:17018: result: $ac_cv_lib_dir_opendir" >&5
+echo "$as_me:18590: result: $ac_cv_lib_dir_opendir" >&5
echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
if test "$ac_cv_lib_dir_opendir" = yes; then
LIBS="$LIBS -ldir"
fi
else
- echo "$as_me:17025: checking for opendir in -lx" >&5
+ echo "$as_me:18597: checking for opendir in -lx" >&5
echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
if test "${ac_cv_lib_x_opendir+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -17030,7 +18602,7 @@ else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lx $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF
-#line 17033 "configure"
+#line 18605 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
@@ -17039,7 +18611,7 @@ extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char opendir ();
+char opendir (void);
int
main (void)
{
@@ -17049,16 +18621,16 @@ opendir ();
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:17052: \"$ac_link\"") >&5
+if { (eval echo "$as_me:18624: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:17055: \$? = $ac_status" >&5
+ echo "$as_me:18627: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:17058: \"$ac_try\"") >&5
+ { (eval echo "$as_me:18630: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:17061: \$? = $ac_status" >&5
+ echo "$as_me:18633: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_lib_x_opendir=yes
else
@@ -17069,7 +18641,7 @@ fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:17072: result: $ac_cv_lib_x_opendir" >&5
+echo "$as_me:18644: result: $ac_cv_lib_x_opendir" >&5
echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
if test "$ac_cv_lib_x_opendir" = yes; then
LIBS="$LIBS -lx"
@@ -17077,13 +18649,13 @@ fi
fi
-echo "$as_me:17080: checking whether time.h and sys/time.h may both be included" >&5
+echo "$as_me:18652: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
if test "${ac_cv_header_time+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 17086 "configure"
+#line 18658 "configure"
#include "confdefs.h"
#include
#include
@@ -17099,16 +18671,16 @@ return 0;
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:17102: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:18674: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:17105: \$? = $ac_status" >&5
+ echo "$as_me:18677: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:17108: \"$ac_try\"") >&5
+ { (eval echo "$as_me:18680: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:17111: \$? = $ac_status" >&5
+ echo "$as_me:18683: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_header_time=yes
else
@@ -17118,7 +18690,7 @@ ac_cv_header_time=no
fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:17121: result: $ac_cv_header_time" >&5
+echo "$as_me:18693: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then
@@ -17136,13 +18708,13 @@ ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ex
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return="return"
-echo "$as_me:17139: checking for an ANSI C-conforming const" >&5
+echo "$as_me:18711: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
if test "${ac_cv_c_const+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 17145 "configure"
+#line 18717 "configure"
#include "confdefs.h"
int
@@ -17152,13 +18724,13 @@ main (void)
#ifndef __cplusplus
/* Ultrix mips cc rejects this. */
typedef int charset[2];
- const charset x;
+ const charset x; (void)x;
/* SunOS 4.1.1 cc rejects this. */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this. */
struct point {int x, y;};
- static struct point const zero = {0,0};
+ static struct point const zero = {0,0}; (void)zero;
/* AIX XL C 1.02.0.0 rejects this.
It does not let you subtract one const X* pointer from another in
an arm of an if-expression whose if-part is not a constant
@@ -17174,16 +18746,19 @@ main (void)
char const *s = 0 ? (char *) 0 : (char const *) 0;
*t++ = 0;
+ (void)s;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
int x[] = {25, 17};
const int *foo = &x[0];
++foo;
+ (void)foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
typedef const int *iptr;
iptr p = 0;
++p;
+ (void)p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
@@ -17192,6 +18767,7 @@ main (void)
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
const int foo = 10;
+ (void)foo;
}
#endif
@@ -17200,16 +18776,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext"
-if { (eval echo "$as_me:17203: \"$ac_compile\"") >&5
+if { (eval echo "$as_me:18779: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:17206: \$? = $ac_status" >&5
+ echo "$as_me:18782: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"'
- { (eval echo "$as_me:17209: \"$ac_try\"") >&5
+ { (eval echo "$as_me:18785: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:17212: \$? = $ac_status" >&5
+ echo "$as_me:18788: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_c_const=yes
else
@@ -17219,7 +18795,7 @@ ac_cv_c_const=no
fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi
-echo "$as_me:17222: result: $ac_cv_c_const" >&5
+echo "$as_me:18798: result: $ac_cv_c_const" >&5
echo "${ECHO_T}$ac_cv_c_const" >&6
if test $ac_cv_c_const = no; then
@@ -17231,7 +18807,7 @@ fi
### Checks for external-data
-echo "$as_me:17234: checking if data-only library module links" >&5
+echo "$as_me:18810: checking if data-only library module links" >&5
echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
if test "${cf_cv_link_dataonly+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -17239,36 +18815,40 @@ else
rm -f conftest.a
cat >conftest.$ac_ext <&5
+ if { (eval echo "$as_me:18821: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:17248: \$? = $ac_status" >&5
+ echo "$as_me:18824: \$? = $ac_status" >&5
(exit "$ac_status"); } ; then
mv conftest.o data.o && \
( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
fi
rm -f conftest.$ac_ext data.o
cat >conftest.$ac_ext <&5
+ if { (eval echo "$as_me:18848: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
- echo "$as_me:17271: \$? = $ac_status" >&5
+ echo "$as_me:18851: \$? = $ac_status" >&5
(exit "$ac_status"); }; then
mv conftest.o func.o && \
( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
@@ -17281,26 +18861,26 @@ EOF
cf_cv_link_dataonly=unknown
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 17284 "configure"
+#line 18864 "configure"
#include "confdefs.h"
+ extern int testfunc(void);
int main(void)
{
- extern int testfunc();
${cf_cv_main_return:-return} (!testfunc());
}
_ACEOF
rm -f "conftest$ac_exeext"
-if { (eval echo "$as_me:17295: \"$ac_link\"") >&5
+if { (eval echo "$as_me:18875: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:17298: \$? = $ac_status" >&5
+ echo "$as_me:18878: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
- { (eval echo "$as_me:17300: \"$ac_try\"") >&5
+ { (eval echo "$as_me:18880: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:17303: \$? = $ac_status" >&5
+ echo "$as_me:18883: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_link_dataonly=yes
else
@@ -17315,7 +18895,7 @@ fi
fi
-echo "$as_me:17318: result: $cf_cv_link_dataonly" >&5
+echo "$as_me:18898: result: $cf_cv_link_dataonly" >&5
echo "${ECHO_T}$cf_cv_link_dataonly" >&6
if test "$cf_cv_link_dataonly" = no ; then
@@ -17334,23 +18914,23 @@ unistd.h \
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-echo "$as_me:17337: checking for $ac_header" >&5
+echo "$as_me:18917: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 17343 "configure"
+#line 18923 "configure"
#include "confdefs.h"
#include <$ac_header>
_ACEOF
-if { (eval echo "$as_me:17347: \"$ac_cpp "conftest.$ac_ext"\"") >&5
+if { (eval echo "$as_me:18927: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
- echo "$as_me:17353: \$? = $ac_status" >&5
+ echo "$as_me:18933: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
@@ -17369,7 +18949,7 @@ else
fi
rm -f conftest.err "conftest.$ac_ext"
fi
-echo "$as_me:17372: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
+echo "$as_me:18952: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <&5
+echo "$as_me:18962: checking for working mkstemp" >&5
echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
if test "${cf_cv_func_mkstemp+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -17390,14 +18970,14 @@ if test "$cross_compiling" = yes; then
cf_cv_func_mkstemp=maybe
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 17393 "configure"
+#line 18973 "configure"
#include "confdefs.h"
$ac_includes_default
int main(void)
{
- char *tmpl = "conftestXXXXXX";
+ static char tmpl[] = "conftestXXXXXX";
char name[2][80];
int n;
int result = 0;
@@ -17425,15 +19005,15 @@ int main(void)
_ACEOF
rm -f "conftest$ac_exeext"
-if { (eval echo "$as_me:17428: \"$ac_link\"") >&5
+if { (eval echo "$as_me:19008: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:17431: \$? = $ac_status" >&5
+ echo "$as_me:19011: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
- { (eval echo "$as_me:17433: \"$ac_try\"") >&5
+ { (eval echo "$as_me:19013: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:17436: \$? = $ac_status" >&5
+ echo "$as_me:19016: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
cf_cv_func_mkstemp=yes
@@ -17448,16 +19028,16 @@ rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes
fi
fi
-echo "$as_me:17451: result: $cf_cv_func_mkstemp" >&5
+echo "$as_me:19031: result: $cf_cv_func_mkstemp" >&5
echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
if test "x$cf_cv_func_mkstemp" = xmaybe ; then
- echo "$as_me:17454: checking for mkstemp" >&5
+ echo "$as_me:19034: checking for mkstemp" >&5
echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
if test "${ac_cv_func_mkstemp+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >"conftest.$ac_ext" <<_ACEOF
-#line 17460 "configure"
+#line 19040 "configure"
#include "confdefs.h"
#define mkstemp autoconf_temporary
#include /* least-intrusive standard header which defines gcc2 __stub macros */
@@ -17488,16 +19068,16 @@ main (void)
}
_ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext"
-if { (eval echo "$as_me:17491: \"$ac_link\"") >&5
+if { (eval echo "$as_me:19071: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
- echo "$as_me:17494: \$? = $ac_status" >&5
+ echo "$as_me:19074: \$? = $ac_status" >&5
(exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"'
- { (eval echo "$as_me:17497: \"$ac_try\"") >&5
+ { (eval echo "$as_me:19077: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
- echo "$as_me:17500: \$? = $ac_status" >&5
+ echo "$as_me:19080: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then
ac_cv_func_mkstemp=yes
else
@@ -17507,7 +19087,7 @@ ac_cv_func_mkstemp=no
fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi
-echo "$as_me:17510: result: $ac_cv_func_mkstemp" >&5
+echo "$as_me:19090: result: $ac_cv_func_mkstemp" >&5
echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
fi
@@ -17526,237 +19106,9 @@ fi
cf_with_ada=yes
if test "$cf_with_ada" != "no" ; then
-
-for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
-do
-
-cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
-
- unset ac_cv_path_cf_TEMP_gnat
- unset cf_TEMP_gnat
- # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
-set dummy $cf_prog_gnat; ac_word=$2
-echo "$as_me:17539: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $cf_TEMP_gnat in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
- ;;
- *)
- ac_save_IFS=$IFS; IFS=$ac_path_separator
-ac_dummy="$PATH"
-for ac_dir in $ac_dummy; do
- IFS=$ac_save_IFS
- test -z "$ac_dir" && ac_dir=.
- if $as_executable_p "$ac_dir/$ac_word"; then
- ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
- echo "$as_me:17556: found $ac_dir/$ac_word" >&5
- break
-fi
-done
-
- test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
- ;;
-esac
-fi
-cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
-
-if test -n "$cf_TEMP_gnat"; then
- echo "$as_me:17568: result: $cf_TEMP_gnat" >&5
-echo "${ECHO_T}$cf_TEMP_gnat" >&6
-else
- echo "$as_me:17571: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-
- eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
-
- if test "x$cf_TEMP_gnat" != xno; then
- unset cf_cv_gnat_version
- unset cf_TEMP_gnat
-
-echo "$as_me:17581: checking for $cf_prog_gnat version" >&5
-echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
-if test "${cf_cv_gnat_version+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-
-cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
- grep '[0-9].[0-9][0-9]*' |\
- sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
-
-fi
-echo "$as_me:17592: result: $cf_cv_gnat_version" >&5
-echo "${ECHO_T}$cf_cv_gnat_version" >&6
-test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
-eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
-
- fi
- eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
-
- unset cf_TEMP_gnat
- unset cf_cv_gnat_version
- unset ac_cv_path_cf_TEMP_gnat
-done
-
-if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
- cf_ada_make=
- cf_cv_prog_gnat_correct=no
-else
- cf_ada_make=gnatmake
- if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
- # gprconfig is newer than gnatmake; we can continue...
- cf_ada_config="##"
- else
- rm -rf ./conftest* ./*~conftest*
- if mkdir conftest.src
- then
- cf_ada_config=""
- cd conftest.src
- for cf_gprconfig in Ada C
- do
- echo "$as_me:17621: checking for gprconfig name for $cf_gprconfig" >&5
-echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
- if test "$cf_gprconfig" = C
- then
- for cf_gprconfig_param in \
- "$cf_gprconfig,,,,GNATGCC" \
- "$cf_gprconfig,,,,GCC" \
- "$cf_gprconfig"
- do
- cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
- test -n "$cf_gprconfig_value" && break
- done
- else
- cf_gprconfig_param=$cf_gprconfig
- cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
- fi
- if test -n "$cf_gprconfig_value"
- then
- eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
- echo "$as_me:17640: result: $cf_gprconfig_value" >&5
-echo "${ECHO_T}$cf_gprconfig_value" >&6
- else
- echo "$as_me:17643: result: missing" >&5
-echo "${ECHO_T}missing" >&6
- cf_ada_config="#"
- break
- fi
- done
- cd ..
- rm -rf ./conftest* ./*~conftest*
- fi
- fi
- if test "x$cf_ada_config" != "x#"
- then
-
-echo "$as_me:17656: checking for gnat version" >&5
-echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
-if test "${cf_cv_gnat_version+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-
-cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
- grep '[0-9].[0-9][0-9]*' |\
- sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
-
-fi
-echo "$as_me:17667: result: $cf_cv_gnat_version" >&5
-echo "${ECHO_T}$cf_cv_gnat_version" >&6
-test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
-
-case "$cf_cv_gnat_version" in
-(3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
- cf_cv_prog_gnat_correct=yes
- ;;
-(*)
- { echo "$as_me:17676: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
-echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
- cf_cv_prog_gnat_correct=no
- ;;
-esac
-
- # Extract the first word of "m4", so it can be a program name with args.
-set dummy m4; ac_word=$2
-echo "$as_me:17684: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_prog_M4_exists+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$M4_exists"; then
- ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
-else
- ac_save_IFS=$IFS; IFS=$ac_path_separator
-ac_dummy="$PATH"
-for ac_dir in $ac_dummy; do
- IFS=$ac_save_IFS
- test -z "$ac_dir" && ac_dir=.
- $as_executable_p "$ac_dir/$ac_word" || continue
-ac_cv_prog_M4_exists="yes"
-echo "$as_me:17699: found $ac_dir/$ac_word" >&5
-break
-done
-
- test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
-fi
-fi
-M4_exists=$ac_cv_prog_M4_exists
-if test -n "$M4_exists"; then
- echo "$as_me:17708: result: $M4_exists" >&5
-echo "${ECHO_T}$M4_exists" >&6
-else
- echo "$as_me:17711: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-
- if test "$ac_cv_prog_M4_exists" = no; then
- cf_cv_prog_gnat_correct=no
- { echo "$as_me:17717: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
-echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
- fi
- if test "$cf_cv_prog_gnat_correct" = yes; then
- echo "$as_me:17721: checking if GNAT works" >&5
-echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
-
-rm -rf ./conftest* ./*~conftest*
-cat >>conftest.ads <>conftest.adb <&5 2>&1 ) ; then
- if ( ./conftest 1>&5 2>&1 ) ; then
- cf_cv_prog_gnat_correct=yes
- else
- cf_cv_prog_gnat_correct=no
- fi
-else
- cf_cv_prog_gnat_correct=no
-fi
-rm -rf ./conftest* ./*~conftest*
-
- echo "$as_me:17749: result: $cf_cv_prog_gnat_correct" >&5
-echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
- fi
- else
- cf_cv_prog_gnat_correct=no
- fi
-fi
-
if test "$cf_cv_prog_gnat_correct" = yes; then
- echo "$as_me:17759: checking optimization options for ADAFLAGS" >&5
+ echo "$as_me:19111: checking optimization options for ADAFLAGS" >&5
echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
case "$CFLAGS" in
(*-g*)
@@ -17773,10 +19125,10 @@ echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
;;
esac
- echo "$as_me:17776: result: $ADAFLAGS" >&5
+ echo "$as_me:19128: result: $ADAFLAGS" >&5
echo "${ECHO_T}$ADAFLAGS" >&6
-echo "$as_me:17779: checking if GNATPREP supports -T option" >&5
+echo "$as_me:19131: checking if GNATPREP supports -T option" >&5
echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
if test "${cf_cv_gnatprep_opt_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -17786,11 +19138,11 @@ cf_cv_gnatprep_opt_t=no
gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
fi
-echo "$as_me:17789: result: $cf_cv_gnatprep_opt_t" >&5
+echo "$as_me:19141: result: $cf_cv_gnatprep_opt_t" >&5
echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
-echo "$as_me:17793: checking if GNAT supports generics" >&5
+echo "$as_me:19145: checking if GNAT supports generics" >&5
echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
case "$cf_cv_gnat_version" in
(3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
@@ -17800,7 +19152,7 @@ case "$cf_cv_gnat_version" in
cf_gnat_generics=no
;;
esac
-echo "$as_me:17803: result: $cf_gnat_generics" >&5
+echo "$as_me:19155: result: $cf_gnat_generics" >&5
echo "${ECHO_T}$cf_gnat_generics" >&6
if test "$cf_gnat_generics" = yes
@@ -17812,7 +19164,7 @@ else
cf_generic_objects=
fi
-echo "$as_me:17815: checking if GNAT supports SIGINT" >&5
+echo "$as_me:19167: checking if GNAT supports SIGINT" >&5
echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
if test "${cf_cv_gnat_sigint+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -17860,7 +19212,7 @@ fi
rm -rf ./conftest* ./*~conftest*
fi
-echo "$as_me:17863: result: $cf_cv_gnat_sigint" >&5
+echo "$as_me:19215: result: $cf_cv_gnat_sigint" >&5
echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
if test "$cf_cv_gnat_sigint" = yes ; then
@@ -17873,7 +19225,7 @@ cf_gnat_libraries=no
cf_gnat_projects=no
if test "$enable_gnat_projects" != no ; then
-echo "$as_me:17876: checking if GNAT supports project files" >&5
+echo "$as_me:19228: checking if GNAT supports project files" >&5
echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
case "$cf_cv_gnat_version" in
(3.[0-9]*)
@@ -17936,15 +19288,15 @@ CF_EOF
esac
;;
esac
-echo "$as_me:17939: result: $cf_gnat_projects" >&5
+echo "$as_me:19291: result: $cf_gnat_projects" >&5
echo "${ECHO_T}$cf_gnat_projects" >&6
fi # enable_gnat_projects
if test "$cf_gnat_projects" = yes
then
- echo "$as_me:17945: checking if GNAT supports libraries" >&5
+ echo "$as_me:19297: checking if GNAT supports libraries" >&5
echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
- echo "$as_me:17947: result: $cf_gnat_libraries" >&5
+ echo "$as_me:19299: result: $cf_gnat_libraries" >&5
echo "${ECHO_T}$cf_gnat_libraries" >&6
fi
@@ -17964,7 +19316,7 @@ then
then
USE_GNAT_MAKE_GPR=""
else
- { echo "$as_me:17967: WARNING: use old makefile rules since tools are missing" >&5
+ { echo "$as_me:19319: WARNING: use old makefile rules since tools are missing" >&5
echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
fi
fi
@@ -17976,8 +19328,8 @@ else
USE_GNAT_LIBRARIES="#"
fi
-echo "$as_me:17979: checking for ada-compiler" >&5
-echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
+echo "$as_me:19331: checking for Ada95 compiler" >&5
+echo $ECHO_N "checking for Ada95 compiler... $ECHO_C" >&6
# Check whether --with-ada-compiler or --without-ada-compiler was given.
if test "${with_ada_compiler+set}" = set; then
@@ -17987,13 +19339,13 @@ else
cf_ada_compiler=gnatmake
fi;
-echo "$as_me:17990: result: $cf_ada_compiler" >&5
+echo "$as_me:19342: result: $cf_ada_compiler" >&5
echo "${ECHO_T}$cf_ada_compiler" >&6
cf_ada_package=terminal_interface
-echo "$as_me:17995: checking for ada-include" >&5
-echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
+echo "$as_me:19347: checking for Ada95 include directory" >&5
+echo $ECHO_N "checking for Ada95 include directory... $ECHO_C" >&6
# Check whether --with-ada-include or --without-ada-include was given.
if test "${with_ada_include+set}" = set; then
@@ -18009,26 +19361,24 @@ else
cf_path_syntax="$ac_default_prefix"
fi
-case ".$withval" in
-(.\$\(*\)*|.\'*\'*)
- ;;
-(..|./*|.\\*)
+case "x$withval" in
+(x\$\(*\)*|x\'*\'*)
;;
-(.[a-zA-Z]:[\\/]*) # OS/2 EMX
+(x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
;;
-(.\$\{*prefix\}*|.\$\{*dir\}*)
+(x\$\{*prefix\}*|x\$\{*dir\}*)
eval withval="$withval"
- case ".$withval" in
- (.NONE/*)
+ case "x$withval" in
+ (xNONE/*)
withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
;;
esac
;;
-(.no|.NONE/*)
+(xno|xNONE/*)
withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
;;
(*)
- { { echo "$as_me:18031: error: expected a pathname, not \"$withval\"" >&5
+ { { echo "$as_me:19381: error: expected a pathname, not \"$withval\"" >&5
echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
{ (exit 1); exit 1; }; }
;;
@@ -18037,11 +19387,11 @@ esac
fi
eval ADA_INCLUDE="$withval"
-echo "$as_me:18040: result: $ADA_INCLUDE" >&5
+echo "$as_me:19390: result: $ADA_INCLUDE" >&5
echo "${ECHO_T}$ADA_INCLUDE" >&6
-echo "$as_me:18043: checking for ada-objects" >&5
-echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
+echo "$as_me:19393: checking for Ada95 object directory" >&5
+echo $ECHO_N "checking for Ada95 object directory... $ECHO_C" >&6
# Check whether --with-ada-objects or --without-ada-objects was given.
if test "${with_ada_objects+set}" = set; then
@@ -18057,26 +19407,24 @@ else
cf_path_syntax="$ac_default_prefix"
fi
-case ".$withval" in
-(.\$\(*\)*|.\'*\'*)
+case "x$withval" in
+(x\$\(*\)*|x\'*\'*)
;;
-(..|./*|.\\*)
+(x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
;;
-(.[a-zA-Z]:[\\/]*) # OS/2 EMX
- ;;
-(.\$\{*prefix\}*|.\$\{*dir\}*)
+(x\$\{*prefix\}*|x\$\{*dir\}*)
eval withval="$withval"
- case ".$withval" in
- (.NONE/*)
+ case "x$withval" in
+ (xNONE/*)
withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
;;
esac
;;
-(.no|.NONE/*)
+(xno|xNONE/*)
withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
;;
(*)
- { { echo "$as_me:18079: error: expected a pathname, not \"$withval\"" >&5
+ { { echo "$as_me:19427: error: expected a pathname, not \"$withval\"" >&5
echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
{ (exit 1); exit 1; }; }
;;
@@ -18085,11 +19433,11 @@ esac
fi
eval ADA_OBJECTS="$withval"
-echo "$as_me:18088: result: $ADA_OBJECTS" >&5
+echo "$as_me:19436: result: $ADA_OBJECTS" >&5
echo "${ECHO_T}$ADA_OBJECTS" >&6
-echo "$as_me:18091: checking if an Ada95 shared-library should be built" >&5
-echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
+echo "$as_me:19439: checking whether to build an Ada95 shared library" >&5
+echo $ECHO_N "checking whether to build an Ada95 shared library... $ECHO_C" >&6
# Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
if test "${with_ada_sharedlib+set}" = set; then
@@ -18098,19 +19446,25 @@ if test "${with_ada_sharedlib+set}" = set; then
else
with_ada_sharedlib=no
fi;
-echo "$as_me:18101: result: $with_ada_sharedlib" >&5
-echo "${ECHO_T}$with_ada_sharedlib" >&6
+cf_ada_sharedlib_warn=no
if test "x$with_ada_sharedlib" != xno
then
if test "x$cf_gnat_projects" != xyes
then
- { echo "$as_me:18108: WARNING: disabling shared-library since GNAT projects are not supported" >&5
-echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
with_ada_sharedlib=no
+ cf_ada_sharedlib_warn=yes
fi
fi
+echo "$as_me:19460: result: $with_ada_sharedlib" >&5
+echo "${ECHO_T}$with_ada_sharedlib" >&6
+if test "x$cf_ada_sharedlib_warn" != xno
+then
+ { echo "$as_me:19464: WARNING: disabling Ada95 shared library since GNAT projects are not supported" >&5
+echo "$as_me: WARNING: disabling Ada95 shared library since GNAT projects are not supported" >&2;}
+fi
+
ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
MAKE_ADA_SHAREDLIB="#"
@@ -18125,8 +19479,8 @@ fi
# allow the Ada binding to be renamed
-echo "$as_me:18128: checking for ada-libname" >&5
-echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
+echo "$as_me:19482: checking for Ada95 curses library name" >&5
+echo $ECHO_N "checking for Ada95 curses library name... $ECHO_C" >&6
# Check whether --with-ada-libname or --without-ada-libname was given.
if test "${with_ada_libname+set}" = set; then
@@ -18141,16 +19495,16 @@ case "x$ADA_LIBNAME" in
;;
esac
-echo "$as_me:18144: result: $ADA_LIBNAME" >&5
+echo "$as_me:19498: result: $ADA_LIBNAME" >&5
echo "${ECHO_T}$ADA_LIBNAME" >&6
else
- { { echo "$as_me:18148: error: No usable Ada compiler found" >&5
+ { { echo "$as_me:19502: error: No usable Ada compiler found" >&5
echo "$as_me: error: No usable Ada compiler found" >&2;}
{ (exit 1); exit 1; }; }
fi
else
- { { echo "$as_me:18153: error: The Ada compiler is needed for this package" >&5
+ { { echo "$as_me:19507: error: The Ada compiler is needed for this package" >&5
echo "$as_me: error: The Ada compiler is needed for this package" >&2;}
{ (exit 1); exit 1; }; }
fi
@@ -18190,7 +19544,7 @@ elif test "$includedir" != "/usr/include"; then
fi
### Build up pieces for makefile rules
-echo "$as_me:18193: checking default library suffix" >&5
+echo "$as_me:19547: checking default library suffix" >&5
echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
case $DFT_LWR_MODEL in
@@ -18201,10 +19555,10 @@ echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
(shared) DFT_ARG_SUFFIX='' ;;
esac
test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
-echo "$as_me:18204: result: $DFT_ARG_SUFFIX" >&5
+echo "$as_me:19558: result: $DFT_ARG_SUFFIX" >&5
echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
-echo "$as_me:18207: checking default library-dependency suffix" >&5
+echo "$as_me:19561: checking default library-dependency suffix" >&5
echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
case X$DFT_LWR_MODEL in
@@ -18287,10 +19641,10 @@ echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
fi
-echo "$as_me:18290: result: $DFT_DEP_SUFFIX" >&5
+echo "$as_me:19644: result: $DFT_DEP_SUFFIX" >&5
echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
-echo "$as_me:18293: checking default object directory" >&5
+echo "$as_me:19647: checking default object directory" >&5
echo $ECHO_N "checking default object directory... $ECHO_C" >&6
case $DFT_LWR_MODEL in
@@ -18306,7 +19660,7 @@ echo $ECHO_N "checking default object directory... $ECHO_C" >&6
DFT_OBJ_SUBDIR='obj_s' ;;
esac
esac
-echo "$as_me:18309: result: $DFT_OBJ_SUBDIR" >&5
+echo "$as_me:19663: result: $DFT_OBJ_SUBDIR" >&5
echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
### Set up low-level terminfo dependencies for makefiles.
@@ -18379,7 +19733,7 @@ cat >confcache <<\_ACEOF
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
-# `ac_cv_env_foo' variables (set or unset) will be overriden when
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.
@@ -18448,7 +19802,7 @@ DEFS=-DHAVE_CONFIG_H
: "${CONFIG_STATUS=./config.status}"
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
-{ echo "$as_me:18451: creating $CONFIG_STATUS" >&5
+{ echo "$as_me:19805: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >"$CONFIG_STATUS" <<_ACEOF
#! $SHELL
@@ -18584,7 +19938,7 @@ EOF
cat >>"$CONFIG_STATUS" <>"$CONFIG_STATUS" <<\EOF
echo "$ac_cs_version"; exit 0 ;;
--he | --h)
# Conflict between --help and --header
- { { echo "$as_me:18632: error: ambiguous option: $1
+ { { echo "$as_me:19986: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
@@ -18648,7 +20002,7 @@ Try \`$0 --help' for more information." >&2;}
ac_need_defaults=false;;
# This is an error.
- -*) { { echo "$as_me:18651: error: unrecognized option: $1
+ -*) { { echo "$as_me:20005: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
@@ -18667,7 +20021,7 @@ cat >&5 << _ACEOF
## Running config.status. ##
## ----------------------- ##
-This file was extended by $as_me 2.52.20230114, executed with
+This file was extended by $as_me 2.52.20240618, executed with
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_LINKS = $CONFIG_LINKS
@@ -18723,7 +20077,7 @@ do
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
"include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
- *) { { echo "$as_me:18726: error: invalid argument: $ac_config_target" >&5
+ *) { { echo "$as_me:20080: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
{ (exit 1); exit 1; }; };;
esac
@@ -18823,6 +20177,13 @@ s,@target_vendor@,$target_vendor,;t t
s,@target_os@,$target_os,;t t
s,@GREP@,$GREP,;t t
s,@FGREP@,$FGREP,;t t
+s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
+s,@M4_exists@,$M4_exists,;t t
+s,@cf_ada_make@,$cf_ada_make,;t t
+s,@cf_ada_config@,$cf_ada_config,;t t
+s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
+s,@cf_ada_config_C@,$cf_ada_config_C,;t t
+s,@cf_cv_path_gnatgcc@,$cf_cv_path_gnatgcc,;t t
s,@CC@,$CC,;t t
s,@CFLAGS@,$CFLAGS,;t t
s,@LDFLAGS@,$LDFLAGS,;t t
@@ -18838,6 +20199,8 @@ s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
s,@LN_S@,$LN_S,;t t
+s,@GLOB_FULLPATH_POSIX@,$GLOB_FULLPATH_POSIX,;t t
+s,@GLOB_FULLPATH_OTHER@,$GLOB_FULLPATH_OTHER,;t t
s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
@@ -18859,6 +20222,7 @@ s,@AR@,$AR,;t t
s,@ac_ct_AR@,$ac_ct_AR,;t t
s,@ARFLAGS@,$ARFLAGS,;t t
s,@DESTDIR@,$DESTDIR,;t t
+s,@MERGE_PREFIX@,$MERGE_PREFIX,;t t
s,@BUILD_CC@,$BUILD_CC,;t t
s,@BUILD_CPP@,$BUILD_CPP,;t t
s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
@@ -18869,8 +20233,10 @@ s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
+s,@REQUIRE_PKG@,$REQUIRE_PKG,;t t
s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
+s,@cf_cv_screen@,$cf_cv_screen,;t t
s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
@@ -18879,6 +20245,7 @@ s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
+s,@cf_cv_enable_sigwinch@,$cf_cv_enable_sigwinch,;t t
s,@LIB_PREFIX@,$LIB_PREFIX,;t t
s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
s,@CC_G_OPT@,$CC_G_OPT,;t t
@@ -18913,12 +20280,6 @@ s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
s,@STDC_NORETURN@,$STDC_NORETURN,;t t
s,@ADAFLAGS@,$ADAFLAGS,;t t
s,@ADA_TRACE@,$ADA_TRACE,;t t
-s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
-s,@M4_exists@,$M4_exists,;t t
-s,@cf_ada_make@,$cf_ada_make,;t t
-s,@cf_ada_config@,$cf_ada_config,;t t
-s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
-s,@cf_ada_config_C@,$cf_ada_config_C,;t t
s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
s,@cf_compile_generics@,$cf_compile_generics,;t t
s,@cf_generic_objects@,$cf_generic_objects,;t t
@@ -18979,14 +20340,14 @@ EOF
# is no need to browse any of the substitutions).
# These are the two extra sed commands mentioned above.
(echo ':t
- /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed
+ /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && sed -e 's/\\\\*$//g' -e 's/$/\\/' -e 's/;t t\\/;t t/' -e 't' -e '3,'$ac_max_sed_lines's/$/\\/' "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed
# It is possible to make a multiline substitution using escaped newlines.
# Ensure that we do not split the substitution between script fragments.
ac_BEG=$ac_end
ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next
if test -s "$tmp"/subs.next; then
- grep '^s,@[^@,][^@,]*@,.*\\$' "$tmp"/subs.next >"$tmp"/subs.edit
+ grep '^s,@[^@,][^@,]*@,.*$' "$tmp"/subs.next | grep -v '^s,@.*;t t$' >"$tmp"/subs.edit
if test ! -s "$tmp"/subs.edit; then
grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit
if test ! -s "$tmp"/subs.edit; then
@@ -19084,7 +20445,7 @@ done; }
esac
if test x"$ac_file" != x-; then
- { echo "$as_me:19087: creating $ac_file" >&5
+ { echo "$as_me:20448: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
rm -f "$ac_file"
fi
@@ -19102,7 +20463,7 @@ echo "$as_me: creating $ac_file" >&6;}
-) echo "$tmp"/stdin ;;
[\\/$]*)
# Absolute (can't be DOS-style, as IFS=:)
- test -f "$f" || { { echo "$as_me:19105: error: cannot find input file: $f" >&5
+ test -f "$f" || { { echo "$as_me:20466: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
echo "$f";;
@@ -19115,7 +20476,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
echo "$srcdir/$f"
else
# /dev/null tree
- { { echo "$as_me:19118: error: cannot find input file: $f" >&5
+ { { echo "$as_me:20479: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
fi;;
@@ -19131,7 +20492,7 @@ cat >>"$CONFIG_STATUS" <<\EOF
if test -n "$ac_seen"; then
ac_used=`grep '@datarootdir@' "$ac_item"`
if test -z "$ac_used"; then
- { echo "$as_me:19134: WARNING: datarootdir was used implicitly but not set:
+ { echo "$as_me:20495: WARNING: datarootdir was used implicitly but not set:
$ac_seen" >&5
echo "$as_me: WARNING: datarootdir was used implicitly but not set:
$ac_seen" >&2;}
@@ -19140,7 +20501,7 @@ $ac_seen" >&2;}
fi
ac_seen=`grep '${datarootdir}' "$ac_item"`
if test -n "$ac_seen"; then
- { echo "$as_me:19143: WARNING: datarootdir was used explicitly but not set:
+ { echo "$as_me:20504: WARNING: datarootdir was used explicitly but not set:
$ac_seen" >&5
echo "$as_me: WARNING: datarootdir was used explicitly but not set:
$ac_seen" >&2;}
@@ -19168,11 +20529,11 @@ s,@INSTALL@,$ac_INSTALL,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out
rm -f "$tmp"/stdin
EOF
-: "${FGREP:=grep -F}"
-: "${EGREP:=grep -E}"
+test -n "${FGREP}" || FGREP="grep -F"
+test -n "${EGREP}" || EGREP="grep -E"
cat >>"$CONFIG_STATUS" <>"$CONFIG_STATUS" <<\EOF
if test x"$ac_file" != x-; then
@@ -19185,7 +20546,7 @@ cat >>"$CONFIG_STATUS" <<\EOF
ac_init=`$EGREP '[ ]*'$ac_name'[ ]*=' "$ac_file"`
if test -z "$ac_init"; then
ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'`
- { echo "$as_me:19188: WARNING: Variable $ac_name is used but was not set:
+ { echo "$as_me:20549: WARNING: Variable $ac_name is used but was not set:
$ac_seen" >&5
echo "$as_me: WARNING: Variable $ac_name is used but was not set:
$ac_seen" >&2;}
@@ -19196,7 +20557,7 @@ $ac_seen" >&2;}
$EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out
if test -s "$tmp"/out; then
ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out`
- { echo "$as_me:19199: WARNING: Some variables may not be substituted:
+ { echo "$as_me:20560: WARNING: Some variables may not be substituted:
$ac_seen" >&5
echo "$as_me: WARNING: Some variables may not be substituted:
$ac_seen" >&2;}
@@ -19245,7 +20606,7 @@ for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
* ) ac_file_in=$ac_file.in ;;
esac
- test x"$ac_file" != x- && { echo "$as_me:19248: creating $ac_file" >&5
+ test x"$ac_file" != x- && { echo "$as_me:20609: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
# First look for the input files in the build tree, otherwise in the
@@ -19256,7 +20617,7 @@ echo "$as_me: creating $ac_file" >&6;}
-) echo "$tmp"/stdin ;;
[\\/$]*)
# Absolute (can't be DOS-style, as IFS=:)
- test -f "$f" || { { echo "$as_me:19259: error: cannot find input file: $f" >&5
+ test -f "$f" || { { echo "$as_me:20620: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
echo $f;;
@@ -19269,7 +20630,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
echo "$srcdir/$f"
else
# /dev/null tree
- { { echo "$as_me:19272: error: cannot find input file: $f" >&5
+ { { echo "$as_me:20633: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
fi;;
@@ -19327,7 +20688,7 @@ cat >>"$CONFIG_STATUS" <<\EOF
rm -f "$tmp"/in
if test x"$ac_file" != x-; then
if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
- { echo "$as_me:19330: $ac_file is unchanged" >&5
+ { echo "$as_me:20691: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
else
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
diff --git a/Ada95/configure.in b/Ada95/configure.in
index 3384df24..bd58beb7 100644
--- a/Ada95/configure.in
+++ b/Ada95/configure.in
@@ -1,5 +1,5 @@
dnl***************************************************************************
-dnl Copyright 2018-2022,2023 Thomas E. Dickey *
+dnl Copyright 2018-2023,2024 Thomas E. Dickey *
dnl Copyright 2010-2016,2018 Free Software Foundation, Inc. *
dnl *
dnl Permission is hereby granted, free of charge, to any person obtaining a *
@@ -29,7 +29,7 @@ dnl***************************************************************************
dnl
dnl Author: Thomas E. Dickey
dnl
-dnl $Id: configure.in,v 1.91 2023/02/18 23:21:29 tom Exp $
+dnl $Id: configure.in,v 1.94 2024/08/11 00:22:07 tom Exp $
dnl Process this file with autoconf to produce a configure script.
dnl
dnl For additional information, see
@@ -38,7 +38,7 @@ dnl https://invisible-island.net/autoconf/my-autoconf.html
dnl
dnl ---------------------------------------------------------------------------
AC_PREREQ(2.52.20210509)
-AC_REVISION($Revision: 1.91 $)
+AC_REVISION($Revision: 1.94 $)
AC_INIT(gen/gen.c)
AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
@@ -59,7 +59,7 @@ cf_user_CFLAGS="$CFLAGS"
CF_CFG_DEFAULTS
### Checks for programs.
-CF_PROG_CC(gnatgcc gcc cc)
+CF_WITH_ADA
AC_PROG_CPP
AC_PROG_GCC_TRADITIONAL
CF_PROG_CC_C_O(CC,[$CFLAGS $CPPFLAGS])
@@ -115,20 +115,7 @@ AC_CHECK_TOOL(AR, ar, ar)
CF_AR_FLAGS
CF_PATHSEP
-dnl Special option for use by system-builders: the install-prefix is used to
-dnl adjust the location into which the actual install is done, so that an
-dnl archive can be built without modifying the host system's configuration.
-AC_MSG_CHECKING(if you have specified an install-prefix)
-AC_ARG_WITH(install-prefix,
- [ --with-install-prefix prefixes actual install-location ($DESTDIR)],
- [case "$withval" in
- (yes|no)
- ;;
- (*) DESTDIR="$withval"
- ;;
- esac])
-AC_MSG_RESULT($DESTDIR)
-AC_SUBST(DESTDIR)
+CF_INSTALL_PREFIX
###############################################################################
CF_HELP_MESSAGE(Build-Tools Needed to Compile Temporary Applications for Cross-compiling:)
@@ -410,7 +397,7 @@ AC_MSG_RESULT($cf_with_trace)
if test "$cf_with_trace" = yes ; then
ADA_TRACE=TRUE
- CF_ADD_CFLAGS(-DTRACE)
+ AC_DEFINE(TRACE,1,[Define to 1 if we have support trace functions])
else
ADA_TRACE=FALSE
fi
@@ -455,7 +442,6 @@ cf_with_ada=yes
dnl Check for availability of GNU Ada Translator (GNAT).
dnl At the moment we support no other Ada95 compiler.
if test "$cf_with_ada" != "no" ; then
- CF_PROG_GNAT
if test "$cf_cv_prog_gnat_correct" = yes; then
CF_FIXUP_ADAFLAGS
diff --git a/Ada95/doc/Makefile.in b/Ada95/doc/Makefile.in
index 0aed33fe..f94a341f 100644
--- a/Ada95/doc/Makefile.in
+++ b/Ada95/doc/Makefile.in
@@ -1,6 +1,6 @@
-# $Id: Makefile.in,v 1.9 2021/07/03 15:45:33 tom Exp $
+# $Id: Makefile.in,v 1.10 2024/08/10 18:18:19 tom Exp $
##############################################################################
-# Copyright 2019-2020,2021 Thomas E. Dickey #
+# Copyright 2019-2021,2024 Thomas E. Dickey #
# Copyright 2011-2015,2018 Free Software Foundation, Inc. #
# #
# Permission is hereby granted, free of charge, to any person obtaining a #
@@ -49,8 +49,8 @@ INSTALL_DATA = @INSTALL_DATA@
DFT_ARG_SUFFIX = @DFT_ARG_SUFFIX@
THIS = @ADA_LIBNAME@
-DOCDIR = $(DESTDIR)$(datadir)/doc/$(THIS)
-MANDIR = $(DESTDIR)$(mandir)/man1
+DOCDIR = $(DESTDIR)$(datadir@MERGE_PREFIX@)/doc/$(THIS)
+MANDIR = $(DESTDIR)$(mandir@MERGE_PREFIX@)/man1
################################################################################
diff --git a/Ada95/gen/Makefile.in b/Ada95/gen/Makefile.in
index 05331374..135a493e 100644
--- a/Ada95/gen/Makefile.in
+++ b/Ada95/gen/Makefile.in
@@ -1,5 +1,5 @@
##############################################################################
-# Copyright 2019-2021,2022 Thomas E. Dickey #
+# Copyright 2019-2022,2024 Thomas E. Dickey #
# Copyright 1998-2015,2018 Free Software Foundation, Inc. #
# #
# Permission is hereby granted, free of charge, to any person obtaining a #
@@ -30,7 +30,7 @@
# Author: Juergen Pfeifer, 1996
# and: Thomas E. Dickey, 1997
#
-# $Id: Makefile.in,v 1.101 2022/12/03 19:45:12 Nicolas.Boulenguez Exp $
+# $Id: Makefile.in,v 1.105 2024/08/10 17:55:15 tom Exp $
#
.SUFFIXES:
@@ -48,6 +48,8 @@ exec_prefix = @exec_prefix@
bindir = @bindir@
includedir = @includedir@
+BINDIR = $(DESTDIR)$(bindir@MERGE_PREFIX@)
+
INSTALL = @INSTALL@ @INSTALL_OPT_O@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DATA = @INSTALL_DATA@
@@ -111,36 +113,37 @@ ABASE = $(ALIB)-curses
ADA_SRCDIR = ../src
-GEN_TARGETS = $(ADA_SRCDIR)/$(ABASE).ads \
- $(ADA_SRCDIR)/$(ABASE).adb \
- $(ADA_SRCDIR)/$(ABASE)-aux.ads \
- $(ADA_SRCDIR)/$(ABASE)-trace.ads \
- $(ADA_SRCDIR)/$(ABASE)-menus.ads \
- $(ADA_SRCDIR)/$(ABASE)-forms.ads \
- $(ADA_SRCDIR)/$(ABASE)-mouse.ads \
- $(ADA_SRCDIR)/$(ABASE)-panels.ads \
- $(ADA_SRCDIR)/$(ABASE)-menus-menu_user_data.ads \
- $(ADA_SRCDIR)/$(ABASE)-menus-item_user_data.ads \
- $(ADA_SRCDIR)/$(ABASE)-forms-form_user_data.ads \
- $(ADA_SRCDIR)/$(ABASE)-forms-field_types.ads \
- $(ADA_SRCDIR)/$(ABASE)-forms-field_user_data.ads \
- $(ADA_SRCDIR)/$(ABASE)-panels-user_data.ads \
- $(ADA_SRCDIR)/$(ABASE)_constants.ads
+GEN_TARGETS = options.m4 \
+ $(ADA_SRCDIR)/$(ABASE).ads \
+ $(ADA_SRCDIR)/$(ABASE).adb \
+ $(ADA_SRCDIR)/$(ABASE)-aux.ads \
+ $(ADA_SRCDIR)/$(ABASE)-trace.ads \
+ $(ADA_SRCDIR)/$(ABASE)-menus.ads \
+ $(ADA_SRCDIR)/$(ABASE)-forms.ads \
+ $(ADA_SRCDIR)/$(ABASE)-mouse.ads \
+ $(ADA_SRCDIR)/$(ABASE)-panels.ads \
+ $(ADA_SRCDIR)/$(ABASE)-menus-menu_user_data.ads \
+ $(ADA_SRCDIR)/$(ABASE)-menus-item_user_data.ads \
+ $(ADA_SRCDIR)/$(ABASE)-forms-form_user_data.ads \
+ $(ADA_SRCDIR)/$(ABASE)-forms-field_types.ads \
+ $(ADA_SRCDIR)/$(ABASE)-forms-field_user_data.ads \
+ $(ADA_SRCDIR)/$(ABASE)-panels-user_data.ads \
+ $(ADA_SRCDIR)/$(ABASE)_constants.ads
GEN_SRC = $(srcdir)/$(ABASE).ads.m4 \
$(srcdir)/$(ABASE).adb.m4 \
- $(srcdir)/$(ABASE)-aux.ads.m4 \
- $(srcdir)/$(ABASE)-trace.ads.m4 \
- $(srcdir)/$(ABASE)-menus.ads.m4 \
- $(srcdir)/$(ABASE)-forms.ads.m4 \
- $(srcdir)/$(ABASE)-mouse.ads.m4 \
- $(srcdir)/$(ABASE)-panels.ads.m4 \
- $(srcdir)/$(ABASE)-menus-menu_user_data.ads.m4 \
- $(srcdir)/$(ABASE)-menus-item_user_data.ads.m4 \
- $(srcdir)/$(ABASE)-forms-form_user_data.ads.m4 \
- $(srcdir)/$(ABASE)-forms-field_types.ads.m4 \
- $(srcdir)/$(ABASE)-forms-field_user_data.ads.m4 \
- $(srcdir)/$(ABASE)-panels-user_data.ads.m4
+ $(srcdir)/$(ABASE)-aux.ads.m4 \
+ $(srcdir)/$(ABASE)-trace.ads.m4 \
+ $(srcdir)/$(ABASE)-menus.ads.m4 \
+ $(srcdir)/$(ABASE)-forms.ads.m4 \
+ $(srcdir)/$(ABASE)-mouse.ads.m4 \
+ $(srcdir)/$(ABASE)-panels.ads.m4 \
+ $(srcdir)/$(ABASE)-menus-menu_user_data.ads.m4 \
+ $(srcdir)/$(ABASE)-menus-item_user_data.ads.m4 \
+ $(srcdir)/$(ABASE)-forms-form_user_data.ads.m4 \
+ $(srcdir)/$(ABASE)-forms-field_types.ads.m4 \
+ $(srcdir)/$(ABASE)-forms-field_user_data.ads.m4 \
+ $(srcdir)/$(ABASE)-panels-user_data.ads.m4
################################################################################
@@ -162,16 +165,19 @@ libs : $(GEN_TARGETS)
sources:
-$(DESTDIR)$(bindir) :
+$(BINDIR) :
mkdir -p $@
install \
-install.libs :: $(DESTDIR)$(bindir) $(ADACURSES_CONFIG)
- $(INSTALL_SCRIPT) $(ADACURSES_CONFIG) $(DESTDIR)$(bindir)/$(ADACURSES_CONFIG)
+install.libs :: \
+ $(GEN_TARGETS) \
+ $(BINDIR) \
+ $(ADACURSES_CONFIG)
+ $(INSTALL_SCRIPT) $(ADACURSES_CONFIG) $(BINDIR)/$(ADACURSES_CONFIG)
uninstall \
uninstall.libs ::
- -rm -f $(DESTDIR)$(bindir)/$(ADACURSES_CONFIG)
+ -rm -f $(BINDIR)/$(ADACURSES_CONFIG)
$(PROG_GENERATE): gen.o
@ECHO_LD@ $(LINK) $(CFLAGS_NORMAL) gen.o $(ACTUAL_LDFLAGS) -o $@
@@ -183,7 +189,8 @@ $(ADA_SRCDIR)/$(ABASE)_constants.ads: $(PROG_GENERATE)
$(WRAPPER) "$(GENERATE) $@"
################################################################################
$(ADA_SRCDIR)/$(ABASE).ads: $(srcdir)/$(ABASE).ads.m4 \
- $(srcdir)/normal.m4
+ $(srcdir)/normal.m4 \
+ options.m4
$(M4) $(M4FLAGS) -DM4MACRO=$(srcdir)/normal.m4 \
$(srcdir)/$(ABASE).ads.m4 |\
$(DEL_ADAMODE) >$@
@@ -284,6 +291,7 @@ mostlyclean ::
-rm -f a.out core $(PROG_GENERATE) *.o
clean :: mostlyclean
+ -rm -f options.m4
-rm -f $(GEN_TARGETS) instab.tmp *.ad[bs] *.html *.ali *.tmp
distclean :: clean
@@ -294,6 +302,15 @@ realclean :: distclean
HTML_DIR = @ADAHTML_DIR@
+options.m4 :
+ $(SHELL) -c "if [ @cf_cv_enable_sigwinch@ = 0 ]; \
+ then \
+ dashes=' --'; \
+ else \
+ dashes='';\
+ fi; \
+ echo \"define(OPT_KEY_RESIZE,\\\`\$$dashes')dnl\" > $@"
+
instab.tmp : table.m4 $(GEN_SRC)
@rm -f $@
@for f in $(GEN_SRC) ; do \
diff --git a/Ada95/gen/gen.c b/Ada95/gen/gen.c
index d92fa68e..fae38f97 100644
--- a/Ada95/gen/gen.c
+++ b/Ada95/gen/gen.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright 2020,2021 Thomas E. Dickey *
+ * Copyright 2020-2024,2025 Thomas E. Dickey *
* Copyright 1998-2014,2016 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
@@ -35,7 +35,7 @@
/*
Version Control
- $Id: gen.c,v 1.78 2021/12/11 21:03:21 tom Exp $
+ $Id: gen.c,v 1.80 2025/01/24 20:39:23 tom Exp $
--------------------------------------------------------------------------*/
/*
This program prints on its standard output the source for the
@@ -189,7 +189,7 @@ find_pos(const UCHAR * const data,
int
main(int argc, const char *argv[])
{
- FILE *fp = 0;
+ FILE *fp = NULL;
const int x = 0x12345678;
little_endian = (*((const char *)&x) == 0x78);
@@ -424,7 +424,9 @@ main(int argc, const char *argv[])
PRINT_NAMED_CONSTANT(KEY_SUSPEND);
PRINT_NAMED_CONSTANT(KEY_UNDO);
PRINT_NAMED_CONSTANT(KEY_MOUSE);
+#ifdef KEY_RESIZE
PRINT_NAMED_CONSTANT(KEY_RESIZE);
+#endif
print_comment(fp, "alternate character codes (ACS) from addch(3NCURSES)");
#define PRINT_ACS(name) print_size_of (fp, #name, (size_t)(&name - &acs_map[0]))
diff --git a/Ada95/gen/terminal_interface-curses.adb.m4 b/Ada95/gen/terminal_interface-curses.adb.m4
index 3f34d203..c966f9b9 100644
--- a/Ada95/gen/terminal_interface-curses.adb.m4
+++ b/Ada95/gen/terminal_interface-curses.adb.m4
@@ -9,7 +9,7 @@ include(M4MACRO)----------------------------------------------------------------
-- B O D Y --
-- --
------------------------------------------------------------------------------
--- Copyright 2018,2020 Thomas E. Dickey --
+-- Copyright 2018-2020,2024 Thomas E. Dickey --
-- Copyright 2007-2011,2014 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
@@ -38,8 +38,8 @@ include(M4MACRO)----------------------------------------------------------------
------------------------------------------------------------------------------
-- Author: Juergen Pfeifer, 1996
-- Version Control:
--- $Revision: 1.16 $
--- $Date: 2020/02/02 23:34:34 $
+-- $Revision: 1.17 $
+-- $Date: 2024/03/30 13:24:07 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with System;
@@ -564,7 +564,7 @@ package body Terminal_Interface.Curses is
L : constant Special_Key_Code := Special_Key_Code (Natural (Key_F0) +
Natural (Function_Key_Number'Last));
begin
- if (Key >= Key_F0) and then (Key <= L) then
+ if Key >= Key_F0 and then Key <= L then
return True;
else
return False;
diff --git a/Ada95/gen/terminal_interface-curses.ads.m4 b/Ada95/gen/terminal_interface-curses.ads.m4
index a5e91036..d6b18e58 100644
--- a/Ada95/gen/terminal_interface-curses.ads.m4
+++ b/Ada95/gen/terminal_interface-curses.ads.m4
@@ -1,6 +1,6 @@
-- -*- ada -*-
define(`HTMLNAME',`terminal_interface-curses__ads.htm')dnl
-include(M4MACRO)------------------------------------------------------------------------------
+include(M4MACRO)include(options.m4)------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
@@ -9,7 +9,7 @@ include(M4MACRO)----------------------------------------------------------------
-- S P E C --
-- --
------------------------------------------------------------------------------
--- Copyright 2020 Thomas E. Dickey --
+-- Copyright 2020,2024 Thomas E. Dickey --
-- Copyright 1998-2011,2014 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
@@ -38,8 +38,8 @@ include(M4MACRO)----------------------------------------------------------------
------------------------------------------------------------------------------
-- Author: Juergen Pfeifer, 1996
-- Version Control:
--- $Revision: 1.48 $
--- $Date: 2020/02/02 23:34:34 $
+-- $Revision: 1.49 $
+-- $Date: 2024/01/19 16:51:30 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with System.Storage_Elements;
@@ -377,8 +377,8 @@ package Terminal_Interface.Curses is
:= Curses_Constants.KEY_UNDO;
Key_Mouse : constant Special_Key_Code
:= Curses_Constants.KEY_MOUSE;
- Key_Resize : constant Special_Key_Code
- := Curses_Constants.KEY_RESIZE;
+OPT_KEY_RESIZE Key_Resize : constant Special_Key_Code
+OPT_KEY_RESIZE := Curses_Constants.KEY_RESIZE;
Key_Max : constant Special_Key_Code
:= Special_Key_Code'Last;
diff --git a/Ada95/include/ncurses_cfg.hin b/Ada95/include/ncurses_cfg.hin
index f8bcb662..c19ac8a5 100644
--- a/Ada95/include/ncurses_cfg.hin
+++ b/Ada95/include/ncurses_cfg.hin
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright 2020 Thomas E. Dickey *
+ * Copyright 2020,2024 Thomas E. Dickey *
* Copyright 2005-2017,2018 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
@@ -31,7 +31,7 @@
* Author: Thomas E. Dickey 1997 *
****************************************************************************/
/*
- * $Id: ncurses_cfg.hin,v 1.11 2020/02/02 23:34:34 tom Exp $
+ * $Id: ncurses_cfg.hin,v 1.13 2024/06/08 14:04:14 tom Exp $
*
* This is a template-file used to generate the "ncurses_cfg.h" file.
*
@@ -41,7 +41,7 @@
*
* See:
* https://invisible-island.net/autoconf/
- * ftp://ftp.invisible-island.net/autoconf/
+ * https://invisible-island.net/archives/autoconf/
*/
#ifndef NC_CONFIG_H
#define NC_CONFIG_H
diff --git a/Ada95/package/AdaCurses-doc.spec b/Ada95/package/AdaCurses-doc.spec
index c5b68dd4..cfc8527c 100644
--- a/Ada95/package/AdaCurses-doc.spec
+++ b/Ada95/package/AdaCurses-doc.spec
@@ -3,13 +3,13 @@ Summary: AdaCurses - Ada95 binding documentation for ncurses
%define AppVersion MAJOR.MINOR
%define AppRelease YYYYMMDD
%define AppPackage %{AppProgram}-doc
-# $Id: AdaCurses-doc.spec,v 1.7 2019/11/23 21:15:53 tom Exp $
+# $Id: AdaCurses-doc.spec,v 1.8 2024/06/08 13:54:31 tom Exp $
Name: %{AppPackage}
Version: %{AppVersion}
Release: %{AppRelease}
License: MIT
Group: Applications/Development
-URL: ftp://ftp.invisible-island.net/%{AppProgram}
+URL: https://invisible-island.net/%{AppProgram}
Source0: %{AppProgram}-%{AppRelease}.tgz
Packager: Thomas Dickey
diff --git a/Ada95/package/AdaCurses.spec b/Ada95/package/AdaCurses.spec
index 540e8e54..aa557ab1 100644
--- a/Ada95/package/AdaCurses.spec
+++ b/Ada95/package/AdaCurses.spec
@@ -2,13 +2,13 @@ Summary: Ada95 binding for ncurses
%define AppProgram AdaCurses
%define AppVersion MAJOR.MINOR
%define AppRelease YYYYMMDD
-# $Id: AdaCurses.spec,v 1.31 2022/12/18 00:08:17 tom Exp $
+# $Id: AdaCurses.spec,v 1.34 2024/06/08 13:53:14 tom Exp $
Name: %{AppProgram}
Version: %{AppVersion}
Release: %{AppRelease}
License: MIT
Group: Applications/Development
-URL: ftp://ftp.invisible-island.net/%{AppProgram}
+URL: https://invisible-island.net/%{AppProgram}
Source0: %{AppProgram}-%{AppRelease}.tgz
Packager: Thomas Dickey
@@ -69,6 +69,7 @@ INSTALL_PROGRAM='${INSTALL}' \
--disable-rpath-link \
--disable-echo \
--verbose \
+ --with-screen=ncursesw6dev \
--enable-warnings
make
diff --git a/Ada95/package/debian/copyright b/Ada95/package/debian/copyright
index 3c8e5256..d4bbc997 100644
--- a/Ada95/package/debian/copyright
+++ b/Ada95/package/debian/copyright
@@ -4,12 +4,12 @@ Current ncurses maintainer: Thomas Dickey
-------------------------------------------------------------------------------
Files: *
-Copyright: 2017-2022,2023 by Thomas E. Dickey
+Copyright: 2017-2024,2025 by Thomas E. Dickey
Copyright: 1998-2016,2017 Free Software Foundation, Inc.
License: X11
Files: aclocal.m4 package
-Copyright: 2010-2020,2021 by Thomas E. Dickey
+Copyright: 2010-2024,2025 by Thomas E. Dickey
License: X11
Permission is hereby granted, free of charge, to any person obtaining a
diff --git a/Ada95/package/debian/rules b/Ada95/package/debian/rules
index 0adde8de..8f8e841c 100755
--- a/Ada95/package/debian/rules
+++ b/Ada95/package/debian/rules
@@ -41,6 +41,7 @@ configure-stamp:
--disable-rpath-link \
--with-shared \
--with-ada-sharedlib \
+ --with-screen=ncursesw6td \
--without-pkg-config
touch configure-stamp
diff --git a/Ada95/package/debian/watch b/Ada95/package/debian/watch
index 1b870ba1..5a8f1d2a 100644
--- a/Ada95/package/debian/watch
+++ b/Ada95/package/debian/watch
@@ -1,4 +1,4 @@
version=3
-opts=passive ftp://ftp.invisible-island.net/AdaCurses/AdaCurses-([\d.]+)\.tgz \
+opts=passive https://invisible-island.net/archives/AdaCurses/AdaCurses-([\d.]+)\.tgz \
debian uupdate
diff --git a/Ada95/samples/Makefile.in b/Ada95/samples/Makefile.in
index 3731085a..ec7e52e5 100644
--- a/Ada95/samples/Makefile.in
+++ b/Ada95/samples/Makefile.in
@@ -1,5 +1,5 @@
##############################################################################
-# Copyright 2018-2020,2021 Thomas E. Dickey #
+# Copyright 2018-2021,2024 Thomas E. Dickey #
# Copyright 1998-2015,2018 Free Software Foundation, Inc. #
# #
# Permission is hereby granted, free of charge, to any person obtaining a #
@@ -29,7 +29,7 @@
#
# Author: Juergen Pfeifer, 1996
#
-# $Id: Makefile.in,v 1.64 2021/07/03 15:45:33 tom Exp $
+# $Id: Makefile.in,v 1.66 2024/08/10 17:56:19 tom Exp $
#
.SUFFIXES:
@@ -78,9 +78,9 @@ LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@
RANLIB = @RANLIB@
################################################################################
-BINDIR = $(DESTDIR)$(bindir)
-DATADIR = $(DESTDIR)$(datadir)
-LIBDIR = $(DESTDIR)$(libdir)
+BINDIR = $(DESTDIR)$(bindir@MERGE_PREFIX@)
+DATADIR = $(DESTDIR)$(datadir@MERGE_PREFIX@)
+LIBDIR = $(DESTDIR)$(libdir@MERGE_PREFIX@)
MY_DATADIR = $(DATADIR)/@ADA_LIBNAME@
THIS_DATADIR = $(datadir)/@ADA_LIBNAME@
@@ -133,7 +133,7 @@ sources :
libs \
install \
-install.libs ::
+install.libs :: $(PROGS)
@echo made $@
uninstall \
diff --git a/Ada95/samples/ncurses2-overlap_test.adb b/Ada95/samples/ncurses2-overlap_test.adb
index c0fd6209..6f3341ba 100644
--- a/Ada95/samples/ncurses2-overlap_test.adb
+++ b/Ada95/samples/ncurses2-overlap_test.adb
@@ -7,7 +7,7 @@
-- B O D Y --
-- --
------------------------------------------------------------------------------
--- Copyright 2020,2021 Thomas E. Dickey --
+-- Copyright 2020-2021,2024 Thomas E. Dickey --
-- Copyright 2000-2014,2015 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
@@ -36,8 +36,8 @@
------------------------------------------------------------------------------
-- Author: Eugene V. Melaragno 2000
-- Version Control
--- $Revision: 1.9 $
--- $Date: 2021/09/04 10:52:55 $
+-- $Revision: 1.10 $
+-- $Date: 2024/03/30 13:21:15 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with ncurses2.util; use ncurses2.util;
@@ -73,8 +73,8 @@ procedure ncurses2.overlap_test is
Get_Size (win, y1, x1);
for y in 0 .. y1 - 1 loop
for x in 0 .. x1 - 1 loop
- if ((x > (x1 - 1) / 3) and (x <= (2 * (x1 - 1)) / 3)) or
- (((y > (y1 - 1) / 3) and (y <= (2 * (y1 - 1)) / 3)))
+ if (x > (x1 - 1) / 3 and x <= (2 * (x1 - 1)) / 3) or
+ (y > (y1 - 1) / 3 and y <= (2 * (y1 - 1)) / 3)
then
Move_Cursor (win, y, x);
Add (win, Ch => ch);
diff --git a/Ada95/samples/ncurses2-trace_set.adb b/Ada95/samples/ncurses2-trace_set.adb
index d2739809..3b1983da 100644
--- a/Ada95/samples/ncurses2-trace_set.adb
+++ b/Ada95/samples/ncurses2-trace_set.adb
@@ -7,7 +7,7 @@
-- B O D Y --
-- --
------------------------------------------------------------------------------
--- Copyright 2020 Thomas E. Dickey --
+-- Copyright 2020,2023 Thomas E. Dickey --
-- Copyright 2000-2011,2014 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
@@ -36,8 +36,8 @@
------------------------------------------------------------------------------
-- Author: Eugene V. Melaragno 2000
-- Version Control
--- $Revision: 1.7 $
--- $Date: 2020/02/02 23:34:34 $
+-- $Revision: 1.8 $
+-- $Date: 2023/06/17 17:21:47 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with ncurses2.util; use ncurses2.util;
@@ -121,7 +121,7 @@ procedure ncurses2.trace_set is
Trace_Attribute_Set'(Character_Calls => True, others => False)),
(new String'("Termcap_TermInfo"),
Trace_Attribute_Set'(Termcap_TermInfo => True, others => False)),
- (new String'("Maximium"),
+ (new String'("Maximum"),
Trace_Maximum)
);
@@ -353,7 +353,7 @@ procedure ncurses2.trace_set is
if subset (tlevel,
Trace_Maximum)
then
- Append (buf, "Maximium");
+ Append (buf, "Maximum");
Append (buf, ", ");
end if;
end if;
diff --git a/Ada95/samples/sample-explanation.adb_p b/Ada95/samples/sample-explanation.adb_p
index f99ceb6f..79348e97 100644
--- a/Ada95/samples/sample-explanation.adb_p
+++ b/Ada95/samples/sample-explanation.adb_p
@@ -7,7 +7,7 @@
-- B O D Y --
-- --
------------------------------------------------------------------------------
--- Copyright 2019,2020 Thomas E. Dickey --
+-- Copyright 2019-2020,2025 Thomas E. Dickey --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
-- copy of this software and associated documentation files (the --
@@ -35,8 +35,8 @@
------------------------------------------------------------------------------
-- Author: Juergen Pfeifer, 1996
-- Version Control
--- $Revision: 1.5 $
--- $Date: 2020/02/02 23:34:34 $
+-- $Revision: 1.6 $
+-- $Date: 2025/01/24 20:39:23 $
-- Binding Version 01.00
------------------------------------------------------------------------------
-- Poor mans help system. This scans a sequential file for key lines and
@@ -136,7 +136,7 @@ package body Sample.Explanation is
H : Help_Line_Access := Top_Line;
begin
if Top_Line /= null then
- for L in 0 .. (Height - 1) loop
+ for L in 0 .. Height - 1 loop
Add (W, L, 0, H.all.Line.all);
exit when H.all.Next = null;
H := H.all.Next;
diff --git a/Ada95/samples/sample-menu_demo-aux.adb b/Ada95/samples/sample-menu_demo-aux.adb
index f430c88c..f64e41da 100644
--- a/Ada95/samples/sample-menu_demo-aux.adb
+++ b/Ada95/samples/sample-menu_demo-aux.adb
@@ -7,7 +7,7 @@
-- B O D Y --
-- --
------------------------------------------------------------------------------
--- Copyright 2020 Thomas E. Dickey --
+-- Copyright 2020,2023 Thomas E. Dickey --
-- Copyright 1998-2006,2009 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
@@ -36,8 +36,8 @@
------------------------------------------------------------------------------
-- Author: Juergen Pfeifer, 1996
-- Version Control
--- $Revision: 1.15 $
--- $Date: 2020/02/02 23:34:34 $
+-- $Revision: 1.16 $
+-- $Date: 2023/06/17 17:21:59 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
@@ -79,7 +79,7 @@ package body Sample.Menu_Demo.Aux is
-- Calculate horizontal coordinate at the screen center
X := (Columns - C) / 2;
- Y := 1; -- always startin line 1
+ Y := 1; -- always starting on line 1
end Geometry;
diff --git a/Ada95/src/Makefile.in b/Ada95/src/Makefile.in
index eb4489b0..c35dbc08 100644
--- a/Ada95/src/Makefile.in
+++ b/Ada95/src/Makefile.in
@@ -1,5 +1,5 @@
##############################################################################
-# Copyright 2018-2020,2021 Thomas E. Dickey #
+# Copyright 2018-2021,2024 Thomas E. Dickey #
# Copyright 1999-2016,2018 Free Software Foundation, Inc. #
# #
# Permission is hereby granted, free of charge, to any person obtaining a #
@@ -29,7 +29,7 @@
#
# Author: Juergen Pfeifer, 1996
#
-# $Id: Makefile.in,v 1.96 2021/07/03 15:45:33 tom Exp $
+# $Id: Makefile.in,v 1.97 2024/08/10 18:18:44 tom Exp $
#
.SUFFIXES:
@@ -51,7 +51,7 @@ exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
-LIBDIR = $(DESTDIR)$(libdir)
+LIBDIR = $(DESTDIR)$(libdir@MERGE_PREFIX@)
ADA_INCLUDE = $(DESTDIR)@ADA_INCLUDE@
ADA_OBJECTS = $(DESTDIR)@ADA_OBJECTS@
diff --git a/Ada95/src/modules b/Ada95/src/modules
index 29a0d8b0..cb1fb84b 100644
--- a/Ada95/src/modules
+++ b/Ada95/src/modules
@@ -1,6 +1,6 @@
-# $Id: modules,v 1.4 2020/02/02 23:34:34 tom Exp $
+# $Id: modules,v 1.5 2024/06/15 20:51:03 tom Exp $
##############################################################################
-# Copyright 2020 Thomas E. Dickey #
+# Copyright 2020,2024 Thomas E. Dickey #
# Copyright 2010 Free Software Foundation, Inc. #
# #
# Permission is hereby granted, free of charge, to any person obtaining a #
@@ -69,3 +69,5 @@ $(ABASE)-text_io-decimal_io $(srcdir) $(srcdir) body
$(ABASE)-text_io-enumeration_io $(srcdir) $(srcdir) body
$(ABASE)-text_io-modular_io $(srcdir) $(srcdir) body
$(ABASE)-text_io-complex_io $(srcdir) $(srcdir) body
+
+# vile:makemode
diff --git a/Ada95/src/terminal_interface-curses-forms.adb b/Ada95/src/terminal_interface-curses-forms.adb
index f50420e6..2e6fd16c 100644
--- a/Ada95/src/terminal_interface-curses-forms.adb
+++ b/Ada95/src/terminal_interface-curses-forms.adb
@@ -7,7 +7,7 @@
-- B O D Y --
-- --
------------------------------------------------------------------------------
--- Copyright 2020 Thomas E. Dickey --
+-- Copyright 2020,2025 Thomas E. Dickey --
-- Copyright 1999-2011,2014 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
@@ -36,8 +36,8 @@
------------------------------------------------------------------------------
-- Author: Juergen Pfeifer, 1996
-- Version Control:
--- $Revision: 1.33 $
--- $Date: 2020/02/02 23:34:34 $
+-- $Revision: 1.34 $
+-- $Date: 2025/01/24 20:39:23 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with Ada.Unchecked_Deallocation;
@@ -1006,7 +1006,7 @@ package body Terminal_Interface.Curses.Forms is
(Field_Array, Field_Array_Access);
begin
if FA /= null and then Free_Fields then
- for I in FA'First .. (FA'Last - 1) loop
+ for I in FA'First .. FA'Last - 1 loop
if FA.all (I) /= Null_Field then
Delete (FA.all (I));
end if;
diff --git a/Ada95/src/terminal_interface-curses-menus.adb b/Ada95/src/terminal_interface-curses-menus.adb
index 76f3e36e..9febcf9d 100644
--- a/Ada95/src/terminal_interface-curses-menus.adb
+++ b/Ada95/src/terminal_interface-curses-menus.adb
@@ -7,7 +7,7 @@
-- B O D Y --
-- --
------------------------------------------------------------------------------
--- Copyright 2018,2020 Thomas E. Dickey --
+-- Copyright 2018-2020,2025 Thomas E. Dickey --
-- Copyright 1999-2011,2014 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
@@ -36,8 +36,8 @@
------------------------------------------------------------------------------
-- Author: Juergen Pfeifer, 1996
-- Version Control:
--- $Revision: 1.34 $
--- $Date: 2020/02/02 23:34:34 $
+-- $Revision: 1.35 $
+-- $Date: 2025/01/24 20:39:23 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with Ada.Unchecked_Deallocation;
@@ -878,7 +878,7 @@ package body Terminal_Interface.Curses.Menus is
(Item_Array, Item_Array_Access);
begin
if IA /= null and then Free_Items then
- for I in IA'First .. (IA'Last - 1) loop
+ for I in IA'First .. IA'Last - 1 loop
if IA.all (I) /= Null_Item then
Delete (IA.all (I));
end if;
diff --git a/Ada95/src/terminal_interface-curses-panels-user_data.adb b/Ada95/src/terminal_interface-curses-panels-user_data.adb
index 504b07d4..4a951a4d 100644
--- a/Ada95/src/terminal_interface-curses-panels-user_data.adb
+++ b/Ada95/src/terminal_interface-curses-panels-user_data.adb
@@ -7,7 +7,7 @@
-- B O D Y --
-- --
------------------------------------------------------------------------------
--- Copyright 2020 Thomas E. Dickey --
+-- Copyright 2020,2025 Thomas E. Dickey --
-- Copyright 1999-2003,2009 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
@@ -36,7 +36,7 @@
------------------------------------------------------------------------------
-- Author: Juergen Pfeifer, 1996
-- Version Control:
--- $Revision: 1.13 $
+-- $Revision: 1.14 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with Interfaces.C;
diff --git a/COPYING b/COPYING
index 2abcc60d..6182a3bc 100644
--- a/COPYING
+++ b/COPYING
@@ -1,4 +1,4 @@
-Copyright 2018-2022,2023 Thomas E. Dickey
+Copyright 2018-2024,2025 Thomas E. Dickey
Copyright 1998-2017,2018 Free Software Foundation, Inc.
Permission is hereby granted, free of charge, to any person obtaining a
@@ -26,4 +26,4 @@ sale, use or other dealings in this Software without prior written
authorization.
-- vile:txtmode fc=72
--- $Id: COPYING,v 1.12 2023/01/07 17:55:53 tom Exp $
+-- $Id: COPYING,v 1.14 2025/01/04 10:53:46 tom Exp $
diff --git a/INSTALL b/INSTALL
index 5b04c34a..afbe12a2 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,5 +1,5 @@
-------------------------------------------------------------------------------
--- Copyright 2018-2022,2023 Thomas E. Dickey --
+-- Copyright 2018-2023,2024 Thomas E. Dickey --
-- Copyright 1998-2017,2018 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
@@ -26,7 +26,7 @@
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
-------------------------------------------------------------------------------
--- $Id: INSTALL,v 1.240 2023/01/08 00:29:04 tom Exp $
+-- $Id: INSTALL,v 1.258 2024/12/28 21:37:40 Branden.Robinson Exp $
---------------------------------------------------------------------
How to install Ncurses/Terminfo on your system
---------------------------------------------------------------------
@@ -35,10 +35,10 @@
* READ ALL OF THIS FILE BEFORE YOU TRY TO INSTALL NCURSES. *
************************************************************
-You should be reading the file INSTALL in a directory called ncurses-d.d, where
-d.d is the current version number. There should be several subdirectories,
-including `c++', `form', `man', `menu', 'misc', `ncurses', `panel', `progs',
-and `test'. See the README file for a roadmap to the package.
+You should be reading the file INSTALL in a directory called ncurses-d.d,
+where d.d is the current version number. There should be several
+subdirectories, including 'c++', 'form', 'man', 'menu', 'misc', 'ncurses',
+'panel', 'progs', and 'test'. See 'README' for a roadmap to the package.
If you are a distribution integrator or packager, please read and act on the
section titled FOR SYSTEM INTEGRATORS below.
@@ -47,9 +47,10 @@ If you are converting from BSD curses and do not have root access, be sure
to read the BSD CONVERSION NOTES section below.
If you are trying to build applications using gpm with ncurses,
-read the USING NCURSES WITH GPM section below.
+read the USING GPM section below.
-If you are cross-compiling, see the note below on BUILDING WITH A CROSS-COMPILER.
+If you are cross-compiling, see the note below on
+BUILDING WITH A CROSS-COMPILER.
If you want to build the Ada95 binding, go to the Ada95 directory and
follow the instructions there. The Ada95 binding is not covered below.
@@ -72,14 +73,14 @@ Ncurses has been also built in the OS/2 EMX environment.
INSTALLATION PROCEDURE:
----------------------
-1. First, decide whether you want ncurses to replace your existing library (in
- which case you'll need super-user privileges) or be installed in parallel
- with it.
+1. First, decide whether you want ncurses to replace your existing library
+ (in which case you'll need super-user privileges) or be installed in
+ parallel with it.
The --prefix option to configure changes the root directory for installing
ncurses. The default is normally in subdirectories of /usr/local, except
for systems where ncurses is normally installed as a system library (see
- "IF YOU ARE A SYSTEM INTEGRATOR"). Use --prefix=/usr to replace your
+ "FOR SYSTEM INTEGRATORS"). Use --prefix=/usr to replace your
default curses distribution.
The package gets installed beneath the --prefix directory as follows:
@@ -106,16 +107,16 @@ INSTALLATION PROCEDURE:
See also the discussion of --with-install-prefix.
-2. Type `./configure' in the top-level directory of the distribution to
+2. Type './configure' in the top-level directory of the distribution to
configure ncurses for your operating system and create the Makefiles.
Besides --prefix, various configuration options are available to customize
- the installation; use `./configure --help' to list the available options.
+ the installation; use './configure --help' to list the available options.
If your operating system is not supported, read the PORTABILITY section in
the file ncurses/README for information on how to create a configuration
file for your system.
- The `configure' script generates makefile rules for one or more object
+ The 'configure' script generates makefile rules for one or more object
models and their associated libraries:
libncurses.a (normal)
@@ -145,7 +146,7 @@ INSTALLATION PROCEDURE:
the library names (e.g., libncursest.a, libncursestw.a).
If you do not specify any models, the normal and debug libraries will be
- configured. Typing `configure' with no arguments is equivalent to:
+ configured. Typing 'configure' with no arguments is equivalent to:
./configure --with-normal --with-debug --enable-overwrite
@@ -176,10 +177,10 @@ INSTALLATION PROCEDURE:
You can make curses and terminfo fall back to an existing file of termcap
definitions by configuring with --enable-termcap. If you do this, the
library will search /etc/termcap before the terminfo database, and will
- also interpret the contents of the TERM environment variable. See the
+ also interpret the contents of the $TERM environment variable. See the
section BSD CONVERSION NOTES below.
-3. Type `make'. Ignore any warnings, no error messages should be produced.
+3. Type 'make'. Ignore any warnings; no error messages should be produced.
This should compile the ncurses library, the terminfo compiler tic(1),
captoinfo(1), infocmp(1), toe(1), clear(1) tset(1), reset(1), and tput(1)
programs (see the manual pages for explanation of what they do), some test
@@ -195,8 +196,9 @@ INSTALLATION PROCEDURE:
database before running the test programs. Not all vendors' terminfo
databases are SVr4-compatible, but most seem to be.
- It is possible to configure ncurses to use other terminfo database formats.
- A few are provided as examples in the include-directory (see --with-caps).
+ It is possible to configure ncurses to use other terminfo database
+ formats. A few are provided as examples in the include-directory (see
+ --with-caps).
If you run the test programs WITHOUT installing terminfo, ncurses may
read the termcap file and cache that in $HOME/.terminfo, which will
@@ -207,21 +209,21 @@ INSTALLATION PROCEDURE:
You can use it to verify that the screen highlights work correctly, that
cursor addressing and window scrolling works OK, etc.
-5. Once you've tested, you can type `make install' to install libraries,
- the programs, the terminfo database and the manual pages. Alternately, you
- can type `make install' in each directory you want to install. In the
+5. Once you've tested, you can type 'make install' to install libraries,
+ the programs, the terminfo database and the manual pages. Alternately,
+ you can type 'make install' in each directory you want to install. In the
top-level directory, you can do a partial install using these commands:
'make install.progs' installs tic, infocmp, etc...
'make install.includes' installs the headers.
'make install.libs' installs the libraries (and the headers).
- 'make install.data' installs the terminfo data. (Note: `tic' must
+ 'make install.data' installs the terminfo data. (Note: 'tic' must
be installed before the terminfo data can be
compiled).
'make install.man' installs the manual pages.
############################################################################
- # CAVEAT EMPTOR: `install.data' run as root will NUKE any existing #
+ # CAVEAT EMPTOR: 'install.data' run as root will NUKE any existing #
# terminfo database. If you have any custom or unusual entries SAVE them #
# before you install ncurses. #
############################################################################
@@ -242,8 +244,8 @@ INSTALLATION PROCEDURE:
compile using its curses.h you'll end up with a large number of
undefined symbols at link time.
- IF YOU DO NOT HAVE ROOT: Change directory to the `progs' subdirectory
- and run the `capconvert' script. This script will deduce various things
+ IF YOU DO NOT HAVE ROOT: Change directory to the 'progs' subdirectory
+ and run the 'capconvert' script. This script will deduce various things
about your environment and use them to build you a private terminfo tree,
so you can use ncurses applications.
@@ -273,13 +275,13 @@ CONFIGURE OPTIONS:
./configure --help
- The --help and several options are common to all configure scripts that are
- generated with autoconf. Those are all listed before the line
+ The --help and several options are common to all configure scripts that
+ are generated with autoconf. Those are all listed before the line
--enable and --with options recognized:
- The other options are specific to this package. We list them in alphabetic
- order.
+ The other options are specific to this package. We list them in
+ alphabetic order.
--disable-assumed-color
With ncurses 5.1, we introduced a new function, assume_default_colors()
@@ -444,7 +446,7 @@ CONFIGURE OPTIONS:
--with-menu-libname=XXX
--with-panel-libname=XXX
- Rather than renaming them abitrarily, a prefix or suffix is
+ Rather than renaming them arbitrarily, a prefix or suffix is
recommended. An "n" prefix provides consistency with ncurses versus
curses, i.e.,
@@ -477,13 +479,17 @@ CONFIGURE OPTIONS:
--disable-root-access
Compile with environment restriction, so most file-access is limited
- when running via a setuid/setgid application.
+ when running as root, or via a setuid/setgid application.
--disable-root-environ
Compile with environment restriction, so certain environment variables
- are not available when running as root, or via a setuid/setgid
- application. These are (for example $TERMINFO) those that allow the
- search path for the terminfo or termcap entry to be customized.
+ are not available when running as root. These are (for example
+ $TERMINFO) those that allow the search path for the terminfo or termcap
+ entry to be customized.
+
+ Disabling the root environment variables also disables the setuid
+ environment variables by default. Use the --disable-setuid-environ
+ option to modify this behavior.
--disable-rpath-hack
Normally the configure script helps link libraries found in unusual
@@ -498,6 +504,16 @@ CONFIGURE OPTIONS:
--disable-stripping
Do not strip installed executables.
+ --disable-setuid-environ
+ Compile with environment restriction, so certain environment variables
+ are not available when running via a setuid/setgid application. These
+ are (for example $TERMINFO) those that allow the search path for the
+ terminfo or termcap entry to be customized.
+
+ A setuid/setgid application inherits its environment variables from
+ the current user, in contrast to sudo which may limit the environment
+ variables that ncurses uses.
+
--disable-tic-depends
When building shared libraries, normally the tic library is linked to
depend upon the ncurses library (or equivalently, on the tinfo-library
@@ -534,8 +550,12 @@ CONFIGURE OPTIONS:
problem.
--enable-bsdpad
- Recognize BSD-style prefix padding. Some ancient BSD programs (such as
- nethack) call tputs("50") to implement delays.
+ Recognize BSD-style prefix padding. Some programs written using
+ the BSD curses API use tputs("50") to implement delays.
+
+ --enable-check-size
+ Compile-in feature to detect screensize for terminals which do not
+ advertise their screensize, e.g., serial terminals.
--enable-colorfgbg
Compile with experimental $COLORFGBG code. That environment variable
@@ -630,6 +650,12 @@ CONFIGURE OPTIONS:
may not be accurate, or that your stty settings have disabled the use
of tabs.
+ --enable-install-prefix
+ Extend the --with-install-prefix feature to replace the prefix value
+ with $DESTDIR rather than simply prepending $DESTDIR to install
+ pathnames. This works with any "make" which supports AT&T style
+ variable substitution.
+
--enable-interop
Compile-in experimental interop bindings. These provide generic types
for the form-library.
@@ -650,9 +676,17 @@ CONFIGURE OPTIONS:
--enable-opaque-form
--enable-opaque-menu
--enable-opaque-panel
- Define symbol in curses.h which controls whether some library
- structures are treated as "opaque". The --enable-opaque-curses option
- is overridden by the --enable-reentrant option.
+ Define symbol in curses.h controlling whether some library structures
+ are opaque, meaning that their members are accessible only via the
+ documented API. The --enable-opaque-curses option may be overridden
+ by the --enable-reentrant option.
+
+ Enabling opaque-curses enables opaque for the form, menu, and panel
+ libraries. Use their corresponding options to disable the feature
+ individually.
+
+ NOTE: beginning with ncurses 6.5 this option is enabled by default;
+ older versions disable it by default.
--enable-pc-files
If pkg-config is found (see --with-pkg-config), generate ".pc" files
@@ -675,7 +709,7 @@ CONFIGURE OPTIONS:
Use rpath option when generating shared libraries, and (with some
restrictions) when linking the corresponding programs. This originally
(in 1997) applied mainly to systems using the GNU linker (read the
- manpage).
+ man page).
More recently it is useful for systems that require special treatment
shared libraries in "unusual" locations. The "system" libraries reside
@@ -798,11 +832,14 @@ CONFIGURE OPTIONS:
symbolic link to equate libncurses.so with libncursesw.so
NOTE: the Ada95 binding may be built against either version of the the
- ncurses library, but you must decide which: the binding installs the
- same set of files for either version. Currently (2002/6/22) it does
+ ncurses library, but you must decide which: the binding installs the
+ same set of files for either version. Currently (2023/10/21) it does
not use the extended features from the wide-character code, so it is
probably better to not install the binding for that configuration.
+ NOTE: beginning with ncurses 6.5 this option is enabled by default;
+ older versions disable it by default.
+
--enable-xmc-glitch
Compile-in support experimental xmc (magic cookie) code.
@@ -908,8 +945,9 @@ CONFIGURE OPTIONS:
script supplies "unsigned").
--with-config-suffix=XXX
- Specify a suffix for the ncursesw6-config file, etc., used to work
- around conflicts with packages.
+ Specify an suffix for "ncurses*" in the ncurses*-config filename to
+ work around conflicts with packages. The suffix is placed before the
+ dash.
--with-cxx-libname=NAME
Override the basename of the ncurses++ library (default: "ncurses++")
@@ -1014,7 +1052,7 @@ CONFIGURE OPTIONS:
See also the --enable-getcap option.
--with-infocmp-path[=XXX]
- Use this option to override the automatic detection of tic in your
+ Use this option to override the automatic detection of infocmp in your
$PATH when building fallbacks (see "--with-fallbacks").
--with-install-prefix=XXX
@@ -1065,34 +1103,35 @@ CONFIGURE OPTIONS:
./configure --enable-static
--with-manpage-aliases
- Tell the configure script you wish to create entries in the
- man-directory for aliases to manpages which list them, e.g., the
- functions in the panel manpage. This is the default. You can disable
- it if your man program does this. You can also disable
- --with-manpage-symlinks to install files containing a ".so" command
- rather than symbolic links.
+ Create files in subdirectories of the installation "man" directory that
+ alias the man pages documenting them. For example, the "beep" man page
+ also documents the function "flash". This is the default. You can
+ disable this procedure if your system's makewhatis(8) or mandb(8)
+ program indexes the directory to which the pages are installed. If you
+ disable man page symlinks by specifying "--without-manpage-symlinks",
+ the alias pages are created as stubs containing ".so" *roff requests.
--with-manpage-format=XXX
Tell the configure script how you would like to install man-pages. The
- option value must be one of these: gzip, compress, BSDI, normal,
- formatted. If you do not give this option, the configure script
+ option value must be one of these: "gzip", "compress", "BSDI", "normal",
+ "formatted". If you do not specify this option, the configure script
attempts to determine which is the case.
--with-manpage-renames=XXX
- Tell the configure script that you wish to rename the manpages while
- installing. Currently the only distribution which does this is Debian.
+ Tell the configure script that you wish to rename the man pages when
+ installing them. Debian and distributions descended from it do this.
The option value specifies the name of a file that lists the renamed
- files, e.g., $srcdir/man/man_db.renames
+ files, e.g., "$srcdir/man/man_db.renames".
--with-manpage-symlinks
Tell the configure script that you wish to make symbolic links in the
man-directory for aliases to the man-pages. This is the default, but
- can be disabled for systems that provide this automatically. Doing
- this on systems that do not support symbolic links will result in
- copying the man-page for each alias.
+ can be disabled for systems that provide this service automatically.
+ Doing this on systems that do not support symbolic links creates a copy
+ of the target man page for each alias.
--with-manpage-tbl
- Tell the configure script that you wish to preprocess the manpages
+ Tell the configure script that you wish to preprocess the man pages
by running them through tbl to generate tables understandable by
nroff.
@@ -1130,9 +1169,10 @@ CONFIGURE OPTIONS:
Override the basename of the panel library (default: "panel")
--with-pc-suffix=SUFFIX
- If ".pc" files are installed, optionally add a suffix to the files
- and corresponding package names to separate unusual configurations.
- If no option value is given (or if it is "none"), no suffix is added.
+ If ".pc" files are installed (see --enable-pc-files), optionally add a
+ suffix to the files and corresponding package names to separate
+ unusual configurations. If no option value is given (or if it is
+ "none"), no suffix is added.
--with-pcre2
Add PCRE2 (Perl-compatible regular expressions v2) to the build if it
@@ -1143,12 +1183,20 @@ CONFIGURE OPTIONS:
not supplied by the development environment, while ncurses' form
library uses a regular expression feature for one of the field types.
- --with-pkg-config=[DIR]
- Check for pkg-config, optionally specifying its path.
+ --with-pkg-config[=CMD]
+ Check for pkg-config, optionally specifying its pathname.
- --with-pkg-config-libdir=[DIR]
+ --with-pkg-config-libdir[=DIR]
If pkg-config was found, override the automatic check for its library
- path. The configure script allows only a single directory, because
+ path. The optional DIR value can be
+
+ "auto", automatically use pkg-config's library directory, or
+
+ "libdir", use a ${libdir}/pkgconfig (based on the configuration), or
+
+ a directory path, i.e., beginning with "/".
+
+ The configure script allows only a single directory, because
that is used as the directory in which to install ".pc" files.
The automatic check for the library path prefers the first directory
@@ -1158,12 +1206,6 @@ CONFIGURE OPTIONS:
default), or if pkg-config lists nothing suitable, the first one which
is listed by pkg-config is used.
- Automatic selection is overridden by providing an option-value
- beginning with "/".
-
- If this option is omitted, the default directory for installing
- ".pc" files is ${libdir}/pkgconfig
-
--with-profile
Generate profile-libraries These are named by adding "_p" to the root,
e.g., libncurses_p.a
@@ -1222,6 +1264,10 @@ CONFIGURE OPTIONS:
This is normally chosen automatically based on the type of system
which you are building on. We use it for testing the configure script.
+ --with-strip-program=XXX
+ When stripping executables during install, use the specified program
+ rather than "strip".
+
--with-sysmouse
use FreeBSD sysmouse interface provide mouse support on the console.
@@ -1236,7 +1282,7 @@ CONFIGURE OPTIONS:
Specify a search-list of terminfo directories which will be compiled
into the ncurses library (default: DATADIR/terminfo)
- This is a colon-separated list, like the TERMINFO_DIRS environment
+ This is a colon-separated list, like the $TERMINFO_DIRS environment
variable.
--with-termlib[=XXX]
@@ -1312,11 +1358,9 @@ CONFIGURE OPTIONS:
several builds, some symbols will be listed in the the ".map" files
that do not happen to be present in one configuration or another.
- The sample ".map" (and ".sym") files are generated using a set of
- scripts which build several configurations for each release version,
- checking to see which of the "_nc_" symbols can be made local. In
- addition to the ncurses libraries and programs, the symbols used
- by the "tack" program before version 1.08 are made global.
+ The sample ".map" (and ".sym") files were generated using a set of
+ scripts which built several configurations for each release version,
+ checking to see which of the "_nc_" symbols can be made local.
These sample ".map" files will not cover all possible combinations.
In some cases, e.g., when using the --with-weak-symbols option, you
@@ -1342,7 +1386,8 @@ CONFIGURE OPTIONS:
--with-xterm-kbs=XXX
Configure xterm's terminfo entries to use either BS (^H, i.e., ASCII
backspace) or DEL (^?, or 127). XXX can be BS (or bs, 8) or DEL
- (or del, 127).
+ (or del, 127). If XXX is "auto", the configure script chooses BS or
+ DEL according to platform defaults.
During installation, the makefile and scripts modifies the "xterm+kbs"
terminfo entry to use this setting.
@@ -1353,10 +1398,10 @@ CONFIGURE OPTIONS:
--without-curses-h
Don't install the ncurses header with the name "curses.h". Rather,
- install as "ncurses.h" and modify the installed headers and manpages
+ install as "ncurses.h" and modify the installed headers and man pages
accordingly.
- Likewise, do not install an alias "curses" for the ncurses manpage.
+ Likewise, do not install an alias "curses" for the ncurses man page.
--without-cxx
XSI curses declares "bool" as part of the interface. C++ also declares
@@ -1379,18 +1424,13 @@ CONFIGURE OPTIONS:
Do not use dlsym() to load GPM dynamically.
--without-manpages
- Tell the configure script to suppress the install of ncurses' manpages.
+ Tell the configure script to suppress the install of ncurses' man pages.
--without-progs
Tell the configure script to suppress the build of ncurses' application
programs (e.g., tic). The test applications will still be built if you
type "make", though not if you simply do "make install".
- --without-tack
- Suppress build/install with tack program, if it happens to be
- in the same build-tree (tack was moved out of the ncurses source-tree
- in 20070203).
-
--without-tests
Tell the configure script to suppress the build of ncurses' test
programs.
@@ -1416,6 +1456,35 @@ COMPATIBILITY WITH OLDER RELEASES:
you may encounter when building a system with different versions of
ncurses:
+ 6.5 (Apt 27, 2024)
+ Interface changes:
+
+ + the WINDOW structure and some related internal data types declared
+ in have been made opaque by default;
+ + the FORM, MENU, and PANEL structures and related internal data types
+ from their corresponding header files have been made opqaue by
+ default; and
+ + support for wide characters is now enabled by default.
+
+ Added extensions:
+
+ + is_cbreak, is_echo, is_nl, and is_raw, as well as "_sp" variants
+
+ + tiparm_s and tiscan_s
+
+ Added internal functions (other than "_sp" variants):
+
+ + _nc_env_access
+
+ Removed internal functions:
+
+ + none
+
+ Modified internal functions:
+
+ + These now pass a const parameter: _nc_delink_entry, _nc_str_copy,
+ and _nc_trans_string
+
6.4 (Dec 31, 2022)
Interface changes:
@@ -2231,10 +2300,10 @@ FOR SYSTEM INTEGRATORS:
Naming the Console Terminal
In various systems there has been a practice of designating the system
- console driver type as `console'. Please do not do this! It
+ console driver type as 'console'. Please do not do this! It
complicates peoples' lives, because it can mean that several different
terminfo entries from different operating systems all logically want to
- be called `console'.
+ be called 'console'.
Please pick a name unique to your console driver and set that up
in the /etc/inittab table or local equivalent. Send the entry to the
@@ -2472,4 +2541,4 @@ BUG REPORTS:
The Hacker's Guide in the doc directory includes some guidelines
on how to report bugs in ways that will get them fixed most quickly.
--- vile:txtmode
+-- vile:txtmode fc=78
diff --git a/MANIFEST b/MANIFEST
index 1156b49e..9e506b48 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -343,7 +343,7 @@
./doc/html/announce.html
./doc/html/hackguide.html
./doc/html/index.html
-./doc/html/man/adacurses6-config.1.html
+./doc/html/man/adacursesw6-config.1.html
./doc/html/man/captoinfo.1m.html
./doc/html/man/clear.1.html
./doc/html/man/curs_add_wch.3x.html
@@ -464,7 +464,7 @@
./doc/html/man/mitem_value.3x.html
./doc/html/man/mitem_visible.3x.html
./doc/html/man/ncurses.3x.html
-./doc/html/man/ncurses6-config.1.html
+./doc/html/man/ncursesw6-config.1.html
./doc/html/man/new_pair.3x.html
./doc/html/man/panel.3x.html
./doc/html/man/resizeterm.3x.html
@@ -1012,7 +1012,7 @@
./package/debian-mingw/compat
./package/debian-mingw/control
./package/debian-mingw/copyright
-./package/debian-mingw/mingw32-ncurses6.lintian-overrides
+./package/debian-mingw/mingw32-ncurses6td.lintian-overrides
./package/debian-mingw/rules
./package/debian-mingw/source/format
./package/debian-mingw/watch
@@ -1020,7 +1020,7 @@
./package/debian-mingw64/compat
./package/debian-mingw64/control
./package/debian-mingw64/copyright
-./package/debian-mingw64/mingw64-ncurses6.lintian-overrides
+./package/debian-mingw64/mingw64-ncurses6td.lintian-overrides
./package/debian-mingw64/rules
./package/debian-mingw64/source/format
./package/debian-mingw64/watch
@@ -1028,10 +1028,10 @@
./package/debian/compat
./package/debian/control
./package/debian/copyright
-./package/debian/ncurses6.lintian-overrides
-./package/debian/ncurses6.triggers
-./package/debian/ncursest6.lintian-overrides
-./package/debian/ncursest6.triggers
+./package/debian/ncurses6td.lintian-overrides
+./package/debian/ncurses6td.triggers
+./package/debian/ncursest6td.lintian-overrides
+./package/debian/ncursest6td.triggers
./package/debian/rules
./package/debian/source/format
./package/debian/watch
@@ -1218,6 +1218,7 @@
./test/test_addwstr.c
./test/test_arrays.c
./test/test_delwin.c
+./test/test_endwin.c
./test/test_get_wstr.c
./test/test_getstr.c
./test/test_instr.c
diff --git a/NEWS b/NEWS
index bc5be49f..0b8280cd 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,5 @@
-------------------------------------------------------------------------------
--- Copyright 2018-2022,2023 Thomas E. Dickey --
+-- Copyright 2018-2024,2025 Thomas E. Dickey --
-- Copyright 1998-2017,2018 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
@@ -26,7 +26,7 @@
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
-------------------------------------------------------------------------------
--- $Id: NEWS,v 1.3919 2023/03/12 00:14:16 tom Exp $
+-- $Id: NEWS,v 1.4257 2025/03/01 21:57:13 tom Exp $
-------------------------------------------------------------------------------
This is a log of changes that ncurses has gone through since Zeyd started
@@ -46,6 +46,722 @@ See the AUTHORS file for the corresponding full names.
Changes through 1.9.9e did not credit all contributions;
it is not possible to add this information.
+20250301
+ + add color to vt525 (Branden Robinson)
+ + add vt520-w and vt525-w (Branden Robinson)
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + improve configurability of alloca() as used in Windows ports.
+ + fix some typos in manpages.
+ + modify configure script checks for stdbool.h to fix build with older
+ gcc version.
+
+20250222
+ + modify treatment of "n" parameter for waddnstr, waddnwstr, and
+ wins_nwstr to return OK when "n" is zero, for consistency with other
+ implementations (report by Benjamin Barenblat, cf: 20231118).
+ + formatting improvements for terminfo.5 (Debian #1096164).
+
+20250216
+ + add limit-checks in alloc_entry.c and alloc_ttype.c to avoid indexing
+ errors when using infocmp to compare all capabilities when processing
+ a malformed terminfo binary which has a valid header (testcase by
+ "Ekkosun").
+
+20250215
+ + add gzip option for suppressing filename/timestamp information to an
+ overlooked case (cf: 20240330).
+ + correct spelling errors found with codespell.
+ + fix some typos in manpages (report by Sven Joachim)
+ + amend change to lib_set_term.c to work with thread configuration
+ (report by Rajeev Pillai, cf: 20250208).
+
+20250208
+ + change etip.h.in to include either/both of and ,
+ needed for another old BSD.
+ + update st (report by Alexander Kashpir) -TD
+ + add note for ghostty 1.1.0 -TD
+ + fix a few issues found with coverity.
+
+20250201
+ + add to the possible headers declaring the C++ std::bad_alloc
+ (report by Carl Hansen).
+ + modify check for stdbool.h to be more conservative in case the
+ headers are used with a compiler other than that which was used to
+ configure (Redhat #2342514).
+ + improve MKlib_gen.sh handling of "bool" type, for building link_test
+ + improve formatting/style of manpages (patches by Branden Robinson).
+
+20250125
+ + improve error-handling in c++ binding (report by Mingjie Shen).
+ + strict compiler-warning fixes for upcoming gcc15
+
+20250118
+ + improve pattern used for configure --with-xterm-kbs option (report by
+ Mingyu Wang)
+ + update configure macros, from work on cdk and dialog.
+ + change a parameter name in curs_sp_funcs.3x, for consistency (patch
+ by "WHR").
+ > patches by Branden Robinson:
+ + improve formatting/style of manpages
+ + change winwstr() to a generated function, using the macro definition,
+ moving its handling of negative length parameter into winnwstr().
+ + correct actual-function name in a few trace calls.
+
+20250111
+ + add check for infinite loop in tic's use-resolution.
+ + increase limit on use-clauses from 32 to 40, warn but allow entries
+ which exceed the old limit.
+ + add some null-pointer checks after mallocs in test-programs.
+
+20250104
+ + modify tput to warn about capabilities which expect parameters where
+ none are given; also repair the feature where multiple capabilities
+ can be handled on a single line.
+ + cleanup use-clauses -TD
+ + add linux+lockeys, xterm+r5+lockeys, xterm+r5+fkeys -TD
+ + add vt220+ufkeys, vt220+sfkeys
+ + revert man/manlinks.sed change, which loses aliases (cf: 20241228).
+ + modify MKlib_gen.c to allow for Solaris's definition of NULL as 0L
+
+20241228
+ + correct conditional-compile for a case when the C compiler does not
+ have a bool type.
+ + add ghostty -TD
+ > patches by Branden Robinson:
+ + add comments to generated term.h to hint the configure options used
+ + use same subdir-convention for term.h, in configure script
+ + improve formatting/style of manpages
+
+20241221
+ + modify ncurses/tinfo/MKfallback.sh to work with MacOS sed, which
+ lacks BSD-style \< and \>
+ + trim padding from sgr expression used in trim_sgr0, to avoid copying
+ the padding into the resulting sgr0 (report by Rajeev Pillai).
+ + strict compiler-warning fixes for upcoming gcc15
+
+20241214
+ + avoid redefining bool in curses.h if the platform already supports
+ that type (cf: 20241123).
+ + move include from etip.h.in to cursesw.h, to work around
+ breakage in Apple's port of ncurses.
+ + strict compiler-warning fixes for upcoming gcc15
+
+20241207
+ + strict compiler-warning fixes for upcoming gcc15
+
+20241130
+ + improve configure check for lint program.
+ + adjust options in test-programs to allow for consistent use of -c/-l
+ for command/logging.
+ + modify win_driver.c for MinGW to handle shift-tab and control-tab as
+ back-tab (report by Axel Reinhold)
+
+20241123
+ + remove dependency on stdbool.h from configure script check for type
+ of bool when C++ binding is omitted (report by Sam James).
+ + compiler-warning fixes
+
+20241109
+ + work around musl header ifdef's (report by Urs Jansen, cf: Gentoo
+ #920266).
+ + improve error-reporting in write_entry.c (report by Changqing Li).
+ + remove unused #include from DJGPP configuration (report by Stas
+ Sergeev).
+ + workaround/fix issues from clang-analyze
+
+20241102
+ + remove djgpp-specific initialization to binary mode (report/patch by
+ Stas Sergeev).
+ + add extended-keys for djgpp 2.05 -TD
+
+20241026
+ + update ms-terminal -TD
+ + add ms-terminal-direct -TD
+ + correct dimensions in test/popup_msg.c, fixing an overrun (patch by
+ Stas Sergeev, cf: 20211219).
+
+20241019
+ + fixes for compiler warnings/cppcheck.
+ + build-fixes for DJGPP configuration (patches by Stas Sergeev)
+
+20241006
+ + fixes for compiler warnings/cppcheck.
+ + use xterm+alt+title in wezterm -TD
+
+20240928
+ + improve error-message from infocmp when a terminal entry cannot be
+ opened (patch by Branden Robinson).
+ + improve filtering of -L options in misc/gen-pkgconfig.in and in
+ misc/ncurses-config.in
+ + add check in wresize() for out-of-range dimensions (report by Peter
+ Bierma).
+
+20240922
+ + add a few null-pointer checks in ncurses
+ + improve test-driver in ncurses/link_test.c
+ + restore background character in manpages as described in X/Open
+ Curses section 3.3.6, and add option "-c" to test programs to
+ illustrate a non-blank character in the window background property.
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + modify ncurses*-config to add -I option in --cflag where needed for
+ --disable-overwrite to match ".pc" files.
+ + disallow directories and block/character devices in safe-open.
+ + amend scr_restore() and scr_init() to remove the target window only
+ after validating the source window which will replace the target
+ (report by Zixi Liu).
+
+20240914
+ + modify _nc_flush() to also flush stderr to help the flash capability
+ to work in bash (patch by Harm te Hennepe, cf: 20201128)
+ + omit -g and -fXXX flags from CFLAGS in misc/ncurses-config.in
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + improve examples in NCURSES-Programming-HOWTO.html
+ + update comments in terminfo.src -TD
+
+20240831
+ + build-fix for a case in msys2 where gettimeofday() was available but
+ the fallback was partly configured.
+ > patch by Rafael Kitover:
+ + separate the _NC_WINDOWS platform macro into _NC_WINDOWS_NATIVE,
+ for MinGW and other native Win32 support, and _NC_WINDOWS, to make
+ some Win32 features available under the Cygwin runtime, in this case
+ the term-driver.
+ + make some minor adjustments to allow
+ ./configure --enable-term-driver
+ to also work on Cygwin platforms such as Cygwin and MSYS2.
+
+20240824
+ + modify infocmp and tabs to use actual name in usage and header.
+ + modify test/demo_keyok.c to accept ^Q for quit, for consistency.
+
+20240817
+ + review/update foot for 1.18.1 -TD
+ + add a note about DomTerm 3.2.0 -TD
+ + add new glob-expressions variables to list in config.status script
+ (patch by Werner Fink).
+ + add --enable-install-prefix to modify behavior of $DESTDIR to merge
+ or replace the value set by --prefix (adapted from suggestion by
+ Eli Zaretskii).
+
+20240810
+ + modify misc/Makefile.in and misc/run_tic.in so that $DESTDIR is set
+ and used only in the makefile.
+ + modify CF_WITH_PKG_CONFIG_LIBDIR to allow for pkg-config using
+ DOS/Windows pathname syntax (report by Eli Zaretskii).
+ + improve glob-expressions in configure script
+ + remove unused Get_Menu_Screen() macro from menu.priv.h
+ + update config.guess, config.sub
+
+20240727
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + fixes for compiler warnings/cppcheck.
+ + modify wattron/wattroff calls in form/m_post.c to call wattr_on and
+ wattr_off to omit cast used in the former for X/Open compatibility
+ (patch by Bill Gray).
+ + modify wezterm, omitting its broken left/right margin feature (report
+ by Thayne McCombs) -TD
+
+20240720
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + modify configure script and misc/Makefile to accept glob expressions
+ that include Windows/DOS drive-letters (report by Eli Zaretskii).
+ + fix misspelled ifdef and correct return-value of _nc_mingw_tcflush in
+ win_driver.c (report/patch by Eli Zaretskii).
+
+20240713
+ + modify misc/ncurses-config.in, improved match with pkg-config output.
+
+20240706
+ + update configure script to use macro changes from dialog.
+ + modify CF_NCURSES_PTHREADS to avoid equating package and library
+ names.
+
+20240629
+ + build-fix for ncurses-examples with newer PDCurses, which no longer
+ has stubs for unimplemented features.
+ + add help-popup for test_instr.c, test_inwstr.c
+ + modify checks in delwin to avoid checking if the window is a pad
+ until first checking if it is still on the active window-list
+ (cf: 20211115).
+ + improve -t option of test/gdc.c, allowing hours only, or hours and
+ minutes only.
+
+20240622
+ + improve test/gdc.c (patch by Branden Robinson).
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + adjust naming of mingw *-config scripts to match the pkg-config names
+ + widen pattern in pc/*-config scripts to disallow more linker options
+ + add --cflags-only-I and --cflags-only-other options to
+ misc/ncurses-config.in
+ + revert change to CF_BUILD_CC macro (report by Vassili Courzakis,
+ cf: 20240518).
+
+20240615
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + review/update modules files.
+ + improve install-rules in Ada95 makefiles (report by Branden Robinson).
+ + improve formatting/style of manpages in test-directory.
+
+20240608
+ + change winwstr to return wide character count instead of OK (patch
+ by Branden Robinson).
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + rename testing dpkg's for ncurses6 to resolve a naming conflict with
+ Debian's ncurses packages.
+
+20240601
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + change Ada95/configure to use --with-screen option rather than
+ --enable-widec, to provide more choices of underlying curses library
+
+20240525
+ + build-fix for configure option --disable-ext-funcs
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + review/update iTerm2 for 3.5.0 -TD
+
+20240519
+ + update Ada95/configure to match change for -DTRACE
+ + revert change to include/ncurses_defs, which caused build failure if
+ tracing was not enabled (report by Branden Robinson).
+
+20240518
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + move makefile's -DTRACE into include/ncurses_cfg.h, to simplify use
+ of CFLAGS/CPPFLAGS.
+ + improve check for clock_gettime(), from xterm.
+ + modify configure script to work around broken gnatgcc script found in
+ gcc-13 builds.
+
+20240511
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + limit value from ESCDELAY environment variable to 30 seconds, like
+ other delay limits.
+ + limit values from LINES and COLUMNS environment variables to 512
+ (report by Miroslav Lichvar).
+
+20240504
+ + update ncurses/wcwidth.c, for MinGW ports, from xterm.
+ + trim obsolete comment about tack from INSTALL.
+
+20240427 6.5 release for upload to ftp.gnu.org
+ + update announcement
+ + fixes/corrections for manpages (patches by Branden Robinson).
+ + fix redefinition of CASTxPTR, for legacy Unix.
+
+20240420
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + compiler warning/portability fixes.
+
+20240414
+ + build/bug-fix for check-size feature (reports by Sam James, Gabriele
+ Balducci).
+
+20240413
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + provide for padding in check-size feature, using new_prescr() to
+ pass interim SCREEN pointer.
+ + complete change for opaque options (Gentoo #928973, cf: 20231021).
+ + update package /debian/rules and related lintian overrides
+ + revise progs.priv.h to provide for NC_ISATTY reuse
+
+20240330
+ + remove masking of ISIG in cbreak() (report by Benno Schulenberg).
+ + modify test/test_mouse.c to use curses api for raw/noraw.
+ > improved configure macros from other program development:
+ + build-fix for clang on Solaris
+ + suppress filename/timestamp in gzip'd manpages (suggested for
+ byacc by Andrin Geiger)
+
+20240323
+ + modify tput/tset reset feature to avoid 1-second sleep if running in
+ a pseudo-terminal.
+ + modify check-size feature to avoid using it in a pseudoterminal
+ (cf: 20231016)
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + trim a space after some "-R" options, fixing builds for applications
+ built using clang and ncurses on Solaris.
+
+20240309
+ + modify xgterm to work around line-drawing bug -TD
+ + use CSI 3J in vte-2017 (report by Sven Joachim)
+
+20240302
+ + add configure check for MB_LEN_MAX, to provide warning as needed.
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + fix regression in tput which disallowed hex/octal parameters (report
+ by Werner Fink, cf: 20230408)
+ + update config.guess, config.sub
+
+20240224
+ + improve man/curs_mouse.3x style (Branden Robinson, Sven Joachim).
+ + provide for CCHARW_MAX greater than 1
+ + eliminate use of PATH_MAX in lib_trace.c
+ + work around misconfiguration of MacPorts gcc13, which exposes invalid
+ definition of MB_LEN_MAX in gcc's fallback copy of limits.h (MacPorts
+ #69374).
+
+20240217
+ + add vt100+noapp, vt100+noapp+pc, xterm+app+pc, xterm+decedit from
+ xterm #389 -TD
+ + fix inconsistent description of wmouse_trafo() (Debian #1059778).
+ + modify wenclose() to handle pads (Debian #1059783).
+ + improve manpage discussion of mouseinterval() (Debian #1058560).
+
+20240210
+ + compiler-warning fixes, while investigating an optimizer bug in
+ "gcc (MacPorts gcc13 13.2.0_4+stdlib_flag) 13.2.0"
+ which results in only the first byte of a multibyte character being
+ printed to the screen.
+
+20240203
+ + minor changes to tracing and locale-checks.
+
+20240127
+ + amend change to z39-a (report by Sven Joachim).
+ + use xterm+nopcfkeys, vt52-basic, dec+pp, dec+sl, vt52+arrows,
+ hp+pfk+cr, klone+acs, klone+color, klone+sgr, ncr160wy50+pp
+ to trim -TD
+ + NetBSD-related fixes for x68k and wsvt25 (patch by Thomas Klausner)
+
+20240120
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + amend discussion of aliases in tput.1
+ + use ansi+sgrbold, ansi+sgrdim, ansi+sgrso, ansi+sgrul, ansi+tabs
+ ecma+color, ecma+sgr, vt100+4bsd, vt100+pfkeys, vt220+pcedit
+ xterm+256color, xterm+acs, xterm+nopcfkeys, xterm+pcf2 to trim -TD
+ + modify configure scripts/makefiles to omit KEY_RESIZE if the
+ corresponding SIGWINCH feature is disabled.
+
+20240113
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + modify dist.mk to avoid passing developer's comments in manpages into
+ the generated html documentation.
+ + use ansi+local, ansi+local1, ansi+pp, ansi+rca, ansi+rca2, ansi+sgr
+ to trim -TD
+ + restore padding for wy520* and vt320-k311 (report by Sven Joachim).
+
+20240106
+ + use ansi+arrows, ansi+apparrows, ansi+csr, ansi+erase, ansi+idc,
+ ansi+idc1, ansi+idl, ansi+idl1, ansi+inittabs to trim -TD
+ + minor manpage formatting changes for consistency.
+ + modify doc-html test package's install-directory, per lintian.
+ + add attr_get.3x to man_db.renames.in (patch by Sven Joachim).
+
+20231230
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + add ms-vt100-16color, winconsole -TD
+ + add rio, rio-direct -TD
+ + add mostlike -TD
+ + add wezterm, contour -TD
+
+20231223
+ + improve formatting/style of manpages (patches by Branden Robinson).
+
+20231217
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + correct an assignment in infocmp "-u" for detecting if a boolean
+ is unset in a base entry and set in a use'd chunk, i.e., if it was
+ cancelled.
+ + modify infocmp "-u" option to not report cancels for strings which
+ were already cancelled in a use'd chunk.
+ + join two lines in infotocap.3x to eliminate a spurious "description"
+ link in installed manpages (report by Sven Joachim).
+ + fix typo in NEWS (report by Sven Joachim).
+
+20231209
+ + modify infocmp "-u" option to not report cancels in use'd chunks
+ which are not mentioned in the top-level terminal description.
+ + remove xterm+sm+1006 from tmux (Debian #1057688).
+ + used "infocmp -u" to help trim redundant capabilities -TD
+ + updated man/edit_man.sh to allow for "\%" markers embedded after
+ bold font escapes in manpage cross-references (Debian #1057651).
+ + reduce compiler-warnings in configure checks
+
+20231202
+ + correct initial alignment of extended capabilities in infocmp, so
+ that the "-u" option can be used for more than two terminal types.
+ + improve formatting/style of manpages, changing environment variables
+ to italics (patches by Branden Robinson).
+
+20231125
+ + add information about "ttycap", termcap's forerunner, to tset.1
+ (patch by Branden Robinson).
+ + improve formatting/style of manpages, including section reordering
+ (patches by Branden Robinson).
+ + modify usage messages in configure script, bracketing optional values
+ (report by Branden Robinson).
+
+20231121
+ + amend fix for Debian #1055882, correcting nul terminator check in
+ waddnstr (Debian #1056340).
+
+20231118
+ + improve description of length-parameter and error-returns in several
+ manpages: curs_addchstr.3x, curs_addstr.3x, curs_addwstr.3x,
+ curs_in_wch.3x, curs_in_wchstr.3x, curs_inchstr.3x, curs_ins_wstr.3x,
+ curs_insstr.3x, curs_instr.3x, curs_inwstr.3x
+ + amend parameter check for entire string versus specific length in
+ winsnstr() and wins_nwstr() to match Solaris.
+ + make similar correction to wins_nwstr().
+ + correct loop termination condition in waddnstr() and waddnwstr()
+ (Debian #1055882, cf: 20201205).
+
+20231111
+ + used "infocmp -u" to help trim redundant capabilities -TD
+ + add limit checks in infocmp needed when processing extended
+ capabilities with the "-u" option.
+ + fix inconsistent sort-order in see-also sections of manpages.
+ + fix a few compiler warnings for Solaris 10.
+ + modify endwin() to return an error if it is called again without an
+ intervening screen update (report by Rajeev Pillai, NetBSD #57592).
+
+20231104
+ + modify reset command to avoid altering clocal if the terminal uses a
+ modem (prompted by discussion with Werner Fink, Michal Suchanek,
+ OpenSUSE #1201384, Debian #60377).
+ + build-fixes for --with-caps variations.
+ + correct a couple of section-references in INSTALL.
+
+20231028
+ + move xterm focus mode 1004 from xterm+sm+1006 into xterm+focus as
+ fe/fd capabilities, like vim (vim-pr #13440).
+ + modify --with-pkg-config-libdir option to make "libdir" the default,
+ as documented, rather than "auto" (report by Branden Robinson).
+ + improve messages from configure script (patches by Branden Robinson).
+
+20231021
+ + use oldxterm+sm+1006 in vte-2014 (report by Benno Schulenberg) -TD
+ + add ansi+apparrows -TD
+ + change defaults for configure opaque and widec options (prompted by
+ discussion with Branden Robinson).
+ + minor cleanup of compiler- and manpage-warnings.
+
+20231016
+ + make the recent change to setupterm optional "--enable-check-size"
+ (Debian #1054022).
+
+20231014
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + updated configure script macro CF_XOPEN_SOURCE, for uClibc-ng
+ + update config.guess, config.sub
+
+20231007
+ + improve loop-limit for get_position().
+ + improve manual description of immedok (Debian #1053603).
+ + fix a few formatting issues with manpages (Debian #1053123).
+ + improve formatting/style of manpages (patches by Branden Robinson).
+
+20231001
+ + modify setupterm to provide for using ANSI cursor-position report (in
+ user6/user7 terminfo capabilities) to obtain screensize if neither
+ environment variables or ioctl is used. The ncurses test-program
+ with options "-E -T" demonstrates this feature.
+ + improve error messages in tic (patch by Branden Robinson).
+ + improve formatting/style of manpages (patches by Branden Robinson).
+ + modify test/clip_printw.c to optionally test non-wrapped updates.
+ + fix reallocation loop for vsnprintf() in _nc_sprintf_string() by
+ copying the va_list variable (patch by Ian Abbott).
+
+20230923
+ + improve formatting of manpages (patches by Branden Robinson).
+ + amend change to delscreen() to limit the windows which it creates to
+ just those associated with the screen (report by Frederic Boiteux,
+ cf: 20220813).
+
+20230918
+ + new tarball/errata (report by Sven Joachim).
+
+20230917
+ + improve formatting of manpages (integrated patches by Branden
+ Robinson).
+ + correct limit for name-length in write_entry.c (report/testcase by
+ Luna Saphie Mittelbach).
+ + limit delays to 30 seconds, i.e., padding delays in terminfo, as well
+ as napms() and delay_output() functions.
+ + improve a few pointer-checks.
+ + improve parsing in _nc_msec_cost, allowing a single decimal point.
+
+20230909
+ + improve formatting of manpages (patches by Branden Robinson), for
+ captoinfo.1m and terminfo.5
+ > patches by Nicholas Marriott:
+ + use string-hacks in alloc_entry.c, alloc_type.c and hardscroll.c,
+ overlooked due to compiler changes in recent OpenBSD releases.
+ + add "-6" option to ncu2openbsd script.
+
+20230902
+ + improve description of search rules for terminal descriptions in
+ terminfo manpage (report by Sven Joachim).
+
+20230826
+ + fixes for compiler-warnings.
+ + update config.guess, config.sub
+
+20230819
+ + various manpage-formatting fixes.
+ + correct formatting of table header in curs_inopts.3x (Branden
+ Robinson).
+ + correct manpage description of panel_hidden (report by Benjamin
+ Mordaunt).
+
+20230812
+ + add/use putty+cursor to reflect amending of modified cursor-keys in
+ 2021 -TD
+ + add ecma+strikeout to putty -TD
+ + add functions to query tty-flags in SCREEN (request by Bill Gray).
+
+20230805
+ + fix a few manpages needing tbl marker, seen by lintian warning.
+ + fixes for compiler-warnings.
+ + minor grammatical fix for manpages (Branden Robinson).
+
+20230729
+ + improve manpages for wgetnstr() and wget_nwstr().
+ + modify MinGW configuration to provide for running in MSYS/MSYS2
+ shells, assuming ConPTY support (patch by Pavel Fedin).
+ + add assignment in CF_MAN_PAGES to fill in value for TERMINFO_DIRS in
+ ncurses, terminfo and tic manpages (patch by Sven Joachim).
+
+20230722
+ + add "auto" default for --with-xterm-kbs configure option.
+
+20230715
+ + correct wadd_wch_literal() when adding a non-spacing character to a
+ double-width character.
+ + improve manual page for curs_util.
+ + improve manual page for wadd_wch().
+
+20230708
+ + add linux+kbs for terminals which imitate xterm's behavior with
+ Linux -TD
+ + modify MinGW driver to return KEY_BACKSPACE when an unmodified
+ VK_BACK virtual key is entered (prompted by patch by Pavel Fedin,
+ Savannah #64292).
+ + disallow using $TERMINFO or $HOME/.terminfo when tic "-o" option is
+ used (report by Sven Joachim, Debian #1040048).
+
+20230701
+ + fix mandoc warnings about unnecessary markup.
+ + improve parameter check in tparm_setup()
+
+20230625
+ + adjust man/make_sed.sh to work with dates as the third field of TH.
+ + fixes for out-of-memory condition (report by "eaglegai").
+
+20230624
+ + fixes for out-of-memory condition (report by "eaglegai").
+
+20230617
+ + markup manpages with revision information (prompted by discussion
+ with Bjarni Ingi Gislason).
+
+20230615
+ + modify _nc_read_file_entry() to show relevant filename in warnings.
+ + improve checks in convert_string() for corrupt terminfo entry (report
+ and test-case by Gregory James Duck).
+
+20230610
+ + improve manpages discussing file descriptors in low-level functions.
+ + modify flushinp to use file descriptors in SCREEN, rather than from
+ TERMINAL, and check if they are for a terminal, like SVr4.
+ + modify mcprint to use file descriptor in SCREEN, for consistency.
+ + add xterm+focus to foot+base (patch by Daniel Ekloef).
+ + correct definition of Charable() for non-wide ncurses library (report
+ and test-case by Zbigniew Baniewski).
+
+20230603
+ + add configure option --with-strip-program, to override program
+ chosen by the install program for stripping executables (prompted
+ by discussion with Aapo Rantalainen).
+ + fix typo in INSTALL (report/patch by Aapo Rantalainen).
+ + improve error-checks for isEILSEQ()
+ + increase MB_CUR_MAX to 16, matching glibc's MB_LEN_MAX.
+ + corrected mouse mask in test/testcurs.c
+ + improve thread lock in lib_trace.c
+
+20230527
+ + fixes for compiler warnings/cppcheck.
+
+20230520
+ + fixes for compiler warnings in MinGW environments.
+
+20230514
+ + modify test-package "ncurses6-doc" to use manpage-aliases, which in
+ turn required a change to the configure script to factor in the
+ extra-suffix option when deriving alias names.
+ + add mode 1004 to xterm+sm+1006 from xterm #380 -TD
+
+20230506
+ > build-fixes related to configure-options and/or platform:
+ + fix for --enable-fvisibility
+ + fix for unusual values of --with-rel-version
+ + fix for unusual values of --with-abi-version
+ + fix for --disable-tcap-names
+ + fix for termcap in nc_access.h (report by Werner Fink).
+
+20230429
+ + revise recent change to _nc_write_entry to isolate it to a Cygwin bug
+ (cf: 20230311)
+ + amend fix for wgetnstr, wgetn_wstr to use cbreak mode unless raw
+ mode was set (cf: 20210522).
+ + fix a few warnings from cppcheck, etc.
+ + correct copy/paste error in nc_access.h (report by Werner Fink).
+
+20230424
+ + check return value of _nc_save_str(), in special case for tic where
+ extended capabilities are processed but the terminal description was
+ not initialized (report by Ziqiao Kong).
+ + regenerate llib-* files.
+
+20230423
+ + add tiscan_s() to help applications check formatting capabilities
+ that would be passed to tiparm_s, etc.
+ + add tiparm_s() to provide applications a way to tell ncurses what
+ the expected parameters are for a capability (tmux #3531).
+ + improve check in lib_tparm.c, ensuring that a char* fits into a
+ TPARM_ARG.
+ + add --disable-setuid-environ configure option (request by Sven
+ Joachim).
+ + drop compatibility with obsolete versions of tack, e.g., pre-1.08
+ (Debian #1034549, cf: 20170722).
+
+20230418
+ + improve checks for limits on privileged execution:
+ + modify _nc_syserr_abort() to use _nc_env_access(), rather than
+ only checking root uid.
+ + use getauxval() when available, to improve setuid/setgid checks.
+ + modify test packages to disable root access/environ options.
+ + modify tgoto() to accept no-parameter capabilities, for joe editor
+ (OpenSUSE #1210485, Gentoo #904263).
+
+20230415
+ + configure script fixes:
+ + fix copy/paste error in configure option --disable-root-access
+ (report/patch by Sven Joachim).
+ + modify CF_XOPEN_SOURCE macro's amend default case to avoid
+ undefining _XOPEN_SOURCE if _POSIX_C_SOURCE is defined.
+ + modify test_tparm to account for extended capabilities.
+ + add checks in tparm() and tiparm() for misuse of numeric parameters,
+ overlooked in 20230408.
+ + fix errata in clear.1 and curs_terminfo.3x
+
+20230408
+ + document limitations of tparm, and error-returns in curs_terminfo.3x
+ + document limitations of tgoto, and error-returns in curs_termcap.3x
+ + add xterm+focus to alacritty+common (patch by Christian Duerr).
+ + add "-v" option to tput, to show warnings.
+ > improve checks for malformed terminfo data (report/analysis by
+ Jonathan Bar Or, Michael Pearse, Emanuele Cozzi).
+ + make the parameter type/count checks in _nc_tiparm() more stringent
+ + update tgoto() to account for _nc_tiparm() changes
+ + add checks in tparm() and tiparm() for misuse of string parameters
+ + add special cases in tput to handle extensions Cs/Ms parameters
+ + ignore compiled-terminfo where the array sizes exceed the standard
+
+20230401
+ + modify experimental Windows driver to work with xterm mouse protocol.
+ + remove DECCOLM+DECSCLM from foot (patch by Daniel Ekloef).
+
20230311
+ improve manpage description for addch versus unctrl format used for
non-printable characters.
@@ -3843,7 +4559,7 @@ it is not possible to add this information.
20140621
+ change shared-library suffix for AIX 5 and 6 to ".so", avoiding
conflict with the static library (report by Ben Lentz).
- + document RPATH_LIST in INSTALLATION file, as part of workarounds for
+ + document RPATH_LIST in INSTALL file, as part of workarounds for
upgrading an ncurses library using the "--with-shared" option.
+ modify test/ncurses.c c/C tests to cycle through subsets of the
total number of colors, to better illustrate 8/16/88/256-colors by
@@ -5344,7 +6060,7 @@ it is not possible to add this information.
function pointer passed to tputs().
+ modify init_pair() to accept -1's for color value after
assume_default_colors() has been called (Debian #337095).
- + modify test/background.c, adding commmand-line options to demonstrate
+ + modify test/background.c, adding command-line options to demonstrate
assume_default_colors() and use_default_colors().
20110416
@@ -10211,7 +10927,7 @@ it is not possible to add this information.
wide-character structures (report by ).
+ ensure that _XOPEN_SOURCE_EXTENDED is defined in curses.priv.h if
compiling for wide-character configuration.
- + make addwnstr() handle non-spacing characters (patch by Sven
+ + make addnwstr() handle non-spacing characters (patch by Sven
Verdoolaege).
20010630
@@ -11079,7 +11795,7 @@ it is not possible to add this information.
+ add mgterm terminfo entry from NetBSD, minor adjustments to sun-ss5,
aixterm entries -TD
+ modify tack/ansi.c to make it more tolerant of bad ANSI replies. An
- example of an illegal ANSI resonse can be found using Microsoft's
+ example of an illegal ANSI response can be found using Microsoft's
Telnet client. A correct display can be found using a VT-4xx
terminal or XFree86 xterm with:
XTerm*VT100*decTerminalID: 450
@@ -11973,7 +12689,7 @@ it is not possible to add this information.
+ correct a typo in term.7 (Todd C Miller).
+ add configure --with-shlib-version option to allow installing shared
libraries named according to release or ABI versions. This
- parameterizes some existing logic in the configure script, and is
+ parametrizes some existing logic in the configure script, and is
intended for compatibility upgrades on Digital Unix, which used
versioned libraries in ncurses 4.2, but no longer does (cf: 980425).
+ resync configure script against autoconf 2.13 + patches
diff --git a/README b/README
index 84998f23..5587f5b7 100644
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
-------------------------------------------------------------------------------
--- Copyright 2020,2021 Thomas E. Dickey --
+-- Copyright 2020-2021,2023 Thomas E. Dickey --
-- Copyright 1998-2012,2018 Free Software Foundation, Inc. --
-- --
-- Permission is hereby granted, free of charge, to any person obtaining a --
@@ -26,7 +26,7 @@
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
-------------------------------------------------------------------------------
--- $Id: README,v 1.29 2021/06/17 21:20:30 tom Exp $
+-- $Id: README,v 1.31 2023/10/28 14:49:04 tom Exp $
-------------------------------------------------------------------------------
README file for the ncurses package
@@ -35,18 +35,19 @@ See the file INSTALL for instructions on how to build and install ncurses.
See the file NEWS for a release history and bug-fix notes.
See the file TO-DO for things that still need doing, including known bugs.
-Browse the file misc/ncurses-intro.html for narrative descriptions of how
+Browse the file doc/html/ncurses-intro.html for narrative descriptions of how
to use ncurses and the panel, menu, and form libraries.
Browse the file doc/html/hackguide.html for a tour of the package internals.
+Find plain text versions of both of these documents in doc/.
+
ROADMAP AND PACKAGE OVERVIEW:
You should be reading this file in a directory called: ncurses-d.d, where d.d
is the current version number (see the dist.mk file in this directory for
that). There should be a number of subdirectories, including `c++', `form',
-`man', `menu', `misc', `ncurses', `panel', `progs', `test', 'tack' and `Ada95'.
-(The 'tack' program may be distributed separately).
+`man', `menu', `misc', `ncurses', `panel', `progs', `test', and `Ada95'.
A full build/install of this package typically installs several libraries, a
handful of utilities, and a database hierarchy. Here is an inventory of the
@@ -81,7 +82,7 @@ version.
If you configure using the --enable-reentrant option, a "t" is appended to the
library names (e.g., libncursest.a) and the resulting libraries have a
-different binary interface which makes the ncurses interface more "opaque".
+different binary interface, making the ncurses interface more opaque.
The ncurses libraries implement the curses API. The panel, menu and forms
libraries implement clones of the SVr4 panel, menu and forms APIs. The source
@@ -89,9 +90,9 @@ code for these lives in the `ncurses', `panel', `menu', and `form' directories
respectively.
In the `c++' directory, you'll find code that defines an interface to the
-curses, forms, menus and panels library packaged as C++ classes, and a demo program in C++
-to test it. These class definition modules are not installed by the 'make
-install.libs' rule as libncurses++.
+curses, forms, menus and panels library packaged as C++ classes, and a demo
+program in C++ to test it. These class definition modules are not installed
+by the 'make install.libs' rule as libncurses++.
In the `Ada95' directory, you'll find code and documentation for an
Ada95 binding of the curses API, to be used with the GNAT compiler.
@@ -102,8 +103,8 @@ for documentation of the binding.
To do its job, the ncurses code needs your terminal type to be set in the
environment variable TERM (normally set by your OS; under UNIX, getty(1)
-typically does this, but you can override it in your .profile); and, it needs a
-database of terminal descriptions in which to look up your terminal type's
+typically does this, but you can override it in your .profile); and, it needs
+a database of terminal descriptions in which to look up your terminal type's
capabilities.
In older (V7/BSD) versions of curses, the database was a flat text file,
@@ -117,10 +118,10 @@ second form.
In the `misc' directory, there is a text file terminfo.src, in editable
terminfo format, which can be used to generate the terminfo binaries (that's
what make install.data does). If the package was built with the
---enable-termcap option enabled, and the ncurses library cannot find a terminfo
-description for your terminal, it will fall back to the termcap file supplied
-with your system (which the ncurses package installation leaves strictly
-alone).
+--enable-termcap option enabled, and the ncurses library cannot find a
+terminfo description for your terminal, it will fall back to the termcap file
+supplied with your system (which the ncurses package installation leaves
+strictly alone).
The utilities are as follows:
@@ -176,8 +177,8 @@ Eric S. Raymond:
xterm mouse support, and the ncurses test program.
Juergen Pfeifer
- The menu and form libraries, C++ bindings for ncurses, menus, forms and
- panels, as well as the Ada95 binding. Ongoing support for panel.
+ The menu and form libraries, C++ bindings for ncurses, menus, forms
+ and panels, as well as the Ada95 binding. Ongoing support for panel.
CONTRIBUTORS:
@@ -216,3 +217,5 @@ BUGS:
See the INSTALL file for bug and developer-list addresses.
The Hacker's Guide in the doc directory includes some guidelines
on how to report bugs in ways that will get them fixed most quickly.
+
+-- vile:txtmode fc=78
diff --git a/VERSION b/VERSION
index 2565b033..32d413ba 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5:0:10 6.4 20230311
+5:0:10 6.5 20250301
diff --git a/aclocal.m4 b/aclocal.m4
index 9a53f26b..9c185a3a 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1,5 +1,5 @@
dnl***************************************************************************
-dnl Copyright 2018-2022,2023 Thomas E. Dickey *
+dnl Copyright 2018-2024,2025 Thomas E. Dickey *
dnl Copyright 1998-2017,2018 Free Software Foundation, Inc. *
dnl *
dnl Permission is hereby granted, free of charge, to any person obtaining a *
@@ -29,7 +29,7 @@ dnl***************************************************************************
dnl
dnl Author: Thomas E. Dickey 1995-on
dnl
-dnl $Id: aclocal.m4,v 1.1037 2023/03/05 19:30:13 tom Exp $
+dnl $Id: aclocal.m4,v 1.1104 2025/02/23 01:49:45 tom Exp $
dnl Macros used in NCURSES auto-configuration script.
dnl
dnl These macros are maintained separately from NCURSES. The copyright on
@@ -67,7 +67,7 @@ $ac_includes_default
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_ABI_DEFAULTS version: 4 updated: 2023/01/07 16:32:06
+dnl CF_ABI_DEFAULTS version: 5 updated: 2023/10/21 08:54:23
dnl ---------------
dnl Provide configure-script defaults for different ncurses ABIs.
AC_DEFUN([CF_ABI_DEFAULTS],[
@@ -88,9 +88,10 @@ cf_dft_opaque_curses=no
cf_dft_ordinate_type=short
cf_dft_signed_char=no
cf_dft_tparm_arg=long
+cf_dft_widec=no
cf_dft_with_lp64=no
-# ABI 6 defaults:
+# ABI 6 default differences from ABI 5:
case x$cf_cv_abi_default in
(x[[6789]])
cf_dft_chtype=uint32_t
@@ -102,17 +103,18 @@ case x$cf_cv_abi_default in
cf_dft_filter_syms=yes
cf_dft_interop=yes
cf_dft_mmask_t=uint32_t
+ cf_dft_opaque_curses=yes
cf_dft_tparm_arg=intptr_t
+ cf_dft_widec=yes
cf_dft_with_lp64=yes
;;
esac
-# ABI 7 defaults:
+# ABI 7 default differences from ABI 6:
case x$cf_cv_abi_default in
(x[[789]])
cf_dft_ccharw_max=6
cf_dft_mmask_t=uint64_t
- cf_dft_opaque_curses=yes
cf_dft_ordinate_type=int
cf_dft_signed_char=yes
# also: remove the wgetch-events feature in ABI 7
@@ -596,54 +598,25 @@ AC_DEFUN([CF_AWK_BIG_PRINTF],
esac
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_BOOL_DECL version: 8 updated: 2004/01/30 15:51:18
+dnl CF_BOOL_DECL version: 11 updated: 2025/02/22 20:49:45
dnl ------------
-dnl Test if 'bool' is a builtin type in the configured C++ compiler. Some
+dnl Test if 'bool' is a builtin type in the configured C/C++ compiler. Some
dnl older compilers (e.g., gcc 2.5.8) don't support 'bool' directly; gcc
dnl 2.6.3 does, in anticipation of the ANSI C++ standard.
dnl
-dnl Treat the configuration-variable specially here, since we're directly
-dnl substituting its value (i.e., 1/0).
-dnl
dnl $1 is the shell variable to store the result in, if not $cv_cv_builtin_bool
AC_DEFUN([CF_BOOL_DECL],
[
-AC_MSG_CHECKING(if we should include stdbool.h)
-
-AC_CACHE_VAL(cf_cv_header_stdbool_h,[
- AC_TRY_COMPILE([],[bool foo = false],
- [cf_cv_header_stdbool_h=0],
- [AC_TRY_COMPILE([
-#ifndef __BEOS__
-#include
-#endif
-],[bool foo = false],
- [cf_cv_header_stdbool_h=1],
- [cf_cv_header_stdbool_h=0])])])
-
-if test "$cf_cv_header_stdbool_h" = 1
-then AC_MSG_RESULT(yes)
-else AC_MSG_RESULT(no)
-fi
-
-AC_MSG_CHECKING([for builtin bool type])
-
-AC_CACHE_VAL(ifelse($1,,cf_cv_builtin_bool,[$1]),[
+AC_REQUIRE([CF_C99_STDBOOL_H])
+AC_CACHE_CHECK(for builtin bool type, ifelse($1,,cf_cv_builtin_bool,[$1]),[
AC_TRY_COMPILE([
-#include
-#include
-],[bool x = false],
- [ifelse($1,,cf_cv_builtin_bool,[$1])=1],
- [ifelse($1,,cf_cv_builtin_bool,[$1])=0])
- ])
-
-if test "$ifelse($1,,cf_cv_builtin_bool,[$1])" = 1
-then AC_MSG_RESULT(yes)
-else AC_MSG_RESULT(no)
-fi
+$ac_includes_default
+],[bool x = false; (void)x],
+ [ifelse($1,,cf_cv_builtin_bool,[$1])=yes],
+ [ifelse($1,,cf_cv_builtin_bool,[$1])=no])])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_BOOL_SIZE version: 20 updated: 2023/02/18 17:41:25
+dnl CF_BOOL_SIZE version: 22 updated: 2025/02/22 20:49:45
dnl ------------
dnl Test for the size of 'bool' in the configured C++ compiler (e.g., a type).
dnl Don't bother looking for bool.h, since it has been deprecated.
@@ -652,6 +625,7 @@ dnl If the current compiler is C rather than C++, we get the bool definition
dnl from .
AC_DEFUN([CF_BOOL_SIZE],
[
+AC_REQUIRE([CF_C99_STDBOOL_H])
AC_CHECK_SIZEOF(bool,,[
$ac_includes_default
@@ -667,7 +641,7 @@ $ac_includes_default
#else
-#if $cf_cv_header_stdbool_h
+#if $USE_STDBOOL_H
#include
#endif
@@ -691,7 +665,7 @@ $ac_includes_default
#else
-#if $cf_cv_header_stdbool_h
+#if $USE_STDBOOL_H
#include
#endif
@@ -700,7 +674,7 @@ $ac_includes_default
int main(void)
{
FILE *fp = fopen("cf_test.out", "w");
- if (fp != 0) {
+ if (fp != NULL) {
bool x = true;
if ((bool)(-x) >= 0)
fputs("unsigned ", fp);
@@ -739,7 +713,7 @@ if test "$cf_cv_type_of_bool" = unknown ; then
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_BUILD_CC version: 11 updated: 2022/12/04 15:40:08
+dnl CF_BUILD_CC version: 14 updated: 2024/12/14 11:58:01
dnl -----------
dnl If we're cross-compiling, allow the user to override the tools and their
dnl options. The configure script is oriented toward identifying the host
@@ -817,7 +791,7 @@ if test "$cross_compiling" = yes ; then
AC_TRY_RUN([#include
int main(int argc, char *argv[])
{
- ${cf_cv_main_return:-return}(argc < 0 || argv == 0 || argv[0] == 0);
+ ${cf_cv_main_return:-return}(argc < 0 || argv == (void*)0 || argv[0] == (void*)0);
}
],
cf_ok_build_cc=yes,
@@ -894,6 +868,27 @@ AC_SUBST(HAVE_STDNORETURN_H)
AC_SUBST(STDC_NORETURN)
])dnl
dnl ---------------------------------------------------------------------------
+dnl CF_C99_STDBOOL_H version: 1 updated: 2025/02/22 20:49:45
+dnl ----------------
+dnl Check if we can compile using and get a valid "bool" type.
+AC_DEFUN([CF_C99_STDBOOL_H],
+[
+AC_CACHE_CHECK(if we can include stdbool.h,cf_cv_header_stdbool_h,[
+ AC_TRY_COMPILE([
+$ac_includes_default
+#include
+],[bool foo = false; (void)foo],
+ [cf_cv_header_stdbool_h=yes],
+ [AC_TRY_COMPILE([],[bool foo = false; (void)foo],
+ [cf_cv_header_stdbool_h=no])])])
+
+if test "$cf_cv_header_stdbool_h" = yes
+then USE_STDBOOL_H=1
+else USE_STDBOOL_H=0
+fi
+AC_SUBST(USE_STDBOOL_H)
+])dnl
+dnl ---------------------------------------------------------------------------
dnl CF_CC_ENV_FLAGS version: 11 updated: 2023/02/20 11:15:46
dnl ---------------
dnl Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
@@ -1194,7 +1189,7 @@ __attribute__ ((visibility("default"))) int somefunc() {return 42;}
])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_CHECK_GETENV version: 3 updated: 2023/01/05 17:47:56
+dnl CF_CHECK_GETENV version: 5 updated: 2024/12/14 16:09:34
dnl ---------------
dnl Check if repeated getenv calls return the same pointer, e.g., it does not
dnl discard the previous pointer when returning a new one.
@@ -1246,7 +1241,7 @@ int main(void)
for (j = 0; environ[j]; ++j) {
mynames[j] = str_alloc(environ[j]);
equals = strchr(mynames[j], '=');
- if (equals != 0) {
+ if (equals != NULL) {
*equals++ = '\\0';
myvalues[j] = str_alloc(equals);
} else {
@@ -1271,7 +1266,7 @@ int main(void)
}
}
} while (found);
- sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
+ sprintf(value, "%lu:%p", (unsigned long) k, (void*)&mynames[j]);
set_value(name, value);
mynames[j] = str_alloc(name);
myvalues[j] = str_alloc(value);
@@ -1409,7 +1404,7 @@ then
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_CHECK_LIBTOOL_VERSION version: 2 updated: 2021/05/01 16:24:34
+dnl CF_CHECK_LIBTOOL_VERSION version: 3 updated: 2024/06/12 04:19:01
dnl ------------------------
dnl Show the version of libtool
dnl
@@ -1425,6 +1420,7 @@ then
AC_MSG_CHECKING(version of $LIBTOOL)
CF_LIBTOOL_VERSION
AC_MSG_RESULT($cf_cv_libtool_version)
+ ifdef([LT_PACKAGE_VERSION],,[
if test -n "$cf_cv_libtool_version"
then
cf_check_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e 's,[[()]],...,g' -e 's,[[ ]],-,g' -e '2,$d'`
@@ -1438,12 +1434,26 @@ then
else
AC_MSG_ERROR(No version found for $LIBTOOL)
fi
+ ])
else
AC_MSG_ERROR(GNU libtool has not been found)
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_CHECK_WCHAR_H version: 4 updated: 2023/02/18 17:41:25
+dnl CF_CHECK_TYPE2 version: 2 updated: 2024/12/14 16:33:06
+dnl --------------
+dnl CF_CHECK_TYPE version: 5 updated: 2024/12/14 16:09:34
+dnl -------------
+dnl Check if the given type can be declared via the given header.
+dnl $1 = the type to check
+dnl $2 = the header (i.e., not one of the default includes)
+AC_DEFUN([CF_CHECK_TYPE2],[
+ AC_CHECK_TYPES($1,,,[
+$ac_includes_default
+ifelse($2,,,[#include <$2>])])
+])dnl
+dnl ---------------------------------------------------------------------------
+dnl CF_CHECK_WCHAR_H version: 5 updated: 2023/12/03 09:21:34
dnl ----------------
dnl Check if wchar.h can be used, i.e., without defining _XOPEN_SOURCE_EXTENDED
AC_DEFUN([CF_CHECK_WCHAR_H],[
@@ -1463,7 +1473,7 @@ $ac_includes_default
#endif
],[
wint_t foo = 0;
- int bar = iswpunct(foo)],
+ int bar = iswpunct(foo); (void) bar],
[cf_cv_wchar_h_okay=yes],
[cf_cv_wchar_h_okay=no])])
@@ -1473,7 +1483,7 @@ then
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_CHECK_WCWIDTH_GRAPHICS version: 3 updated: 2023/01/05 18:01:30
+dnl CF_CHECK_WCWIDTH_GRAPHICS version: 5 updated: 2024/12/14 16:09:34
dnl -------------------------
dnl Most "modern" terminal emulators are based to some degree on VT100, and
dnl should support line-drawing. Even with Unicode. There is a problem.
@@ -1582,7 +1592,7 @@ int
main(void)
{
FILE *fp;
- int value;
+ unsigned value;
char buffer[MY_LEN + 1];
char notes[MY_LEN + 1];
int totals = 0;
@@ -1592,15 +1602,15 @@ main(void)
setlocale(LC_ALL, "en_US.UTF-8") ||
setlocale(LC_ALL, "en_US.utf8") ||
setlocale(LC_ALL, "en_US.utf-8")) {
- if ((fp = fopen("conftest.in", "r")) != 0) {
- while (fgets(buffer, MY_LEN, fp) != 0) {
+ if ((fp = fopen("conftest.in", "r")) != NULL) {
+ while (fgets(buffer, MY_LEN, fp) != NULL) {
if (*buffer == '-') {
fprintf(stderr, "\\t%s", buffer);
} else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
++totals;
- if (wcwidth(value) == 1)
+ if (wcwidth((int)value) == 1)
++passed;
- fprintf(stderr, "%d\\t%s", wcwidth(value), buffer);
+ fprintf(stderr, "%d\\t%s", wcwidth((int)value), buffer);
} else {
fprintf(stderr, "?\\t%s", buffer);
}
@@ -1685,7 +1695,7 @@ if test "x$ifelse([$2],,CLANG_COMPILER,[$2])" = "xyes" ; then
fi
])
dnl ---------------------------------------------------------------------------
-dnl CF_CONST_X_STRING version: 7 updated: 2021/06/07 17:39:17
+dnl CF_CONST_X_STRING version: 9 updated: 2024/12/04 03:49:57
dnl -----------------
dnl The X11R4-X11R6 Xt specification uses an ambiguous String type for most
dnl character-strings.
@@ -1712,7 +1722,7 @@ CF_SAVE_XTRA_FLAGS([CF_CONST_X_STRING])
AC_TRY_COMPILE(
[
-#include
+$ac_includes_default
#include
],
[String foo = malloc(1); free((void*)foo)],[
@@ -1720,9 +1730,10 @@ AC_TRY_COMPILE(
AC_CACHE_CHECK(for X11/Xt const-feature,cf_cv_const_x_string,[
AC_TRY_COMPILE(
[
+#undef _CONST_X_STRING
#define _CONST_X_STRING /* X11R7.8 (perhaps) */
#undef XTSTRINGDEFINES /* X11R5 and later */
-#include
+$ac_includes_default
#include
],[String foo = malloc(1); *foo = 0],[
cf_cv_const_x_string=no
@@ -1745,7 +1756,7 @@ esac
])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_CPP_OVERRIDE version: 1 updated: 2022/08/20 16:07:10
+dnl CF_CPP_OVERRIDE version: 2 updated: 2024/11/09 18:07:29
dnl ---------------
dnl Check if the C++ compiler accepts the override keyword. This is a C++-11
dnl feature.
@@ -1760,7 +1771,7 @@ AC_CACHE_CHECK(if $CXX accepts override keyword,cf_cv_cpp_override,[
class base
{
public:
- virtual int foo(float x) = 0;
+ virtual int foo(float x) = 0;
};
@@ -2271,7 +2282,7 @@ AC_DEFUN([CF_ERRNO],
CF_CHECK_ERRNO(errno)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_ETIP_DEFINES version: 6 updated: 2021/01/02 17:09:14
+dnl CF_ETIP_DEFINES version: 7 updated: 2023/10/28 11:59:01
dnl ---------------
dnl Test for conflicting definitions of exception in gcc 2.8.0, etc., between
dnl math.h and builtin.h, only for ncurses
@@ -2303,7 +2314,7 @@ AC_TRY_COMPILE([
],[])
done
done
-AC_MSG_RESULT($cf_result)
+AC_MSG_RESULT([${cf_result:-(none)}])
CXXFLAGS="$cf_save_CXXFLAGS"
])
dnl ---------------------------------------------------------------------------
@@ -2531,7 +2542,7 @@ fi
AC_SUBST(EXTRA_CFLAGS)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_FOPEN_BIN_R version: 3 updated: 2023/01/05 18:05:46
+dnl CF_FOPEN_BIN_R version: 4 updated: 2024/12/14 16:09:34
dnl --------------
dnl Check if fopen works when the "b" (binary) flag is added to the mode
dnl parameter. POSIX ignores the "b", which c89 specified. Some very old
@@ -2545,14 +2556,14 @@ int main(void)
{
FILE *fp = fopen("conftest.tmp", "wb");
int rc = 0;
- if (fp != 0) {
+ if (fp != NULL) {
int p, q;
for (p = 0; p < 256; ++p) {
fputc(p, fp);
}
fclose(fp);
fp = fopen("conftest.tmp", "rb");
- if (fp != 0) {
+ if (fp != NULL) {
for (p = 0; p < 256; ++p) {
q = fgetc(fp);
if (q != p) {
@@ -2585,7 +2596,7 @@ unset ac_ct_$1
unset $1
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_FUNC_DLSYM version: 4 updated: 2015/09/12 14:46:44
+dnl CF_FUNC_DLSYM version: 5 updated: 2024/12/14 16:09:34
dnl -------------
dnl Test for dlsym() and related functions, as well as libdl.
dnl
@@ -2605,9 +2616,12 @@ if test "$cf_have_dlsym" = yes ; then
test "$cf_have_libdl" = yes && { CF_ADD_LIB(dl) }
AC_MSG_CHECKING(whether able to link to dl*() functions)
- AC_TRY_LINK([#include ],[
+ AC_TRY_LINK([
+ #include
+ #include
+ ],[
void *obj;
- if ((obj = dlopen("filename", 0)) != 0) {
+ if ((obj = dlopen("filename", 0)) != NULL) {
if (dlsym(obj, "symbolname") == 0) {
dlclose(obj);
}
@@ -2620,19 +2634,36 @@ else
fi
])
dnl ---------------------------------------------------------------------------
-dnl CF_FUNC_GETTIME version: 2 updated: 2023/02/25 08:45:56
+dnl CF_FUNC_GETTIME version: 3 updated: 2024/05/11 13:40:02
dnl ---------------
dnl Check for gettimeofday or clock_gettime. In 2023, the former is still more
dnl widely supported, but "deprecated" (2008), so we will use the latter if it
dnl is available, to reduce compiler warnings.
AC_DEFUN([CF_FUNC_GETTIME],[
-AC_CACHE_CHECK(for clock_gettime,cf_cv_func_clock_gettime,[
- AC_TRY_LINK([#include ],
+cf_save_libs="$LIBS"
+AC_CHECK_FUNC(clock_gettime,
+ cf_cv_test_clock_gettime=yes,
+ AC_CHECK_LIB(rt, clock_gettime,
+ [LIBS="-lrt $LIBS"
+ cf_cv_test_clock_gettime=yes],
+ cf_cv_test_clock_gettime=no))
+
+if test "$cf_cv_test_clock_gettime" = yes ; then
+AC_CACHE_CHECK(if clock_gettime links,cf_cv_func_clock_gettime,[
+ AC_TRY_LINK([
+$ac_includes_default
+#include
+ ],
[struct timespec ts;
- int rc = clock_gettime(CLOCK_REALTIME, &ts); (void) rc; (void)ts],
+ int rc = clock_gettime(CLOCK_REALTIME, &ts)
+ + clock_gettime(CLOCK_MONOTONIC, &ts);
+ (void) rc; (void)ts],
[cf_cv_func_clock_gettime=yes],
[cf_cv_func_clock_gettime=no])
])
+else
+ cf_cv_func_clock_gettime=no
+fi
if test "$cf_cv_func_clock_gettime" = yes
then
@@ -2647,7 +2678,7 @@ AC_CHECK_LIB(bsd, gettimeofday,
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_FUNC_GETTTYNAM version: 2 updated: 2023/01/05 18:06:28
+dnl CF_FUNC_GETTTYNAM version: 3 updated: 2024/12/14 16:09:34
dnl -----------------
dnl Check if the 4.3BSD function getttyname exists, as well as if
dnl defines the _PATH_TTYS symbol. If the corresponding file exists, but the
@@ -2684,7 +2715,7 @@ $ac_includes_default
int main(void) {
FILE *fp = fopen(_PATH_TTYS, "r");
- ${cf_cv_main_return:-return} (fp == 0);
+ ${cf_cv_main_return:-return} (fp == NULL);
}],
[cf_cv_have_PATH_TTYS=yes],
[cf_cv_have_PATH_TTYS=no],
@@ -2772,7 +2803,7 @@ int main(void) {
test "$cf_cv_func_nanosleep" = "yes" && AC_DEFINE(HAVE_NANOSLEEP,1,[Define to 1 if we have nanosleep()])
])
dnl ---------------------------------------------------------------------------
-dnl CF_FUNC_OPENPTY version: 6 updated: 2021/01/01 13:31:04
+dnl CF_FUNC_OPENPTY version: 7 updated: 2023/12/03 09:21:34
dnl ---------------
dnl Check for openpty() function, along with header. It may need the
dnl "util" library as well.
@@ -2789,6 +2820,7 @@ AC_CACHE_CHECK(for openpty header,cf_cv_func_openpty,[
],[
int x = openpty((int *)0, (int *)0, (char *)0,
(struct termios *)0, (struct winsize *)0);
+ (void)x;
],[
cf_cv_func_openpty=$cf_header
break
@@ -2891,19 +2923,29 @@ tcgetattr(1, &foo);],
test "$cf_cv_have_tcgetattr" = yes && AC_DEFINE(HAVE_TCGETATTR,1,[Define to 1 if we have tcgetattr])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_FUNC_VSSCANF version: 7 updated: 2021/01/01 13:31:04
+dnl CF_FUNC_VSSCANF version: 8 updated: 2023/12/03 19:09:59
dnl ---------------
dnl Check for vsscanf() function, which is in c9x but generally not in earlier
-dnl versions of C. It is in the GNU C library, and can often be simulated by
-dnl other functions.
+dnl versions of C. It can often be simulated by other functions on older
+dnl systems (where FILE is not opaque).
AC_DEFUN([CF_FUNC_VSSCANF],
[
AC_CACHE_CHECK(for vsscanf function or workaround,cf_cv_func_vsscanf,[
AC_TRY_LINK([
#include
-#include ],[
+#include
+
+static void
+myfunc(const char *str, const char *fmt, ...)
+{
va_list ap;
- vsscanf("from", "%d", ap)],[cf_cv_func_vsscanf=vsscanf],[
+ va_start(ap, fmt);
+ vsscanf(str, fmt, ap);
+ va_end(ap);
+}
+],[
+ myfunc("55", "%d");
+],[cf_cv_func_vsscanf=vsscanf],[
AC_TRY_LINK([
#include
#include ],[
@@ -3066,7 +3108,7 @@ CF_INTEL_COMPILER(GCC,INTEL_COMPILER,CFLAGS)
CF_CLANG_COMPILER(GCC,CLANG_COMPILER,CFLAGS)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_GCC_WARNINGS version: 41 updated: 2021/01/01 16:53:59
+dnl CF_GCC_WARNINGS version: 43 updated: 2024/12/21 08:44:12
dnl ---------------
dnl Check if the compiler supports useful warning options. There's a few that
dnl we don't use, simply because they're too noisy:
@@ -3180,13 +3222,14 @@ rm -rf ./conftest*
AC_SUBST(EXTRA_CFLAGS)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_GETOPT_HEADER version: 8 updated: 2021/06/19 19:16:16
+dnl CF_GETOPT_HEADER version: 9 updated: 2024/08/10 10:30:39
dnl ----------------
dnl Check for getopt's variables which are commonly defined in stdlib.h,
dnl unistd.h or (nonstandard) in getopt.h
AC_DEFUN([CF_GETOPT_HEADER],
-[
-AC_HAVE_HEADERS(unistd.h getopt.h)
+[AC_REQUIRE([AC_HEADER_STDC])
+
+AC_CHECK_HEADERS(getopt.h)
AC_CACHE_CHECK(for header declaring getopt variables,cf_cv_getopt_header,[
cf_cv_getopt_header=none
for cf_header in stdio.h stdlib.h unistd.h getopt.h
@@ -3206,6 +3249,26 @@ if test "$cf_cv_getopt_header" = getopt.h ; then
fi
])dnl
dnl ---------------------------------------------------------------------------
+dnl CF_GLOB_FULLPATH version: 2 updated: 2024/08/03 12:34:02
+dnl ----------------
+dnl Use this in case-statements to check for pathname syntax, i.e., absolute
+dnl pathnames. The "x" is assumed since we provide an alternate form for DOS.
+AC_DEFUN([CF_GLOB_FULLPATH],[
+AC_REQUIRE([CF_WITH_SYSTYPE])dnl
+case "$cf_cv_system_name" in
+(cygwin*|msys*|mingw32*|mingw64|os2*)
+ GLOB_FULLPATH_POSIX='/*'
+ GLOB_FULLPATH_OTHER='[[a-zA-Z]]:[[\\/]]*'
+ ;;
+(*)
+ GLOB_FULLPATH_POSIX='/*'
+ GLOB_FULLPATH_OTHER=$GLOB_FULLPATH_POSIX
+ ;;
+esac
+AC_SUBST(GLOB_FULLPATH_POSIX)
+AC_SUBST(GLOB_FULLPATH_OTHER)
+])dnl
+dnl ---------------------------------------------------------------------------
dnl CF_GNATPREP_OPT_T version: 1 updated: 2014/08/02 18:37:25
dnl -----------------
AC_DEFUN([CF_GNATPREP_OPT_T],[
@@ -3659,7 +3722,7 @@ if test "$GXX" = yes; then
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_GXX_WARNINGS version: 11 updated: 2021/01/08 16:50:55
+dnl CF_GXX_WARNINGS version: 13 updated: 2024/12/21 08:44:12
dnl ---------------
dnl Check if the compiler supports useful warning options.
dnl
@@ -3822,7 +3885,7 @@ fi
])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_HASHED_DB_LIBS version: 10 updated: 2021/01/02 17:09:14
+dnl CF_HASHED_DB_LIBS version: 11 updated: 2024/12/14 16:09:34
dnl -----------------
dnl Given that we have the header and version for hashed database, find the
dnl library information.
@@ -3844,7 +3907,7 @@ $ac_includes_default
char *path = "/tmp/foo";
#ifdef DB_VERSION_MAJOR
#if DB_VERSION_MAJOR >= 4
- DB *result = 0;
+ DB *result = NULL;
db_create(&result, NULL, 0);
result->open(result,
NULL,
@@ -3854,7 +3917,7 @@ $ac_includes_default
DB_CREATE,
0644);
#elif DB_VERSION_MAJOR >= 3
- DB *result = 0;
+ DB *result = NULL;
db_create(&result, NULL, 0);
result->open(result,
path,
@@ -3863,7 +3926,7 @@ $ac_includes_default
DB_CREATE,
0644);
#elif DB_VERSION_MAJOR >= 2
- DB *result = 0;
+ DB *result = NULL;
db_open(path,
DB_HASH,
DB_CREATE,
@@ -3879,7 +3942,7 @@ $ac_includes_default
DB_HASH,
0);
#endif
- ${cf_cv_main_return:-return}(result != 0)
+ ${cf_cv_main_return:-return}(result != NULL)
],[
if test -n "$cf_db_libs" ; then
cf_cv_hashed_db_libs=$cf_db_libs
@@ -4003,7 +4066,7 @@ CPPFLAGS="-I. $CPPFLAGS"
AC_SUBST(CPPFLAGS)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_INSTALL_OPTS version: 2 updated: 2018/08/18 12:19:21
+dnl CF_INSTALL_OPTS version: 3 updated: 2023/06/03 15:17:30
dnl ---------------
dnl prompt for/fill-in useful install-program options
AC_DEFUN([CF_INSTALL_OPTS],
@@ -4011,6 +4074,7 @@ AC_DEFUN([CF_INSTALL_OPTS],
CF_INSTALL_OPT_S
CF_INSTALL_OPT_P
CF_INSTALL_OPT_O
+CF_INSTALL_OPT_STRIP_PROG
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_INSTALL_OPT_O version: 3 updated: 2020/12/31 20:19:42
@@ -4097,6 +4161,106 @@ fi
AC_SUBST(INSTALL_OPT_S)
])dnl
dnl ---------------------------------------------------------------------------
+dnl CF_INSTALL_OPT_STRIP_PROG version: 1 updated: 2023/06/03 15:17:30
+dnl -------------------------
+dnl Provide an option for overriding the strip program used in install "-s"
+dnl
+dnl coreutils install provides a --strip-program option
+dnl FreeBSD uses STRIPBIN environment variable, while NetBSD and OpenBSD use
+dnl STRIP environment variable. Other versions of install do not support this.
+AC_DEFUN([CF_INSTALL_OPT_STRIP_PROG],
+[
+AC_REQUIRE([CF_INSTALL_OPT_S])
+if test -n "$INSTALL_OPT_S"
+then
+ AC_MSG_CHECKING(if you want to specify strip-program)
+ AC_ARG_WITH(strip-program,
+ [ --with-strip-program=XX specify program to use when stripping in install],
+ [with_strip_program=$withval],
+ [with_strip_program=no])
+ AC_MSG_RESULT($with_strip_program)
+ if test "$with_strip_program" != no
+ then
+ AC_MSG_CHECKING(if strip-program is supported with this installer)
+ cf_install_program=`echo "$INSTALL" | sed -e 's%[[ ]]*[[ ]]-.%%'`
+ check_install_strip=no
+ if test -f "$cf_install_program"
+ then
+ check_install_version=`"$cf_install_program" --version 2>/dev/null | head -n 1 | grep coreutils`
+ if test -n "$check_install_version"
+ then
+ check_install_strip="option"
+ else
+ for check_strip_variable in STRIPBIN STRIP
+ do
+ if strings "$cf_install_program" | grep "^$check_strip_variable[$]" >/dev/null
+ then
+ check_install_strip="environ"
+ break
+ fi
+ done
+ fi
+ fi
+ AC_MSG_RESULT($check_install_strip)
+ case "$check_install_strip" in
+ (no)
+ AC_MSG_WARN($cf_install_program does not support strip program option)
+ with_strip_program=no
+ ;;
+ (environ)
+ cat >install.tmp <<-CF_EOF
+ #! $SHELL
+ STRIPBIN="$with_strip_program" \\
+ STRIP="$with_strip_program" \\
+ $INSTALL "[$]@"
+ CF_EOF
+ INSTALL="`pwd`/install.tmp"
+ chmod +x "$INSTALL"
+ CF_VERBOSE(created $INSTALL)
+ ;;
+ (option)
+ INSTALL_OPT_S="$INSTALL_OPT_S --strip-program=\"$with_strip_program\""
+ ;;
+ esac
+ fi
+fi
+AC_SUBST(INSTALL_OPT_S)
+])dnl
+dnl ---------------------------------------------------------------------------
+dnl CF_INSTALL_PREFIX version: 1 updated: 2024/08/10 20:16:32
+dnl -----------------
+dnl Special option for use by system-builders: the install-prefix is used to
+dnl adjust the location into which the actual install is done, so that an
+dnl archive can be built without modifying the host system's configuration.
+AC_DEFUN([CF_INSTALL_PREFIX],[
+AC_MSG_CHECKING(for an installation directory prefix)
+AC_ARG_WITH(install-prefix,
+ [ --with-install-prefix=DESTDIR use DESTDIR as installation directory prefix],
+ [case "x$withval" in
+ (xyes|xno)
+ ;;
+ (*) DESTDIR="$withval"
+ ;;
+ esac])
+AC_MSG_RESULT([${DESTDIR:-(none)}])
+AC_SUBST(DESTDIR)
+
+AC_MSG_CHECKING(if installation directory prefix should be merged)
+CF_ARG_ENABLE(install-prefix,
+ [ --enable-install-prefix merge DESTDIR with installation prefix],
+ cf_install_prefix=yes,
+ cf_install_prefix=no)
+AC_MSG_RESULT($cf_install_prefix)
+
+if test "$cf_install_prefix" = yes ; then
+ MERGE_PREFIX=':$(prefix)%=%'
+else
+ MERGE_PREFIX=''
+fi
+
+AC_SUBST(MERGE_PREFIX)
+])dnl
+dnl ---------------------------------------------------------------------------
dnl CF_INTEL_COMPILER version: 9 updated: 2023/02/18 17:41:25
dnl -----------------
dnl Check if the given compiler is really the Intel compiler for Linux. It
@@ -4135,14 +4299,14 @@ cf_save_CFLAGS="$cf_save_CFLAGS -we147"
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_ISASCII version: 4 updated: 2012/10/06 17:56:13
+dnl CF_ISASCII version: 5 updated: 2023/12/03 09:21:34
dnl ----------
dnl Check if we have either a function or macro for 'isascii()'.
AC_DEFUN([CF_ISASCII],
[
AC_MSG_CHECKING(for isascii)
AC_CACHE_VAL(cf_cv_have_isascii,[
- AC_TRY_LINK([#include ],[int x = isascii(' ')],
+ AC_TRY_LINK([#include ],[int x = isascii(' '); (void)x],
[cf_cv_have_isascii=yes],
[cf_cv_have_isascii=no])
])dnl
@@ -4150,7 +4314,7 @@ AC_MSG_RESULT($cf_cv_have_isascii)
test "$cf_cv_have_isascii" = yes && AC_DEFINE(HAVE_ISASCII,1,[Define to 1 if we have isascii()])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_LARGEFILE version: 12 updated: 2020/03/19 20:23:48
+dnl CF_LARGEFILE version: 13 updated: 2023/12/03 19:09:59
dnl ------------
dnl Add checks for large file support.
AC_DEFUN([CF_LARGEFILE],[
@@ -4184,11 +4348,15 @@ ifdef([AC_FUNC_FSEEKO],[
#pragma GCC diagnostic error "-Wincompatible-pointer-types"
#include
#include
+
+#ifndef __REDIRECT
+/* if transitional largefile support is setup, this is true */
+extern struct dirent64 * readdir(DIR *);
+#endif
],[
- /* if transitional largefile support is setup, this is true */
- extern struct dirent64 * readdir(DIR *);
- struct dirent64 *x = readdir((DIR *)0);
- struct dirent *y = readdir((DIR *)0);
+ DIR *dp = opendir(".");
+ struct dirent64 *x = readdir(dp);
+ struct dirent *y = readdir(dp);
int z = x - y;
(void)z;
],
@@ -4482,9 +4650,12 @@ CF_SUBDIR_PATH($1,$2,lib)
$1="$cf_library_path_list [$]$1"
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_LIBTOOL_VERSION version: 1 updated: 2013/04/06 18:03:09
+dnl CF_LIBTOOL_VERSION version: 2 updated: 2024/06/12 04:19:01
dnl ------------------
AC_DEFUN([CF_LIBTOOL_VERSION],[
+ifdef([LT_PACKAGE_VERSION],[
+ cf_cv_libtool_version=LT_PACKAGE_VERSION
+],[
if test -n "$LIBTOOL" && test "$LIBTOOL" != none
then
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.]].*//'`
@@ -4493,6 +4664,7 @@ else
fi
test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
])dnl
+])dnl
dnl ---------------------------------------------------------------------------
dnl CF_LIB_PREFIX version: 14 updated: 2021/01/01 13:31:04
dnl -------------
@@ -4518,7 +4690,7 @@ ifelse($1,,,[$1=$LIB_PREFIX])
AC_SUBST(LIB_PREFIX)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_LIB_RULES version: 98 updated: 2023/01/07 16:32:06
+dnl CF_LIB_RULES version: 101 updated: 2024/08/03 13:08:58
dnl ------------
dnl Append definitions and rules for the given models to the subdirectory
dnl Makefiles, and the recursion rule for the top-level Makefile. If the
@@ -4536,6 +4708,7 @@ dnl Note: Libs_To_Make is mixed case, since it is not a pure autoconf variable.
AC_DEFUN([CF_LIB_RULES],
[AC_REQUIRE([AC_PROG_FGREP])dnl
AC_REQUIRE([CF_MAKE_PHONY])dnl
+AC_REQUIRE([CF_GLOB_FULLPATH])dnl
cf_prefix=$LIB_PREFIX
AC_REQUIRE([CF_SUBST_NCURSES_VERSION])
@@ -5025,22 +5198,10 @@ cat >> Makefile <> Makefile <>headers.sh <>headers.sh <conftest.$ac_ext <>$cf_edit_man <\$TMP.out
+ sed -e "/\\#[ ]*include/s,\$TMP.out
mv \$TMP.out \$TMP
CF_EOF
fi
if test "$with_curses_h" != yes ; then
cat >>$cf_edit_man <\$TMP.out
+ sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," \
+ < \$TMP >\$TMP.out
mv \$TMP.out \$TMP
CF_EOF
fi
@@ -6054,7 +6231,7 @@ CF_EOF
if test -n "$cf_manpage_compress" ; then
cat >>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man < defines a usable MB_LEN_MAX. That may be because it is
+dnl not defined, or it may be a bogus value.
+AC_DEFUN([CF_MB_LEN_MAX],[
+AC_CACHE_CHECK(if MB_LEN_MAX is usable,cf_cv_mb_len_max,[
+AC_TRY_COMPILE([
+$ac_includes_default
+#include ],
+[
+#if defined(MB_LEN_MAX) && MB_LEN_MAX >= 6
+ ${cf_cv_main_return:-return}(0);
+#else
+#error MB_LEN_MAX is not usable
+#endif
+], [cf_cv_mb_len_max=yes],
+ [cf_cv_mb_len_max=no])])
+if test "$cf_cv_mb_len_max" = yes
+then
+ AC_DEFINE(HAVE_CONSISTENT_MB_LEN_MAX,1,[Define to 1 if MB_LEN_MAX is usable])
+else
+ AC_MSG_WARN(MB_LEN_MAX is missing/inconsistent in system headers)
+fi
+])dnl
+dnl ---------------------------------------------------------------------------
dnl CF_MIXEDCASE_FILENAMES version: 9 updated: 2021/01/01 16:53:59
dnl ----------------------
dnl Check if the file-system supports mixed-case filenames. If we're able to
@@ -6262,7 +6474,7 @@ fi
test "$cf_cv_mixedcase" = yes && AC_DEFINE(MIXEDCASE_FILENAMES,1,[Define to 1 if filesystem supports mixed-case filenames.])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_MKSTEMP version: 12 updated: 2023/01/05 17:53:11
+dnl CF_MKSTEMP version: 13 updated: 2023/12/01 17:22:50
dnl ----------
dnl Check for a working mkstemp. This creates two files, checks that they are
dnl successfully created and distinct (AmigaOS apparently fails on the last).
@@ -6277,7 +6489,7 @@ $ac_includes_default
int main(void)
{
- char *tmpl = "conftestXXXXXX";
+ static char tmpl[] = "conftestXXXXXX";
char name[2][80];
int n;
int result = 0;
@@ -6398,15 +6610,15 @@ case ".$with_cflags" in
esac
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_NUMBER_SYNTAX version: 2 updated: 2015/04/17 21:13:04
+dnl CF_NUMBER_SYNTAX version: 3 updated: 2023/05/06 16:14:29
dnl ----------------
-dnl Check if the given variable is a number. If not, report an error.
+dnl Check if the given variable is a positive integer. Report an error if not.
dnl $1 is the variable
dnl $2 is the message
AC_DEFUN([CF_NUMBER_SYNTAX],[
if test -n "$1" ; then
- case $1 in
- ([[0-9]]*)
+ case `echo "$1" | sed -e 's/^[[0-9]]*$/0/g'` in
+ (0)
;;
(*)
AC_MSG_ERROR($2 is not a number: $1)
@@ -6513,35 +6725,35 @@ if test -n "$cf_path_prog" ; then
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_PATH_SYNTAX version: 18 updated: 2020/12/31 18:40:20
+dnl CF_PATH_SYNTAX version: 19 updated: 2024/08/03 13:08:58
dnl --------------
dnl Check the argument to see that it looks like a pathname. Rewrite it if it
dnl begins with one of the prefix/exec_prefix variables, and then again if the
dnl result begins with 'NONE'. This is necessary to work around autoconf's
dnl delayed evaluation of those symbols.
AC_DEFUN([CF_PATH_SYNTAX],[
+AC_REQUIRE([CF_GLOB_FULLPATH])dnl
+
if test "x$prefix" != xNONE; then
cf_path_syntax="$prefix"
else
cf_path_syntax="$ac_default_prefix"
fi
-case ".[$]$1" in
-(.\[$]\(*\)*|.\'*\'*)
- ;;
-(..|./*|.\\*)
+case "x[$]$1" in
+(x\[$]\(*\)*|x\'*\'*)
;;
-(.[[a-zA-Z]]:[[\\/]]*) # OS/2 EMX
+(x.|x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
;;
-(.\[$]\{*prefix\}*|.\[$]\{*dir\}*)
+(x\[$]\{*prefix\}*|x\[$]\{*dir\}*)
eval $1="[$]$1"
- case ".[$]$1" in
- (.NONE/*)
+ case "x[$]$1" in
+ (xNONE/*)
$1=`echo "[$]$1" | sed -e s%NONE%$cf_path_syntax%`
;;
esac
;;
-(.no|.NONE/*)
+(xno|xNONE/*)
$1=`echo "[$]$1" | sed -e s%NONE%$cf_path_syntax%`
;;
(*)
@@ -6550,7 +6762,7 @@ case ".[$]$1" in
esac
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_PKG_CONFIG version: 12 updated: 2021/10/10 20:18:09
+dnl CF_PKG_CONFIG version: 13 updated: 2023/10/28 11:59:01
dnl -------------
dnl Check for the package-config program, unless disabled by command-line.
dnl
@@ -6559,7 +6771,7 @@ AC_DEFUN([CF_PKG_CONFIG],
[
AC_MSG_CHECKING(if you want to use pkg-config)
AC_ARG_WITH(pkg-config,
- [ --with-pkg-config{=path} enable/disable use of pkg-config],
+ [[ --with-pkg-config[=CMD] enable/disable use of pkg-config and its name CMD]],
[cf_pkg_config=$withval],
[cf_pkg_config=yes])
AC_MSG_RESULT($cf_pkg_config)
@@ -6930,15 +7142,16 @@ AC_SUBST(cf_ada_config_Ada)
AC_SUBST(cf_ada_config_C)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_PROG_INSTALL version: 10 updated: 2021/01/04 19:33:05
+dnl CF_PROG_INSTALL version: 11 updated: 2024/08/03 13:08:58
dnl ---------------
dnl Force $INSTALL to be an absolute-path. Otherwise, edit_man.sh and the
dnl misc/tabset install won't work properly. Usually this happens only when
dnl using the fallback mkinstalldirs script
AC_DEFUN([CF_PROG_INSTALL],
[AC_PROG_INSTALL
-case $INSTALL in
-(/*)
+AC_REQUIRE([CF_GLOB_FULLPATH])dnl
+case x$INSTALL in
+(x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
;;
(*)
CF_DIRNAME(cf_dir,$INSTALL)
@@ -6968,14 +7181,17 @@ fi
AC_SUBST(LDCONFIG)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_PROG_LINT version: 5 updated: 2022/08/20 15:44:13
+dnl CF_PROG_LINT version: 7 updated: 2024/11/30 14:37:45
dnl ------------
AC_DEFUN([CF_PROG_LINT],
[
AC_CHECK_PROGS(LINT, lint cppcheck splint)
case "x$LINT" in
+(xlint|x*/lint) # NetBSD 10
+ test -z "$LINT_OPTS" && LINT_OPTS="-chapbrxzgFS -v -Ac11"
+ ;;
(xcppcheck|x*/cppcheck)
- test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
+ test -z "$LINT_OPTS" && LINT_OPTS="--enable=all -D__CPPCHECK__"
;;
esac
AC_SUBST(LINT_OPTS)
@@ -7004,7 +7220,7 @@ AC_MSG_RESULT($cf_prog_ln_sf)
test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_REGEX version: 18 updated: 2021/01/01 16:53:59
+dnl CF_REGEX version: 19 updated: 2024/12/14 16:09:34
dnl --------
dnl Attempt to determine if we've got one of the flavors of regular-expression
dnl code that we can support.
@@ -7075,8 +7291,9 @@ case "$cf_regex_func" in
for cf_regex_hdr in regex.h
do
AC_TRY_LINK([#include
+#include
#include <$cf_regex_hdr>],[
- regex_t *p = 0;
+ regex_t *p = NULL;
int x = regcomp(p, "", 0);
int y = regexec(p, "", 0, 0, 0);
(void)x;
@@ -7148,6 +7365,30 @@ define([CF_REMOVE_LIB],
$1=`echo "$2" | sed -e 's/-l$3[[ ]]//g' -e 's/-l$3[$]//'`
])dnl
dnl ---------------------------------------------------------------------------
+dnl CF_REQUIRE_PKG version: 1 updated: 2025/01/10 19:55:54
+dnl --------------
+dnl Update $REQUIRE_PKG, which lists the known required packages for this
+dnl program.
+dnl
+dnl $1 = package(s) to require, e.g., in the generated ".pc" file
+define([CF_REQUIRE_PKG],
+[
+for cf_required in $1
+do
+ # check for duplicates
+ for cf_require_pkg in $REQUIRE_PKG
+ do
+ if test "$cf_required" = "$cf_require_pkg"
+ then
+ cf_required=
+ break
+ fi
+ done
+ test -n "$cf_required" && REQUIRE_PKG="$REQUIRE_PKG $cf_required"
+done
+AC_SUBST(REQUIRE_PKG)
+])dnl
+dnl ---------------------------------------------------------------------------
dnl CF_RESTORE_XTRA_FLAGS version: 1 updated: 2020/01/11 16:47:45
dnl ---------------------
dnl Restore flags saved in CF_SAVE_XTRA_FLAGS
@@ -7302,7 +7543,7 @@ do
done
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_SHARED_OPTS version: 107 updated: 2021/09/04 06:47:34
+dnl CF_SHARED_OPTS version: 112 updated: 2024/12/14 16:09:34
dnl --------------
dnl --------------
dnl Attempt to determine the appropriate CC/LD options for creating a shared
@@ -7348,9 +7589,9 @@ AC_DEFUN([CF_SHARED_OPTS],
cf_ld_rpath_opt=
test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
- AC_MSG_CHECKING(if release/abi version should be used for shared libs)
+ AC_MSG_CHECKING(whether to use release or ABI version in shared library file names)
AC_ARG_WITH(shlib-version,
- [ --with-shlib-version=X Specify rel or abi version for shared libs],
+ [[ --with-shlib-version[={rel|abi}] use release or ABI version in shared library file names]],
[test -z "$withval" && withval=auto
case "$withval" in
(yes)
@@ -7392,7 +7633,7 @@ AC_DEFUN([CF_SHARED_OPTS],
for CC_SHARED_OPTS in -fPIC -fpic ''
do
CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
- AC_TRY_COMPILE([#include ],[int x = 1],[break],[])
+ AC_TRY_COMPILE([#include ],[int x = 1; (void)x],[break],[])
done
AC_MSG_RESULT($CC_SHARED_OPTS)
CFLAGS="$cf_save_CFLAGS"
@@ -7762,11 +8003,11 @@ CF_EOF
# tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
# tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
if test "$DFT_LWR_MODEL" = "shared" ; then
- LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
+ LOCAL_LDFLAGS="-R\$(LOCAL_LIBDIR):\${libdir}"
LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
fi
if test "$cf_cv_enable_rpath" = yes ; then
- EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
+ EXTRA_LDFLAGS="-R\${libdir} $EXTRA_LDFLAGS"
fi
CF_SHARED_SONAME
if test "$GCC" != yes; then
@@ -7778,9 +8019,9 @@ CF_EOF
done
CFLAGS="$cf_save_CFLAGS"
CC_SHARED_OPTS=$cf_shared_opts
- MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $[@]'
+ MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -Wl,-h,'$cf_cv_shared_soname' -o $[@]'
else
- MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $[@]'
+ MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -Wl,-h,'$cf_cv_shared_soname' -o $[@]'
fi
;;
(sysv5uw7*|unix_sv*)
@@ -7818,7 +8059,7 @@ cat > conftest.$ac_ext <
#include ],
- [struct sigaction act],
+ [struct sigaction act; (void)act],
[sigact_bad=no],
[
AC_TRY_COMPILE([
#define _POSIX_SOURCE
#include
#include ],
- [struct sigaction act],
+ [struct sigaction act; (void)act],
[sigact_bad=yes
AC_DEFINE(_POSIX_SOURCE,1,[Define to 1 if we must define _POSIX_SOURCE])],
[sigact_bad=unknown])])
@@ -8268,7 +8499,7 @@ AC_MSG_RESULT($sigact_bad)
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_STRUCT_TERMIOS version: 11 updated: 2020/03/19 20:46:13
+dnl CF_STRUCT_TERMIOS version: 13 updated: 2023/12/03 19:38:54
dnl -----------------
dnl Some machines require _POSIX_SOURCE to completely define struct termios.
AC_DEFUN([CF_STRUCT_TERMIOS],[
@@ -8291,12 +8522,12 @@ if test "$ac_cv_header_termios_h" = yes ; then
if test "$termios_bad" = maybe ; then
AC_MSG_CHECKING(whether termios.h needs _POSIX_SOURCE)
AC_TRY_COMPILE([#include ],
- [struct termios foo; int x = foo.c_iflag = 1; (void)x],
+ [struct termios foo; int x = (int)(foo.c_iflag = 1); (void)x],
termios_bad=no, [
AC_TRY_COMPILE([
#define _POSIX_SOURCE
#include ],
- [struct termios foo; int x = foo.c_iflag = 2; (void)x],
+ [struct termios foo; int x = (int)(foo.c_iflag = 2); (void)x],
termios_bad=unknown,
termios_bad=yes AC_DEFINE(_POSIX_SOURCE,1,[Define to 1 if we must define _POSIX_SOURCE]))
])
@@ -8408,7 +8639,7 @@ top_builddir=ifelse($1,,`pwd`,$1)
AC_SUBST(top_builddir)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_TRY_PKG_CONFIG version: 6 updated: 2020/12/31 10:54:15
+dnl CF_TRY_PKG_CONFIG version: 7 updated: 2025/01/10 19:55:54
dnl -----------------
dnl This is a simple wrapper to use for pkg-config, for libraries which may be
dnl available in that form.
@@ -8425,6 +8656,7 @@ if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$1"; then
cf_pkgconfig_libs="`$PKG_CONFIG --libs "$1" 2>/dev/null`"
CF_VERBOSE(package $1 CFLAGS: $cf_pkgconfig_incs)
CF_VERBOSE(package $1 LIBS: $cf_pkgconfig_libs)
+ CF_REQUIRE_PKG($1)
CF_ADD_CFLAGS($cf_pkgconfig_incs)
CF_ADD_LIBS($cf_pkgconfig_libs)
ifelse([$2],,:,[$2])
@@ -8460,7 +8692,7 @@ if test "$cf_cv_xopen_source" != no ; then
fi
])
dnl ---------------------------------------------------------------------------
-dnl CF_TYPEOF_CHTYPE version: 11 updated: 2023/01/05 17:57:59
+dnl CF_TYPEOF_CHTYPE version: 12 updated: 2024/12/14 16:09:34
dnl ----------------
dnl Determine the type we should use for chtype (and attr_t, which is treated
dnl as the same thing). We want around 32 bits, so on most machines want a
@@ -8476,7 +8708,7 @@ $ac_includes_default
int main(void)
{
FILE *fp = fopen("cf_test.out", "w");
- if (fp != 0) {
+ if (fp != NULL) {
char *result = "long";
if (sizeof(unsigned long) > sizeof(unsigned int)) {
int n;
@@ -8512,7 +8744,7 @@ AC_SUBST(cf_cv_typeof_chtype)
AC_DEFINE_UNQUOTED(TYPEOF_CHTYPE,$cf_cv_typeof_chtype,[Define to actual type if needed for chtype])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_TYPE_SIGACTION version: 4 updated: 2012/10/06 17:56:13
+dnl CF_TYPE_SIGACTION version: 5 updated: 2023/12/03 09:21:34
dnl -----------------
dnl
AC_DEFUN([CF_TYPE_SIGACTION],
@@ -8521,14 +8753,14 @@ AC_MSG_CHECKING([for type sigaction_t])
AC_CACHE_VAL(cf_cv_type_sigaction,[
AC_TRY_COMPILE([
#include ],
- [sigaction_t x],
+ [sigaction_t x; (void)x],
[cf_cv_type_sigaction=yes],
[cf_cv_type_sigaction=no])])
AC_MSG_RESULT($cf_cv_type_sigaction)
test "$cf_cv_type_sigaction" = yes && AC_DEFINE(HAVE_TYPE_SIGACTION,1,[Define to 1 if we have the sigaction_t type])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_UNSIGNED_LITERALS version: 2 updated: 1998/02/07 22:10:16
+dnl CF_UNSIGNED_LITERALS version: 3 updated: 2023/12/03 10:02:17
dnl --------------------
dnl Test if the compiler supports 'U' and 'L' suffixes. Only old compilers
dnl won't, but they're still there.
@@ -8536,7 +8768,7 @@ AC_DEFUN([CF_UNSIGNED_LITERALS],
[
AC_MSG_CHECKING([if unsigned literals are legal])
AC_CACHE_VAL(cf_cv_unsigned_literals,[
- AC_TRY_COMPILE([],[long x = 1L + 1UL + 1U + 1],
+ AC_TRY_COMPILE([],[long x = 1L + 1UL + 1U + 1; (void)x],
[cf_cv_unsigned_literals=yes],
[cf_cv_unsigned_literals=no])
])
@@ -8552,12 +8784,12 @@ AC_DEFUN([CF_UPPER],
$1=`echo "$2" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_UTF8_LIB version: 10 updated: 2023/01/11 04:05:23
+dnl CF_UTF8_LIB version: 11 updated: 2024/08/10 10:23:45
dnl -----------
dnl Check for multibyte support, and if not found, utf8 compatibility library
AC_DEFUN([CF_UTF8_LIB],
[
-AC_HAVE_HEADERS(wchar.h)
+AC_CHECK_HEADERS(wchar.h)
AC_CACHE_CHECK(for multibyte character support,cf_cv_utf8_lib,[
cf_save_LIBS="$LIBS"
AC_TRY_LINK([
@@ -8676,7 +8908,7 @@ AC_DEFUN([CF_VERBOSE],
CF_MSG_LOG([$1])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_VERSION_INFO version: 8 updated: 2021/01/01 13:31:04
+dnl CF_VERSION_INFO version: 10 updated: 2025/01/10 19:55:54
dnl ---------------
dnl Define several useful symbols derived from the VERSION file. A separate
dnl file is preferred to embedding the version numbers in various scripts.
@@ -8754,17 +8986,19 @@ AC_SUBST(VERSION_PATCH)
dnl if a package name is given, define its corresponding version info. We
dnl need the package name to ensure that the defined symbols are unique.
ifelse($1,,,[
- cf_PACKAGE=$1
+ PROGRAM=$1
PACKAGE=ifelse($2,,$1,$2)
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",[Define to the package-name])
+ AC_SUBST(PROGRAM)
AC_SUBST(PACKAGE)
- CF_UPPER(cf_PACKAGE,$cf_PACKAGE)
- AC_DEFINE_UNQUOTED(${cf_PACKAGE}_VERSION,"${VERSION_MAJOR}.${VERSION_MINOR}")
- AC_DEFINE_UNQUOTED(${cf_PACKAGE}_PATCHDATE,${VERSION_PATCH})
+ AH_TEMPLATE([AS_TR_CPP($1[_VERSION])],[version of package])
+ AC_DEFINE_UNQUOTED(AS_TR_CPP($1[_VERSION]),"${VERSION_MAJOR}.${VERSION_MINOR}")
+ AH_TEMPLATE([AS_TR_CPP($1[_PATCHDATE])],[patchdate of package])
+ AC_DEFINE_UNQUOTED(AS_TR_CPP($1[_PATCHDATE]),${VERSION_PATCH})
])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WCHAR_TYPE version: 4 updated: 2012/10/06 16:39:58
+dnl CF_WCHAR_TYPE version: 5 updated: 2023/12/03 09:21:34
dnl -------------
dnl Check if type wide-character type $1 is declared, and if so, which header
dnl file is needed. The second parameter is used to set a shell variable when
@@ -8781,7 +9015,7 @@ AC_TRY_COMPILE([
#ifdef HAVE_LIBUTF8_H
#include
#endif],
- [$1 state],
+ [$1 state; (void)state],
[cf_cv_$1=no],
[AC_TRY_COMPILE([
#include
@@ -8791,7 +9025,7 @@ AC_TRY_COMPILE([
#ifdef HAVE_LIBUTF8_H
#include
#endif],
- [$1 value],
+ [$1 value; (void) value],
[cf_cv_$1=yes],
[cf_cv_$1=unknown])])])
@@ -8890,26 +9124,76 @@ $1_ABI=$cf_cv_abi_version
cf_cv_abi_default=$cf_cv_abi_version
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_ADA_COMPILER version: 2 updated: 2010/06/26 17:35:58
+dnl CF_WITH_ADA version: 2 updated: 2024/11/09 18:07:29
+dnl -----------
+dnl Check for the Ada compiler (unless requested to not do this), which causes
+dnl a further check for a C compiler which can work with the Ada compiler.
+AC_DEFUN([CF_WITH_ADA],[
+AC_ARG_WITH(ada,
+ [ --without-ada suppress check for Ada compiler],
+ [cf_with_ada=$withval],
+ [cf_with_ada=yes])
+
+cf_prog_cc="gcc cc"
+if test "x$cf_with_ada" = xyes
+then
+ CF_PROG_GNAT
+ if test "x$cf_cv_prog_gnat_correct" = xyes; then
+ # gcc's developers chose to deprecate gnatgcc before making gprconfig
+ # work. They replaced gnatgcc in gcc 13 with a script which spits out
+ # a warning offering advice which could never work.
+ #
+ # Here is a workaround.
+ AC_PATH_PROG(cf_cv_path_gnatgcc,gnatgcc,no)
+ if test "$cf_cv_path_gnatgcc" != no
+ then
+ AC_MSG_CHECKING(for improvement)
+ cf_file_gnatgcc=`file -L "$cf_cv_path_gnatgcc" 2>/dev/null`
+ case "x$cf_file_gnatgcc" in
+ (*script*)
+ cf_cv_path_gnatgcc=`sh -x "$cf_cv_path_gnatgcc" --version 2>&1 | grep -w exec | sed -e 's/^[[ ]]*+[[ ]]*//' -e 's/exec[[ ]]//' -e 's/ .*//'`
+ ;;
+ (*)
+ cf_cv_path_gnatgcc=no
+ ;;
+ esac
+ AC_MSG_RESULT($cf_cv_path_gnatgcc)
+ test "$cf_cv_path_gnatgcc" = no && cf_cv_path_gnatgcc=gnatgcc
+ cf_prog_cc="$cf_cv_path_gnatgcc $cf_prog_cc"
+ fi
+ fi
+fi
+case "$cf_prog_cc" in
+(*/*)
+ CC="$cf_prog_cc"
+ AC_SUBST(CC)
+ ;;
+(*)
+ CF_PROG_CC($cf_prog_cc)
+ ;;
+esac
+])dnl
+dnl ---------------------------------------------------------------------------
+dnl CF_WITH_ADA_COMPILER version: 3 updated: 2023/10/28 11:59:01
dnl --------------------
dnl Command-line option to specify the Ada95 compiler.
AC_DEFUN([CF_WITH_ADA_COMPILER],[
-AC_MSG_CHECKING(for ada-compiler)
+AC_MSG_CHECKING(for Ada95 compiler)
AC_ARG_WITH(ada-compiler,
- [ --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)],
+ [[ --with-ada-compiler[=CMD] use CMD as Ada95 compiler (default: gnatmake)]],
[cf_ada_compiler=$withval],
[cf_ada_compiler=gnatmake])
AC_SUBST(cf_ada_compiler)
AC_MSG_RESULT($cf_ada_compiler)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_ADA_INCLUDE version: 2 updated: 2010/06/26 17:35:58
+dnl CF_WITH_ADA_INCLUDE version: 3 updated: 2023/10/28 11:59:01
dnl -------------------
dnl Command-line option to specify where Ada includes will install.
AC_DEFUN([CF_WITH_ADA_INCLUDE],[
-AC_MSG_CHECKING(for ada-include)
+AC_MSG_CHECKING(for Ada95 include directory)
CF_WITH_PATH(ada-include,
- [ --with-ada-include=DIR Ada includes are in DIR],
+ [ --with-ada-include=DIR find Ada95 includes in DIR],
ADA_INCLUDE,
PREFIX/share/ada/adainclude,
[$]prefix/share/ada/adainclude)
@@ -8917,16 +9201,16 @@ AC_SUBST(ADA_INCLUDE)
AC_MSG_RESULT($ADA_INCLUDE)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_ADA_LIBNAME version: 1 updated: 2019/09/07 18:59:41
+dnl CF_WITH_ADA_LIBNAME version: 3 updated: 2023/11/22 20:48:30
dnl -------------------
dnl CF_WITH_ADA_LIBNAME
dnl -------------------
dnl Command-line option to specify how to name the resulting Ada library.
dnl $1 = default value
AC_DEFUN([CF_WITH_ADA_LIBNAME],[
-AC_MSG_CHECKING(for ada-libname)
+AC_MSG_CHECKING(for Ada95 curses library name)
AC_ARG_WITH(ada-libname,
- [ --with-ada-libname=XXX override default Ada library-name],
+ [[ --with-ada-libname[=XXX] use XXX as Ada95 library name]],
ADA_LIBNAME=[$]withval,
ADA_LIBNAME=$1)
case "x$ADA_LIBNAME" in
@@ -8938,13 +9222,13 @@ AC_SUBST(ADA_LIBNAME)
AC_MSG_RESULT($ADA_LIBNAME)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_ADA_OBJECTS version: 2 updated: 2010/06/26 17:35:58
+dnl CF_WITH_ADA_OBJECTS version: 3 updated: 2023/10/28 11:59:01
dnl -------------------
dnl Command-line option to specify where Ada objects will install.
AC_DEFUN([CF_WITH_ADA_OBJECTS],[
-AC_MSG_CHECKING(for ada-objects)
+AC_MSG_CHECKING(for Ada95 object directory)
CF_WITH_PATH(ada-objects,
- [ --with-ada-objects=DIR Ada objects are in DIR],
+ [ --with-ada-objects=DIR find Ada95 objects in DIR],
ADA_OBJECTS,
PREFIX/lib/ada/adalib,
[$]prefix/lib/ada/adalib)
@@ -8952,28 +9236,34 @@ AC_SUBST(ADA_OBJECTS)
AC_MSG_RESULT($ADA_OBJECTS)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_ADA_SHAREDLIB version: 5 updated: 2018/07/21 19:10:35
+dnl CF_WITH_ADA_SHAREDLIB version: 6 updated: 2023/10/28 11:59:01
dnl ---------------------
-dnl Command-line option to specify if an Ada95 shared-library should be built,
+dnl Command-line option to specify if an Ada95 shared library should be built,
dnl and optionally what its soname should be.
AC_DEFUN([CF_WITH_ADA_SHAREDLIB],[
AC_REQUIRE([CF_GNAT_PROJECTS])
-AC_MSG_CHECKING(if an Ada95 shared-library should be built)
+AC_MSG_CHECKING(whether to build an Ada95 shared library)
AC_ARG_WITH(ada-sharedlib,
- [ --with-ada-sharedlib=soname build shared-library (requires GNAT projects)],
+ [ --with-ada-sharedlib build Ada95 shared library; requires GNAT project support],
[with_ada_sharedlib=$withval],
[with_ada_sharedlib=no])
-AC_MSG_RESULT($with_ada_sharedlib)
+cf_ada_sharedlib_warn=no
if test "x$with_ada_sharedlib" != xno
then
if test "x$cf_gnat_projects" != xyes
then
- AC_MSG_WARN(disabling shared-library since GNAT projects are not supported)
with_ada_sharedlib=no
+ cf_ada_sharedlib_warn=yes
fi
fi
+AC_MSG_RESULT($with_ada_sharedlib)
+if test "x$cf_ada_sharedlib_warn" != xno
+then
+ AC_MSG_WARN(disabling Ada95 shared library since GNAT projects are not supported)
+fi
+
ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
MAKE_ADA_SHAREDLIB="#"
@@ -9020,7 +9310,7 @@ if test "$with_dmalloc" = yes ; then
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_EXPORT_SYMS version: 3 updated: 2014/12/20 19:16:08
+dnl CF_WITH_EXPORT_SYMS version: 5 updated: 2023/11/22 20:48:30
dnl -------------------
dnl Use this with libtool to specify the list of symbols that may be exported.
dnl The input file contains one symbol per line; comments work with "#".
@@ -9030,7 +9320,7 @@ AC_DEFUN([CF_WITH_EXPORT_SYMS],
[
AC_MSG_CHECKING(if exported-symbols file should be used)
AC_ARG_WITH(export-syms,
- [ --with-export-syms=XXX limit exported symbols using libtool],
+ [[ --with-export-syms[=SYM-FILE] limit symbols exported by libtool to those listed in SYM-FILE]],
[with_export_syms=$withval],
[with_export_syms=no])
if test "x$with_export_syms" = xyes
@@ -9222,7 +9512,7 @@ AC_SUBST(LIB_UNINSTALL)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_LIBTOOL_OPTS version: 4 updated: 2015/04/17 21:13:04
+dnl CF_WITH_LIBTOOL_OPTS version: 6 updated: 2023/11/22 20:48:30
dnl --------------------
dnl Allow user to pass additional libtool options into the library creation
dnl and link steps. The main use for this is to do something like
@@ -9232,7 +9522,7 @@ dnl ./configure --enable-static
AC_DEFUN([CF_WITH_LIBTOOL_OPTS],[
AC_MSG_CHECKING(for additional libtool options)
AC_ARG_WITH(libtool-opts,
- [ --with-libtool-opts=XXX specify additional libtool options],
+ [[ --with-libtool-opts[=XXX] give libtool additional options XXX]],
[with_libtool_opts=$withval],
[with_libtool_opts=no])
AC_MSG_RESULT($with_libtool_opts)
@@ -9248,7 +9538,7 @@ esac
AC_SUBST(LIBTOOL_OPTS)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_LIB_BASENAME version: 1 updated: 2020/03/07 20:05:14
+dnl CF_WITH_LIB_BASENAME version: 2 updated: 2023/11/22 20:48:30
dnl --------------------
dnl Allow for overriding the basename of a library, i.e., the part to which
dnl prefixes/suffixes are attached.
@@ -9260,7 +9550,7 @@ AC_DEFUN([CF_WITH_LIB_BASENAME],
[
AC_MSG_CHECKING(for desired basename for $2 library)
AC_ARG_WITH($2-libname,
- [ --with-$2-libname=XXX override ifelse($3,,$2,$3) basename of library],
+ [[ --with-$2-libname[=XXX] override ifelse($3,,$2,$3) basename of library]],
[with_lib_basename=$withval],
[with_lib_basename=ifelse($3,,$2,$3)])
$1="$with_lib_basename"
@@ -9448,7 +9738,7 @@ if test "x$with_pcre2" != xno ; then
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_PKG_CONFIG_LIBDIR version: 21 updated: 2023/01/22 13:37:42
+dnl CF_WITH_PKG_CONFIG_LIBDIR version: 25 updated: 2024/08/03 13:34:29
dnl -------------------------
dnl Allow the choice of the pkg-config library directory to be overridden.
dnl
@@ -9462,6 +9752,7 @@ dnl pkgconf (used with some systems such as FreeBSD in place of pkg-config)
dnl optionally ignores $PKG_CONFIG_LIBDIR. Very old versions of pkg-config,
dnl e.g., Solaris 10 also do not recognize $PKG_CONFIG_LIBDIR.
AC_DEFUN([CF_WITH_PKG_CONFIG_LIBDIR],[
+AC_REQUIRE([CF_GLOB_FULLPATH])dnl
case "$PKG_CONFIG" in
(no|none|yes)
@@ -9483,7 +9774,7 @@ fi
# if the option is used, let that override. otherwise default to "libdir"
AC_ARG_WITH(pkg-config-libdir,
- [ --with-pkg-config-libdir=XXX use given directory for installing pc-files],
+ [[ --with-pkg-config-libdir[=XXX] use given directory for installing pc-files]],
[cf_search_path=$withval],
[test "x$PKG_CONFIG" != xnone && test -z "$cf_search_path" && cf_search_path=libdir])
@@ -9495,10 +9786,10 @@ case "x$cf_search_path" in
;;
(x)
;;
-(x/*\ *)
+(x$GLOB_FULLPATH_POSIX\ *|x$GLOB_FULLPATH_OTHER\ *)
PKG_CONFIG_LIBDIR=
;;
-(x/*)
+(x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
PKG_CONFIG_LIBDIR="$cf_search_path"
AC_MSG_RESULT($PKG_CONFIG_LIBDIR)
cf_search_path=
@@ -9517,7 +9808,15 @@ case "x$cf_search_path" in
pkg-config \
pkgconf
do
- cf_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null | tr : ' '`
+ cf_raw_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null`
+ case "$cf_raw_search_path" in
+ (*\\*)
+ cf_search_path=`echo "$cf_raw_search_path" | tr ';' ' ' | tr '\' '/'`
+ ;;
+ (*/*)
+ cf_search_path=`echo "$cf_raw_search_path" | tr : ' '`
+ ;;
+ esac
test -n "$cf_search_path" && break
done
@@ -9632,7 +9931,7 @@ if test "$with_pthread" != no ; then
fi
])
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_REL_VERSION version: 1 updated: 2003/09/20 18:12:49
+dnl CF_WITH_REL_VERSION version: 2 updated: 2023/05/06 18:18:18
dnl -------------------
dnl Allow library's release-version to be overridden. Generally this happens when a
dnl packager has incremented the release-version past that used in the original package,
@@ -9652,6 +9951,7 @@ ifelse($1,,[
],[
$1_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
$1_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[[^.]]*//' -e 's/^\.//' -e 's/\..*//'`
+ test -n "$1_MINOR" || $1_MINOR=0
CF_NUMBER_SYNTAX([$]$1_MAJOR,Release major-version)
CF_NUMBER_SYNTAX([$]$1_MINOR,Release minor-version)
])
@@ -9707,6 +10007,27 @@ AC_ARG_WITH(system-type,
])
])dnl
dnl ---------------------------------------------------------------------------
+dnl CF_WITH_TYPE version: 2 updated: 2023/11/25 16:11:47
+dnl ------------
+dnl Accept a TYPE for substitution:
+dnl $1 = name of type
+dnl $2 = help/usage message
+dnl $3 = symbol to set
+dnl $4 = default value
+AC_DEFUN([CF_WITH_TYPE],[
+AC_MSG_CHECKING(for type of $1)
+AC_ARG_WITH([$1], [$2],
+ [$3="$withval"],
+ [$3=$4])
+AC_MSG_RESULT([$]$3)
+case x[$]$3 in
+(x|xyes|xno)
+ AC_MSG_ERROR(expected a type name for $1)
+ ;;
+esac
+AC_SUBST($3)
+])dnl
+dnl ---------------------------------------------------------------------------
dnl CF_WITH_VALGRIND version: 1 updated: 2006/12/14 18:00:21
dnl ----------------
AC_DEFUN([CF_WITH_VALGRIND],[
@@ -9715,7 +10036,7 @@ CF_NO_LEAKS_OPTION(valgrind,
[USE_VALGRIND])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_VERSIONED_SYMS version: 10 updated: 2021/01/04 18:48:01
+dnl CF_WITH_VERSIONED_SYMS version: 16 updated: 2025/01/19 15:27:13
dnl ----------------------
dnl Use this when building shared library with ELF, to markup symbols with the
dnl version identifier from the given input file. Generally that identifier is
@@ -9725,10 +10046,14 @@ dnl $1 = basename of the ".map" file (default $PACKAGE)
AC_DEFUN([CF_WITH_VERSIONED_SYMS],
[AC_REQUIRE([AC_PROG_FGREP])dnl
AC_REQUIRE([AC_PROG_EGREP])dnl
+AC_REQUIRE([CF_GLOB_FULLPATH])dnl
+if test "$with_libtool" = "yes" ; then
+ :
+elif test "$with_shared" = "yes" ; then
AC_MSG_CHECKING(if versioned-symbols file should be used)
AC_ARG_WITH(versioned-syms,
- [ --with-versioned-syms=X markup versioned symbols using ld],
+ [[ --with-versioned-syms[=MAP-FILE] version ELF shared library symbols per MAP-FILE]],
[with_versioned_syms=$withval],
[with_versioned_syms=no])
case "x$with_versioned_syms" in
@@ -9738,7 +10063,7 @@ case "x$with_versioned_syms" in
;;
(xno)
;;
-(x/*)
+(x$GLOB_FULLPATH_POSIX|x$GLOB_FULLPATH_OTHER)
test -f "$with_versioned_syms" || AC_MSG_ERROR(expected a filename: $with_versioned_syms)
;;
(*)
@@ -9760,11 +10085,13 @@ then
VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\[$]{VERSIONED_SYMS} -Wl,%"`
CF_VERBOSE(MK_SHARED_LIB: $MK_SHARED_LIB)
+ LIB_CREATE="[$]MK_SHARED_LIB"
;;
(*-dy\ *)
VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\[$]{VERSIONED_SYMS} -dy%"`
CF_VERBOSE(MK_SHARED_LIB: $MK_SHARED_LIB)
+ LIB_CREATE="[$]MK_SHARED_LIB"
;;
(*)
AC_MSG_WARN(this system does not support versioned-symbols)
@@ -9815,15 +10142,15 @@ local:
EOF
cat >conftest.$ac_ext <conftest.mk <
These notes are for ncurses
- @VERSION@, released December 31, 2022.
+ @VERSION@, released April 27, 2024.
This release is designed to be source-compatible with
- ncurses 5.0 through 6.3; providing
+ ncurses 5.0 through 6.4; providing
extensions to the application binary interface (ABI). Although
the source can still be configured to support the ncurses 5 ABI, the reason for the release is
@@ -172,13 +172,68 @@
bug-fixes/improvements dealt with robustness issues. The
release notes also mention some other bug-fixes, but are focused
on new features and improvements to existing features since
- ncurses 6.3 release.
+ ncurses 6.4 release.
- There are no new features in this release.
+ These are new features:
+
+
+ -
+
The low-level terminfo and termcap interfaces are used
+ both by the higher-level curses library, as well as by many
+ applications.
+
+ The functions which convert parameterized terminal
+ capability strings for output to the terminal
+ (tiparm
and tparm
) analyze the
+ capability string to determine which parameters are strings
+ (i.e., addresses), versus numbers (not addresses).
+
+ The library's analysis of a capability string may differ
+ from the calling application's design if environment
+ variables are used to point to an invalid terminal database.
+ This is a longstanding problem with all
+ implementations of terminfo, dating from the early 1980s.
+
+ Two new functions address this problem: by providing a
+ function which allows the calling application to tell ncurses
+ how many string-parameters to expect:
+
+
+ tiscan_s
helps applications check
+ formatting capabilities that would be passed to
+ tiparm_s
.
+
+ tiparm_s
provides applications a way to
+ tell ncurses what the expected parameters are for a
+ capability.
+
+
+
+ -
+
The ncurses library supports a compile-time feature
+ (enabled with the configure --enable-check-size
+ option) which simplifies initialization with terminals which
+ do not negotiate window (screen) size. This is done in
+ setupterm
, by providing for using ANSI
+ cursor-position report (in user6/user7 terminfo capabilities)
+ to obtain the screen size if neither environment variables or
+ ioctl is used.
+
+ The ncurses test-program with options
+ “-E -T
” demonstrates this
+ feature.
+
+
+ - add functions to query tty-flags in
+
SCREEN
+
+
+ This release drops compatibility with obsolete versions of
+ tack, e.g., pre-1.08
@@ -187,55 +242,108 @@
-
-
modify delscreen to more effectively delete all
- windows on the given screen.
+ In addition to the new, safer function
+ tiparm_s
, ncurses adds checks to make the older
+ tiparm
, tparm
and
+ tgoto
functions safer:
+
+
+ -
+
the terminfo functions tiparm
and
+ tparm
ensure that the capability string
+ comes from the terminal description which ncurses loads,
+ rather than from random data which the application
+ happens to have.
+
+
+ -
+
the tgoto
function disallows capabilities
+ which its analysis shows will attempt to use string
+ parameters.
+
+
+ -
+
ncurses uses internal functions which correspond to
+ tiparm
, and tgoto
which ensure
+ that the capability strings which are passed to these
+ functions come from the loaded terminal description.
+
+
+
+
+ -
+
improve check in lib_tparm.c
, ensuring that a
+ char* fits into a TPARM_ARG
+
+
+ -
+
modify _nc_syserr_abort
to use
+ _nc_env_access
, rather than only checking root
+ uid
+
+
+ -
+
improve thread lock in lib_trace.c
+
+
+ -
+
modify flushinp
to use file descriptors in
+ SCREEN
, rather than from TERMINAL
,
+ and check if they are for a terminal, like SVr4
+
+
+ -
+
modify mcprint
to use file descriptor in
+ SCREEN
, for consistency
+
+
+ -
+
modify internal function _nc_read_file_entry
+ to show relevant filename in warnings
-
-
modify wnoutrefresh to call pnoutrefresh
- if its parameter is a pad, rather than treating it as an
- error, and modify new_panel to permit its window-parameter to
- be a pad
+ improve checks in internal function
+ convert_string
for corrupt terminfo entry
-
-
modify curses_trace() to show the trace-mask as symbols,
- e.g., TRACE_ORDINARY, DEBUG_LEVEL(3).
+ review/improve handling of out-of-memory conditions
-
-
improve checks for valid mouse events when an intermediate
- mouse state is not part of the mousemask specified by the
- caller
+ limit delays to 30 seconds, i.e., padding delays in
+ terminfo, as well as napms
and
+ delay_output
functions
-
-
allow extended-color number in opts parameter of
- wattr_on.
+ fix reallocation loop for vsnprintf
in
+ _nc_sprintf_string
by copying the va_list
+ variable
-
-
improve _tracecchar_t2 formatting of
- base+combining character.
+ modify delscreen
to delete only windows associated
+ with the screen
-
-
trim out some unwanted linker options from ncurses*config
- and .pc files seen in Fedora 36+.
+ modify endwin
to return an error if it is
+ called again without an intervening screen update
-
-
improve shell-scripts with shellcheck
+ modify wenclose
to handle pads
-
-
improve use of "trap" in shell scripts, using a
- script.
+ eliminate use of PATH_MAX
in
+ lib_trace.c
-
-
modify make-tar.sh scripts to make timestamps
- more predictable.
+ provide for any CCHARW_MAX
greater than 1
@@ -243,19 +351,32 @@
-
-
modify misc/gen-pkgconfig.in to allow for the
- case where the library directory does not yet exist, since
- this is processed before doing an install
+ correct loop termination condition in
+ waddnstr
and waddnwstr
+
+
+ -
+
improve parsing in internal function
+ _nc_msec_cost
, allowing a single decimal
+ point
-
-
set trailing null on string passed from winsnstr
- to wins_nwstr.
+ amend parameter check for entire string versus specific
+ length in winsnstr
and wins_nwstr
+ to match Solaris; make similar correction to
+ wins_nwstr
-
-
modify waddch_literal to allow for double-width
- base character when merging a combining character
+ correct internal function wadd_wch_literal
+ when adding a non-spacing character to a double-width
+ character
+
+
+ -
+
correct definition of Charable
macro for
+ non-wide ncurses library .
@@ -263,7 +384,9 @@
improvements
Several improvements were made to the
- utility programs:
+ utility programs. Some were done to make the infocmp
+ option “-u” option help refactor the
+ terminal database.
-
- - rewrite canonical_name function of
- infocmp to ensure buffer size
+ -
+
add limit checks for processing extended capabilities
+ with the “-u
” option
+
- - improve readability of long parameterized expressions
- with the infocmp “-f” option by
- allowing split before a “%p”
- marker.
+ -
+
correct initial alignment of extended capabilities, so
+ that the “-u
” option can be used
+ for more than two terminal types
+
- - modify verbose-option of infocmp,
- tic, toe to enable debug-tracing if that
- is configured.
+ -
+
modify “-u
” option to not
+ report cancels for strings which were already cancelled
+ in a use'd chunk.
+
+
+ -
+
correct an assignment “-u
”
+ for detecting if a boolean is unset in a base entry and
+ set in a use'd chunk, i.e., if it was cancelled.
+
- tabs
+ "@HOMEPAGE@/man/tic.1m.html">tic
- - limit tab-stop values to max-columns
+ -
+
+ -
+
correct limit-check when dumping tc/use clause via
+ “-I
”
+
- - tic
-
+ -
+
check return value of _nc_save_str
, in
+ special case where extended capabilities are processed
+ but the terminal description was not initialized
+
- - add consistency check in tic for u6/u7/u8/u9 and NQ
- capabilities.
+ -
+
modify check for multiply defined aliases to report
+ problems within the current runtime rather than for
+ conflicts with pre-existing terminal descriptions.
+
+
+ -
+
disallow using $TERMINFO
or
+ $HOME/.terminfo
when
+ “-o
” option is used
+
+
+
- tput
-
+ "@HOMEPAGE@/man/tput.1.html">tput and tset
+
+ -
+
+ -
+
add “-v
” option to tput, to
+ show warnings
+
- - corrected use of original tty-modes in init/reset
- subcommands
+ -
+
modify reset command to avoid altering clocal
+ if the terminal uses a modem
+
+
+ -
+
modify reset feature to avoid 1-second sleep
+ if running in a pseudo-terminal
+
+
+
Along with the library and utilities, improvements were made
to the ncurses-examples. Most of
- this activity aimed at improving the test-packages:
+ "@HOMEPAGE@/ncurses-examples.html">ncurses-examples:
-
-
add minimal -h (usage) and -V (version)
- getopt logic to all ncurses-examples programs.
-
-
- -
-
fix an error in "@" command in test/ncurses.c
- F-menu
-
-
- -
-
add curses_trace to ifdef's for START_TRACE in
- test/test.priv.h
-
-
- -
-
improve pthread-configuration for test/worm.c
-
-
- -
-
add setlocale call to several test-programs.
+ modify test_tparm
to account for extended
+ capabilities
-
-
workaround in test/picsmap.c for use of floating
- point for rgb values by ImageMagick 6.9.11, which appears to
- use the wrong upper limit.
+ corrected mouse mask in test/testcurs.c
-
-
use static libraries for AdaCurses test-package for
- Mageia, since no gprbuild package is available.
+ modify test/clip_printw.c
to optionally test
+ non-wrapped updates
-
-
install Ada95 sample programs in libexecdir, adding a
- wrapper script to invoke those.
+ modify test/test_mouse.c
to use curses api
+ for raw/noraw
-
-
install ncurses-examples programs in libexecdir, adding a
- wrapper script to invoke those.
+ modify test/clip_printw.c
to optionally test
+ non-wrapped updates
- There are other new demo/test programs and reusable
- examples:
+ There is one new demo/test programs:
- - test/combine
+
- test/test_endwin.c
- - demonstrate combining characters
-
- - test/test_delwin
-
-
- - demonstrate deleting a window
-
- - test/test_mouse
-
-
- - observe mouse events in the raw terminal or parsed ncurses
- modes
-
- - test/test_unget_wch
-
-
- - demonstrate the unget_wch and unget functions
+ -
+
This program shows the return-status from
+ endwin
with different combinations of
+ endwin
(repeated), initscr
,
+ newterm
.
+
@@ -391,190 +527,159 @@
There are several new terminal descriptions:
- There are many changes to existing terminal descriptions. Some
- were updates to several descriptions:
-
-
- while others affected specific descriptions. These were
- retested, to take into account changes by their developers:
+ There are many changes to existing terminal descriptions. Some
+ were updates to several descriptions, using the
+ infocmp
“-u
” option in a
+ script to determine which building-block entries could
+ be used to replace multiple capability settings (and trim
+ redundant information).
+
+ Other changes include:
- while these are specific fixes based on reviewing
- documentation, user reports, or warnings from tic:
-
-
- - att610+cvis0
-
-
- - amended note as per documentation for att610, att620,
- att730
-
- - kon,
- kon2, jfbterm
-
- - revise to undo "linux2.6" change to smacs/rmacs/enacs
-
- - st-0.6
-
-
- - add dim, ecma+strikeout
-
- - foot+base
-
-
- - add xterm+sl-alt
-
- - dec+sl
-
-
- - correct dsl in dec+sl
-
- - mintty and
- tmux
-
- - correct setal in mintty/tmux entries, add to vte-2018
-
- - nsterm
-
+
+ remove DECCOLM+DECSCLM from foot
+
- modify nsterm to use xterm+alt1049
+
+ add xterm+focus to foot+base
+
- putty
-
+
+ add ecma+strikeout to putty
+
- modify putty to use xterm+alt1049
+
+ use CSI 3J in vte-2017
+
- vte-2018
-
+
+ use oldxterm+sm+1006 in vte-2014
+
- add blink and setal
-
+
+ modify xgterm
+ to work around line-drawing bug
+
- A few entries use extensions (user-defined terminal
- capabilities):
+
+ add xterm focus mode 1004 to xterm+focus
+ as fe/fd capabilities, like vim.
+
-
-
-
use ansi+enq and decid+cpr in cases
- where the terminal probably supported the u6-u9 extension
+ add xterm+focus to alacritty+common
-
-
remove u6-u9 from teken-2018
+ add XR/xr, to work with vim, and use RV/rv to denote DA2
+ and its response
-
-
use NQ to flag entries where the terminal does
- not support query and response
+ add XF flag to xterm+focus
+ so that termcap applications can be aware of terminals which
+ may support focus in/out
-
-
add/use bracketed+paste
- to help identify terminals supporting this xterm feature
+ use xterm+focus in xterm-p370
+ and tmux
-
-
modify samples for xterm mouse 1002/1003 modes to use 1006
- mode, and also provide for focus in/out responses
+ remove xterm+sm+1006 from tmux
-
-
xterm patch #371 supports DEC-compatible status-line. add
- dec+sl to xterm-new, per xterm #371, add xterm-p371,
- add xterm-p370,
- for use in older terminals, and set “xterm-new”
- to “xterm-p370” (to ease adoption).
+ NetBSD-related fixes for x68k and
+ wsvt25
@@ -610,103 +715,88 @@
-
-
remove a stray '/' from description of %g in
-
- terminfo(5).
+ add assignment in CF_MAN_PAGES
to fill in
+ value for TERMINFO_DIRS
in ncurses, terminfo
+ and tic manpages.
-
-
correct/improve font-formatting in curs_getch.3x, as
- well as other manual pages.
+ clarify interaction of -R
option versus
+ -C
, -I
and -r
in
+ infocmp
manpage.
-
-
-
-
- New/improved history and portability sections:
-
-
-
add portability notes for delscreen
- and delwin
- in manual.
+ correct manpage description of panel_hidden.
-
-
improve curs_slk.3x
- discussion of extensions and portability
+ improve manpage description for addch versus unctrl
+ format used for non-printable characters.
-
-
-
- Other improvements:
-
-
-
-
improve curs_bkgd.3x,
- explaining that bkgdset can affect results for
- bkgd
+ improve manpages discussing file descriptors in
+ low-level functions.
-
-
add note on portable memory-leak checking in curs_memleaks.3x
+ improve description of search rules for terminal
+ descriptions in terminfo manpage.
-
-
expanded description in resizeterm.3x
+ modify dist.mk to avoid passing developer's comments
+ in manpages into the generated html documentation.
-
-
add section on releasing memory to
- curs_termcap.3x and
- curs_terminfo.3x manpages.
+ modify test-package "ncurses6-doc" to use
+ manpage-aliases, which in turn required a change to the
+ configure script to factor in the extra-suffix option
+ when deriving alias names.
+
+
+
+ New/improved history and portability sections:
+
+
-
-
add clarification of the scope of dynamic variables in
- terminfo(5).
+ add information about "ttycap", termcap's forerunner,
+ to tset.1
-
-
improve formatting of ncurses-intro.html
- and hackguide.html
+ document limitations of tparm, and error-returns in
+ curs_terminfo.3x
-
-
improve curs_clear.3x
- links to other pages
+ document limitations of tgoto, and error-returns in
+ curs_termcap.3x
+
+
+
+
+ Other improvements:
+
-
-
update ncurses-howto,
- making documentation fixes along with corrections to
- example programs.
+ This release has many changes to improve the
+ formatting and style of the manpages.
-
-
use newer version 1.36 of gnathtml for generating Ada
- html files.
+ Manpages now use consistent section-naming, page
+ headers and footers (including the modification date for
+ each page).
-
-
update external links in Ada95.html
+ Table layout has been revised.
@@ -718,93 +808,162 @@
- While there were many bugs fixed during development of ncurses
- 6.4, only a few (the reason for this release) were both important
- and interesting. Most of the bug-fixes were for local issues
- which did not affect compatibility across releases. Since those
- are detailed in the NEWS file no elaboration is
- needed here.
+ The changes to tparm, tgoto which improve
+ the design of the low-level interfaces are interesting,
+ but are not bug-fixes per se.
+
+
+
+
- The interesting bugs were those dealing with memory leaks and
- buffer overflows. Although the utilities are designed for
- text files (which they do properly), some choose to test
- them with non-text files.
+ These are the major changes (aside from introducing tiparm_s):
-
-
Text files contain no embedded nulls. Also, they end with
- a newline. Feeding tic non-text files
- exposed a few cases where the program did not check for those
- issues. As a result, further processing of the input found
- limit-checks whose assumptions were invalid.
+ use wide-character (ncursesw) by default
-
-
Fixing the limit-checks (first) found a problem with
- tic managing the list of strings in a
- terminal description. In merging two terminal descriptions
- (i.e., the “use=” feature), tic
- was not allocating a complete copy. A quick repair for that
- introduced a memory leak.
+ use opaque typedefs by default
+
+ However, most of the work on configure scripts was done to
+ reduce warnings within the configure script:
+
+
-
-
The checks for non-text files are improved (i.e., embedded
- nulls in the input file will cause tic to
- reject it rather than attempting to process it).
+ intrusive warnings from GNU grep regarding fgrep and
+ egrep
-
-
The string allocations in tic are
- likewise improved.
+ fatal errors in compile-checks, arising from recent
+ “Modern C” efforts by some developers which
+ caused longstanding configure checks to fail.
+
+ After repairing the configure script, none of that
+ activity affected ncurses because stricter warnings are used
+ routinely in development.
-
+ Other improvements made to configure checks include
-
+
+ -
+
use string-hacks
+ in alloc_entry.c, alloc_type.c and hardscroll.c, overlooked
+ due to compiler changes in recent OpenBSD releases
+
+
+ -
+
revise progs.priv.h to provide for NC_ISATTY reuse
+
+
+ -
+
configure check for MB_LEN_MAX provides warning as
+ needed
+
+
+ -
+
trim a space after some "-R" options, fixing builds for
+ applications built using clang and ncurses on Solaris
+
- There are no major changes. No new options were added. Several
- improvements were made to configure checks.
+ -
+
work around misconfiguration of MacPorts gcc13, which
+ exposes invalid definition of MB_LEN_MAX in gcc's
+ fallback copy of limits.h
+
+
+ -
+
modified experimental Windows driver works with xterm
+ mouse protocol
+
+
- There are a few new/modified configure options:
+ There are a few new configure options:
- - --with-abi-version
+
- --disable-setuid-environ
-
-
add ABI 7 defaults to configure script.
+ Compile with environment restriction, so certain
+ environment variables are not available when running via a
+ setuid/setgid application. These are (for example
+ $TERMINFO) those that allow the search path for the
+ terminfo or termcap entry to be customized.
+
+ A setuid/setgid application inherits its environment
+ variables from the current user, in contrast to sudo which
+ may limit the environment variables that ncurses uses.
- - --with-caps
+
- --enable-check-size
-
-
add warning in configure script if file specified for
- “--with-caps” does not exist.
+ Compile-in feature to detect screensize for terminals
+ which do not advertise their screensize, e.g., serial
+ terminals.
- - --with-manpage-format
+
- --with-abi-altered=NUM
-
-
bzip2 and xz compression are now supported
+ Override the displayed (rather than compiled-in) ABI. Only
+ packagers who have created configurations where the ABI
+ differs from ncurses should be interested in this option.
- - --with-xterm-kbs
+
- --with-strip-program=XXX
-
-
add check/warning in configure script if option
- “--with-xterm-kbs” is missing or
- inconsistent
+ When stripping executables during install, use the
+ specified program rather than “strip” overriding
+ program chosen by the install program for stripping
+ executables.
+
+
+
+ These configure options are modified:
+
+
+ - --with-pkg-config-libdir[=DIR]
+
+
+ -
+
The optional DIR parameter can now be
+ “auto” to automatically use pkg-config's library
+ directory.
+
+ The default is $(libdir).
+
+
+ - --with-xterm-kbs[=XXX]
+
+
+ -
+
The default is “auto” which tells the
+ configure script to choose BS or DEL according to platform
+ defaults.
@@ -815,100 +974,117 @@
-
-
amend configure option's auto-search to account for
- systems where none of the directories known to
- pkg-config exist
+ add/use configure check for clock_gettime
, to
+ supersede gettimeofday
.
-
-
corrected regex needed for older pkg-config used
- in Solaris 10
+ modify configure script check for pkg-config library
+ directory to take into account an older version 0.15.0 which
+ used PKG_CONFIG_PATH but not PKG_CONFIG_LIBDIR
-
-
improve handling of --with-pkg-config-libdir
- option, allowing for the case where either
- $PKG_CONFIG_LIBDIR or the option value has a
- colon-separated list of directories
+ allow for MinGW32-/64-bit configurations to use
+ _DEFAULT_SOURCE
-
-
if the --with-pkg-config-libdir option is not
- given, use ${libdir}/pkgconfig as a default
+ modify CF_XOPEN_SOURCE macro's amend default case to avoid
+ undefining _XOPEN_SOURCE if _POSIX_C_SOURCE is defined
-
-
improve search-path check for pkg-config, e.g.,
- for Debian testing which installs pkg-config with
- architecture-prefixes.
+ updated configure script macro CF_XOPEN_SOURCE, for
+ uClibc-ng
-
-
build-fix for cross-compiling to MingW, conditionally add
- -lssp
+ modify version-check for gcc/g++, now works for msys2
-
-
improve configure check for getttynam
+ build-fixes related to configure-options and/or
+ platform:
+
+
+ - fix for --enable-fvisibility
+
+ - fix for unusual values of
+ --with-rel-version
+
+ - fix for unusual values of
+ --with-abi-version
+
+ - fix for --disable-tcap-names
+
+ - fix for termcap in nc_access.h
+
-
-
fixes to build with dietlibc:
+ other configure-script improvements:
- - add configure check for fpathconf
+ - recent msys2 headers work with
+ _DEFAULT_SOURCE; amend check
- - add configure check for math sine/cosine, needed in
- test/tclock, and eliminate pow() from
- test/hanoi
+ - use $ac_includes_default in most cases where
+ stdlib.h should work
- - use wcsnlen as an alternative to
- wmemchr if it is not found
+ - use #error consistently vs "make an
+ error"
+
+ - add configure macro for gettimeofday vs inline
+ check
+
+ Here are some of the other portability fixes:
+
+
-
-
modify configure macro CF_BUILD_CC to check if
- the build-compiler works, rather than that it is different
- from the cross-compiler, e.g., to accommodate a compiler
- which can be used for either purpose with different flags
+ modify configure scripts/makefiles to omit
+ KEY_RESIZE if the corresponding SIGWINCH
+ feature is disabled
-
-
modify configure/scripts to work around interference by
- GNU grep 3.8
+ increase MB_CUR_MAX to 16, matching glibc's
+ MB_LEN_MAX
-
- Here are some of the other portability fixes:
+
+ add BSD erase2 to characters handled by
+ tset/reset
+
-
-
-
change man_db.renames to template, to handle
- ncurses*-config script with the
- --extra-suffix configure option.
+ use getauxval when available, to improve
+ setuid/setgid checks
-
-
update CF_XOPEN_SOURCE macro, adding variants
- “gnueabi" and “gnueabihf" to get
- _DEFAULT_SOURCE special case, as well as adding GNU
- libc suffixes for “abi64”, “abin32”,
- “x32” to distinguish it from other libc
- flavors.
+ set dwShareMode in calls to
+ CreateConsoleScreenBuffer
-
-
work around musl's nonstandard use of feature
- test macros by adding a definition for
- NCURSES_WIDECHAR to the generated “.pc”
- and *-config files.
+ use CreateFile with "CONIN$",
+ "CONOUT$" rather than GetStdHandle to
+ obtain a handle on the actual console, avoiding redirection
+ in the MinGW/Win32 configurations
-
-
use “command -v” rather than
- “type” in Ada95/gen/Makefile.in
- to fix a portability issue.
+ modify MinGW driver to return KEY_BACKSPACE when
+ an unmodified VK_BACK virtual key is entered
+
+
+ -
+
modify MinGW configuration to provide for running in
+ MSYS/MSYS2 shells, assuming ConPTY support
@@ -927,30 +1103,31 @@
- ncurses supports all of the
- for SVr4 curses features including keyboard mapping, color,
- forms-drawing with ACS characters, and automatic recognition
+
ncurses supports the
+ features of SVr4 curses including keyboard mapping, color,
+ form drawing with ACS characters, and automatic recognition
of keypad and function keys.
- ncurses provides these SVr4
- add-on libraries (not part of X/Open Curses):
+ ncurses provides work-alike
+ replacements of SVr4 supplemental libraries based on curses,
+ but which were not specified by X/Open Curses:
-
-
the panels library, supporting a stack of windows with
- backing store.
+ the panel library, permitting windows to stack and
+ overlap
-
-
the menus library, supporting a uniform but flexible
- interface for menu programming.
+ the menu library, supporting a uniform but flexible
+ interface for menu programming
-
the form library, supporting data collection through
- on-screen forms.
+ on-screen forms
@@ -962,7 +1139,7 @@
-
ncurses supports
- user-defined capabilities which it can see, but which are
+ user-defined capabilities that it can see, but which are
hidden from SVr4 curses applications using the
same terminal database.
@@ -994,8 +1171,8 @@
-
The API is 8-bit clean and base-level conformant with the
- X/OPEN curses specification, XSI curses (that is, it
- implements all BASE level features, and most
+ X/Open Curses specification, XSI curses (that is, it
+ implements all BASE level features, and almost all
EXTENDED features). It includes many function calls
not supported under SVr4 curses (but portability of all calls
is documented so you can use the SVr4 subset only).
@@ -1135,10 +1312,27 @@
-
-
The library meets the XSI requirement that every macro
- entry point has a corresponding function which may be linked
- (and will be prototype-checked) if the macro definition is
- disabled with #undef
.
+ X/Open Curses permits most functions it specifies to be
+ made available as macros as well. ncurses does this
+
+
+ - to improve performance, e.g., for operations composed
+ of simpler functions such as cursor movement following by
+ adding text to the screen,
+
+ - to simplify the implementation by reusing functions
+ which use common parameters, e.g., the standard screen
+
stdscr
, and
+
+ - to provide functions that return values via their
+ parameters
+
+
+ Except for the last case, ncurses provides a non-macro
+ implementation of the function. If the macro definition is
+ disabled with #undef
, or by defining
+ NCURSES_NOMACROS
the function may be linked (and
+ its calls will be checked against the prototype).
-
@@ -1240,7 +1434,8 @@
New vi uses ncurses.
https://sites.google.com/a/bostic.com/keithbostic/vi
+ "https://sites.google.com/a/bostic.com/keithbostic/the-berkeley-vi-editor-home-page">
+ https://sites.google.com/a/bostic.com/keithbostic/the-berkeley-vi-editor-home-page
@@ -1288,7 +1483,7 @@
terminal emulator for serial modem connections
https://alioth.debian.org/projects/minicom/
+ "https://salsa.debian.org/minicom-team/minicom">https://salsa.debian.org/minicom-team/minicom
- mosh
@@ -1432,19 +1627,17 @@
https://invisible-island.net/archives/ncurses/6.3/
+ "https://invisible-island.net/archives/ncurses/6.4/">https://invisible-island.net/archives/ncurses/6.4/
and
https://invisible-mirror.net/archives/ncurses/6.3/ .
+ "https://invisible-mirror.net/archives/ncurses/6.4/">https://invisible-mirror.net/archives/ncurses/6.4/ .
There is an archive of the mailing list here:
http://lists.gnu.org/archive/html/bug-ncurses
- (also https)
+ "https://lists.gnu.org/archive/html/bug-ncurses">https://lists.gnu.org/archive/html/bug-ncurses .
Related
@@ -1486,14 +1679,15 @@
Eric
Raymond . Unlike the older version, the termcap and
terminfo data are provided in the same file, which also provides
- several user-definable extensions beyond the X/Open
+ several user-definable extensions beyond the X/Open Curses
specification.
You can find lots of information on terminal-related topics
- not covered in the terminfo file at
- Richard Shuford's archive . The collection of computer
- manuals at Richard Shuford's
+ archive (original).
+ The collection of computer manuals at bitsavers.org has also been
useful.
diff --git a/c++/Makefile.in b/c++/Makefile.in
index 99f21da4..61e25e6b 100644
--- a/c++/Makefile.in
+++ b/c++/Makefile.in
@@ -1,6 +1,6 @@
-# $Id: Makefile.in,v 1.133 2021/07/03 18:53:57 tom Exp $
+# $Id: Makefile.in,v 1.135 2024/08/11 15:48:44 tom Exp $
##############################################################################
-# Copyright 2018-2020,2021 Thomas E. Dickey #
+# Copyright 2018-2021,2024 Thomas E. Dickey #
# Copyright 1998-2015,2016 Free Software Foundation, Inc. #
# #
# Permission is hereby granted, free of charge, to any person obtaining a #
@@ -54,7 +54,9 @@ libdir = @libdir@
includedir = @includedir@
includesubdir = @includesubdir@
-INCLUDEDIR = $(DESTDIR)$(includedir)$(includesubdir)
+INCLUDEDIR = $(DESTDIR)$(includedir@MERGE_PREFIX@)$(includesubdir)
+BINDIR = $(DESTDIR)$(bindir@MERGE_PREFIX@)
+LIBDIR = $(DESTDIR)$(libdir@MERGE_PREFIX@)
PACKAGE = @PACKAGE@
@@ -191,7 +193,7 @@ sources : $(AUTO_SRC)
tags:
$(CTAGS) *.[h] *.cc
-$(DESTDIR)$(libdir) :
+$(LIBDIR) :
mkdir -p $@
mostlyclean ::
diff --git a/c++/cursesapp.cc b/c++/cursesapp.cc
index 81f60983..5cfc105a 100644
--- a/c++/cursesapp.cc
+++ b/c++/cursesapp.cc
@@ -1,6 +1,6 @@
// * this is for making emacs happy: -*-Mode: C++;-*-
/****************************************************************************
- * Copyright 2019,2020 Thomas E. Dickey *
+ * Copyright 2019-2020,2025 Thomas E. Dickey *
* Copyright 1998-2007,2008 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
@@ -36,7 +36,7 @@
#include "internal.h"
#include "cursesapp.h"
-MODULE_ID("$Id: cursesapp.cc,v 1.18 2020/07/18 19:57:11 anonymous.maarten Exp $")
+MODULE_ID("$Id: cursesapp.cc,v 1.19 2025/01/25 21:20:17 tom Exp $")
void
NCursesApplication::init(bool bColors)
@@ -65,9 +65,9 @@ NCursesApplication::init(bool bColors)
Root_Window->bkgd(' '|window_backgrounds());
}
-NCursesApplication* NCursesApplication::theApp = 0;
-NCursesWindow* NCursesApplication::titleWindow = 0;
-NCursesApplication::SLK_Link* NCursesApplication::slk_stack = 0;
+NCursesApplication* NCursesApplication::theApp = NULL;
+NCursesWindow* NCursesApplication::titleWindow = NULL;
+NCursesApplication::SLK_Link* NCursesApplication::slk_stack = NULL;
NCursesWindow *&NCursesApplication::getTitleWindow() {
@@ -79,7 +79,7 @@ NCursesApplication::~NCursesApplication() THROWS(NCursesException)
Soft_Label_Key_Set* S;
delete titleWindow;
- titleWindow = 0;
+ titleWindow = NULL;
while( (S=top()) ) {
pop();
@@ -87,7 +87,7 @@ NCursesApplication::~NCursesApplication() THROWS(NCursesException)
}
delete Root_Window;
- Root_Window = 0;
+ Root_Window = NULL;
::endwin();
}
@@ -105,7 +105,7 @@ int NCursesApplication::rinit(NCursesWindow& w)
void NCursesApplication::push(Soft_Label_Key_Set& S)
{
SLK_Link* L = new SLK_Link;
- assert(L != 0);
+ assert(L != NULL);
L->prev = slk_stack;
L->SLKs = &S;
slk_stack = L;
@@ -121,7 +121,7 @@ bool NCursesApplication::pop()
delete L;
if (Root_Window) {
Soft_Label_Key_Set* xx = top();
- if (xx != 0)
+ if (xx != NULL)
xx->show();
}
}
@@ -139,7 +139,7 @@ Soft_Label_Key_Set* NCursesApplication::top() const
int NCursesApplication::operator()(void)
{
bool bColors = b_Colors;
- Soft_Label_Key_Set* S = 0;
+ Soft_Label_Key_Set* S = NULL;
int ts = titlesize();
if (ts>0)
@@ -147,7 +147,7 @@ int NCursesApplication::operator()(void)
Soft_Label_Key_Set::Label_Layout fmt = useSLKs();
if (fmt!=Soft_Label_Key_Set::None) {
S = new Soft_Label_Key_Set(fmt);
- assert(S != 0);
+ assert(S != NULL);
init_labels(*S);
}
diff --git a/c++/cursesf.cc b/c++/cursesf.cc
index 5d316489..747564da 100644
--- a/c++/cursesf.cc
+++ b/c++/cursesf.cc
@@ -1,6 +1,6 @@
// * this is for making emacs happy: -*-Mode: C++;-*-
/****************************************************************************
- * Copyright 2019-2020,2021 Thomas E. Dickey *
+ * Copyright 2019-2024,2025 Thomas E. Dickey *
* Copyright 1998-2005,2011 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
@@ -36,7 +36,7 @@
#include "cursesf.h"
#include "cursesapp.h"
-MODULE_ID("$Id: cursesf.cc,v 1.26 2021/04/17 18:11:08 tom Exp $")
+MODULE_ID("$Id: cursesf.cc,v 1.28 2025/01/25 21:20:17 tom Exp $")
NCursesFormField::~NCursesFormField () THROWS(NCursesException)
{
@@ -50,33 +50,39 @@ NCursesFormField::~NCursesFormField () THROWS(NCursesException)
FIELD**
NCursesForm::mapFields(NCursesFormField* nfields[])
{
- int fieldCount = 0,lcv;
+ int fieldCount = 0, lcv;
FIELD** old_fields;
- assert(nfields != 0);
+ assert(nfields != NULL);
for (lcv=0; nfields[lcv]->field; ++lcv)
++fieldCount;
- FIELD** fields = new FIELD*[fieldCount + 1];
+ try {
+ FIELD** fields = new FIELD*[fieldCount + 1];
- for (lcv=0;nfields[lcv]->field;++lcv) {
- fields[lcv] = nfields[lcv]->field;
- }
- fields[lcv] = NULL;
+ for (lcv=0;nfields[lcv]->field;++lcv) {
+ fields[lcv] = nfields[lcv]->field;
+ }
+ fields[lcv] = NULL;
- my_fields = nfields;
+ my_fields = nfields;
- if (form && (old_fields = ::form_fields(form))) {
- ::set_form_fields(form, static_cast(0));
- delete[] old_fields;
+ if (form && (old_fields = ::form_fields(form))) {
+ ::set_form_fields(form, static_cast(0));
+ delete[] old_fields;
+ }
+ return fields;
}
- return fields;
+ catch (std::bad_alloc const&) {
+ OnError (E_SYSTEM_ERROR);
+ }
+ return NULL;
}
void NCursesForm::setDefaultAttributes()
{
- NCursesApplication* S = NCursesApplication::getApplication();
+ const NCursesApplication* S = NCursesApplication::getApplication();
int n = count();
if (n > 0) {
@@ -108,46 +114,51 @@ NCursesForm::InitForm(NCursesFormField* nfields[],
bool with_frame,
bool autoDelete_Fields)
{
- int mrows, mcols;
-
- keypad(TRUE);
- meta(TRUE);
-
- b_framed = with_frame;
- b_autoDelete = autoDelete_Fields;
-
- form = static_cast