mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-11 16:08:13 +00:00
Update from Gnulib by running admin/merge-gnulib
This commit is contained in:
parent
9c282faf26
commit
c3cfada3c0
16
build-aux/config.guess
vendored
16
build-aux/config.guess
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
# shellcheck disable=SC2006,SC2268 # see below for rationale
|
||||
|
||||
timestamp='2023-01-01'
|
||||
timestamp='2023-06-23'
|
||||
|
||||
# This file is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
@ -47,7 +47,7 @@ me=`echo "$0" | sed -e 's,.*/,,'`
|
||||
usage="\
|
||||
Usage: $0 [OPTION]
|
||||
|
||||
Output the configuration name of the system \`$me' is run on.
|
||||
Output the configuration name of the system '$me' is run on.
|
||||
|
||||
Options:
|
||||
-h, --help print this help, then exit
|
||||
@ -66,7 +66,7 @@ This is free software; see the source for copying conditions. There is NO
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||
|
||||
help="
|
||||
Try \`$me --help' for more information."
|
||||
Try '$me --help' for more information."
|
||||
|
||||
# Parse command line
|
||||
while test $# -gt 0 ; do
|
||||
@ -102,8 +102,8 @@ GUESS=
|
||||
# temporary files to be created and, as you can see below, it is a
|
||||
# headache to deal with in a portable fashion.
|
||||
|
||||
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
|
||||
# use `HOST_CC' if defined, but it is deprecated.
|
||||
# Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still
|
||||
# use 'HOST_CC' if defined, but it is deprecated.
|
||||
|
||||
# Portable tmp directory creation inspired by the Autoconf team.
|
||||
|
||||
@ -459,7 +459,7 @@ case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in
|
||||
UNAME_RELEASE=`uname -v`
|
||||
;;
|
||||
esac
|
||||
# Japanese Language versions have a version number like `4.1.3-JL'.
|
||||
# Japanese Language versions have a version number like '4.1.3-JL'.
|
||||
SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'`
|
||||
GUESS=sparc-sun-sunos$SUN_REL
|
||||
;;
|
||||
@ -1197,7 +1197,7 @@ EOF
|
||||
GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION
|
||||
;;
|
||||
i*86:OS/2:*:*)
|
||||
# If we were able to find `uname', then EMX Unix compatibility
|
||||
# If we were able to find 'uname', then EMX Unix compatibility
|
||||
# is probably installed.
|
||||
GUESS=$UNAME_MACHINE-pc-os2-emx
|
||||
;;
|
||||
@ -1338,7 +1338,7 @@ EOF
|
||||
GUESS=ns32k-sni-sysv
|
||||
fi
|
||||
;;
|
||||
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
||||
PENTIUM:*:4.0*:*) # Unisys 'ClearPath HMP IX 4000' SVR4/MP effort
|
||||
# says <Richard.M.Bartel@ccMail.Census.GOV>
|
||||
GUESS=i586-unisys-sysv4
|
||||
;;
|
||||
|
31
build-aux/config.sub
vendored
31
build-aux/config.sub
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
# shellcheck disable=SC2006,SC2268 # see below for rationale
|
||||
|
||||
timestamp='2023-01-21'
|
||||
timestamp='2023-06-26'
|
||||
|
||||
# This file is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
@ -82,7 +82,7 @@ This is free software; see the source for copying conditions. There is NO
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||
|
||||
help="
|
||||
Try \`$me --help' for more information."
|
||||
Try '$me --help' for more information."
|
||||
|
||||
# Parse command line
|
||||
while test $# -gt 0 ; do
|
||||
@ -130,7 +130,7 @@ IFS=$saved_IFS
|
||||
# Separate into logical components for further validation
|
||||
case $1 in
|
||||
*-*-*-*-*)
|
||||
echo Invalid configuration \`"$1"\': more than four components >&2
|
||||
echo "Invalid configuration '$1': more than four components" >&2
|
||||
exit 1
|
||||
;;
|
||||
*-*-*-*)
|
||||
@ -145,7 +145,8 @@ case $1 in
|
||||
nto-qnx* | linux-* | uclinux-uclibc* \
|
||||
| uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
|
||||
| netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
|
||||
| storm-chaos* | os2-emx* | rtmk-nova* | managarm-*)
|
||||
| storm-chaos* | os2-emx* | rtmk-nova* | managarm-* \
|
||||
| windows-* )
|
||||
basic_machine=$field1
|
||||
basic_os=$maybe_os
|
||||
;;
|
||||
@ -943,7 +944,7 @@ $basic_machine
|
||||
EOF
|
||||
IFS=$saved_IFS
|
||||
;;
|
||||
# We use `pc' rather than `unknown'
|
||||
# We use 'pc' rather than 'unknown'
|
||||
# because (1) that's what they normally are, and
|
||||
# (2) the word "unknown" tends to confuse beginning users.
|
||||
i*86 | x86_64)
|
||||
@ -1285,7 +1286,7 @@ case $cpu-$vendor in
|
||||
;;
|
||||
|
||||
*)
|
||||
echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
|
||||
echo "Invalid configuration '$1': machine '$cpu-$vendor' not recognized" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@ -1766,11 +1767,11 @@ case $os in
|
||||
;;
|
||||
none)
|
||||
;;
|
||||
kernel* )
|
||||
kernel* | msvc* )
|
||||
# Restricted further below
|
||||
;;
|
||||
*)
|
||||
echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2
|
||||
echo "Invalid configuration '$1': OS '$os' not recognized" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@ -1785,18 +1786,24 @@ case $kernel-$os in
|
||||
;;
|
||||
managarm-mlibc* | managarm-kernel* )
|
||||
;;
|
||||
windows*-gnu* | windows*-msvc*)
|
||||
;;
|
||||
-dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* | -mlibc* )
|
||||
# These are just libc implementations, not actual OSes, and thus
|
||||
# require a kernel.
|
||||
echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2
|
||||
echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2
|
||||
exit 1
|
||||
;;
|
||||
-kernel* )
|
||||
echo "Invalid configuration \`$1': \`$os' needs explicit kernel." 1>&2
|
||||
echo "Invalid configuration '$1': '$os' needs explicit kernel." 1>&2
|
||||
exit 1
|
||||
;;
|
||||
*-kernel* )
|
||||
echo "Invalid configuration \`$1': \`$kernel' does not support \`$os'." 1>&2
|
||||
echo "Invalid configuration '$1': '$kernel' does not support '$os'." 1>&2
|
||||
exit 1
|
||||
;;
|
||||
*-msvc* )
|
||||
echo "Invalid configuration '$1': '$os' needs 'windows'." 1>&2
|
||||
exit 1
|
||||
;;
|
||||
kfreebsd*-gnu* | kopensolaris*-gnu*)
|
||||
@ -1813,7 +1820,7 @@ case $kernel-$os in
|
||||
# Blank kernel with real OS is always fine.
|
||||
;;
|
||||
*-*)
|
||||
echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2
|
||||
echo "Invalid configuration '$1': Kernel '$kernel' not known to work with OS '$os'." 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
@ -35,7 +35,7 @@
|
||||
eval 'exec perl -wSx "$0" "$@"'
|
||||
if 0;
|
||||
|
||||
my $VERSION = '2022-01-27 18:49'; # UTC
|
||||
my $VERSION = '2023-06-24 21:59'; # UTC
|
||||
# The definition above must lie within the first 8 lines in order
|
||||
# for the Emacs time-stamp write hook (at end) to update it.
|
||||
# If you change this file with Emacs, please let the write hook
|
||||
@ -355,7 +355,7 @@ sub git_dir_option($)
|
||||
. "(expected date/author/email):\n$author_line\n";
|
||||
|
||||
# Format 'Copyright-paperwork-exempt: Yes' as a standard ChangeLog
|
||||
# `(tiny change)' annotation.
|
||||
# '(tiny change)' annotation.
|
||||
my $tiny = (grep (/^(?:Copyright-paperwork-exempt|Tiny-change):\s+[Yy]es$/, @line)
|
||||
? ' (tiny change)' : '');
|
||||
|
||||
|
@ -98,7 +98,8 @@
|
||||
# 6. Blank lines, even if preceded by the prefix, do not appear
|
||||
# within the FSF copyright statement.
|
||||
# 7. Each copyright year is 2 or 4 digits, and years are separated by
|
||||
# commas, "-", or "--". Whitespace may appear after commas.
|
||||
# commas, "-", "--", or "\(en" (for troff). Whitespace may appear
|
||||
# after commas.
|
||||
#
|
||||
# Environment variables:
|
||||
#
|
||||
@ -137,7 +138,7 @@
|
||||
eval 'exec perl -wSx -0777 -pi "$0" "$@"'
|
||||
if 0;
|
||||
|
||||
my $VERSION = '2023-01-11.04:24'; # UTC
|
||||
my $VERSION = '2023-06-18.01:14'; # UTC
|
||||
# The definition above must lie within the first 8 lines in order
|
||||
# for the Emacs time-stamp write hook (at end) to update it.
|
||||
# If you change this file with Emacs, please let the write hook
|
||||
@ -148,6 +149,7 @@ use warnings;
|
||||
|
||||
my $copyright_re = 'Copyright';
|
||||
my $circle_c_re = '(?:\([cC]\)|@copyright\{}|\\\\\(co|©|©)';
|
||||
my $ndash_re = '(?:--?|\\\\\(en)';
|
||||
my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER};
|
||||
$holder ||= 'Free Software Foundation, Inc.';
|
||||
my $prefix_max = 5;
|
||||
@ -192,7 +194,7 @@ while (/(^|\n)(.{0,$prefix_max})$copyright_re/g)
|
||||
$holder_re =~ s/\s/$ws_re/g;
|
||||
my $stmt_remainder_re =
|
||||
"(?:$ws_re$circle_c_re)?"
|
||||
. "$ws_re(?:(?:\\d\\d)?\\d\\d(?:,$ws_re?|--?))*"
|
||||
. "$ws_re(?:(?:\\d\\d)?\\d\\d(?:,$ws_re?|$ndash_re))*"
|
||||
. "((?:\\d\\d)?\\d\\d)$ws_re$holder_re";
|
||||
if (/\G$stmt_remainder_re/)
|
||||
{
|
||||
@ -215,7 +217,7 @@ if (defined $stmt_re)
|
||||
if ($final_year != $this_year)
|
||||
{
|
||||
# Update the year.
|
||||
$stmt =~ s/\b$final_year_orig\b/$final_year, $this_year/;
|
||||
$stmt =~ s/(^|[^\d])$final_year_orig\b/$1$final_year, $this_year/;
|
||||
}
|
||||
if ($final_year != $this_year || $ENV{'UPDATE_COPYRIGHT_FORCE'})
|
||||
{
|
||||
@ -231,17 +233,19 @@ if (defined $stmt_re)
|
||||
# Make the use of intervals consistent.
|
||||
if (!$ENV{UPDATE_COPYRIGHT_USE_INTERVALS})
|
||||
{
|
||||
$stmt =~ s/(\d{4})--?(\d{4})/join(', ', $1..$2)/eg;
|
||||
$stmt =~ s/(\d{4})$ndash_re(\d{4})/join(', ', $1..$2)/eg;
|
||||
}
|
||||
else
|
||||
{
|
||||
my $ndash = $ARGV =~ /\.tex(i(nfo)?)?$/ ? "--" : "-";
|
||||
my $ndash = ($ARGV =~ /\.tex(i(nfo)?)?$/ ? "--"
|
||||
: $ARGV =~ /\.(\d[a-z]*|man)$/ ? "\\(en"
|
||||
: "-");
|
||||
|
||||
$stmt =~
|
||||
s/
|
||||
(\d{4})
|
||||
(?:
|
||||
(,\ |--?)
|
||||
(,\ |$ndash_re)
|
||||
((??{
|
||||
if ($2 ne ', ') { '\d{4}'; }
|
||||
elsif (!$3) { $1 + 1; }
|
||||
@ -252,7 +256,7 @@ if (defined $stmt_re)
|
||||
|
||||
# When it's 2, emit a single range encompassing all year numbers.
|
||||
$ENV{UPDATE_COPYRIGHT_USE_INTERVALS} == 2
|
||||
and $stmt =~ s/\b(\d{4})\b.*\b(\d{4})\b/$1$ndash$2/;
|
||||
and $stmt =~ s/(^|[^\d])(\d{4})\b.*(?:[^\d])(\d{4})\b/$1$2$ndash$3/;
|
||||
}
|
||||
|
||||
# Format within margin.
|
||||
|
@ -3,7 +3,7 @@
|
||||
% Load plain if necessary, i.e., if running under initex.
|
||||
\expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
|
||||
%
|
||||
\def\texinfoversion{2023-03-27.21}
|
||||
\def\texinfoversion{2023-07-02.10}
|
||||
%
|
||||
% Copyright 1985, 1986, 1988, 1990-2023 Free Software Foundation, Inc.
|
||||
%
|
||||
@ -275,8 +275,7 @@
|
||||
% \topmark doesn't work for the very first chapter (after the title
|
||||
% page or the contents), so we use \firstmark there -- this gets us
|
||||
% the mark with the chapter defs, unless the user sneaks in, e.g.,
|
||||
% @setcolor (or @url, or @link, etc.) between @contents and the very
|
||||
% first @chapter.
|
||||
% @setcolor (or @url etc.) between @contents and the very first @chapter.
|
||||
\def\gettopheadingmarks{%
|
||||
\ifcase0\the\savedtopmark\fi
|
||||
\ifx\thischapter\empty \ifcase0\firstmark\fi \fi
|
||||
@ -4950,6 +4949,7 @@
|
||||
\commondummyword\inforef {}%
|
||||
\commondummyword\kbd {}%
|
||||
\commondummyword\key {}%
|
||||
\commondummyword\link {}%
|
||||
\commondummyword\math {}%
|
||||
\commondummyword\option {}%
|
||||
\commondummyword\pxref {}%
|
||||
@ -5783,7 +5783,7 @@
|
||||
% below is chosen so that the gutter has the same value (well, +-<1pt)
|
||||
% as it did when we hard-coded it.
|
||||
%
|
||||
% We put the result in a separate register, \doublecolumhsize, so we
|
||||
% We put the result in a separate register, \doublecolumnhsize, so we
|
||||
% can restore it in \pagesofar, after \hsize itself has (potentially)
|
||||
% been clobbered.
|
||||
%
|
||||
@ -8180,7 +8180,7 @@
|
||||
% Read recursive and nonrecursive macro bodies. (They're different since
|
||||
% rec and nonrec macros end differently.)
|
||||
%
|
||||
% We are in \macrobodyctxt, and the \xdef causes backslashshes in the macro
|
||||
% We are in \macrobodyctxt, and the \xdef causes backslashes in the macro
|
||||
% body to be transformed.
|
||||
% Set \macrobody to the body of the macro, and call \macrodef.
|
||||
%
|
||||
@ -8808,109 +8808,11 @@
|
||||
\def\xrefX[#1,#2,#3,#4,#5,#6]{\begingroup
|
||||
\unsepspaces
|
||||
%
|
||||
% Get args without leading/trailing spaces.
|
||||
\def\printedrefname{\ignorespaces #3}%
|
||||
\setbox\printedrefnamebox = \hbox{\printedrefname\unskip}%
|
||||
%
|
||||
\getprintedrefname{#1}{#3}{#5}%
|
||||
\def\infofilename{\ignorespaces #4}%
|
||||
\setbox\infofilenamebox = \hbox{\infofilename\unskip}%
|
||||
%
|
||||
\def\printedmanual{\ignorespaces #5}%
|
||||
\setbox\printedmanualbox = \hbox{\printedmanual\unskip}%
|
||||
%
|
||||
% If the printed reference name (arg #3) was not explicitly given in
|
||||
% the @xref, figure out what we want to use.
|
||||
\ifdim \wd\printedrefnamebox = 0pt
|
||||
% No printed node name was explicitly given.
|
||||
\expandafter\ifx\csname SETxref-automatic-section-title\endcsname \relax
|
||||
% Not auto section-title: use node name inside the square brackets.
|
||||
\def\printedrefname{\ignorespaces #1}%
|
||||
\else
|
||||
% Auto section-title: use chapter/section title inside
|
||||
% the square brackets if we have it.
|
||||
\ifdim \wd\printedmanualbox > 0pt
|
||||
% It is in another manual, so we don't have it; use node name.
|
||||
\def\printedrefname{\ignorespaces #1}%
|
||||
\else
|
||||
\ifhavexrefs
|
||||
% We (should) know the real title if we have the xref values.
|
||||
\def\printedrefname{\refx{#1-title}}%
|
||||
\else
|
||||
% Otherwise just copy the Info node name.
|
||||
\def\printedrefname{\ignorespaces #1}%
|
||||
\fi%
|
||||
\fi
|
||||
\fi
|
||||
\fi
|
||||
%
|
||||
% Make link in pdf output.
|
||||
\ifpdf
|
||||
% For pdfTeX and LuaTeX
|
||||
{\indexnofonts
|
||||
\makevalueexpandable
|
||||
\turnoffactive
|
||||
% This expands tokens, so do it after making catcode changes, so _
|
||||
% etc. don't get their TeX definitions. This ignores all spaces in
|
||||
% #4, including (wrongly) those in the middle of the filename.
|
||||
\getfilename{#4}%
|
||||
%
|
||||
% This (wrongly) does not take account of leading or trailing
|
||||
% spaces in #1, which should be ignored.
|
||||
\setpdfdestname{#1}%
|
||||
%
|
||||
\ifx\pdfdestname\empty
|
||||
\def\pdfdestname{Top}% no empty targets
|
||||
\fi
|
||||
%
|
||||
\leavevmode
|
||||
\startlink attr{/Border [0 0 0]}%
|
||||
\ifnum\filenamelength>0
|
||||
goto file{\the\filename.pdf} name{\pdfdestname}%
|
||||
\else
|
||||
goto name{\pdfmkpgn{\pdfdestname}}%
|
||||
\fi
|
||||
}%
|
||||
\setcolor{\linkcolor}%
|
||||
\else
|
||||
\ifx\XeTeXrevision\thisisundefined
|
||||
\else
|
||||
% For XeTeX
|
||||
{\indexnofonts
|
||||
\makevalueexpandable
|
||||
\turnoffactive
|
||||
% This expands tokens, so do it after making catcode changes, so _
|
||||
% etc. don't get their TeX definitions. This ignores all spaces in
|
||||
% #4, including (wrongly) those in the middle of the filename.
|
||||
\getfilename{#4}%
|
||||
%
|
||||
% This (wrongly) does not take account of leading or trailing
|
||||
% spaces in #1, which should be ignored.
|
||||
\setpdfdestname{#1}%
|
||||
%
|
||||
\ifx\pdfdestname\empty
|
||||
\def\pdfdestname{Top}% no empty targets
|
||||
\fi
|
||||
%
|
||||
\leavevmode
|
||||
\ifnum\filenamelength>0
|
||||
% With default settings,
|
||||
% XeTeX (xdvipdfmx) replaces link destination names with integers.
|
||||
% In this case, the replaced destination names of
|
||||
% remote PDFs are no longer known. In order to avoid a replacement,
|
||||
% you can use xdvipdfmx's command line option `-C 0x0010'.
|
||||
% If you use XeTeX 0.99996+ (TeX Live 2016+),
|
||||
% this command line option is no longer necessary
|
||||
% because we can use the `dvipdfmx:config' special.
|
||||
\special{pdf:bann << /Border [0 0 0] /Type /Annot /Subtype /Link /A
|
||||
<< /S /GoToR /F (\the\filename.pdf) /D (\pdfdestname) >> >>}%
|
||||
\else
|
||||
\special{pdf:bann << /Border [0 0 0] /Type /Annot /Subtype /Link /A
|
||||
<< /S /GoTo /D (\pdfdestname) >> >>}%
|
||||
\fi
|
||||
}%
|
||||
\setcolor{\linkcolor}%
|
||||
\fi
|
||||
\fi
|
||||
\startxreflink{#1}{#4}%
|
||||
{%
|
||||
% Have to otherify everything special to allow the \csname to
|
||||
% include an _ in the xref name, etc.
|
||||
@ -8991,6 +8893,93 @@
|
||||
\endlink
|
||||
\endgroup}
|
||||
|
||||
% \getprintedrefname{NODE}{LABEL}{MANUAL}
|
||||
% - set \printedrefname and \printedmanual
|
||||
%
|
||||
\def\getprintedrefname#1#2#3{%
|
||||
% Get args without leading/trailing spaces.
|
||||
\def\printedrefname{\ignorespaces #2}%
|
||||
\setbox\printedrefnamebox = \hbox{\printedrefname\unskip}%
|
||||
%
|
||||
\def\printedmanual{\ignorespaces #3}%
|
||||
\setbox\printedmanualbox = \hbox{\printedmanual\unskip}%
|
||||
%
|
||||
% If the printed reference name (arg #2) was not explicitly given in
|
||||
% the @xref, figure out what we want to use.
|
||||
\ifdim \wd\printedrefnamebox = 0pt
|
||||
% No printed node name was explicitly given.
|
||||
\expandafter\ifx\csname SETxref-automatic-section-title\endcsname \relax
|
||||
% Not auto section-title: use node name inside the square brackets.
|
||||
\def\printedrefname{\ignorespaces #1}%
|
||||
\else
|
||||
% Auto section-title: use chapter/section title inside
|
||||
% the square brackets if we have it.
|
||||
\ifdim \wd\printedmanualbox > 0pt
|
||||
% It is in another manual, so we don't have it; use node name.
|
||||
\def\printedrefname{\ignorespaces #1}%
|
||||
\else
|
||||
\ifhavexrefs
|
||||
% We (should) know the real title if we have the xref values.
|
||||
\def\printedrefname{\refx{#1-title}}%
|
||||
\else
|
||||
% Otherwise just copy the Info node name.
|
||||
\def\printedrefname{\ignorespaces #1}%
|
||||
\fi%
|
||||
\fi
|
||||
\fi
|
||||
\fi
|
||||
}
|
||||
|
||||
% \startxreflink{NODE}{FILE} - start link in pdf output.
|
||||
\def\startxreflink#1#2{%
|
||||
\ifpdforxetex
|
||||
% For pdfTeX and LuaTeX
|
||||
{\indexnofonts
|
||||
\makevalueexpandable
|
||||
\turnoffactive
|
||||
% This expands tokens, so do it after making catcode changes, so _
|
||||
% etc. don't get their TeX definitions. This ignores all spaces in
|
||||
% #2, including (wrongly) those in the middle of the filename.
|
||||
\getfilename{#2}%
|
||||
%
|
||||
% This (wrongly) does not take account of leading or trailing
|
||||
% spaces in #1, which should be ignored.
|
||||
\setpdfdestname{#1}%
|
||||
%
|
||||
\ifx\pdfdestname\empty
|
||||
\def\pdfdestname{Top}% no empty targets
|
||||
\fi
|
||||
%
|
||||
\leavevmode
|
||||
\ifpdf
|
||||
\startlink attr{/Border [0 0 0]}%
|
||||
\ifnum\filenamelength>0
|
||||
goto file{\the\filename.pdf} name{\pdfdestname}%
|
||||
\else
|
||||
goto name{\pdfmkpgn{\pdfdestname}}%
|
||||
\fi
|
||||
\else % XeTeX
|
||||
\ifnum\filenamelength>0
|
||||
% With default settings,
|
||||
% XeTeX (xdvipdfmx) replaces link destination names with integers.
|
||||
% In this case, the replaced destination names of
|
||||
% remote PDFs are no longer known. In order to avoid a replacement,
|
||||
% you can use xdvipdfmx's command line option `-C 0x0010'.
|
||||
% If you use XeTeX 0.99996+ (TeX Live 2016+),
|
||||
% this command line option is no longer necessary
|
||||
% because we can use the `dvipdfmx:config' special.
|
||||
\special{pdf:bann << /Border [0 0 0] /Type /Annot /Subtype /Link /A
|
||||
<< /S /GoToR /F (\the\filename.pdf) /D (\pdfdestname) >> >>}%
|
||||
\else
|
||||
\special{pdf:bann << /Border [0 0 0] /Type /Annot /Subtype /Link /A
|
||||
<< /S /GoTo /D (\pdfdestname) >> >>}%
|
||||
\fi
|
||||
\fi
|
||||
}%
|
||||
\setcolor{\linkcolor}%
|
||||
\fi
|
||||
}
|
||||
|
||||
% can be overridden in translation files
|
||||
\def\putpageref#1{%
|
||||
\space\putwordpage\tie\refx{#1-pg}}
|
||||
@ -9028,6 +9017,21 @@
|
||||
%
|
||||
\def\xrefprintnodename#1{[#1]}
|
||||
|
||||
% @link{NODENAME, LABEL, MANUAL} - create a "plain" link, with no
|
||||
% page number. Not useful if printed on paper.
|
||||
%
|
||||
\def\link#1{\linkX[#1,,,]}
|
||||
\def\linkX[#1,#2,#3,#4]{%
|
||||
\begingroup
|
||||
\unsepspaces
|
||||
\getprintedrefname{#1}{#2}{#3}%
|
||||
\startxreflink{#1}{#3}%
|
||||
\printedrefname
|
||||
\endlink
|
||||
\endgroup
|
||||
}
|
||||
|
||||
|
||||
% Things referred to by \setref.
|
||||
%
|
||||
\def\Ynothing{}
|
||||
|
@ -901,6 +901,10 @@ KRB4LIB = @KRB4LIB@
|
||||
KRB5LIB = @KRB5LIB@
|
||||
LCMS2_CFLAGS = @LCMS2_CFLAGS@
|
||||
LCMS2_LIBS = @LCMS2_LIBS@
|
||||
LC_COLLATE_IMPLEMENTED = @LC_COLLATE_IMPLEMENTED@
|
||||
LC_MONETARY_IMPLEMENTED = @LC_MONETARY_IMPLEMENTED@
|
||||
LC_NUMERIC_IMPLEMENTED = @LC_NUMERIC_IMPLEMENTED@
|
||||
LC_TIME_IMPLEMENTED = @LC_TIME_IMPLEMENTED@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LD_SWITCH_SYSTEM = @LD_SWITCH_SYSTEM@
|
||||
LD_SWITCH_SYSTEM_TEMACS = @LD_SWITCH_SYSTEM_TEMACS@
|
||||
|
@ -136,7 +136,7 @@
|
||||
|
||||
/* Macro specified by POSIX. */
|
||||
|
||||
/* The maximal size_t value. Although it might not be of ssize_t type
|
||||
/* The maximum ssize_t value. Although it might not be of ssize_t type
|
||||
as it should be, it's too much trouble to fix this minor detail. */
|
||||
#ifndef SSIZE_MAX
|
||||
# ifdef _WIN64
|
||||
|
@ -905,7 +905,7 @@ init_word_char (re_dfa_t *dfa)
|
||||
bitset_word_t bits3 = 0x07fffffe;
|
||||
if (BITSET_WORD_BITS == 64)
|
||||
{
|
||||
/* Pacify gcc -Woverflow on 32-bit platformns. */
|
||||
/* Pacify gcc -Woverflow on 32-bit platforms. */
|
||||
dfa->word_char[0] = bits1 << 31 << 1 | bits0;
|
||||
dfa->word_char[1] = bits3 << 31 << 1 | bits2;
|
||||
i = 2;
|
||||
|
@ -269,7 +269,7 @@ int check_f_blocks_size[sizeof fsd.f_blocks * CHAR_BIT <= 32 ? -1 : 1];
|
||||
|
||||
# Check for SunOS statfs brokenness wrt partitions 2GB and larger.
|
||||
# If <sys/vfs.h> exists and struct statfs has a member named f_spare,
|
||||
# enable the work-around code in fsusage.c.
|
||||
# enable the workaround code in fsusage.c.
|
||||
AC_DEFUN([gl_STATFS_TRUNCATES],
|
||||
[
|
||||
AC_CACHE_CHECK([for statfs that truncates block counts],
|
||||
|
@ -181,13 +181,16 @@ AS_IF([test "$enable_year2038,$ac_have_year2038" = yes,no],
|
||||
# C code used to probe for large file support.
|
||||
m4_define([_AC_SYS_LARGEFILE_TEST_CODE],
|
||||
[@%:@include <sys/types.h>
|
||||
/* Check that off_t can represent 2**63 - 1 correctly.
|
||||
We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
||||
@%:@ifndef FTYPE
|
||||
@%:@ define FTYPE off_t
|
||||
@%:@endif
|
||||
/* Check that FTYPE can represent 2**63 - 1 correctly.
|
||||
We can't simply define LARGE_FTYPE to be 9223372036854775807,
|
||||
since some C++ compilers masquerading as C compilers
|
||||
incorrectly reject 9223372036854775807. */
|
||||
@%:@define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
|
||||
int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721
|
||||
&& LARGE_OFF_T % 2147483647 == 1)
|
||||
@%:@define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
|
||||
int FTYPE_is_large[[(LARGE_FTYPE % 2147483629 == 721
|
||||
&& LARGE_FTYPE % 2147483647 == 1)
|
||||
? 1 : -1]];[]dnl
|
||||
])
|
||||
# Defined by Autoconf 2.71 and circa 2022 Gnulib unwisely depended on it.
|
||||
@ -227,7 +230,13 @@ AC_DEFUN([_AC_SYS_LARGEFILE_PROBE],
|
||||
AS_IF([test x"$ac_opt" != x"none needed"],
|
||||
[CC="$ac_save_CC $ac_opt"])
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_CODE])],
|
||||
[ac_cv_sys_largefile_opts="$ac_opt"
|
||||
[AS_IF([test x"$ac_opt" = x"none needed"],
|
||||
[# GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
|
||||
CC="$CC -DFTYPE=ino_t"
|
||||
AC_COMPILE_IFELSE([], [],
|
||||
[CC="$CC -D_FILE_OFFSET_BITS=64"
|
||||
AC_COMPILE_IFELSE([], [ac_opt='-D_FILE_OFFSET_BITS=64'])])])
|
||||
ac_cv_sys_largefile_opts=$ac_opt
|
||||
ac_opt_found=yes])
|
||||
test $ac_opt_found = no || break
|
||||
done
|
||||
|
131
m4/locale-fr.m4
131
m4/locale-fr.m4
@ -1,4 +1,4 @@
|
||||
# locale-fr.m4 serial 21
|
||||
# locale-fr.m4 serial 22
|
||||
dnl Copyright (C) 2003, 2005-2023 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
@ -133,15 +133,31 @@ int main () {
|
||||
rm -fr conftest*
|
||||
])
|
||||
LOCALE_FR=$gt_cv_locale_fr
|
||||
case $LOCALE_FR in #(
|
||||
'' | *[[[:space:]\"\$\'*@<:@]]*)
|
||||
dnl This locale name might cause trouble with sh or make.
|
||||
AC_MSG_WARN([invalid locale "$LOCALE_FR"; assuming "none"])
|
||||
LOCALE_FR=none;;
|
||||
esac
|
||||
AC_SUBST([LOCALE_FR])
|
||||
])
|
||||
|
||||
dnl Determine the name of a french locale with UTF-8 encoding.
|
||||
AC_DEFUN_ONCE([gt_LOCALE_FR_UTF8],
|
||||
[
|
||||
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||
AC_REQUIRE([AM_LANGINFO_CODESET])
|
||||
AC_CACHE_CHECK([for a french Unicode locale], [gt_cv_locale_fr_utf8], [
|
||||
AC_LANG_CONFTEST([AC_LANG_SOURCE([[
|
||||
case "$host_os" in
|
||||
*-musl* | midipix*)
|
||||
dnl On musl libc, all kinds of ll_CC.UTF-8 locales exist, even without
|
||||
dnl any locale file on disk. But they are effectively equivalent to the
|
||||
dnl C.UTF-8 locale, except for locale categories (such as LC_MESSSAGES)
|
||||
dnl for which localizations (.mo files) have been installed.
|
||||
gt_cv_locale_fr_utf8=fr_FR.UTF-8
|
||||
;;
|
||||
*)
|
||||
AC_LANG_CONFTEST([AC_LANG_SOURCE([[
|
||||
#include <locale.h>
|
||||
#include <time.h>
|
||||
#if HAVE_LANGINFO_CODESET
|
||||
@ -203,51 +219,82 @@ int main () {
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
]])])
|
||||
if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
|
||||
case "$host_os" in
|
||||
# Handle native Windows specially, because there setlocale() interprets
|
||||
# "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
|
||||
# "fr" or "fra" as "French" or "French_France.1252",
|
||||
# "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
|
||||
# "ja" as "Japanese" or "Japanese_Japan.932",
|
||||
# and similar.
|
||||
mingw*)
|
||||
# Test for the hypothetical native Windows locale name.
|
||||
if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
|
||||
gt_cv_locale_fr_utf8=French_France.65001
|
||||
else
|
||||
# None found.
|
||||
gt_cv_locale_fr_utf8=none
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
# Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
|
||||
# otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
|
||||
# configure script would override the LC_ALL setting. Likewise for
|
||||
# LC_CTYPE, which is also set at the beginning of the configure script.
|
||||
# Test for the usual locale name.
|
||||
if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
|
||||
gt_cv_locale_fr_utf8=fr_FR
|
||||
else
|
||||
# Test for the locale name with explicit encoding suffix.
|
||||
if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
|
||||
gt_cv_locale_fr_utf8=fr_FR.UTF-8
|
||||
else
|
||||
# Test for the Solaris 7 locale name.
|
||||
if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
|
||||
gt_cv_locale_fr_utf8=fr.UTF-8
|
||||
]])])
|
||||
if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
|
||||
case "$host_os" in
|
||||
# Handle native Windows specially, because there setlocale() interprets
|
||||
# "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
|
||||
# "fr" or "fra" as "French" or "French_France.1252",
|
||||
# "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
|
||||
# "ja" as "Japanese" or "Japanese_Japan.932",
|
||||
# and similar.
|
||||
mingw*)
|
||||
# Test for the hypothetical native Windows locale name.
|
||||
if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
|
||||
gt_cv_locale_fr_utf8=French_France.65001
|
||||
else
|
||||
# None found.
|
||||
gt_cv_locale_fr_utf8=none
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
rm -fr conftest*
|
||||
;;
|
||||
*)
|
||||
# Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
|
||||
# otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
|
||||
# configure script would override the LC_ALL setting. Likewise for
|
||||
# LC_CTYPE, which is also set at the beginning of the configure script.
|
||||
# Test for the usual locale name.
|
||||
if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
|
||||
gt_cv_locale_fr_utf8=fr_FR
|
||||
else
|
||||
# Test for the locale name with explicit encoding suffix.
|
||||
if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
|
||||
gt_cv_locale_fr_utf8=fr_FR.UTF-8
|
||||
else
|
||||
# Test for the Solaris 7 locale name.
|
||||
if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
|
||||
gt_cv_locale_fr_utf8=fr.UTF-8
|
||||
else
|
||||
# None found.
|
||||
gt_cv_locale_fr_utf8=none
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
rm -fr conftest*
|
||||
;;
|
||||
esac
|
||||
])
|
||||
LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
|
||||
case $LOCALE_FR_UTF8 in #(
|
||||
'' | *[[[:space:]\"\$\'*@<:@]]*)
|
||||
dnl This locale name might cause trouble with sh or make.
|
||||
AC_MSG_WARN([invalid locale "$LOCALE_FR_UTF8"; assuming "none"])
|
||||
LOCALE_FR_UTF8=none;;
|
||||
esac
|
||||
AC_SUBST([LOCALE_FR_UTF8])
|
||||
|
||||
dnl Users of $LOCALE_FR_UTF8 need to know which of the locale categories they
|
||||
dnl can rely on.
|
||||
case "$host_os" in
|
||||
*-musl* | midipix*)
|
||||
dnl On musl libc, locale categories other than LC_CTYPE and LC_MESSAGES
|
||||
dnl are effectively unimplemented.
|
||||
LC_COLLATE_IMPLEMENTED=false
|
||||
LC_NUMERIC_IMPLEMENTED=false
|
||||
LC_TIME_IMPLEMENTED=false
|
||||
LC_MONETARY_IMPLEMENTED=false
|
||||
;;
|
||||
*)
|
||||
LC_COLLATE_IMPLEMENTED=true
|
||||
LC_NUMERIC_IMPLEMENTED=true
|
||||
LC_TIME_IMPLEMENTED=true
|
||||
LC_MONETARY_IMPLEMENTED=true
|
||||
;;
|
||||
esac
|
||||
AC_SUBST([LC_COLLATE_IMPLEMENTED])
|
||||
AC_SUBST([LC_NUMERIC_IMPLEMENTED])
|
||||
AC_SUBST([LC_TIME_IMPLEMENTED])
|
||||
AC_SUBST([LC_MONETARY_IMPLEMENTED])
|
||||
])
|
||||
|
@ -1,4 +1,4 @@
|
||||
# warnings.m4 serial 18
|
||||
# warnings.m4 serial 19
|
||||
dnl Copyright (C) 2008-2023 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
@ -81,12 +81,14 @@ AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL],
|
||||
# gl_WARN_ADD(OPTION, [VARIABLE = WARN_CFLAGS/WARN_CXXFLAGS],
|
||||
# [PROGRAM = AC_LANG_PROGRAM()])
|
||||
# -----------------------------------------------------------
|
||||
# Adds parameter to WARN_CFLAGS/WARN_CXXFLAGS if the compiler supports it
|
||||
# when compiling PROGRAM. For example, gl_WARN_ADD([-Wparentheses]).
|
||||
# Adds OPTION to VARIABLE (which defaults to WARN_CFLAGS or WARN_CXXFLAGS)
|
||||
# if the compiler supports it when compiling PROGRAM.
|
||||
#
|
||||
# If VARIABLE is a variable name, AC_SUBST it.
|
||||
#
|
||||
# The effects of this macro depend on the current language (_AC_LANG).
|
||||
#
|
||||
# Example: gl_WARN_ADD([-Wparentheses]).
|
||||
AC_DEFUN([gl_WARN_ADD],
|
||||
[AC_REQUIRE([gl_UNKNOWN_WARNINGS_ARE_ERRORS(]_AC_LANG[)])
|
||||
gl_COMPILER_OPTION_IF([$1],
|
||||
@ -123,7 +125,12 @@ AC_DEFUN([gl_CC_INHIBIT_WARNINGS],
|
||||
])
|
||||
case "$gl_cv_cc_winhibit" in
|
||||
none) GL_CFLAG_INHIBIT_WARNINGS='' ;;
|
||||
*) GL_CFLAG_INHIBIT_WARNINGS="$gl_cv_cc_winhibit" ;;
|
||||
*)
|
||||
GL_CFLAG_INHIBIT_WARNINGS="$gl_cv_cc_winhibit"
|
||||
dnl If all warnings are inhibited, there's no point in having the GCC
|
||||
dnl analyzer enabled. This saves RAM requirements and CPU consumption.
|
||||
gl_WARN_ADD([-fno-analyzer], [GL_CFLAG_INHIBIT_WARNINGS])
|
||||
;;
|
||||
esac
|
||||
AC_SUBST([GL_CFLAG_INHIBIT_WARNINGS])
|
||||
])
|
||||
@ -150,7 +157,12 @@ AC_DEFUN([gl_CXX_INHIBIT_WARNINGS],
|
||||
])
|
||||
case "$gl_cv_cxx_winhibit" in
|
||||
none) GL_CXXFLAG_INHIBIT_WARNINGS='' ;;
|
||||
*) GL_CXXFLAG_INHIBIT_WARNINGS="$gl_cv_cxx_winhibit" ;;
|
||||
*)
|
||||
GL_CXXFLAG_INHIBIT_WARNINGS="$gl_cv_cxx_winhibit"
|
||||
dnl If all warnings are inhibited, there's no point in having the GCC
|
||||
dnl analyzer enabled. This saves RAM requirements and CPU consumption.
|
||||
gl_WARN_ADD([-fno-analyzer], [GL_CXXFLAG_INHIBIT_WARNINGS])
|
||||
;;
|
||||
esac
|
||||
else
|
||||
GL_CXXFLAG_INHIBIT_WARNINGS=''
|
||||
|
Loading…
Reference in New Issue
Block a user