mirror of
https://github.com/ThomasDickey/ncurses-snapshots.git
synced 2026-01-26 11:04:35 +00:00
snapshot of project "ncurses", label v6_3_20220910
This commit is contained in:
parent
c561755abe
commit
175606e266
58
Ada95/aclocal.m4
vendored
58
Ada95/aclocal.m4
vendored
@ -29,7 +29,7 @@ dnl***************************************************************************
|
||||
dnl
|
||||
dnl Author: Thomas E. Dickey
|
||||
dnl
|
||||
dnl $Id: aclocal.m4,v 1.193 2022/01/29 22:06:07 tom Exp $
|
||||
dnl $Id: aclocal.m4,v 1.194 2022/09/10 19:25:56 tom Exp $
|
||||
dnl Macros used in NCURSES Ada95 auto-configuration script.
|
||||
dnl
|
||||
dnl These macros are maintained separately from NCURSES. The copyright on
|
||||
@ -4523,34 +4523,20 @@ top_builddir=ifelse($1,,`pwd`,$1)
|
||||
AC_SUBST(top_builddir)
|
||||
])dnl
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl CF_TRY_XOPEN_SOURCE version: 3 updated: 2021/08/28 15:20:37
|
||||
dnl CF_TRY_XOPEN_SOURCE version: 4 updated: 2022/09/10 15:16:16
|
||||
dnl -------------------
|
||||
dnl If _XOPEN_SOURCE is not defined in the compile environment, check if we
|
||||
dnl can define it successfully.
|
||||
AC_DEFUN([CF_TRY_XOPEN_SOURCE],[
|
||||
AC_CACHE_CHECK(if we should define _XOPEN_SOURCE,cf_cv_xopen_source,[
|
||||
AC_TRY_COMPILE([
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
],[
|
||||
#ifndef _XOPEN_SOURCE
|
||||
make an error
|
||||
#endif],
|
||||
AC_TRY_COMPILE(CF__XOPEN_SOURCE_HEAD,CF__XOPEN_SOURCE_BODY,
|
||||
[cf_cv_xopen_source=no],
|
||||
[cf_save="$CPPFLAGS"
|
||||
CF_APPEND_TEXT(CPPFLAGS,-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE)
|
||||
AC_TRY_COMPILE([
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
],[
|
||||
#ifdef _XOPEN_SOURCE
|
||||
make an error
|
||||
#endif],
|
||||
[cf_cv_xopen_source=no],
|
||||
[cf_cv_xopen_source=$cf_XOPEN_SOURCE])
|
||||
CPPFLAGS="$cf_save"
|
||||
AC_TRY_COMPILE(CF__XOPEN_SOURCE_HEAD,CF__XOPEN_SOURCE_BODY,
|
||||
[cf_cv_xopen_source=no],
|
||||
[cf_cv_xopen_source=$cf_XOPEN_SOURCE])
|
||||
CPPFLAGS="$cf_save"
|
||||
])
|
||||
])
|
||||
|
||||
@ -5005,7 +4991,7 @@ AC_ARG_WITH(system-type,
|
||||
])
|
||||
])dnl
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl CF_XOPEN_SOURCE version: 59 updated: 2021/08/28 15:20:37
|
||||
dnl CF_XOPEN_SOURCE version: 60 updated: 2022/09/10 15:16:16
|
||||
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,
|
||||
@ -5056,7 +5042,7 @@ case "$host_os" in
|
||||
cf_xopen_source="-D_SGI_SOURCE"
|
||||
cf_XOPEN_SOURCE=
|
||||
;;
|
||||
(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
|
||||
(linux*gnu|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
|
||||
CF_GNU_SOURCE($cf_XOPEN_SOURCE)
|
||||
;;
|
||||
(minix*)
|
||||
@ -5105,7 +5091,13 @@ case "$host_os" in
|
||||
;;
|
||||
(*)
|
||||
CF_TRY_XOPEN_SOURCE
|
||||
cf_save_xopen_cppflags="$CPPFLAGS"
|
||||
CF_POSIX_C_SOURCE($cf_POSIX_C_SOURCE)
|
||||
# Some of these niche implementations use copy/paste, double-check...
|
||||
CF_VERBOSE(checking if _POSIX_C_SOURCE inteferes)
|
||||
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"])
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -5149,3 +5141,23 @@ dnl ------------------
|
||||
dnl Trim something using sed, then trim extra whitespace
|
||||
dnl $1 = extra parameters, e.g., in CF_STRIP_G_OPT
|
||||
define([CF__SED_TRIMBLANKS],[sed ifelse($1,,,[$1] )-e 's%[[ ]]% %g' -e 's% [[ ]]*% %g' -e 's%^ %%' -e 's% [$]%%'])dnl
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl CF__XOPEN_SOURCE_BODY version: 1 updated: 2022/09/10 15:17:35
|
||||
dnl ---------------------
|
||||
dnl body of test when test-compiling for _XOPEN_SOURCE check
|
||||
define([CF__XOPEN_SOURCE_BODY],
|
||||
[
|
||||
#ifndef _XOPEN_SOURCE
|
||||
make an error
|
||||
#endif
|
||||
])
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl CF__XOPEN_SOURCE_HEAD version: 1 updated: 2022/09/10 15:17:03
|
||||
dnl ---------------------
|
||||
dnl headers to include when test-compiling for _XOPEN_SOURCE check
|
||||
define([CF__XOPEN_SOURCE_HEAD],
|
||||
[
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
])
|
||||
|
||||
1047
Ada95/configure
vendored
1047
Ada95/configure
vendored
File diff suppressed because it is too large
Load Diff
9
NEWS
9
NEWS
@ -26,7 +26,7 @@
|
||||
-- sale, use or other dealings in this Software without prior written --
|
||||
-- authorization. --
|
||||
-------------------------------------------------------------------------------
|
||||
-- $Id: NEWS,v 1.3853 2022/09/03 21:13:43 tom Exp $
|
||||
-- $Id: NEWS,v 1.3856 2022/09/10 22:31:34 tom Exp $
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
This is a log of changes that ncurses has gone through since Zeyd started
|
||||
@ -46,6 +46,13 @@ 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.
|
||||
|
||||
20220910
|
||||
+ amend verbose-option change to make this affect level 3, e.g., using
|
||||
"tic -cv3 terminfo".
|
||||
+ work around musl's nonstandard use of feature test macros by adding
|
||||
a definition for NCURSES_WIDECHAR to the generated ".pc" and *-config
|
||||
files (report by Sam James).
|
||||
|
||||
20220903
|
||||
+ modify verbose-option of infocmp, tic, toe to enable debug-tracing
|
||||
if that is configured.
|
||||
|
||||
58
aclocal.m4
vendored
58
aclocal.m4
vendored
@ -29,7 +29,7 @@ dnl***************************************************************************
|
||||
dnl
|
||||
dnl Author: Thomas E. Dickey 1995-on
|
||||
dnl
|
||||
dnl $Id: aclocal.m4,v 1.1009 2022/08/27 19:47:35 tom Exp $
|
||||
dnl $Id: aclocal.m4,v 1.1011 2022/09/10 19:23:45 tom Exp $
|
||||
dnl Macros used in NCURSES auto-configuration script.
|
||||
dnl
|
||||
dnl These macros are maintained separately from NCURSES. The copyright on
|
||||
@ -8370,34 +8370,20 @@ else
|
||||
fi
|
||||
])
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl CF_TRY_XOPEN_SOURCE version: 3 updated: 2021/08/28 15:20:37
|
||||
dnl CF_TRY_XOPEN_SOURCE version: 4 updated: 2022/09/10 15:16:16
|
||||
dnl -------------------
|
||||
dnl If _XOPEN_SOURCE is not defined in the compile environment, check if we
|
||||
dnl can define it successfully.
|
||||
AC_DEFUN([CF_TRY_XOPEN_SOURCE],[
|
||||
AC_CACHE_CHECK(if we should define _XOPEN_SOURCE,cf_cv_xopen_source,[
|
||||
AC_TRY_COMPILE([
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
],[
|
||||
#ifndef _XOPEN_SOURCE
|
||||
make an error
|
||||
#endif],
|
||||
AC_TRY_COMPILE(CF__XOPEN_SOURCE_HEAD,CF__XOPEN_SOURCE_BODY,
|
||||
[cf_cv_xopen_source=no],
|
||||
[cf_save="$CPPFLAGS"
|
||||
CF_APPEND_TEXT(CPPFLAGS,-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE)
|
||||
AC_TRY_COMPILE([
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
],[
|
||||
#ifdef _XOPEN_SOURCE
|
||||
make an error
|
||||
#endif],
|
||||
[cf_cv_xopen_source=no],
|
||||
[cf_cv_xopen_source=$cf_XOPEN_SOURCE])
|
||||
CPPFLAGS="$cf_save"
|
||||
AC_TRY_COMPILE(CF__XOPEN_SOURCE_HEAD,CF__XOPEN_SOURCE_BODY,
|
||||
[cf_cv_xopen_source=no],
|
||||
[cf_cv_xopen_source=$cf_XOPEN_SOURCE])
|
||||
CPPFLAGS="$cf_save"
|
||||
])
|
||||
])
|
||||
|
||||
@ -9864,7 +9850,7 @@ fi
|
||||
AC_SUBST(no_x11_rgb)
|
||||
])dnl
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl CF_XOPEN_SOURCE version: 59 updated: 2021/08/28 15:20:37
|
||||
dnl CF_XOPEN_SOURCE version: 60 updated: 2022/09/10 15:16:16
|
||||
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,
|
||||
@ -9915,7 +9901,7 @@ case "$host_os" in
|
||||
cf_xopen_source="-D_SGI_SOURCE"
|
||||
cf_XOPEN_SOURCE=
|
||||
;;
|
||||
(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
|
||||
(linux*gnu|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
|
||||
CF_GNU_SOURCE($cf_XOPEN_SOURCE)
|
||||
;;
|
||||
(minix*)
|
||||
@ -9964,7 +9950,13 @@ case "$host_os" in
|
||||
;;
|
||||
(*)
|
||||
CF_TRY_XOPEN_SOURCE
|
||||
cf_save_xopen_cppflags="$CPPFLAGS"
|
||||
CF_POSIX_C_SOURCE($cf_POSIX_C_SOURCE)
|
||||
# Some of these niche implementations use copy/paste, double-check...
|
||||
CF_VERBOSE(checking if _POSIX_C_SOURCE inteferes)
|
||||
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"])
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -10008,3 +10000,23 @@ dnl ------------------
|
||||
dnl Trim something using sed, then trim extra whitespace
|
||||
dnl $1 = extra parameters, e.g., in CF_STRIP_G_OPT
|
||||
define([CF__SED_TRIMBLANKS],[sed ifelse($1,,,[$1] )-e 's%[[ ]]% %g' -e 's% [[ ]]*% %g' -e 's%^ %%' -e 's% [$]%%'])dnl
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl CF__XOPEN_SOURCE_BODY version: 1 updated: 2022/09/10 15:17:35
|
||||
dnl ---------------------
|
||||
dnl body of test when test-compiling for _XOPEN_SOURCE check
|
||||
define([CF__XOPEN_SOURCE_BODY],
|
||||
[
|
||||
#ifndef _XOPEN_SOURCE
|
||||
make an error
|
||||
#endif
|
||||
])
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl CF__XOPEN_SOURCE_HEAD version: 1 updated: 2022/09/10 15:17:03
|
||||
dnl ---------------------
|
||||
dnl headers to include when test-compiling for _XOPEN_SOURCE check
|
||||
define([CF__XOPEN_SOURCE_HEAD],
|
||||
[
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
])
|
||||
|
||||
13
configure.in
13
configure.in
@ -29,7 +29,7 @@ dnl***************************************************************************
|
||||
dnl
|
||||
dnl Author: Thomas E. Dickey 1995-on
|
||||
dnl
|
||||
dnl $Id: configure.in,v 1.747 2022/08/20 19:54:19 tom Exp $
|
||||
dnl $Id: configure.in,v 1.748 2022/09/10 18:17:55 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.20210101)
|
||||
AC_REVISION($Revision: 1.747 $)
|
||||
AC_REVISION($Revision: 1.748 $)
|
||||
AC_INIT(ncurses/base/lib_initscr.c)
|
||||
AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
|
||||
|
||||
@ -960,6 +960,15 @@ if test "x$with_widec" = xyes ; then
|
||||
fi
|
||||
AC_DEFINE(USE_WIDEC_SUPPORT,1,[Define to 1 to compile with wide-char/UTF-8 code])
|
||||
AC_DEFINE(NCURSES_WIDECHAR,1,[Define to 1 to compile with wide-char/UTF-8 code])
|
||||
case "$CPPFLAGS" in
|
||||
(*_XOPEN_SOURCE=*)
|
||||
;;
|
||||
(*)
|
||||
AC_MSG_WARN(_XOPEN_SOURCE feature test macro appears to be predefined)
|
||||
# CPPFLAGS="$CPPFLAGS -DNCURSES_WIDECHAR"
|
||||
CPPFLAGS_after_XOPEN="$CPPFLAGS_after_XOPEN -DNCURSES_WIDECHAR"
|
||||
;;
|
||||
esac
|
||||
|
||||
CF_CHECK_WCHAR_H
|
||||
CF_CHECK_WCWIDTH_GRAPHICS
|
||||
|
||||
4
dist.mk
4
dist.mk
@ -26,7 +26,7 @@
|
||||
# use or other dealings in this Software without prior written #
|
||||
# authorization. #
|
||||
##############################################################################
|
||||
# $Id: dist.mk,v 1.1500 2022/09/03 11:56:16 tom Exp $
|
||||
# $Id: dist.mk,v 1.1501 2022/09/10 09:26:46 tom Exp $
|
||||
# Makefile for creating ncurses distributions.
|
||||
#
|
||||
# This only needs to be used directly as a makefile by developers, but
|
||||
@ -38,7 +38,7 @@ SHELL = /bin/sh
|
||||
# These define the major/minor/patch versions of ncurses.
|
||||
NCURSES_MAJOR = 6
|
||||
NCURSES_MINOR = 3
|
||||
NCURSES_PATCH = 20220903
|
||||
NCURSES_PATCH = 20220910
|
||||
|
||||
# We don't append the patch to the version, since this only applies to releases
|
||||
VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
ncurses6 (6.3+20220903) unstable; urgency=low
|
||||
ncurses6 (6.3+20220910) unstable; urgency=low
|
||||
|
||||
* latest weekly patch
|
||||
|
||||
-- Thomas E. Dickey <dickey@invisible-island.net> Sat, 03 Sep 2022 07:56:16 -0400
|
||||
-- Thomas E. Dickey <dickey@invisible-island.net> Sat, 10 Sep 2022 05:26:46 -0400
|
||||
|
||||
ncurses6 (5.9-20131005) unstable; urgency=low
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
ncurses6 (6.3+20220903) unstable; urgency=low
|
||||
ncurses6 (6.3+20220910) unstable; urgency=low
|
||||
|
||||
* latest weekly patch
|
||||
|
||||
-- Thomas E. Dickey <dickey@invisible-island.net> Sat, 03 Sep 2022 07:56:16 -0400
|
||||
-- Thomas E. Dickey <dickey@invisible-island.net> Sat, 10 Sep 2022 05:26:46 -0400
|
||||
|
||||
ncurses6 (5.9-20131005) unstable; urgency=low
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
ncurses6 (6.3+20220903) unstable; urgency=low
|
||||
ncurses6 (6.3+20220910) unstable; urgency=low
|
||||
|
||||
* latest weekly patch
|
||||
|
||||
-- Thomas E. Dickey <dickey@invisible-island.net> Sat, 03 Sep 2022 07:56:16 -0400
|
||||
-- Thomas E. Dickey <dickey@invisible-island.net> Sat, 10 Sep 2022 05:26:46 -0400
|
||||
|
||||
ncurses6 (5.9-20120608) unstable; urgency=low
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
; $Id: mingw-ncurses.nsi,v 1.540 2022/09/03 11:56:16 tom Exp $
|
||||
; $Id: mingw-ncurses.nsi,v 1.541 2022/09/10 09:26:46 tom Exp $
|
||||
|
||||
; TODO add examples
|
||||
; TODO bump ABI to 6
|
||||
@ -10,7 +10,7 @@
|
||||
!define VERSION_MAJOR "6"
|
||||
!define VERSION_MINOR "3"
|
||||
!define VERSION_YYYY "2022"
|
||||
!define VERSION_MMDD "0903"
|
||||
!define VERSION_MMDD "0910"
|
||||
!define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}
|
||||
|
||||
!define MY_ABI "5"
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
Summary: shared libraries for terminal handling
|
||||
Name: mingw32-ncurses6
|
||||
Version: 6.3
|
||||
Release: 20220903
|
||||
Release: 20220910
|
||||
License: X11
|
||||
Group: Development/Libraries
|
||||
Source: ncurses-%{version}-%{release}.tgz
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
Summary: shared libraries for terminal handling
|
||||
Name: ncurses6
|
||||
Version: 6.3
|
||||
Release: 20220903
|
||||
Release: 20220910
|
||||
License: X11
|
||||
Group: Development/Libraries
|
||||
Source: ncurses-%{version}-%{release}.tgz
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
Summary: Curses library with POSIX thread support.
|
||||
Name: ncursest6
|
||||
Version: 6.3
|
||||
Release: 20220903
|
||||
Release: 20220910
|
||||
License: X11
|
||||
Group: Development/Libraries
|
||||
Source: ncurses-%{version}-%{release}.tgz
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
* Author: Thomas E. Dickey 1997-on *
|
||||
****************************************************************************/
|
||||
/*
|
||||
* $Id: progs.priv.h,v 1.54 2022/09/03 23:28:26 tom Exp $
|
||||
* $Id: progs.priv.h,v 1.55 2022/09/10 21:47:39 tom Exp $
|
||||
*
|
||||
* progs.priv.h
|
||||
*
|
||||
@ -235,7 +235,7 @@ extern int optind;
|
||||
#define SIZEOF(v) (sizeof(v)/sizeof(v[0]))
|
||||
|
||||
#ifdef TRACE
|
||||
#define use_verbosity(level) do { set_trace_level(level); if (_nc_tracing) _nc_tracing |= TRACE_MAXIMUM; } while (0)
|
||||
#define use_verbosity(level) do { set_trace_level(level); if (_nc_tracing > DEBUG_LEVEL(2)) _nc_tracing |= TRACE_MAXIMUM; } while (0)
|
||||
#else
|
||||
#define use_verbosity(level) do { set_trace_level(level); } while (0)
|
||||
#endif
|
||||
|
||||
58
test/aclocal.m4
vendored
58
test/aclocal.m4
vendored
@ -27,7 +27,7 @@ dnl sale, use or other dealings in this Software without prior written *
|
||||
dnl authorization. *
|
||||
dnl***************************************************************************
|
||||
dnl
|
||||
dnl $Id: aclocal.m4,v 1.206 2022/08/20 20:13:23 tom Exp $
|
||||
dnl $Id: aclocal.m4,v 1.207 2022/09/10 19:31:11 tom Exp $
|
||||
dnl
|
||||
dnl Author: Thomas E. Dickey
|
||||
dnl
|
||||
@ -3902,34 +3902,20 @@ else
|
||||
fi
|
||||
])
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl CF_TRY_XOPEN_SOURCE version: 3 updated: 2021/08/28 15:20:37
|
||||
dnl CF_TRY_XOPEN_SOURCE version: 4 updated: 2022/09/10 15:16:16
|
||||
dnl -------------------
|
||||
dnl If _XOPEN_SOURCE is not defined in the compile environment, check if we
|
||||
dnl can define it successfully.
|
||||
AC_DEFUN([CF_TRY_XOPEN_SOURCE],[
|
||||
AC_CACHE_CHECK(if we should define _XOPEN_SOURCE,cf_cv_xopen_source,[
|
||||
AC_TRY_COMPILE([
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
],[
|
||||
#ifndef _XOPEN_SOURCE
|
||||
make an error
|
||||
#endif],
|
||||
AC_TRY_COMPILE(CF__XOPEN_SOURCE_HEAD,CF__XOPEN_SOURCE_BODY,
|
||||
[cf_cv_xopen_source=no],
|
||||
[cf_save="$CPPFLAGS"
|
||||
CF_APPEND_TEXT(CPPFLAGS,-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE)
|
||||
AC_TRY_COMPILE([
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
],[
|
||||
#ifdef _XOPEN_SOURCE
|
||||
make an error
|
||||
#endif],
|
||||
[cf_cv_xopen_source=no],
|
||||
[cf_cv_xopen_source=$cf_XOPEN_SOURCE])
|
||||
CPPFLAGS="$cf_save"
|
||||
AC_TRY_COMPILE(CF__XOPEN_SOURCE_HEAD,CF__XOPEN_SOURCE_BODY,
|
||||
[cf_cv_xopen_source=no],
|
||||
[cf_cv_xopen_source=$cf_XOPEN_SOURCE])
|
||||
CPPFLAGS="$cf_save"
|
||||
])
|
||||
])
|
||||
|
||||
@ -4361,7 +4347,7 @@ esac
|
||||
|
||||
])dnl
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl CF_XOPEN_SOURCE version: 59 updated: 2021/08/28 15:20:37
|
||||
dnl CF_XOPEN_SOURCE version: 60 updated: 2022/09/10 15:16:16
|
||||
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,
|
||||
@ -4412,7 +4398,7 @@ case "$host_os" in
|
||||
cf_xopen_source="-D_SGI_SOURCE"
|
||||
cf_XOPEN_SOURCE=
|
||||
;;
|
||||
(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
|
||||
(linux*gnu|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
|
||||
CF_GNU_SOURCE($cf_XOPEN_SOURCE)
|
||||
;;
|
||||
(minix*)
|
||||
@ -4461,7 +4447,13 @@ case "$host_os" in
|
||||
;;
|
||||
(*)
|
||||
CF_TRY_XOPEN_SOURCE
|
||||
cf_save_xopen_cppflags="$CPPFLAGS"
|
||||
CF_POSIX_C_SOURCE($cf_POSIX_C_SOURCE)
|
||||
# Some of these niche implementations use copy/paste, double-check...
|
||||
CF_VERBOSE(checking if _POSIX_C_SOURCE inteferes)
|
||||
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"])
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -4867,3 +4859,23 @@ char * XCursesProgramName = "test";
|
||||
#endif
|
||||
#endif
|
||||
])
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl CF__XOPEN_SOURCE_BODY version: 1 updated: 2022/09/10 15:17:35
|
||||
dnl ---------------------
|
||||
dnl body of test when test-compiling for _XOPEN_SOURCE check
|
||||
define([CF__XOPEN_SOURCE_BODY],
|
||||
[
|
||||
#ifndef _XOPEN_SOURCE
|
||||
make an error
|
||||
#endif
|
||||
])
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl CF__XOPEN_SOURCE_HEAD version: 1 updated: 2022/09/10 15:17:03
|
||||
dnl ---------------------
|
||||
dnl headers to include when test-compiling for _XOPEN_SOURCE check
|
||||
define([CF__XOPEN_SOURCE_HEAD],
|
||||
[
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
])
|
||||
|
||||
3169
test/configure
vendored
3169
test/configure
vendored
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user