Package list texinfo / 3a9f2ec
Imported Upstream version 4.13.92.dfsg.1 Norbert Preining 8 years ago
247 changed file(s) with 16889 addition(s) and 15857 deletion(s). Raw diff Collapse all Expand all
0 2012-12-17 Karl Berry <karl@gnu.org>
1
2 * pretest 4.13.92.
3
4 2012-12-15 Karl Berry <karl@gnu.org>
5
6 * doc/texinfo.txi: use "sectioning" as the general term
7 in a few places.
8 (Other Customization Variables) <TREE_TRANSFORMATIONS>: more
9 on default.
10
11 2012-12-11 Eli Zaretskii <eliz@gnu.org>
12
13 * configure.ac (TGT_IS_WINDOWS): New conditional.
14 * util/Makefile.am (bin_SCRIPTS) [TGT_IS_WINDOWS]: add Windows
15 batch files to bin_SCRIPTS.
16
17 2012-12-14 Ineiev <ineiev@gmail.com> (tiny change)
18
19 * configure.ac (HAVE_TERMLIBS): new conditional. End with
20 repeated warning about no terminal library for visibility.
21 * Makefile.am (SUBDIRS) [HAVE_TERMLIBS]: only include info/ if
22 new conditional is true.
23 * man/Makefile.am (man_MANS) [HAVE_TERMLIBS]: likewise for making
24 info.1 and infokey.1.
25
26 2012-12-14 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
27
28 * doc/texinfo.txi (Three Arguments):
29 Add @findex xrefautomaticsectiontitle.
30
31 2012-12-14 Karl Berry <karl@gnu.org>
32
33 * doc/texinfo.txi (Other Customization Variables): edit
34 wording of defaults, etc.
35
36 2012-12-10 Patrice Dumas <pertusus@free.fr>
37
38 * configure.ac, tp/Makefile.am, tp/texi2any.pl, tp/Texinfo/Common.pm,
39 tp/Texinfo/Convert/XML.pm, tp/maintain/catalog.xml.in,
40 tp/t/test_utils.pl,
41 doc/texinfo.txi (Other Customization Variables):
42 Add a new configure variable TEXINFO_DTD_VERSION that holds the version
43 of the dtd. Add the corresponding customization variable in tp/.
44
45 2012-12-08 Patrice Dumas <pertusus@free.fr>
46
47 * doc/texinfo.txi (Command Contexts): @verb is not accepted in
48 simple text commands and sectioning commands.
49
50 2012-12-02 Karl Berry <karl@gnu.org>
51
52 * configure.ac (TERMLIB_VARIANTS): try tinfo first.
53 Suggestion from Andreas Schwab, 02 Dec 2012 10:00:44.
54
55 2012-12-02 Colin Watson <cjwatson@ubuntu.com>
56
57 Build gnulib/lib directory in native-tools pass when
58 cross-compiling (bug #37852).
59 * Makefile.am (SUBDIRS) [TOOLS_ONLY]: Add gnulib/lib.
60
61 2012-12-02 Karl Berry <karl@gnu.org>
62
63 * install-info/tests/defs.in (TMPDIR): define if not defined.
64
65 2012-12-02 Patrice Dumas <pertusus@free.fr>
66
67 * configure.ac: remove gnulib module regex snippet, it is already in
68 gnulib/m4/gnulib-comp.m4.
69 * configure.ac, tp/Texinfo/Convert/Unicode.pm: check that Encode is
70 available, and use perl >= 5.7.3, required for Encode. Report from
71 Stefano Lattarini.
72
73 2012-12-01 Sergey Poznyakoff <gray@gnu.org.ua>
74
75 Fix bug #37822 (incomplete redraw of screen).
76
77 * info/display.c (display_scroll_display): Fix a "fencepost"
78 error when scrolling down.
79 * info/terminal.c: Improve conditional.
80
81 2012-12-01 Sergey Poznyakoff <gray@gnu.org.ua>
82
83 Fix cursor positioning after index searches (bug #37823).
84
85 * info/window.h (WINDOW): Use size_t instead of int.
86 (log_line_no): New member.
87 (process_node_text): Change signature.
88 * info/window.c (window_new_screen_size,recalculate_line_starts)
89 (window_toggle_wrap,window_delete_window): Handle the
90 log_line_no array.
91 (calc_closure_expand): New static function.
92 (_calc_line_starts): Update log_line_no. Use calc_closure_expand
93 instead of the add_pointer_to_array macro.
94 (calculate_line_starts): Fill in log_line_no.
95 (window_log_to_phys_line): New function.
96 (process_node_text): Keep track of logical line numbers.
97 * info/display.c (display_node_text): Change signature.
98 * info/indices.c (info_next_index_match): Convert logical line
99 number to physical line.
100
101 * info/tag.c (tags_expand): Remove unused variables.
102 (handle_tag): Fix return type.
103 * info/tag.h (handle_tag): Fix return type.
104
105 2012-11-30 Patrice Dumas <pertusus@free.fr>
106
107 * doc/texinfo.txi (Invoking texi2any), tp/texi2any.pl: add -c as an
108 alias for --set-customization-variable (Karl idea).
109 * doc/texinfo.txi (Other Customization Variables): explain default
110 values for customization variables.
111
112 2012-11-30 Karl Berry <karl@gnu.org>
113
114 * install-info/tests/defs.in (mktemp): define minimal
115 replacement if not found in PATH. It is lacking on AIX 6 (Ineiev)
116 and mingw (Eli).
117
118 2012-11-28 Karl Berry <karl@gnu.org>
119
120 * install-info/tests/defs.in (path_spec, EGREP): need these
121 for findprog.
122
0123 2012-11-26 Karl Berry <karl@gnu.org>
124
125 * pretest 4.13.91.
1126
2127 * configure.ac: invoke gl_REGEX, after
3128 gnulib-tool --add-import regex. This will now be used on
0 # $Id: Makefile.am,v 1.37 2012/06/11 17:54:26 karl Exp $
0 # $Id: Makefile.am,v 1.39 2012/12/14 19:36:53 karl Exp $
11 # Makefile.am for texinfo.
22 # Process this file with automake to produce Makefile.in in all directories.
33 #
2525 # distribution directory.
2626 TEXINFO_TEX = doc/texinfo.tex
2727
28 SUBDIRS =
2829 if TOOLS_ONLY
2930 # Build native tools only.
30 SUBDIRS = info install-info tp util
31 SUBDIRS += gnulib/lib install-info tp util
32 if HAVE_TERMLIBS
33 SUBDIRS += info
34 endif
3135 else
3236 # All subdirectories.
3337 # Do libs first since the C programs depend on it.
34 # Do doc and man last so makeinfo will be built when we get there.
38 # Do doc and man last so things will be built when we get there.
3539 # Others are alphabetical.
36 SUBDIRS = $(native_tools) gnulib/lib \
37 install-info info po po_document tp Pod-Simple-Texinfo util \
38 doc man
40 SUBDIRS += $(native_tools) gnulib/lib
41 if HAVE_TERMLIBS
42 SUBDIRS += info
43 endif
44 SUBDIRS += install-info po po_document tp Pod-Simple-Texinfo util \
45 doc man
3946 endif
4047
4148 # One special target for installers to use by hand if desired.
0 # Makefile.in generated by automake 1.12.5 from Makefile.am.
0 # Makefile.in generated by automake 1.12.6 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
1313
1414 @SET_MAKE@
1515
16 # $Id: Makefile.am,v 1.37 2012/06/11 17:54:26 karl Exp $
16 # $Id: Makefile.am,v 1.39 2012/12/14 19:36:53 karl Exp $
1717 # Makefile.am for texinfo.
1818 # Process this file with automake to produce Makefile.in in all directories.
1919 #
6262 POST_UNINSTALL = :
6363 build_triplet = @build@
6464 host_triplet = @host@
65 @TOOLS_ONLY_TRUE@am__append_1 = gnulib/lib install-info tp util
66 @HAVE_TERMLIBS_TRUE@@TOOLS_ONLY_TRUE@am__append_2 = info
67 @TOOLS_ONLY_FALSE@am__append_3 = $(native_tools) gnulib/lib
68 @HAVE_TERMLIBS_TRUE@@TOOLS_ONLY_FALSE@am__append_4 = info
69 @TOOLS_ONLY_FALSE@am__append_5 = install-info po po_document tp Pod-Simple-Texinfo util \
70 @TOOLS_ONLY_FALSE@ doc man
71
6572 subdir = .
6673 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
6774 $(srcdir)/Makefile.in $(srcdir)/config.in \
98105 $(top_srcdir)/gnulib/m4/gnulib-comp.m4 \
99106 $(top_srcdir)/gnulib/m4/iconv.m4 \
100107 $(top_srcdir)/gnulib/m4/include_next.m4 \
101 $(top_srcdir)/gnulib/m4/inline.m4 \
102108 $(top_srcdir)/gnulib/m4/intlmacosx.m4 \
103109 $(top_srcdir)/gnulib/m4/iswblank.m4 \
104110 $(top_srcdir)/gnulib/m4/langinfo_h.m4 \
200206 ETAGS = etags
201207 CTAGS = ctags
202208 CSCOPE = cscope
203 DIST_SUBDIRS = @native_tools@ gnulib/lib install-info info po \
204 po_document tp Pod-Simple-Texinfo util doc man
209 DIST_SUBDIRS = gnulib/lib install-info tp util info @native_tools@ po \
210 po_document Pod-Simple-Texinfo doc man
205211 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
206212 distdir = $(PACKAGE)-$(VERSION)
207213 top_distdir = $(distdir)
851857 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
852858 TERMLIBS = @TERMLIBS@
853859 TEX = @TEX@
860 TEXINFO_DTD_VERSION = @TEXINFO_DTD_VERSION@
854861 TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
855862 UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@
856863 UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@
939946 # This is to prevent texinfo.tex from being included in the top-level
940947 # distribution directory.
941948 TEXINFO_TEX = doc/texinfo.tex
942 @TOOLS_ONLY_FALSE@SUBDIRS = $(native_tools) gnulib/lib \
943 @TOOLS_ONLY_FALSE@ install-info info po po_document tp Pod-Simple-Texinfo util \
944 @TOOLS_ONLY_FALSE@ doc man
945
946 @TOOLS_ONLY_TRUE@SUBDIRS = info install-info tp util
949 SUBDIRS = $(am__append_1) $(am__append_2) $(am__append_3) \
950 $(am__append_4) $(am__append_5)
947951 all: config.h
948952 $(MAKE) $(AM_MAKEFLAGS) all-recursive
949953
14391443 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
14401444 pdf-am ps ps-am tags tags-recursive uninstall uninstall-am
14411445
1442
14431446 @TOOLS_ONLY_TRUE@ # Build native tools only.
14441447 @TOOLS_ONLY_FALSE@ # All subdirectories.
14451448 @TOOLS_ONLY_FALSE@ # Do libs first since the C programs depend on it.
1446 @TOOLS_ONLY_FALSE@ # Do doc and man last so makeinfo will be built when we get there.
1449 @TOOLS_ONLY_FALSE@ # Do doc and man last so things will be built when we get there.
14471450 @TOOLS_ONLY_FALSE@ # Others are alphabetical.
14481451
14491452 # One special target for installers to use by hand if desired.
0 $Id: NEWS,v 1.220 2012/11/20 19:34:13 karl Exp $
0 $Id: NEWS,v 1.221 2012/12/15 22:59:41 karl Exp $
11 This NEWS file records noteworthy changes, very tersely.
22 See the manual for detailed information.
33
110110 . language support for no removed/renamed to nb, per Norwegian translators.
111111 . new translations: id it.
112112 . documentation license now GFDLv1.3 or later.
113 . autoconf 2.69, automake 1.12.4, gettext 0.18.1.1.
113 . autoconf 2.69, automake 1.12.6, gettext 0.18.1.1.
114114
115115
116116 4.13 (18 September 2008)
0 # Makefile.in generated by automake 1.12.5 from Makefile.am.
0 # Makefile.in generated by automake 1.12.6 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
8686 $(top_srcdir)/gnulib/m4/gnulib-comp.m4 \
8787 $(top_srcdir)/gnulib/m4/iconv.m4 \
8888 $(top_srcdir)/gnulib/m4/include_next.m4 \
89 $(top_srcdir)/gnulib/m4/inline.m4 \
9089 $(top_srcdir)/gnulib/m4/intlmacosx.m4 \
9190 $(top_srcdir)/gnulib/m4/iswblank.m4 \
9291 $(top_srcdir)/gnulib/m4/langinfo_h.m4 \
968967 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
969968 TERMLIBS = @TERMLIBS@
970969 TEX = @TEX@
970 TEXINFO_DTD_VERSION = @TEXINFO_DTD_VERSION@
971971 TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
972972 UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@
973973 UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@
0 $Id: TODO,v 1.68 2012/11/11 19:53:19 pertusus Exp $
0 $Id: TODO,v 1.69 2012/12/15 22:59:41 karl Exp $
11 This is the todo list for GNU Texinfo.
22 If you are interested in working on any of these, email bug-texinfo@gnu.org.
33
5252 - Allow subitems and `see' and `see also' in indices.
5353 - generalize @vtable/@htable to any defined index.
5454 - generalize @deffn/etc. with variants that don't make index entries.
55 - @mergeindex to do @syn*index without changing fonts.
5556 - multicolumn * width to take up `the rest'.
5657 - Allow @hsep/@vsep at @item, instead of just in template.
5758 - another table command to take N succeeding items and split them
0 # generated automatically by aclocal 1.12.5 -*- Autoconf -*-
0 # generated automatically by aclocal 1.12.6 -*- Autoconf -*-
11
22 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
33
3333 [am__api_version='1.12'
3434 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3535 dnl require some minimum version. Point them to the right macro.
36 m4_if([$1], [1.12.5], [],
36 m4_if([$1], [1.12.6], [],
3737 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
3838 ])
3939
4949 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5050 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5151 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
52 [AM_AUTOMAKE_VERSION([1.12.5])dnl
52 [AM_AUTOMAKE_VERSION([1.12.6])dnl
5353 m4_ifndef([AC_AUTOCONF_VERSION],
5454 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5555 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
10421042 m4_include([gnulib/m4/gnulib-comp.m4])
10431043 m4_include([gnulib/m4/iconv.m4])
10441044 m4_include([gnulib/m4/include_next.m4])
1045 m4_include([gnulib/m4/inline.m4])
10461045 m4_include([gnulib/m4/intlmacosx.m4])
10471046 m4_include([gnulib/m4/iswblank.m4])
10481047 m4_include([gnulib/m4/langinfo_h.m4])
33 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
44 # 2011, 2012 Free Software Foundation, Inc.
55
6 timestamp='2012-10-10'
6 timestamp='2012-12-06'
77
88 # This file is (in principle) common to ALL GNU software.
99 # The presence of a machine in this file suggests that SOME GNU software
10251025 basic_machine=i586-unknown
10261026 os=-pw32
10271027 ;;
1028 rdos)
1028 rdos | rdos64)
1029 basic_machine=x86_64-pc
1030 os=-rdos
1031 ;;
1032 rdos32)
10291033 basic_machine=i386-pc
10301034 os=-rdos
10311035 ;;
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2012-07-12.20; # UTC
3 scriptversion=2012-10-18.11; # UTC
44
55 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
66
2626
2727 case $1 in
2828 '')
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
3232 -h | --h*)
3333 cat <<\EOF
3434 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
5555 ;;
5656 esac
5757
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
58106 # A tabulation character.
59107 tab=' '
60108 # A newline character.
61109 nl='
62110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
63117
64118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
65119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
87141 fi
88142
89143 if test "$depmode" = dashXmstdout; then
90 # This is just like dashmstdout with a different argument.
91 dashmflag=-xM
92 depmode=dashmstdout
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
93147 fi
94148
95149 cygpath_u="cygpath -u -f -"
96150 if test "$depmode" = msvcmsys; then
97 # This is just like msvisualcpp but w/o cygpath translation.
98 # Just convert the backslash-escaped backslashes to single forward
99 # slashes to satisfy depend.m4
100 cygpath_u='sed s,\\\\,/,g'
101 depmode=msvisualcpp
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
102156 fi
103157
104158 if test "$depmode" = msvc7msys; then
105 # This is just like msvc7 but w/o cygpath translation.
106 # Just convert the backslash-escaped backslashes to single forward
107 # slashes to satisfy depend.m4
108 cygpath_u='sed s,\\\\,/,g'
109 depmode=msvc7
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
110164 fi
111165
112166 if test "$depmode" = xlc; then
113 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
114 gccflag=-qmakedep=gcc,-MF
115 depmode=gcc
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
116170 fi
117171
118172 case "$depmode" in
135189 done
136190 "$@"
137191 stat=$?
138 if test $stat -eq 0; then :
139 else
192 if test $stat -ne 0; then
140193 rm -f "$tmpdepfile"
141194 exit $stat
142195 fi
162215 fi
163216 "$@" -Wp,"$gccflag$tmpdepfile"
164217 stat=$?
165 if test $stat -eq 0; then :
166 else
218 if test $stat -ne 0; then
167219 rm -f "$tmpdepfile"
168220 exit $stat
169221 fi
170222 rm -f "$depfile"
171223 echo "$object : \\" > "$depfile"
172 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
173 ## The second -e expression handles DOS-style file names with drive letters.
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
174226 sed -e 's/^[^:]*: / /' \
175227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
176228 ## This next piece of magic avoids the "deleted header file" problem.
179231 ## typically no way to rebuild the header). We avoid this by adding
180232 ## dummy dependencies for each header file. Too bad gcc doesn't do
181233 ## this for us directly.
182 tr ' ' "$nl" < "$tmpdepfile" |
183234 ## Some versions of gcc put a space before the ':'. On the theory
184235 ## that the space means something, we add a space to the output as
185236 ## well. hp depmode also adds that space, but also prefixes the VPATH
186237 ## to the object. Take care to not repeat it in the output.
187238 ## Some versions of the HPUX 10.20 sed can't process this invocation
188239 ## correctly. Breaking it into two sed invocations is a workaround.
189 sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
190 | sed -e 's/$/ :/' >> "$depfile"
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
191243 rm -f "$tmpdepfile"
192244 ;;
193245
205257 "$@" -MDupdate "$tmpdepfile"
206258 fi
207259 stat=$?
208 if test $stat -eq 0; then :
209 else
260 if test $stat -ne 0; then
210261 rm -f "$tmpdepfile"
211262 exit $stat
212263 fi
214265
215266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
216267 echo "$object : \\" > "$depfile"
217
218268 # Clip off the initial element (the dependent). Don't try to be
219269 # clever and replace this with sed code, as IRIX sed won't handle
220270 # lines with more than a fixed number of characters (4096 in
222272 # the IRIX cc adds comments like '#:fec' to the end of the
223273 # dependency line.
224274 tr ' ' "$nl" < "$tmpdepfile" \
225 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
226 tr "$nl" ' ' >> "$depfile"
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
227277 echo >> "$depfile"
228
229278 # The second pass generates a dummy entry for each header file.
230279 tr ' ' "$nl" < "$tmpdepfile" \
231 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
232 >> "$depfile"
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
233282 else
234 # The sourcefile does not contain any dependencies, so just
235 # store a dummy comment line, to avoid errors with the Makefile
236 # "include basename.Plo" scheme.
237 echo "#dummy" > "$depfile"
283 make_dummy_depfile
238284 fi
239285 rm -f "$tmpdepfile"
240286 ;;
252298 # current directory. Also, the AIX compiler puts '$object:' at the
253299 # start of each line; $object doesn't have directory information.
254300 # Version 6 uses the directory in both cases.
255 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
256 test "x$dir" = "x$object" && dir=
257 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
301 set_dir_from "$object"
302 set_base_from "$object"
258303 if test "$libtool" = yes; then
259304 tmpdepfile1=$dir$base.u
260305 tmpdepfile2=$base.u
267312 "$@" -M
268313 fi
269314 stat=$?
270
271 if test $stat -eq 0; then :
272 else
315 if test $stat -ne 0; then
273316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
274317 exit $stat
275318 fi
278321 do
279322 test -f "$tmpdepfile" && break
280323 done
281 if test -f "$tmpdepfile"; then
282 # Each line is of the form 'foo.o: dependent.h'.
283 # Do two passes, one to just change these to
284 # '$object: dependent.h' and one to simply 'dependent.h:'.
285 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
286 sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
287 else
288 # The sourcefile does not contain any dependencies, so just
289 # store a dummy comment line, to avoid errors with the Makefile
290 # "include basename.Plo" scheme.
291 echo "#dummy" > "$depfile"
292 fi
293 rm -f "$tmpdepfile"
294 ;;
295
296 icc)
297 # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'.
298 # However on
299 # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c
300 # ICC 7.0 will fill foo.d with something like
301 # foo.o: sub/foo.c
302 # foo.o: sub/foo.h
303 # which is wrong. We want
304 # sub/foo.o: sub/foo.c
305 # sub/foo.o: sub/foo.h
306 # sub/foo.c:
307 # sub/foo.h:
308 # ICC 7.1 will output
309 # foo.o: sub/foo.c sub/foo.h
310 # and will wrap long lines using '\':
311 # foo.o: sub/foo.c ... \
312 # sub/foo.h ... \
313 # ...
314 # tcc 0.9.26 (FIXME still under development at the moment of writing)
315 # will emit a similar output, but also prepend the continuation lines
316 # with horizontal tabulation characters.
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
317342 "$@" -MD -MF "$tmpdepfile"
318343 stat=$?
319 if test $stat -eq 0; then :
320 else
344 if test $stat -ne 0; then
321345 rm -f "$tmpdepfile"
322346 exit $stat
323347 fi
324348 rm -f "$depfile"
325 # Each line is of the form 'foo.o: dependent.h',
326 # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'.
327 # Do two passes, one to just change these to
328 # '$object: dependent.h' and one to simply 'dependent.h:'.
329 sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \
330 < "$tmpdepfile" > "$depfile"
331 sed '
332 s/[ '"$tab"'][ '"$tab"']*/ /g
333 s/^ *//
334 s/ *\\*$//
335 s/^[^:]*: *//
336 /^$/d
337 /:$/d
338 s/$/ :/
339 ' < "$tmpdepfile" >> "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
340355 rm -f "$tmpdepfile"
341356 ;;
342357
355370 # foo.o: sub/foo.c ... \
356371 # sub/foo.h ... \
357372 # ...
358 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
359 test "x$dir" = "x$object" && dir=
373 set_dir_from "$object"
360374 # Use the source, not the object, to determine the base name, since
361375 # that's sadly what pgcc will do too.
362 base=`echo "$source" | sed -e 's|^.*/||' -e 's/\.[-_a-zA-Z0-9]*$//'`
363 tmpdepfile="$base.d"
376 set_base_from "$source"
377 tmpdepfile=$base.d
364378
365379 # For projects that build the same source file twice into different object
366380 # files, the pgcc approach of using the *source* file root name can cause
367381 # problems in parallel builds. Use a locking strategy to avoid stomping on
368382 # the same $tmpdepfile.
369 lockdir="$base.d-lock"
370 trap "echo '$0: caught signal, cleaning up...' >&2; rm -rf $lockdir" 1 2 13 15
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
371389 numtries=100
372390 i=$numtries
373 while test $i -gt 0 ; do
391 while test $i -gt 0; do
374392 # mkdir is a portable test-and-set.
375 if mkdir $lockdir 2>/dev/null; then
393 if mkdir "$lockdir" 2>/dev/null; then
376394 # This process acquired the lock.
377395 "$@" -MD
378396 stat=$?
379397 # Release the lock.
380 rm -rf $lockdir
398 rmdir "$lockdir"
381399 break
382400 else
383 ## the lock is being held by a different process,
384 ## wait until the winning process is done or we timeout
385 while test -d $lockdir && test $i -gt 0; do
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
386404 sleep 1
387405 i=`expr $i - 1`
388406 done
408426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
409427 # Some versions of the HPUX 10.20 sed can't process this invocation
410428 # correctly. Breaking it into two sed invocations is a workaround.
411 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
412 sed -e 's/$/ :/' >> "$depfile"
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
413431 rm -f "$tmpdepfile"
414432 ;;
415433
420438 # 'foo.d', which lands next to the object file, wherever that
421439 # happens to be.
422440 # Much of this is similar to the tru64 case; see comments there.
423 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
424 test "x$dir" = "x$object" && dir=
425 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
441 set_dir_from "$object"
442 set_base_from "$object"
426443 if test "$libtool" = yes; then
427444 tmpdepfile1=$dir$base.d
428445 tmpdepfile2=$dir.libs/$base.d
433450 "$@" +Maked
434451 fi
435452 stat=$?
436 if test $stat -eq 0; then :
437 else
453 if test $stat -ne 0; then
438454 rm -f "$tmpdepfile1" "$tmpdepfile2"
439455 exit $stat
440456 fi
444460 test -f "$tmpdepfile" && break
445461 done
446462 if test -f "$tmpdepfile"; then
447 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
448464 # Add 'dependent.h:' lines.
449465 sed -ne '2,${
450 s/^ *//
451 s/ \\*$//
452 s/$/:/
453 p
454 }' "$tmpdepfile" >> "$depfile"
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
455471 else
456 echo "#dummy" > "$depfile"
472 make_dummy_depfile
457473 fi
458474 rm -f "$tmpdepfile" "$tmpdepfile2"
459475 ;;
460476
461477 tru64)
462 # The Tru64 compiler uses -MD to generate dependencies as a side
463 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
464 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
465 # dependencies in 'foo.d' instead, so we check for that too.
466 # Subdirectories are respected.
467 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
468 test "x$dir" = "x$object" && dir=
469 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
470
471 if test "$libtool" = yes; then
472 # With Tru64 cc, shared objects can also be used to make a
473 # static library. This mechanism is used in libtool 1.4 series to
474 # handle both shared and static libraries in a single compilation.
475 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
476 #
477 # With libtool 1.5 this exception was removed, and libtool now
478 # generates 2 separate objects for the 2 libraries. These two
479 # compilations output dependencies in $dir.libs/$base.o.d and
480 # in $dir$base.o.d. We have to check for both files, because
481 # one of the two compilations can be disabled. We should prefer
482 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
483 # automatically cleaned when .libs/ is deleted, while ignoring
484 # the former would cause a distcleancheck panic.
485 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
486 tmpdepfile2=$dir$base.o.d # libtool 1.5
487 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
488 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
489 "$@" -Wc,-MD
490 else
491 tmpdepfile1=$dir$base.o.d
492 tmpdepfile2=$dir$base.d
493 tmpdepfile3=$dir$base.d
494 tmpdepfile4=$dir$base.d
495 "$@" -MD
496 fi
497
498 stat=$?
499 if test $stat -eq 0; then :
500 else
501 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
502 exit $stat
503 fi
504
505 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
506 do
507 test -f "$tmpdepfile" && break
508 done
509 if test -f "$tmpdepfile"; then
510 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
511 sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
512 else
513 echo "#dummy" > "$depfile"
514 fi
515 rm -f "$tmpdepfile"
516 ;;
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
517518
518519 msvc7)
519520 if test "$libtool" = yes; then
524525 "$@" $showIncludes > "$tmpdepfile"
525526 stat=$?
526527 grep -v '^Note: including file: ' "$tmpdepfile"
527 if test "$stat" = 0; then :
528 else
528 if test $stat -ne 0; then
529529 rm -f "$tmpdepfile"
530530 exit $stat
531531 fi
602602 # in the target name. This is to cope with DOS-style filenames:
603603 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
604604 "$@" $dashmflag |
605 sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile"
605 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
606606 rm -f "$depfile"
607607 cat < "$tmpdepfile" > "$depfile"
608 tr ' ' "$nl" < "$tmpdepfile" | \
609 ## Some versions of the HPUX 10.20 sed can't process this invocation
610 ## correctly. Breaking it into two sed invocations is a workaround.
611 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
608 # Some versions of the HPUX 10.20 sed can't process this sed invocation
609 # correctly. Breaking it into two sed invocations is a workaround.
610 tr ' ' "$nl" < "$tmpdepfile" \
611 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
612 | sed -e 's/$/ :/' >> "$depfile"
612613 rm -f "$tmpdepfile"
613614 ;;
614615
661662 # makedepend may prepend the VPATH from the source file name to the object.
662663 # No need to regex-escape $object, excess matching of '.' is harmless.
663664 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
664 sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \
665 ## Some versions of the HPUX 10.20 sed can't process this invocation
666 ## correctly. Breaking it into two sed invocations is a workaround.
667 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
665 # Some versions of the HPUX 10.20 sed can't process the last invocation
666 # correctly. Breaking it into two sed invocations is a workaround.
667 sed '1,2d' "$tmpdepfile" \
668 | tr ' ' "$nl" \
669 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
670 | sed -e 's/$/ :/' >> "$depfile"
668671 rm -f "$tmpdepfile" "$tmpdepfile".bak
669672 ;;
670673
700703 esac
701704 done
702705
703 "$@" -E |
704 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
705 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
706 sed '$ s: \\$::' > "$tmpdepfile"
706 "$@" -E \
707 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
708 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 | sed '$ s: \\$::' > "$tmpdepfile"
707710 rm -f "$depfile"
708711 echo "$object : \\" > "$depfile"
709712 cat < "$tmpdepfile" >> "$depfile"
735738 shift
736739 ;;
737740 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
738 set fnord "$@"
739 shift
740 shift
741 ;;
741 set fnord "$@"
742 shift
743 shift
744 ;;
742745 *)
743 set fnord "$@" "$arg"
744 shift
745 shift
746 ;;
746 set fnord "$@" "$arg"
747 shift
748 shift
749 ;;
747750 esac
748751 done
749752 "$@" -E 2>/dev/null |
5454 rather than issue the nice warning, but the end result of informing
5555 the developer about their portability problem is still achieved):
5656 #if HAVE_RAW_DECL_ENVIRON
57 static inline char ***rpl_environ (void) { return &environ; }
57 static char ***rpl_environ (void) { return &environ; }
5858 _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared");
5959 # undef environ
6060 # define environ (*rpl_environ ())
267267
268268 /* Define if you have the iconv() function and it works. */
269269 #undef HAVE_ICONV
270
271 /* Define to 1 if the compiler supports one of the keywords 'inline',
272 '__inline__', '__inline' and effectively inlines functions marked as such.
273 */
274 #undef HAVE_INLINE
275270
276271 /* Define to 1 if you have the <inttypes.h> header file. */
277272 #undef HAVE_INTTYPES_H
12271222 when FOO is an inline function in the header; see
12281223 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113>.
12291224 _GL_INLINE_HEADER_END contains useful stuff to put
1230 in the same include file, after uses of _GL_INLINE. */
1231 #if (__GNUC__ \
1232 ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
1233 : 199901L <= __STDC_VERSION__)
1225 in the same include file, after uses of _GL_INLINE.
1226
1227 Suppress the use of extern inline on Apple's platforms,
1228 as Libc-825.25 (2012-09-19) is incompatible with it; see
1229 <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
1230 Perhaps Apple will fix this some day. */
1231 #if ((__GNUC__ \
1232 ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
1233 : 199901L <= __STDC_VERSION__) \
1234 && !defined __APPLE__)
12341235 # define _GL_INLINE inline
12351236 # define _GL_EXTERN_INLINE extern inline
1236 #elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
1237 #elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __APPLE__
12371238 # if __GNUC_GNU_INLINE__
12381239 /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */
12391240 # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__))
12421243 # endif
12431244 # define _GL_EXTERN_INLINE extern
12441245 #else
1245 # define _GL_INLINE static inline
1246 # define _GL_EXTERN_INLINE static inline
1246 # define _GL_INLINE static _GL_UNUSED
1247 # define _GL_EXTERN_INLINE static _GL_UNUSED
12471248 #endif
12481249
12491250 #if 4 < __GNUC__ + (6 <= __GNUC_MINOR__)
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for GNU Texinfo 4.13.91.
2 # Generated by GNU Autoconf 2.69 for GNU Texinfo 4.13.92.
33 #
44 # Report bugs to <bug-texinfo@gnu.org>.
55 #
579579 # Identity of this package.
580580 PACKAGE_NAME='GNU Texinfo'
581581 PACKAGE_TARNAME='texinfo'
582 PACKAGE_VERSION='4.13.91'
583 PACKAGE_STRING='GNU Texinfo 4.13.91'
582 PACKAGE_VERSION='4.13.92'
583 PACKAGE_STRING='GNU Texinfo 4.13.92'
584584 PACKAGE_BUGREPORT='bug-texinfo@gnu.org'
585585 PACKAGE_URL='http://www.gnu.org/software/texinfo/'
586586
633633 am__EXEEXT_FALSE
634634 am__EXEEXT_TRUE
635635 LTLIBOBJS
636 TGT_IS_WINDOWS_FALSE
637 TGT_IS_WINDOWS_TRUE
636638 POD_SIMPLE_TEXINFO_TESTS_FALSE
637639 POD_SIMPLE_TEXINFO_TESTS_TRUE
638640 BUILD_PERL_API_TEXI_FALSE
663665 USE_EXTERNAL_EASTASIANWIDTH
664666 INSTALL_WARNINGS_FALSE
665667 INSTALL_WARNINGS_TRUE
668 HAVE_TERMLIBS_FALSE
669 HAVE_TERMLIBS_TRUE
666670 TERMLIBS
667671 TOOLS_ONLY_FALSE
668672 TOOLS_ONLY_TRUE
669673 native_tools
674 LIBOBJS
670675 MKINSTALLDIRS
671676 LN_S
672677 HELP2MAN
673 LIBOBJS
674678 LIBGNU_LTLIBDEPS
675679 LIBGNU_LIBDEPS
676680 gltests_WITNESS
12731277 PACKAGE_DATE
12741278 TEXI2HTML_FALSE
12751279 TEXI2HTML_TRUE
1280 TEXINFO_DTD_VERSION
12761281 am__untar
12771282 am__tar
12781283 AMTAR
13571362 ac_precious_vars='build_alias
13581363 host_alias
13591364 target_alias
1365 PERL
13601366 CC
13611367 CFLAGS
13621368 LDFLAGS
13631369 LIBS
13641370 CPPFLAGS
1365 CPP
1366 PERL'
1371 CPP'
13671372
13681373
13691374 # Initialize some variables set by options.
19041909 # Omit some internal or obsolete options to make the list less imposing.
19051910 # This message is too long to be a string in the A/UX 3.1 sh.
19061911 cat <<_ACEOF
1907 \`configure' configures GNU Texinfo 4.13.91 to adapt to many kinds of systems.
1912 \`configure' configures GNU Texinfo 4.13.92 to adapt to many kinds of systems.
19081913
19091914 Usage: $0 [OPTION]... [VAR=VALUE]...
19101915
19741979
19751980 if test -n "$ac_init_help"; then
19761981 case $ac_init_help in
1977 short | recursive ) echo "Configuration of GNU Texinfo 4.13.91:";;
1982 short | recursive ) echo "Configuration of GNU Texinfo 4.13.92:";;
19781983 esac
19791984 cat <<\_ACEOF
19801985
20202025 use external libintl-perl (default: no)
20212026
20222027 Some influential environment variables:
2028 PERL The path to the 'perl' executable.
20232029 CC C compiler command
20242030 CFLAGS C compiler flags
20252031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
20282034 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
20292035 you have headers in a nonstandard directory <include dir>
20302036 CPP C preprocessor
2031 PERL The path to the 'perl' executable.
20322037
20332038 Use these variables to override the choices made by `configure' or to help
20342039 it to find libraries and programs with nonstandard names/locations.
20982103 test -n "$ac_init_help" && exit $ac_status
20992104 if $ac_init_version; then
21002105 cat <<\_ACEOF
2101 GNU Texinfo configure 4.13.91
2106 GNU Texinfo configure 4.13.92
21022107 generated by GNU Autoconf 2.69
21032108
21042109 Copyright (C) 2012 Free Software Foundation, Inc.
28072812 This file contains any messages produced by compilers while
28082813 running configure, to aid debugging if configure makes a mistake.
28092814
2810 It was created by GNU Texinfo $as_me 4.13.91, which was
2815 It was created by GNU Texinfo $as_me 4.13.92, which was
28112816 generated by GNU Autoconf 2.69. Invocation command line was
28122817
28132818 $ $0 $@
36693674
36703675 # Define the identity of the package.
36713676 PACKAGE='texinfo'
3672 VERSION='4.13.91'
3677 VERSION='4.13.92'
36733678
36743679
36753680 cat >>confdefs.h <<_ACEOF
38043809 ac_config_headers="$ac_config_headers config.h:config.in"
38053810
38063811
3812 # version for the dtd. In between releases, PACKAGE_VERSION is not set
3813 # to a value that corresponds to actual files on the internet.
3814 # TEXINFO_DTD_VERSION=$PACKAGE_VERSION
3815 TEXINFO_DTD_VERSION=5.00
3816
3817
38073818 # Conditional texi2html support.
38083819 if false; then
38093820 TEXI2HTML_TRUE=
38193830
38203831
38213832 # We need Perl
3833
3834
38223835 # Extract the first word of "perl", so it can be a program name with args.
38233836 set dummy perl; ac_word=$2
38243837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38653878 specify where it is using
38663879 ./configure PERL=/path/to/perl
38673880 " "$LINENO" 5
3868
3881 fi
3882
3883
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version and Encode module" >&5
3885 $as_echo_n "checking Perl version and Encode module... " >&6; }
3886 if $PERL -e "use 5.007_003; use Encode;" > /dev/null 2>&1; then
3887 perl_version_requirement='yes'
3888 else
3889 perl_version_requirement='no'
3890 fi
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version_requirement" >&5
3892 $as_echo "$perl_version_requirement" >&6; }
3893 if test z"$perl_version_requirement" = 'zno' ; then
3894 as_fn_error $? "perl >= 5.7.3 with Encode required by Texinfo." "$LINENO" 5
38693895 fi
38703896
38713897 # Checks for programs.
59876013 # Code from module gettimeofday:
59886014 # Code from module havelib:
59896015 # Code from module include_next:
5990 # Code from module inline:
59916016 # Code from module intprops:
59926017 # Code from module iswblank:
59936018 # Code from module langinfo:
72547279
72557280 fi
72567281
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7258 $as_echo_n "checking for inline... " >&6; }
7259 if ${ac_cv_c_inline+:} false; then :
7260 $as_echo_n "(cached) " >&6
7261 else
7262 ac_cv_c_inline=no
7263 for ac_kw in inline __inline__ __inline; do
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266 #ifndef __cplusplus
7267 typedef int foo_t;
7268 static $ac_kw foo_t static_foo () {return 0; }
7269 $ac_kw foo_t foo () {return 0; }
7270 #endif
7271
7272 _ACEOF
7273 if ac_fn_c_try_compile "$LINENO"; then :
7274 ac_cv_c_inline=$ac_kw
7275 fi
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7277 test "$ac_cv_c_inline" != no && break
7278 done
7279
7280 fi
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7282 $as_echo "$ac_cv_c_inline" >&6; }
7283
7284 case $ac_cv_c_inline in
7285 inline | yes) ;;
7286 *)
7287 case $ac_cv_c_inline in
7288 no) ac_val=;;
7289 *) ac_val=$ac_cv_c_inline;;
7290 esac
7291 cat >>confdefs.h <<_ACEOF
7292 #ifndef __cplusplus
7293 #define inline $ac_val
7294 #endif
7295 _ACEOF
7296 ;;
7297 esac
7298
72997282
73007283 XGETTEXT_EXTRA_OPTIONS=
7301
73027284
73037285
73047286
86428624
86438625
86448626
8645
8646
86478627 if test $gt_cv_c_wint_t = yes; then
86488628 HAVE_WINT_T=1
86498629 else
1058910569
1059010570
1059110571
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10573 $as_echo_n "checking for inline... " >&6; }
10574 if ${ac_cv_c_inline+:} false; then :
10575 $as_echo_n "(cached) " >&6
10576 else
10577 ac_cv_c_inline=no
10578 for ac_kw in inline __inline__ __inline; do
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10581 #ifndef __cplusplus
10582 typedef int foo_t;
10583 static $ac_kw foo_t static_foo () {return 0; }
10584 $ac_kw foo_t foo () {return 0; }
10585 #endif
10586
10587 _ACEOF
10588 if ac_fn_c_try_compile "$LINENO"; then :
10589 ac_cv_c_inline=$ac_kw
10590 fi
10591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10592 test "$ac_cv_c_inline" != no && break
10593 done
10594
10595 fi
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10597 $as_echo "$ac_cv_c_inline" >&6; }
10598
10599 case $ac_cv_c_inline in
10600 inline | yes) ;;
10601 *)
10602 case $ac_cv_c_inline in
10603 no) ac_val=;;
10604 *) ac_val=$ac_cv_c_inline;;
10605 esac
10606 cat >>confdefs.h <<_ACEOF
10607 #ifndef __cplusplus
10608 #define inline $ac_val
10609 #endif
10610 _ACEOF
10611 ;;
10612 esac
10613
1059210614
1059310615
1059410616
1247112493
1247212494
1247312495
12474
1247512496 :
1247612497
1247712498 fi
1290912930 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
1291012931
1291112932
12912
12913
12914
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
12916 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
12917 if ${gl_cv_c_inline_effective+:} false; then :
12918 $as_echo_n "(cached) " >&6
12919 else
12920 if test $ac_cv_c_inline = no; then
12921 gl_cv_c_inline_effective=no
12922 else
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12925
12926 int
12927 main ()
12928 {
12929 #ifdef __NO_INLINE__
12930 #error "inline is not effective"
12931 #endif
12932 ;
12933 return 0;
12934 }
12935 _ACEOF
12936 if ac_fn_c_try_compile "$LINENO"; then :
12937 gl_cv_c_inline_effective=yes
12938 else
12939 gl_cv_c_inline_effective=no
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12942 fi
12943
12944 fi
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
12946 $as_echo "$gl_cv_c_inline_effective" >&6; }
12947 if test $gl_cv_c_inline_effective = yes; then
12948
12949 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
12950
12951 fi
1295212933
1295312934
1295412935
1363513616
1363613617 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
1363713618
13638
13639
13640 :
13641
13619 :
1364213620 fi
1364313621
1364413622
1595615934
1595715935 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
1595815936
15959
15960
15961 :
15962
15937 :
1596315938 fi
1596415939
1596515940
1692216897
1692316898
1692416899
16925
16926
1692716900 :
1692816901
1692916902
1714917122
1715017123
1715117124 :
17152
1715317125
1715417126
1715517127
1787017842
1787117843
1787217844
17873
17874
1787517845 if test $gt_cv_c_wint_t = yes; then
1787617846 HAVE_WINT_T=1
1787717847 else
1837318343
1837418344
1837518345
18376
18377
18378
1837918346 :
18380
18381
18382 :
18383
18384
1838518347 # End of code from modules
1838618348
1838718349
1842118383 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
1842218384
1842318385
18424
18425 # Regex from Gnulib if needed.
18426
18427
18428 # Check whether --with-included-regex was given.
18429 if test "${with_included_regex+set}" = set; then :
18430 withval=$with_included_regex;
18431 fi
18432
18433
18434 case $with_included_regex in #(
18435 yes|no) ac_use_included_regex=$with_included_regex
18436 ;;
18437 '')
18438 # If the system regex support is good enough that it passes the
18439 # following run test, then default to *not* using the included regex.c.
18440 # If cross compiling, assume the test would fail and use the included
18441 # regex.c.
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
18443 $as_echo_n "checking for working re_compile_pattern... " >&6; }
18444 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
18445 $as_echo_n "(cached) " >&6
18446 else
18447 if test "$cross_compiling" = yes; then :
18448 gl_cv_func_re_compile_pattern_working=no
18449 else
18450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h. */
18452 $ac_includes_default
18453 #include <locale.h>
18454 #include <limits.h>
18455 #include <regex.h>
18456
18457 int
18458 main ()
18459 {
18460 int result = 0;
18461 static struct re_pattern_buffer regex;
18462 unsigned char folded_chars[UCHAR_MAX + 1];
18463 int i;
18464 const char *s;
18465 struct re_registers regs;
18466
18467 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
18468 This test needs valgrind to catch the bug on Debian
18469 GNU/Linux 3.1 x86, but it might catch the bug better
18470 on other platforms and it shouldn't hurt to try the
18471 test here. */
18472 if (setlocale (LC_ALL, "en_US.UTF-8"))
18473 {
18474 static char const pat[] = "insert into";
18475 static char const data[] =
18476 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
18477 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
18478 | RE_ICASE);
18479 memset (&regex, 0, sizeof regex);
18480 s = re_compile_pattern (pat, sizeof pat - 1, &regex);
18481 if (s)
18482 result |= 1;
18483 else if (re_search (&regex, data, sizeof data - 1,
18484 0, sizeof data - 1, &regs)
18485 != -1)
18486 result |= 1;
18487 if (! setlocale (LC_ALL, "C"))
18488 return 1;
18489 }
18490
18491 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
18492 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
18493 memset (&regex, 0, sizeof regex);
18494 s = re_compile_pattern ("a[^x]b", 6, &regex);
18495 if (s)
18496 result |= 2;
18497 /* This should fail, but succeeds for glibc-2.5. */
18498 else if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
18499 result |= 2;
18500
18501 /* This regular expression is from Spencer ere test number 75
18502 in grep-2.3. */
18503 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
18504 memset (&regex, 0, sizeof regex);
18505 for (i = 0; i <= UCHAR_MAX; i++)
18506 folded_chars[i] = i;
18507 regex.translate = folded_chars;
18508 s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
18509 /* This should fail with _Invalid character class name_ error. */
18510 if (!s)
18511 result |= 4;
18512
18513 /* Ensure that [b-a] is diagnosed as invalid, when
18514 using RE_NO_EMPTY_RANGES. */
18515 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
18516 memset (&regex, 0, sizeof regex);
18517 s = re_compile_pattern ("a[b-a]", 6, &regex);
18518 if (s == 0)
18519 result |= 8;
18520
18521 /* This should succeed, but does not for glibc-2.1.3. */
18522 memset (&regex, 0, sizeof regex);
18523 s = re_compile_pattern ("{1", 2, &regex);
18524 if (s)
18525 result |= 8;
18526
18527 /* The following example is derived from a problem report
18528 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
18529 memset (&regex, 0, sizeof regex);
18530 s = re_compile_pattern ("[an\371]*n", 7, &regex);
18531 if (s)
18532 result |= 8;
18533 /* This should match, but does not for glibc-2.2.1. */
18534 else if (re_match (&regex, "an", 2, 0, &regs) != 2)
18535 result |= 8;
18536
18537 memset (&regex, 0, sizeof regex);
18538 s = re_compile_pattern ("x", 1, &regex);
18539 if (s)
18540 result |= 8;
18541 /* glibc-2.2.93 does not work with a negative RANGE argument. */
18542 else if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
18543 result |= 8;
18544
18545 /* The version of regex.c in older versions of gnulib
18546 ignored RE_ICASE. Detect that problem too. */
18547 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
18548 memset (&regex, 0, sizeof regex);
18549 s = re_compile_pattern ("x", 1, &regex);
18550 if (s)
18551 result |= 16;
18552 else if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
18553 result |= 16;
18554
18555 /* Catch a bug reported by Vin Shelton in
18556 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
18557 */
18558 re_set_syntax (RE_SYNTAX_POSIX_BASIC
18559 & ~RE_CONTEXT_INVALID_DUP
18560 & ~RE_NO_EMPTY_RANGES);
18561 memset (&regex, 0, sizeof regex);
18562 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
18563 if (s)
18564 result |= 32;
18565
18566 /* REG_STARTEND was added to glibc on 2004-01-15.
18567 Reject older versions. */
18568 if (! REG_STARTEND)
18569 result |= 64;
18570
18571 #if 0
18572 /* It would be nice to reject hosts whose regoff_t values are too
18573 narrow (including glibc on hosts with 64-bit ptrdiff_t and
18574 32-bit int), but we should wait until glibc implements this
18575 feature. Otherwise, support for equivalence classes and
18576 multibyte collation symbols would always be broken except
18577 when compiling --without-included-regex. */
18578 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
18579 || sizeof (regoff_t) < sizeof (ssize_t))
18580 result |= 64;
18581 #endif
18582
18583 return result;
18584
18585 ;
18586 return 0;
18587 }
18588 _ACEOF
18589 if ac_fn_c_try_run "$LINENO"; then :
18590 gl_cv_func_re_compile_pattern_working=yes
18591 else
18592 gl_cv_func_re_compile_pattern_working=no
18593 fi
18594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18595 conftest.$ac_objext conftest.beam conftest.$ac_ext
18596 fi
18597
18598 fi
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
18600 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
18601 case $gl_cv_func_re_compile_pattern_working in #(
18602 yes) ac_use_included_regex=no;; #(
18603 no) ac_use_included_regex=yes;;
18604 esac
18605 ;;
18606 *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
18607 ;;
18608 esac
18609
18610 if test $ac_use_included_regex = yes; then
18611
18612 $as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
18613
18614
18615 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
18616
18617
18618 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
18619
18620
18621 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
18622
18623
18624 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
18625
18626
18627 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
18628
18629
18630 $as_echo "#define re_search rpl_re_search" >>confdefs.h
18631
18632
18633 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
18634
18635
18636 $as_echo "#define re_match rpl_re_match" >>confdefs.h
18637
18638
18639 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
18640
18641
18642 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
18643
18644
18645 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
18646
18647
18648 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
18649
18650
18651 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
18652
18653
18654 $as_echo "#define regexec rpl_regexec" >>confdefs.h
18655
18656
18657 $as_echo "#define regerror rpl_regerror" >>confdefs.h
18658
18659
18660 $as_echo "#define regfree rpl_regfree" >>confdefs.h
18661
18662 fi
18663
18664 if test $ac_use_included_regex = yes; then
18665 case " $LIBOBJS " in
18666 *" regex.$ac_objext "* ) ;;
18667 *) LIBOBJS="$LIBOBJS regex.$ac_objext"
18668 ;;
18669 esac
18670
18671
18672
18673
18674
18675
18676 for ac_header in libintl.h
18677 do :
18678 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18679 if test "x$ac_cv_header_libintl_h" = xyes; then :
18680 cat >>confdefs.h <<_ACEOF
18681 #define HAVE_LIBINTL_H 1
18682 _ACEOF
18683
18684 fi
18685
18686 done
18687
18688
18689 :
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
18702 "
18703 if test "x$ac_cv_have_decl_isblank" = xyes; then :
18704 ac_have_decl=1
18705 else
18706 ac_have_decl=0
18707 fi
18708
18709 cat >>confdefs.h <<_ACEOF
18710 #define HAVE_DECL_ISBLANK $ac_have_decl
18711 _ACEOF
18712
18713
18714 fi
1871518386
1871618387 # help2man to generate man pages.
1871718388
1876518436
1876618437
1876718438 MKINSTALLDIRS="\$(top_srcdir)/build-aux/install-sh -d"
18768
18769
18770
18771 # Extract the first word of "perl", so it can be a program name with args.
18772 set dummy perl; ac_word=$2
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18774 $as_echo_n "checking for $ac_word... " >&6; }
18775 if ${ac_cv_path_PERL+:} false; then :
18776 $as_echo_n "(cached) " >&6
18777 else
18778 case $PERL in
18779 [\\/]* | ?:[\\/]*)
18780 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18781 ;;
18782 *)
18783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18784 as_dummy="/opt/perl5/bin:"$PATH""
18785 for as_dir in $as_dummy
18786 do
18787 IFS=$as_save_IFS
18788 test -z "$as_dir" && as_dir=.
18789 for ac_exec_ext in '' $ac_executable_extensions; do
18790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18791 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18793 break 2
18794 fi
18795 done
18796 done
18797 IFS=$as_save_IFS
18798
18799 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/env perl"
18800 ;;
18801 esac
18802 fi
18803 PERL=$ac_cv_path_PERL
18804 if test -n "$PERL"; then
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
18806 $as_echo "$PERL" >&6; }
18807 else
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18809 $as_echo "no" >&6; }
18810 fi
18811
1881218439
1881318440
1881418441 # Needed on sysV68 for sigblock, sigsetmask. But check for it in libc first.
1952319150 # rather ncurses. So we check for it.
1952419151 TERMLIBS=
1952519152 # Check for termlib before termcap because Solaris termcap needs libucb.
19526 TERMLIB_VARIANTS="ncurses curses termlib termcap terminfo"
19153 TERMLIB_VARIANTS="tinfo ncurses curses termlib termcap terminfo"
1952719154 for termlib in ${TERMLIB_VARIANTS}; do
1952819155 as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
1952919156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${termlib}" >&5
1956819195 fi
1956919196
1957019197 done
19198 have_termlib=yes
1957119199 # don't bother warning on djgpp, it doesn't have a term library, it
1957219200 # ports each termcap-needing program separately according to its needs.
1957319201 if test -z "$TERMLIBS" && echo "$build" | grep -v djgpp >/dev/null; then
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&5
19575 $as_echo "$as_me: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&2;}
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: info needs a terminal library, one of: ${TERMLIB_VARIANTS}" >&5
19203 $as_echo "$as_me: WARNING: info needs a terminal library, one of: ${TERMLIB_VARIANTS}" >&2;}
19204 have_termlib=no
1957619205 fi
1957719206
1957819207 # Checks for variables.
1963619265 TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}"
1963719266 fi
1963819267 #
19268 if test "x$TERMLIBS" != x; then
19269 HAVE_TERMLIBS_TRUE=
19270 HAVE_TERMLIBS_FALSE='#'
19271 else
19272 HAVE_TERMLIBS_TRUE='#'
19273 HAVE_TERMLIBS_FALSE=
19274 fi
19275
1963919276
1964019277 # Do not use <ncurses/termcap.h> unless we're linking with ncurses.
1964119278 # Must come after the termlib tests.
2194921586
2195021587 if test "z$PROVE" = 'z'; then
2195121588 tp_tests='no'
21952 elif $PERL -e "use 5.006; use Encode; use Test::More; use File::Basename; use File::Copy; use Data::Dumper; use Data::Compare; use Test::Deep; use Storable qw(dclone); use Getopt::Long qw(GetOptions);" > /dev/null 2>&1;
21589 elif $PERL -e "use 5.007_003; use Encode; use Test::More; use File::Basename; use File::Copy; use Data::Dumper; use Data::Compare; use Test::Deep; use Storable qw(dclone); use Getopt::Long qw(GetOptions);" > /dev/null 2>&1;
2195321590 then
2195421591 tp_tests='yes'
2195521592 else
2198221619 fi
2198321620 else
2198421621
21985 if $PERL -e "use 5.006; use Encode; use Pod::Simple::PullParser;" > /dev/null 2>&1;
21622 if $PERL -e "use 5.007_003; use Encode; use Pod::Simple::PullParser;" > /dev/null 2>&1;
2198621623 then
2198721624 build_perl_api_texi='yes'
2198821625 else
2201721654
2201821655 if test "z$PROVE" = 'z' ; then
2201921656 pod_simple_texinfo_tests='no'
22020 elif $PERL -e "use 5.006; use Encode; use Test::More; use Pod::Simple::PullParser;" > /dev/null 2>&1;
21657 elif $PERL -e "use 5.007_003; use Encode; use Test::More; use Pod::Simple::PullParser;" > /dev/null 2>&1;
2202121658 then
2202221659 pod_simple_texinfo_tests='yes'
2202321660 else
2203721674 else
2203821675 POD_SIMPLE_TEXINFO_TESTS_TRUE='#'
2203921676 POD_SIMPLE_TEXINFO_TESTS_FALSE=
21677 fi
21678
21679
21680 tgt_is_windows=no
21681 case "$target" in
21682 *-mingw32 | *-mingw64 | *-msdosdjgpp ) tgt_is_windows=yes ;;
21683 esac
21684 if test "x$tgt_is_windows" = "xyes"; then
21685 TGT_IS_WINDOWS_TRUE=
21686 TGT_IS_WINDOWS_FALSE='#'
21687 else
21688 TGT_IS_WINDOWS_TRUE='#'
21689 TGT_IS_WINDOWS_FALSE=
2204021690 fi
2204121691
2204221692
2225321903 as_fn_error $? "conditional \"TOOLS_ONLY\" was never defined.
2225421904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2225521905 fi
21906 if test -z "${HAVE_TERMLIBS_TRUE}" && test -z "${HAVE_TERMLIBS_FALSE}"; then
21907 as_fn_error $? "conditional \"HAVE_TERMLIBS\" was never defined.
21908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21909 fi
2225621910 if test -z "${INSTALL_WARNINGS_TRUE}" && test -z "${INSTALL_WARNINGS_FALSE}"; then
2225721911 as_fn_error $? "conditional \"INSTALL_WARNINGS\" was never defined.
2225821912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2226721921 fi
2226821922 if test -z "${POD_SIMPLE_TEXINFO_TESTS_TRUE}" && test -z "${POD_SIMPLE_TEXINFO_TESTS_FALSE}"; then
2226921923 as_fn_error $? "conditional \"POD_SIMPLE_TEXINFO_TESTS\" was never defined.
21924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21925 fi
21926 if test -z "${TGT_IS_WINDOWS_TRUE}" && test -z "${TGT_IS_WINDOWS_FALSE}"; then
21927 as_fn_error $? "conditional \"TGT_IS_WINDOWS\" was never defined.
2227021928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
2227121929 fi
2227221930
2266622324 # report actual input values of CONFIG_FILES etc. instead of their
2266722325 # values after options handling.
2266822326 ac_log="
22669 This file was extended by GNU Texinfo $as_me 4.13.91, which was
22327 This file was extended by GNU Texinfo $as_me 4.13.92, which was
2267022328 generated by GNU Autoconf 2.69. Invocation command line was
2267122329
2267222330 CONFIG_FILES = $CONFIG_FILES
2273422392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2273522393 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2273622394 ac_cs_version="\\
22737 GNU Texinfo config.status 4.13.91
22395 GNU Texinfo config.status 4.13.92
2273822396 configured by $0, generated by GNU Autoconf 2.69,
2273922397 with options \\"\$ac_cs_config\\"
2274022398
2374223400 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
2374323401 fi
2374423402
23403
23404 # Summarize warnings to make them more visible.
23405 if test $have_termlib = no; then
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a terminal library among ${TERMLIB_VARIANTS}" >&5
23407 $as_echo "$as_me: WARNING: Could not find a terminal library among ${TERMLIB_VARIANTS}" >&2;}
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The programs from \`info' directory will not be built." >&5
23409 $as_echo "$as_me: WARNING: The programs from \`info' directory will not be built." >&2;}
23410 fi
00 # Process this file with autoconf to produce a configure script.
1 # $Id: configure.ac,v 1.125 2012/11/26 19:27:08 karl Exp $
1 # $Id: configure.ac,v 1.131 2012/12/18 01:36:12 karl Exp $
22 #
33 # Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
44 # Free Software Foundation, Inc.
1111 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
1212 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1313 #
14 AC_INIT([GNU Texinfo], [4.13.91], [bug-texinfo@gnu.org])
14 AC_INIT([GNU Texinfo], [4.13.92], [bug-texinfo@gnu.org])
1515
1616 dnl Must come before AM_INIT_AUTOMAKE.
1717 AC_CONFIG_AUX_DIR([build-aux])
2626 AC_CONFIG_HEADERS([config.h:config.in])dnl Keep filename to 8.3 for MS-DOS.
2727 AC_CONFIG_SRCDIR([info/info.c])
2828
29 # version for the dtd. In between releases, PACKAGE_VERSION is not set
30 # to a value that corresponds to actual files on the internet.
31 # TEXINFO_DTD_VERSION=$PACKAGE_VERSION
32 TEXINFO_DTD_VERSION=5.00
33 AC_SUBST([TEXINFO_DTD_VERSION])
34
2935 # Conditional texi2html support.
3036 AM_CONDITIONAL([TEXI2HTML],[false])
3137
3440 AC_SUBST([PACKAGE_DATE])
3541
3642 # We need Perl
43 AC_ARG_VAR([PERL], [The path to the 'perl' executable.])
44 dnl AC_PATH_PROG([PERL], [perl], [/usr/bin/env perl], [/opt/perl5/bin:"$PATH"])
45
3746 AC_PATH_PROG([PERL], [perl])
3847 if test -z "$PERL"; then
3948 AC_MSG_ERROR(
4251 specify where it is using
4352 ./configure PERL=/path/to/perl
4453 ])
45
54 fi
55
56
57 AC_MSG_CHECKING([Perl version and Encode module])
58 if $PERL -e "use 5.007_003; use Encode;" > /dev/null 2>&1; then
59 perl_version_requirement='yes'
60 else
61 perl_version_requirement='no'
62 fi
63 AC_MSG_RESULT($perl_version_requirement)
64 if test z"$perl_version_requirement" = 'zno' ; then
65 AC_MSG_ERROR([perl >= 5.7.3 with Encode required by Texinfo.])
4666 fi
4767
4868 # Checks for programs.
5676 # Rest of Gnulib.
5777 gl_INIT
5878
59 # Regex from Gnulib if needed.
60 gl_REGEX
61 if test $ac_use_included_regex = yes; then
62 AC_LIBOBJ([regex])
63 gl_PREREQ_REGEX
64 fi
65
6679 # help2man to generate man pages.
6780 AM_MISSING_PROG(HELP2MAN, help2man)
6881
7588 dnl gettext Makefiles may need MKINSTALLDIRS
7689 MKINSTALLDIRS="\$(top_srcdir)/build-aux/install-sh -d"
7790 AC_SUBST([MKINSTALLDIRS])
78
79 AC_ARG_VAR([PERL], [The path to the 'perl' executable.])
80 AC_PATH_PROG([PERL], [perl], [/usr/bin/env perl], [/opt/perl5/bin:"$PATH"])
8191
8292 # Needed on sysV68 for sigblock, sigsetmask. But check for it in libc first.
8393 AC_CHECK_FUNC(sigblock, , [AC_CHECK_LIB(bsd, sigblock)])
163173 # rather ncurses. So we check for it.
164174 TERMLIBS=
165175 # Check for termlib before termcap because Solaris termcap needs libucb.
166 TERMLIB_VARIANTS="ncurses curses termlib termcap terminfo"
176 TERMLIB_VARIANTS="tinfo ncurses curses termlib termcap terminfo"
167177 for termlib in ${TERMLIB_VARIANTS}; do
168178 AC_CHECK_LIB(${termlib}, tgetent,
169179 [TERMLIBS="${TERMLIBS} -l${termlib}"; break])
170180 done
181 have_termlib=yes
171182 # don't bother warning on djgpp, it doesn't have a term library, it
172183 # ports each termcap-needing program separately according to its needs.
173184 if test -z "$TERMLIBS" && echo "$build" | grep -v djgpp >/dev/null; then
174 AC_MSG_WARN([probably need a terminal library, one of: ${TERMLIB_VARIANTS}])
185 AC_MSG_WARN([info needs a terminal library, one of: ${TERMLIB_VARIANTS}])
186 have_termlib=no
175187 fi
176188
177189 # Checks for variables.
214226 TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}"
215227 fi
216228 AC_SUBST(TERMLIBS)#
229 AM_CONDITIONAL(HAVE_TERMLIBS, [[test "x$TERMLIBS" != x]])
217230
218231 # Do not use <ncurses/termcap.h> unless we're linking with ncurses.
219232 # Must come after the termlib tests.
306319 [
307320 if test "z$PROVE" = 'z'; then
308321 tp_tests='no'
309 elif $PERL -e "use 5.006; use Encode; use Test::More; use File::Basename; use File::Copy; use Data::Dumper; use Data::Compare; use Test::Deep; use Storable qw(dclone); use Getopt::Long qw(GetOptions);" > /dev/null 2>&1;
322 elif $PERL -e "use 5.007_003; use Encode; use Test::More; use File::Basename; use File::Copy; use Data::Dumper; use Data::Compare; use Test::Deep; use Storable qw(dclone); use Getopt::Long qw(GetOptions);" > /dev/null 2>&1;
310323 then
311324 tp_tests='yes'
312325 else
328341 build_perl_api_texi='yes'
329342 fi],
330343 [
331 if $PERL -e "use 5.006; use Encode; use Pod::Simple::PullParser;" > /dev/null 2>&1;
344 if $PERL -e "use 5.007_003; use Encode; use Pod::Simple::PullParser;" > /dev/null 2>&1;
332345 then
333346 build_perl_api_texi='yes'
334347 else
352365 [
353366 if test "z$PROVE" = 'z' ; then
354367 pod_simple_texinfo_tests='no'
355 elif $PERL -e "use 5.006; use Encode; use Test::More; use Pod::Simple::PullParser;" > /dev/null 2>&1;
368 elif $PERL -e "use 5.007_003; use Encode; use Test::More; use Pod::Simple::PullParser;" > /dev/null 2>&1;
356369 then
357370 pod_simple_texinfo_tests='yes'
358371 else
363376 AC_MSG_CHECKING([Pod::Simple::Texinfo tests requirements])
364377 AC_MSG_RESULT([$pod_simple_texinfo_tests])
365378 AM_CONDITIONAL([POD_SIMPLE_TEXINFO_TESTS], [test "z$pod_simple_texinfo_tests" = 'zyes'])
379
380 tgt_is_windows=no
381 case "$target" in
382 *-mingw32 | *-mingw64 | *-msdosdjgpp ) tgt_is_windows=yes ;;
383 esac
384 AM_CONDITIONAL([TGT_IS_WINDOWS], [test "x$tgt_is_windows" = "xyes"])
366385
367386 # The config files to generate.
368387 AC_CONFIG_FILES([\
396415 ])
397416
398417 AC_OUTPUT
418
419 # Summarize warnings to make them more visible.
420 if test $have_termlib = no; then
421 AC_MSG_WARN([Could not find a terminal library among ${TERMLIB_VARIANTS}])
422 AC_MSG_WARN([The programs from \`info' directory will not be built.])
423 fi
0 # Makefile.in generated by automake 1.12.5 from Makefile.am.
0 # Makefile.in generated by automake 1.12.6 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
8989 $(top_srcdir)/gnulib/m4/gnulib-comp.m4 \
9090 $(top_srcdir)/gnulib/m4/iconv.m4 \
9191 $(top_srcdir)/gnulib/m4/include_next.m4 \
92 $(top_srcdir)/gnulib/m4/inline.m4 \
9392 $(top_srcdir)/gnulib/m4/intlmacosx.m4 \
9493 $(top_srcdir)/gnulib/m4/iswblank.m4 \
9594 $(top_srcdir)/gnulib/m4/langinfo_h.m4 \
863862 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
864863 TERMLIBS = @TERMLIBS@
865864 TEX = @TEX@
865 TEXINFO_DTD_VERSION = @TEXINFO_DTD_VERSION@
866866 TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
867867 UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@
868868 UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@
00 #!/usr/bin/env perl
1 # $Id: txicmdcheck,v 1.7 2012/09/21 17:40:45 karl Exp $
1 # $Id: txicmdcheck,v 1.8 2012/12/14 18:57:42 karl Exp $
22 # Copyright 2008, 2011, 2012 Free Software Foundation, Inc.
33 #
44 # This program is free software; you can redistribute it and/or modify
2727 my @card_cmds = &read_refcard ("txirefcard.tex");
2828 my @man_cmds = &read_refman ("../texinfo.txi");
2929 my @tp_cmds = &read_tp ("../../util/txicmdlist");
30 # perhaps we should check against the manual's fnindex too.
3031
3132 my (%card_cmds, %man_cmds, %tp_cmds);
3233 @card_cmds{@card_cmds} = ();
00 @set UPDATED 17 April 2012
11 @set UPDATED-MONTH April 2012
2 @set EDITION 4.13.91
3 @set VERSION 4.13.91
2 @set EDITION 4.13.92
3 @set VERSION 4.13.92
0 @set UPDATED 26 November 2012
1 @set UPDATED-MONTH November 2012
2 @set EDITION 4.13.91
3 @set VERSION 4.13.91
0 @set UPDATED 17 December 2012
1 @set UPDATED-MONTH December 2012
2 @set EDITION 4.13.92
3 @set VERSION 4.13.92
0 # Makefile.in generated by automake 1.12.5 from Makefile.am.
0 # Makefile.in generated by automake 1.12.6 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
8585 $(top_srcdir)/gnulib/m4/gnulib-comp.m4 \
8686 $(top_srcdir)/gnulib/m4/iconv.m4 \
8787 $(top_srcdir)/gnulib/m4/include_next.m4 \
88 $(top_srcdir)/gnulib/m4/inline.m4 \
8988 $(top_srcdir)/gnulib/m4/intlmacosx.m4 \
9089 $(top_srcdir)/gnulib/m4/iswblank.m4 \
9190 $(top_srcdir)/gnulib/m4/langinfo_h.m4 \
781780 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
782781 TERMLIBS = @TERMLIBS@
783782 TEX = @TEX@
783 TEXINFO_DTD_VERSION = @TEXINFO_DTD_VERSION@
784784 TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
785785 UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@
786786 UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@
2828 warn $error_message->{'error_line'};
2929 }
3030
31 my ($index_names, $merged_indices_hash, $index_entries_arrays)
31 my ($index_names, $merged_indices_hash)
3232 = $parser->indices_information();
3333 my $float_types_arrays = $parser->floats_information();
3434 my $internal_references_array
332332 @anchor{Texinfo::Parser indices_information}
333333
334334 @verbatim
335 ($index_names, $merged_indices_hash, $index_entries_arrays)
335 ($index_names, $merged_indices_hash)
336336 = indices_information($parser);
337337 @end verbatim
338338
339 The index names is a hash reference. The keys are the index names. They
340 are associated to a hash reference. The keys of these hash references are
341 the index prefixes associated to the index name, and the value is set if
342 the index entries should be formatted as code.
339 The index names is a hash reference. The keys are
340
341 @table @asis
342 @item in_code
343 @anchor{Texinfo::Parser in_code}
344
345 1 if the index entries should be formatted as code, 0 in the opposite case.
346
347 @item name
348 @anchor{Texinfo::Parser name}
349
350 The index name.
351
352 @item prefix
353 @anchor{Texinfo::Parser prefix}
354
355 An array reference of prefix associated to the index.
356
357 @item merged_in
358 @anchor{Texinfo::Parser merged_in}
359
360 In case the index is merged to another index, this key holds the name of
361 the index the index is merged into. It takes into account indirectly
362 merged indices.
363
364 @item contained_indices
365 @anchor{Texinfo::Parser contained_indices}
366
367 An hash reference holding names of indices that are merged to the index,
368 including itself. It also contains indirectly merged indices. This key
369 is present even if the index is itself later merged to another index.
370
371 @item index_entries
372 @anchor{Texinfo::Parser index_entries}
373
374 An array reference containing index entry structures for index entries
375 associated with the index. The index entry could be associated to
376 @@-commands like @code{@@cindex}, or @code{@@item} in @code{@@vtable}, or definition
377 commands entries like @code{@@deffn}.
378
379 The keys of the index entry structures are
380
381 @table @asis
382 @item index_name
383 @anchor{Texinfo::Parser index_name}
384
385 The index name.
386
387 @item index_prefix
388 @anchor{Texinfo::Parser index_prefix}
389
390 The associated index prefix.
391
392 @item index_at_command
393 @anchor{Texinfo::Parser index_at_command}
394
395 The name of the @@-command associated with the index entry.
396
397 @item index_type_command
398 @anchor{Texinfo::Parser index_type_command}
399
400 The @@-command associated with the index entry allowing to
401 find the index type.
402
403 @item content
404 @anchor{Texinfo::Parser content}
405
406 An array reference corresponding to the index entry content.
407
408 @item content_normalized
409 @anchor{Texinfo::Parser content_normalized}
410
411 An array reference corresponding to the index entry content, independent
412 of the current language.
413
414 @item command
415 @anchor{Texinfo::Parser command}
416
417 The element in the parsed tree associated with the @@-command holding the
418 index entry.
419
420 @item node
421 @anchor{Texinfo::Parser node}
422
423 The node in the parsed tree containing the index entry.
424
425 @item number
426 @anchor{Texinfo::Parser number}
427
428 The number of the index entry.
429
430 @item region
431 @anchor{Texinfo::Parser region}
432
433 The region command (@code{@@copying}, @code{@@titlepage}) containing the index entry,
434 if it is in such an environement.
435
436 @end table
437
438 @end table
343439
344440 The following shows the references corresponding with the default indexes
345441 @emph{cp} and @emph{fn}, the @emph{fn} index having its entries formatted as code and
349445 @defindex some
350446 @defcodeindex code
351447
352 $index_names = {'cp' => {'cp' => 0, 'c' => 0},
353 'fn' => {'fn' => 1, 'f' => 1},
354 'some' => {'some' => 0},
355 'code' => {'code' => 1}};
356 @end verbatim
448 $index_names = {'cp' => {'name' => 'cp', 'in_code' => 0,
449 'prefix' => ['c', 'cp']},
450 'fn' => {'name' => 'fn', 'in_code' => 1,
451 'prefix' => ['f', 'fn']},
452 'some' => {'in_code' => 0},
453 'code' => {'in_code' => 1}};
454 @end verbatim
455
456 If @code{name} is not set, it is set to the index name. If @code{prefix} is
457 not set, it is set to an array containing the index name.
357458
358459 @emph{$merged_indices_hash} is a hash reference, the key is an index
359460 name merged in the value.
360
361 Last, @emph{$index_entries_arrays} is an hash reference. The keys are
362 index names, the values are index entry structures that are associated
363 with the index entries, associated to @@-commands like @code{@@cindex},
364 or @code{@@item} in @code{@@vtable}, or definition commands entries like @code{@@deffn}.
365
366 The keys of the index entry structures are
367
368 @table @asis
369 @item index_name
370 @anchor{Texinfo::Parser index_name}
371
372 The index name.
373
374 @item index_prefix
375 @anchor{Texinfo::Parser index_prefix}
376
377 The associated index prefix.
378
379 @item index_at_command
380 @anchor{Texinfo::Parser index_at_command}
381
382 The name of the @@-command associated with the index entry.
383
384 @item index_type_command
385 @anchor{Texinfo::Parser index_type_command}
386
387 The @@-command associated with the index entry allowing to
388 find the index type.
389
390 @item content
391 @anchor{Texinfo::Parser content}
392
393 An array reference corresponding to the index entry content.
394
395 @item content_normalized
396 @anchor{Texinfo::Parser content_normalized}
397
398 An array reference corresponding to the index entry content, independent
399 of the current language.
400
401 @item command
402 @anchor{Texinfo::Parser command}
403
404 The element in the parsed tree associated with the @@-command holding the
405 index entry.
406
407 @item node
408 @anchor{Texinfo::Parser node}
409
410 The node in the parsed tree containing the index entry.
411
412 @item number
413 @anchor{Texinfo::Parser number}
414
415 The number of the index entry.
416
417 @item region
418 @anchor{Texinfo::Parser region}
419
420 The region command (@code{@@copying}, @code{@@titlepage}) containing the index entry,
421 if it is in such an environement.
422
423 @end table
424461
425462 @end table
426463
534571 = item merged_indices
535572
536573 The associated hash reference holds merged indices information, each key
537 is merged in the value. Same as setting @code{@@synindex} of @code{syncodeindex}.
574 is merged in the value. Same as setting @code{@@synindex} or @code{syncodeindex}.
538575
539576 @item novalidate
540577 @anchor{Texinfo::Parser novalidate}
11371174 @item index_entry
11381175 @anchor{Texinfo::Parser index_entry}
11391176
1140 The index entry information (described in @ref{Texinfo::Parser indices_information,, indices_information}
1177 The index entry information (described in @ref{Texinfo::Parser index_entries,, index_entries}
11411178 in details) is associated to @@-commands that have an associated
11421179 index entry.
11431180
3838 elements_directions($parser, $elements);
3939 elements_file_directions($parser, $elements);
4040
41 my ($index_names, $merged_indices, $index_entries)
41 my ($index_names, $merged_indices)
4242 = $parser->indices_information();
4343 my $merged_index_entries
44 = merge_indices($index_names, $merged_indices, $index_entries);
44 = merge_indices($index_names);
4545 my $index_entries_sorted;
4646 if ($sort_by_letter) {
4747 $index_entries_sorted = sort_indices_by_letter($parser,
366366
367367 The API for association of pages/elements to files is not defined yet.
368368
369 @item $merged_entries = merge_indices($index_names, $merged_indices, $index_entries)
370 @anchor{Texinfo::Structuring $merged_entries = merge_indices($index_names@comma{} $merged_indices@comma{} $index_entries)}
369 @item $merged_entries = merge_indices($index_names)
370 @anchor{Texinfo::Structuring $merged_entries = merge_indices($index_names)}
371371
372372 Using informations returned by @ref{Texinfo::Parser indices_information},
373 a structure similar with the one returned by
374 @ref{Texinfo::Parser indices_information}, but with all the entries of
375 merged indices merged with those of the indice merged into.
373 a structure holding all the index entries by index name is returned,
374 with all the entries of merged indices merged with those of the indice
375 merged into.
376
376377 The @emph{$merged_entries} returned is a hash reference whose
377378 keys are the index names and values arrays of index entry structures
378 described in details in @ref{Texinfo::Parser indices_information}.
379 described in details in @ref{Texinfo::Parser index_entries}.
379380
380381 @item $index_entries_sorted = sort_indices_by_letter($parser, $merged_index_entries, $index_names)
381382 @anchor{Texinfo::Structuring $index_entries_sorted = sort_indices_by_letter($parser@comma{} $merged_index_entries@comma{} $index_names)}
00 @set UPDATED 17 April 2012
11 @set UPDATED-MONTH April 2012
2 @set EDITION 4.13.91
3 @set VERSION 4.13.91
2 @set EDITION 4.13.92
3 @set VERSION 4.13.92
0 @set UPDATED 26 November 2012
1 @set UPDATED-MONTH November 2012
2 @set EDITION 4.13.91
3 @set VERSION 4.13.91
0 @set UPDATED 17 December 2012
1 @set UPDATED-MONTH December 2012
2 @set EDITION 4.13.92
3 @set VERSION 4.13.92
13161316 ## begin gnulib module unistd
13171317
13181318 BUILT_SOURCES += unistd.h
1319 libgnu_a_SOURCES += unistd.c
13191320
13201321 # We need the following in order to create an empty placeholder for
13211322 # <unistd.h> when the system doesn't have one.
16451646 ## begin gnulib module wctype-h
16461647
16471648 BUILT_SOURCES += wctype.h
1649 libgnu_a_SOURCES += wctype-h.c
16481650
16491651 # We need the following in order to create <wctype.h> when the system
16501652 # doesn't have one that works with the given compiler.
0 # Makefile.in generated by automake 1.12.5 from Makefile.am.
0 # Makefile.in generated by automake 1.12.6 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
9999 $(top_srcdir)/gnulib/m4/gnulib-comp.m4 \
100100 $(top_srcdir)/gnulib/m4/iconv.m4 \
101101 $(top_srcdir)/gnulib/m4/include_next.m4 \
102 $(top_srcdir)/gnulib/m4/inline.m4 \
103102 $(top_srcdir)/gnulib/m4/intlmacosx.m4 \
104103 $(top_srcdir)/gnulib/m4/iswblank.m4 \
105104 $(top_srcdir)/gnulib/m4/langinfo_h.m4 \
184183 localcharset.c malloca.c mbchar.c mbiter.h mbiter.c \
185184 mbscasecmp.c mbschr.c mbslen.c mbsncasecmp.c mbsstr.c \
186185 mbswidth.h mbswidth.c mbuiter.h mbuiter.c strnlen1.h \
187 strnlen1.c tempname.c uniwidth/width.c xmalloc.c xalloc-die.c
186 strnlen1.c tempname.c unistd.c uniwidth/width.c wctype-h.c \
187 xmalloc.c xalloc-die.c
188188 am__dirstamp = $(am__leading_dot)dirstamp
189189 @LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE@am__objects_1 = uniwidth/width.$(OBJEXT)
190190 am_libgnu_a_OBJECTS = exitfail.$(OBJEXT) localcharset.$(OBJEXT) \
192192 mbscasecmp.$(OBJEXT) mbschr.$(OBJEXT) mbslen.$(OBJEXT) \
193193 mbsncasecmp.$(OBJEXT) mbsstr.$(OBJEXT) mbswidth.$(OBJEXT) \
194194 mbuiter.$(OBJEXT) strnlen1.$(OBJEXT) tempname.$(OBJEXT) \
195 $(am__objects_1) xmalloc.$(OBJEXT) xalloc-die.$(OBJEXT)
195 unistd.$(OBJEXT) $(am__objects_1) wctype-h.$(OBJEXT) \
196 xmalloc.$(OBJEXT) xalloc-die.$(OBJEXT)
196197 libgnu_a_OBJECTS = $(am_libgnu_a_OBJECTS)
197198 LTLIBRARIES = $(noinst_LTLIBRARIES)
198199 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
859860 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
860861 TERMLIBS = @TERMLIBS@
861862 TEX = @TEX@
863 TEXINFO_DTD_VERSION = @TEXINFO_DTD_VERSION@
862864 TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
863865 UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@
864866 UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@
10081010 libgnu_a_SOURCES = exitfail.c gettext.h localcharset.h localcharset.c \
10091011 malloca.c mbchar.c mbiter.h mbiter.c mbscasecmp.c mbschr.c \
10101012 mbslen.c mbsncasecmp.c mbsstr.c mbswidth.h mbswidth.c \
1011 mbuiter.h mbuiter.c strnlen1.h strnlen1.c tempname.c \
1012 $(am__append_1) xmalloc.c xalloc-die.c
1013 mbuiter.h mbuiter.c strnlen1.h strnlen1.c tempname.c unistd.c \
1014 $(am__append_1) wctype-h.c xmalloc.c xalloc-die.c
10131015 libgnu_a_LIBADD = $(gl_LIBOBJS)
10141016 libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
10151017 EXTRA_libgnu_a_SOURCES = argz.c btowc.c error.c getopt.c getopt1.c \
11441146 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strnlen1.Po@am__quote@
11451147 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strstr.Po@am__quote@
11461148 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tempname.Po@am__quote@
1149 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unistd.Po@am__quote@
11471150 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wcrtomb.Po@am__quote@
1151 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wctype-h.Po@am__quote@
11481152 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wcwidth.Po@am__quote@
11491153 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xalloc-die.Po@am__quote@
11501154 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmalloc.Po@am__quote@
120120
121121 #if !_LIBC
122122 /* Return non-zero if FD is open. */
123 static inline int
123 static int
124124 is_open (int fd)
125125 {
126126 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
138138 }
139139 #endif
140140
141 static inline void
141 static void
142142 flush_stdout (void)
143143 {
144144 #if !_LIBC
3434 # include <sys/stat.h>
3535 # undef __need_system_sys_stat_h
3636
37 static inline int
37 static int
3838 orig_lstat (const char *filename, struct stat *buf)
3939 {
4040 return lstat (filename, buf);
14531453 return dfa->nodes_len++;
14541454 }
14551455
1456 static inline re_hashval_t
1456 static re_hashval_t
14571457 internal_function
14581458 calc_state_hash (const re_node_set *nodes, unsigned int context)
14591459 {
8282 # define BE(expr, val) __builtin_expect (expr, val)
8383 #else
8484 # define BE(expr, val) (expr)
85 # ifdef _LIBC
86 # define inline
87 # endif
8885 #endif
8986
9087 /* Number of ASCII characters. */
726723 } bracket_elem_t;
727724
728725
729 /* Inline functions for bitset_t operation. */
730
731 static inline void
726 /* Functions for bitset_t operation. */
727
728 static void
732729 bitset_set (bitset_t set, Idx i)
733730 {
734731 set[i / BITSET_WORD_BITS] |= (bitset_word_t) 1 << i % BITSET_WORD_BITS;
735732 }
736733
737 static inline void
734 static void
738735 bitset_clear (bitset_t set, Idx i)
739736 {
740737 set[i / BITSET_WORD_BITS] &= ~ ((bitset_word_t) 1 << i % BITSET_WORD_BITS);
741738 }
742739
743 static inline bool
740 static bool
744741 bitset_contain (const bitset_t set, Idx i)
745742 {
746743 return (set[i / BITSET_WORD_BITS] >> i % BITSET_WORD_BITS) & 1;
747744 }
748745
749 static inline void
746 static void
750747 bitset_empty (bitset_t set)
751748 {
752749 memset (set, '\0', sizeof (bitset_t));
753750 }
754751
755 static inline void
752 static void
756753 bitset_set_all (bitset_t set)
757754 {
758755 memset (set, -1, sizeof (bitset_word_t) * (SBC_MAX / BITSET_WORD_BITS));
761758 ((bitset_word_t) 1 << SBC_MAX % BITSET_WORD_BITS) - 1;
762759 }
763760
764 static inline void
761 static void
765762 bitset_copy (bitset_t dest, const bitset_t src)
766763 {
767764 memcpy (dest, src, sizeof (bitset_t));
768765 }
769766
770 static inline void
767 static void
771768 bitset_not (bitset_t set)
772769 {
773770 int bitset_i;
779776 & ~set[BITSET_WORDS - 1]);
780777 }
781778
782 static inline void
779 static void
783780 bitset_merge (bitset_t dest, const bitset_t src)
784781 {
785782 int bitset_i;
787784 dest[bitset_i] |= src[bitset_i];
788785 }
789786
790 static inline void
787 static void
791788 bitset_mask (bitset_t dest, const bitset_t src)
792789 {
793790 int bitset_i;
796793 }
797794
798795 #ifdef RE_ENABLE_I18N
799 /* Inline functions for re_string. */
800 static inline int
796 /* Functions for re_string. */
797 static int
801798 internal_function __attribute ((pure))
802799 re_string_char_size_at (const re_string_t *pstr, Idx idx)
803800 {
810807 return byte_idx;
811808 }
812809
813 static inline wint_t
810 static wint_t
814811 internal_function __attribute ((pure))
815812 re_string_wchar_at (const re_string_t *pstr, Idx idx)
816813 {
4141 # endif
4242 #endif
4343
44 static inline int
44 static int
4545 orig_stat (const char *filename, struct stat *buf)
4646 {
4747 return stat (filename, buf);
496496 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
497497
498498 # if !GNULIB_defined_rpl_mkdir
499 static inline int
499 static int
500500 rpl_mkdir (char const *name, mode_t mode)
501501 {
502502 return _mkdir (name);
0 #include <config.h>
1 #define _GL_UNISTD_INLINE _GL_EXTERN_INLINE
2 #include "unistd.h"
124124 But avoid namespace pollution on glibc systems. */
125125 #if @GNULIB_UNISTD_H_GETOPT@ && !defined __GLIBC__ && !defined _GL_SYSTEM_GETOPT
126126 # include <getopt.h>
127 #endif
128
129 _GL_INLINE_HEADER_BEGIN
130 #ifndef _GL_UNISTD_INLINE
131 # define _GL_UNISTD_INLINE _GL_INLINE
127132 #endif
128133
129134 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
403408 # endif
404409 #elif defined GNULIB_POSIXCHECK
405410 # if HAVE_RAW_DECL_ENVIRON
406 static inline char ***
411 _GL_UNISTD_INLINE char ***
407412 rpl_environ (void)
408413 {
409414 return &environ;
861866 # define getpagesize() _gl_getpagesize ()
862867 # else
863868 # if !GNULIB_defined_getpagesize_function
864 static inline int
869 _GL_UNISTD_INLINE int
865870 getpagesize ()
866871 {
867872 return _gl_getpagesize ();
15291534 _GL_CXXALIASWARN (write);
15301535 #endif
15311536
1537 _GL_INLINE_HEADER_END
15321538
15331539 #endif /* _@GUARD_PREFIX@_UNISTD_H */
15341540 #endif /* _@GUARD_PREFIX@_UNISTD_H */
0 /* Normally this would be wctype.c, but that name's already taken. */
1 #include <config.h>
2 #define _GL_WCTYPE_INLINE _GL_EXTERN_INLINE
3 #include "wctype.h"
5252
5353 #ifndef _@GUARD_PREFIX@_WCTYPE_H
5454 #define _@GUARD_PREFIX@_WCTYPE_H
55
56 _GL_INLINE_HEADER_BEGIN
57 #ifndef _GL_WCTYPE_INLINE
58 # define _GL_WCTYPE_INLINE _GL_INLINE
59 #endif
5560
5661 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
5762
147152 # endif
148153 # endif
149154
150 static inline int
155 _GL_WCTYPE_INLINE int
151156 # if @REPLACE_ISWCNTRL@
152157 rpl_iswalnum
153158 # else
159164 || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z'));
160165 }
161166
162 static inline int
167 _GL_WCTYPE_INLINE int
163168 # if @REPLACE_ISWCNTRL@
164169 rpl_iswalpha
165170 # else
170175 return (wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z';
171176 }
172177
173 static inline int
178 _GL_WCTYPE_INLINE int
174179 # if @REPLACE_ISWCNTRL@
175180 rpl_iswblank
176181 # else
181186 return wc == ' ' || wc == '\t';
182187 }
183188
184 static inline int
189 _GL_WCTYPE_INLINE int
185190 # if @REPLACE_ISWCNTRL@
186191 rpl_iswcntrl
187192 # else
192197 return (wc & ~0x1f) == 0 || wc == 0x7f;
193198 }
194199
195 static inline int
200 _GL_WCTYPE_INLINE int
196201 # if @REPLACE_ISWCNTRL@
197202 rpl_iswdigit
198203 # else
203208 return wc >= '0' && wc <= '9';
204209 }
205210
206 static inline int
211 _GL_WCTYPE_INLINE int
207212 # if @REPLACE_ISWCNTRL@
208213 rpl_iswgraph
209214 # else
214219 return wc >= '!' && wc <= '~';
215220 }
216221
217 static inline int
222 _GL_WCTYPE_INLINE int
218223 # if @REPLACE_ISWCNTRL@
219224 rpl_iswlower
220225 # else
225230 return wc >= 'a' && wc <= 'z';
226231 }
227232
228 static inline int
233 _GL_WCTYPE_INLINE int
229234 # if @REPLACE_ISWCNTRL@
230235 rpl_iswprint
231236 # else
236241 return wc >= ' ' && wc <= '~';
237242 }
238243
239 static inline int
244 _GL_WCTYPE_INLINE int
240245 # if @REPLACE_ISWCNTRL@
241246 rpl_iswpunct
242247 # else
249254 || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'Z')));
250255 }
251256
252 static inline int
257 _GL_WCTYPE_INLINE int
253258 # if @REPLACE_ISWCNTRL@
254259 rpl_iswspace
255260 # else
261266 || wc == '\n' || wc == '\v' || wc == '\f' || wc == '\r');
262267 }
263268
264 static inline int
269 _GL_WCTYPE_INLINE int
265270 # if @REPLACE_ISWCNTRL@
266271 rpl_iswupper
267272 # else
272277 return wc >= 'A' && wc <= 'Z';
273278 }
274279
275 static inline int
280 _GL_WCTYPE_INLINE int
276281 # if @REPLACE_ISWCNTRL@
277282 rpl_iswxdigit
278283 # else
284289 || ((wc & ~0x20) >= 'A' && (wc & ~0x20) <= 'F'));
285290 }
286291
287 static inline wint_t
292 _GL_WCTYPE_INLINE wint_t
288293 # if @REPLACE_TOWLOWER@
289294 rpl_towlower
290295 # else
295300 return (wc >= 'A' && wc <= 'Z' ? wc - 'A' + 'a' : wc);
296301 }
297302
298 static inline wint_t
303 _GL_WCTYPE_INLINE wint_t
299304 # if @REPLACE_TOWLOWER@
300305 rpl_towupper
301306 # else
335340 result register. We need to fix this by adding a zero-extend from
336341 wchar_t to wint_t after the call. */
337342
338 static inline wint_t
343 _GL_WCTYPE_INLINE wint_t
339344 rpl_towlower (wint_t wc)
340345 {
341346 return (wint_t) (wchar_t) towlower (wc);
344349 # define towlower rpl_towlower
345350 # endif
346351
347 static inline wint_t
352 _GL_WCTYPE_INLINE wint_t
348353 rpl_towupper (wint_t wc)
349354 {
350355 return (wint_t) (wchar_t) towupper (wc);
492497 # endif
493498 #endif
494499
500 _GL_INLINE_HEADER_END
495501
496502 #endif /* _@GUARD_PREFIX@_WCTYPE_H */
497503 #endif /* _@GUARD_PREFIX@_WCTYPE_H */
1515 along with this program. If not, see <http://www.gnu.org/licenses/>. */
1616
1717 #ifndef XALLOC_H_
18 # define XALLOC_H_
19
20 # include <stddef.h>
21
22 # include "xalloc-oversized.h"
23
24 # ifdef __cplusplus
18 #define XALLOC_H_
19
20 #include <stddef.h>
21
22 #include "xalloc-oversized.h"
23
24 _GL_INLINE_HEADER_BEGIN
25 #ifndef XALLOC_INLINE
26 # define XALLOC_INLINE _GL_INLINE
27 #endif
28
29 #ifdef __cplusplus
2530 extern "C" {
26 # endif
27
28
29 # if __GNUC__ >= 3
30 # define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
31 # else
32 # define _GL_ATTRIBUTE_MALLOC
33 # endif
34
35 # if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
36 # define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args))
37 # else
38 # define _GL_ATTRIBUTE_ALLOC_SIZE(args)
39 # endif
31 #endif
32
33
34 #if __GNUC__ >= 3
35 # define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
36 #else
37 # define _GL_ATTRIBUTE_MALLOC
38 #endif
39
40 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
41 # define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args))
42 #else
43 # define _GL_ATTRIBUTE_ALLOC_SIZE(args)
44 #endif
4045
4146 /* This function is always triggered when memory is exhausted.
4247 It must be defined by the application, either explicitly
6671
6772 /* Allocate an object of type T dynamically, with error checking. */
6873 /* extern t *XMALLOC (typename t); */
69 # define XMALLOC(t) ((t *) xmalloc (sizeof (t)))
74 #define XMALLOC(t) ((t *) xmalloc (sizeof (t)))
7075
7176 /* Allocate memory for N elements of type T, with error checking. */
7277 /* extern t *XNMALLOC (size_t n, typename t); */
73 # define XNMALLOC(n, t) \
74 ((t *) (sizeof (t) == 1 ? xmalloc (n) : xnmalloc (n, sizeof (t))))
78 #define XNMALLOC(n, t) \
79 ((t *) (sizeof (t) == 1 ? xmalloc (n) : xnmalloc (n, sizeof (t))))
7580
7681 /* Allocate an object of type T dynamically, with error checking,
7782 and zero it. */
7883 /* extern t *XZALLOC (typename t); */
79 # define XZALLOC(t) ((t *) xzalloc (sizeof (t)))
84 #define XZALLOC(t) ((t *) xzalloc (sizeof (t)))
8085
8186 /* Allocate memory for N elements of type T, with error checking,
8287 and zero it. */
8388 /* extern t *XCALLOC (size_t n, typename t); */
84 # define XCALLOC(n, t) \
85 ((t *) (sizeof (t) == 1 ? xzalloc (n) : xcalloc (n, sizeof (t))))
86
87
88 # if HAVE_INLINE
89 # define static_inline static inline
90 # else
91 void *xnmalloc (size_t n, size_t s)
92 _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_ALLOC_SIZE ((1, 2));
93 void *xnrealloc (void *p, size_t n, size_t s)
94 _GL_ATTRIBUTE_ALLOC_SIZE ((2, 3));
95 void *x2nrealloc (void *p, size_t *pn, size_t s);
96 char *xcharalloc (size_t n)
97 _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_ALLOC_SIZE ((1));
98 # endif
99
100 # ifdef static_inline
89 #define XCALLOC(n, t) \
90 ((t *) (sizeof (t) == 1 ? xzalloc (n) : xcalloc (n, sizeof (t))))
91
10192
10293 /* Allocate an array of N objects, each with S bytes of memory,
10394 dynamically, with error checking. S must be nonzero. */
10495
105 static_inline void *xnmalloc (size_t n, size_t s)
96 XALLOC_INLINE void *xnmalloc (size_t n, size_t s)
10697 _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_ALLOC_SIZE ((1, 2));
107 static_inline void *
98 XALLOC_INLINE void *
10899 xnmalloc (size_t n, size_t s)
109100 {
110101 if (xalloc_oversized (n, s))
115106 /* Change the size of an allocated block of memory P to an array of N
116107 objects each of S bytes, with error checking. S must be nonzero. */
117108
118 static_inline void *xnrealloc (void *p, size_t n, size_t s)
109 XALLOC_INLINE void *xnrealloc (void *p, size_t n, size_t s)
119110 _GL_ATTRIBUTE_ALLOC_SIZE ((2, 3));
120 static_inline void *
111 XALLOC_INLINE void *
121112 xnrealloc (void *p, size_t n, size_t s)
122113 {
123114 if (xalloc_oversized (n, s))
180171
181172 */
182173
183 static_inline void *
174 XALLOC_INLINE void *
184175 x2nrealloc (void *p, size_t *pn, size_t s)
185176 {
186177 size_t n = *pn;
217208 /* Return a pointer to a new buffer of N bytes. This is like xmalloc,
218209 except it returns char *. */
219210
220 static_inline char *xcharalloc (size_t n)
211 XALLOC_INLINE char *xcharalloc (size_t n)
221212 _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_ALLOC_SIZE ((1));
222 static_inline char *
213 XALLOC_INLINE char *
223214 xcharalloc (size_t n)
224215 {
225216 return XNMALLOC (n, char);
226217 }
227218
228 # endif
229
230 # ifdef __cplusplus
219 #ifdef __cplusplus
231220 }
232221
233222 /* C++ does not allow conversions from void * to other pointer types
264253 return (T *) xmemdup ((void const *) p, s);
265254 }
266255
267 # endif
256 #endif
268257
269258
270259 #endif /* !XALLOC_H_ */
1616
1717 #include <config.h>
1818
19 #if ! HAVE_INLINE
20 # define static_inline
21 #endif
19 #define XALLOC_INLINE _GL_EXTERN_INLINE
20
2221 #include "xalloc.h"
23 #undef static_inline
2422
2523 #include <stdlib.h>
2624 #include <string.h>
2222 AC_DEFUN([gl_PREREQ_ERROR],
2323 [
2424 AC_REQUIRE([AC_FUNC_STRERROR_R])
25 AC_REQUIRE([AC_C_INLINE])
2625 :
2726 ])
66
77 AC_DEFUN([gl_EXTERN_INLINE],
88 [
9 AC_REQUIRE([AC_C_INLINE])
109 AH_VERBATIM([extern_inline],
1110 [/* _GL_INLINE is a portable alternative to ISO C99 plain 'inline'.
1211 _GL_EXTERN_INLINE is a portable alternative to 'extern inline'.
1615 when FOO is an inline function in the header; see
1716 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113>.
1817 _GL_INLINE_HEADER_END contains useful stuff to put
19 in the same include file, after uses of _GL_INLINE. */
20 #if (__GNUC__ \
21 ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
22 : 199901L <= __STDC_VERSION__)
18 in the same include file, after uses of _GL_INLINE.
19
20 Suppress the use of extern inline on Apple's platforms,
21 as Libc-825.25 (2012-09-19) is incompatible with it; see
22 <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
23 Perhaps Apple will fix this some day. */
24 #if ((__GNUC__ \
25 ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
26 : 199901L <= __STDC_VERSION__) \
27 && !defined __APPLE__)
2328 # define _GL_INLINE inline
2429 # define _GL_EXTERN_INLINE extern inline
25 #elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
30 #elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __APPLE__
2631 # if __GNUC_GNU_INLINE__
2732 /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */
2833 # define _GL_INLINE extern inline __attribute__ ((__gnu_inline__))
3136 # endif
3237 # define _GL_EXTERN_INLINE extern
3338 #else
34 # define _GL_INLINE static inline
35 # define _GL_EXTERN_INLINE static inline
39 # define _GL_INLINE static _GL_UNUSED
40 # define _GL_EXTERN_INLINE static _GL_UNUSED
3641 #endif
3742
3843 #if 4 < __GNUC__ + (6 <= __GNUC_MINOR__)
5757 # Code from module gettimeofday:
5858 # Code from module havelib:
5959 # Code from module include_next:
60 # Code from module inline:
6160 # Code from module intprops:
6261 # Code from module iswblank:
6362 # Code from module langinfo:
202201 gl_PREREQ_GETTIMEOFDAY
203202 fi
204203 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
205 gl_INLINE
206204 gl_FUNC_ISWBLANK
207205 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
208206 :
634632 lib/tempname.c
635633 lib/tempname.h
636634 lib/time.in.h
635 lib/unistd.c
637636 lib/unistd.in.h
638637 lib/unitypes.in.h
639638 lib/uniwidth.in.h
642641 lib/verify.h
643642 lib/wchar.in.h
644643 lib/wcrtomb.c
644 lib/wctype-h.c
645645 lib/wctype.in.h
646646 lib/wcwidth.c
647647 lib/xalloc-die.c
669669 m4/gnulib-common.m4
670670 m4/iconv.m4
671671 m4/include_next.m4
672 m4/inline.m4
673672 m4/intdiv0.m4
674673 m4/intl.m4
675674 m4/intldir.m4
+0
-40
gnulib/m4/inline.m4 less more
0 # inline.m4 serial 4
1 dnl Copyright (C) 2006, 2009-2012 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5
6 dnl Test for the 'inline' keyword or equivalent.
7 dnl Define 'inline' to a supported equivalent, or to nothing if not supported,
8 dnl like AC_C_INLINE does. Also, define HAVE_INLINE if 'inline' or an
9 dnl equivalent is effectively supported, i.e. if the compiler is likely to
10 dnl drop unused 'static inline' functions.
11 AC_DEFUN([gl_INLINE],
12 [
13 AC_REQUIRE([AC_C_INLINE])
14 AC_CACHE_CHECK([whether the compiler generally respects inline],
15 [gl_cv_c_inline_effective],
16 [if test $ac_cv_c_inline = no; then
17 gl_cv_c_inline_effective=no
18 else
19 dnl GCC defines __NO_INLINE__ if not optimizing or if -fno-inline is
20 dnl specified.
21 dnl Use AC_COMPILE_IFELSE here, not AC_EGREP_CPP, because the result
22 dnl depends on optimization flags, which can be in CFLAGS.
23 dnl (AC_EGREP_CPP looks only at the CPPFLAGS.)
24 AC_COMPILE_IFELSE(
25 [AC_LANG_PROGRAM([[]],
26 [[#ifdef __NO_INLINE__
27 #error "inline is not effective"
28 #endif]])],
29 [gl_cv_c_inline_effective=yes],
30 [gl_cv_c_inline_effective=no])
31 fi
32 ])
33 if test $gl_cv_c_inline_effective = yes; then
34 AC_DEFINE([HAVE_INLINE], [1],
35 [Define to 1 if the compiler supports one of the keywords
36 'inline', '__inline__', '__inline' and effectively inlines
37 functions marked as such.])
38 fi
39 ])
0 # serial 25
0 # serial 26
11
22 # Copyright (C) 1997-2001, 2003-2012 Free Software Foundation, Inc.
33 #
2626 ])
2727
2828 # Prerequisites of lib/lstat.c.
29 AC_DEFUN([gl_PREREQ_LSTAT],
30 [
31 AC_REQUIRE([AC_C_INLINE])
32 :
33 ])
29 AC_DEFUN([gl_PREREQ_LSTAT], [:])
3430
3531 AC_DEFUN([gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK],
3632 [
0 # serial 10
0 # serial 11
11
22 # Copyright (C) 2009-2012 Free Software Foundation, Inc.
33 #
6767 ])
6868
6969 # Prerequisites of lib/stat.c.
70 AC_DEFUN([gl_PREREQ_STAT],
71 [
72 AC_REQUIRE([AC_C_INLINE])
73 :
74 ])
70 AC_DEFUN([gl_PREREQ_STAT], [:])
0 # sys_socket_h.m4 serial 22
0 # sys_socket_h.m4 serial 23
11 dnl Copyright (C) 2005-2012 Free Software Foundation, Inc.
22 dnl This file is free software; the Free Software Foundation
33 dnl gives unlimited permission to copy and/or distribute it,
99 [
1010 AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS])
1111 AC_REQUIRE([AC_CANONICAL_HOST])
12 AC_REQUIRE([AC_C_INLINE])
1312
1413 dnl On OSF/1, the functions recv(), send(), recvfrom(), sendto() have
1514 dnl old-style declarations (with return type 'int' instead of 'ssize_t')
0 # sys_stat_h.m4 serial 27 -*- Autoconf -*-
0 # sys_stat_h.m4 serial 28 -*- Autoconf -*-
11 dnl Copyright (C) 2006-2012 Free Software Foundation, Inc.
22 dnl This file is free software; the Free Software Foundation
33 dnl gives unlimited permission to copy and/or distribute it,
99 AC_DEFUN([gl_HEADER_SYS_STAT_H],
1010 [
1111 AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
12
13 dnl For the mkdir substitute.
14 AC_REQUIRE([AC_C_INLINE])
1512
1613 dnl Check for broken stat macros.
1714 AC_REQUIRE([AC_HEADER_STAT])
0 # unistd_h.m4 serial 65
0 # unistd_h.m4 serial 66
11 dnl Copyright (C) 2006-2012 Free Software Foundation, Inc.
22 dnl This file is free software; the Free Software Foundation
33 dnl gives unlimited permission to copy and/or distribute it,
1010 dnl Use AC_REQUIRE here, so that the default behavior below is expanded
1111 dnl once only, before all statements that occur in other macros.
1212 AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
13 AC_REQUIRE([AC_C_INLINE])
1413
1514 gl_CHECK_NEXT_HEADERS([unistd.h])
1615 if test $ac_cv_header_unistd_h = yes; then
0 # wctype_h.m4 serial 17
0 # wctype_h.m4 serial 18
11
22 dnl A placeholder for ISO C99 <wctype.h>, for platforms that lack it.
33
2020 HAVE_ISWCNTRL=0
2121 fi
2222 AC_SUBST([HAVE_ISWCNTRL])
23
24 AC_REQUIRE([AC_C_INLINE])
2523
2624 AC_REQUIRE([gt_TYPE_WINT_T])
2725 if test $gt_cv_c_wint_t = yes; then
0 # xalloc.m4 serial 17
0 # xalloc.m4 serial 18
11 dnl Copyright (C) 2002-2006, 2009-2012 Free Software Foundation, Inc.
22 dnl This file is free software; the Free Software Foundation
33 dnl gives unlimited permission to copy and/or distribute it,
44 dnl with or without modifications, as long as this notice is preserved.
55
6 AC_DEFUN([gl_XALLOC],
7 [
8 gl_PREREQ_XALLOC
9 gl_PREREQ_XMALLOC
10 ])
11
12 # Prerequisites of lib/xalloc.h.
13 AC_DEFUN([gl_PREREQ_XALLOC], [
14 AC_REQUIRE([gl_INLINE])
15 :
16 ])
17
18 # Prerequisites of lib/xmalloc.c.
19 AC_DEFUN([gl_PREREQ_XMALLOC], [
20 :
21 ])
6 AC_DEFUN([gl_XALLOC], [:])
0 # Makefile.in generated by automake 1.12.5 from Makefile.am.
0 # Makefile.in generated by automake 1.12.6 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
8888 $(top_srcdir)/gnulib/m4/gnulib-comp.m4 \
8989 $(top_srcdir)/gnulib/m4/iconv.m4 \
9090 $(top_srcdir)/gnulib/m4/include_next.m4 \
91 $(top_srcdir)/gnulib/m4/inline.m4 \
9291 $(top_srcdir)/gnulib/m4/intlmacosx.m4 \
9392 $(top_srcdir)/gnulib/m4/iswblank.m4 \
9493 $(top_srcdir)/gnulib/m4/langinfo_h.m4 \
819818 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
820819 TERMLIBS = @TERMLIBS@
821820 TEX = @TEX@
821 TEXINFO_DTD_VERSION = @TEXINFO_DTD_VERSION@
822822 TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
823823 UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@
824824 UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@
00 /* display.c -- How to display Info windows.
1 $Id: display.c,v 1.18 2012/11/17 17:16:18 gray Exp $
1 $Id: display.c,v 1.20 2012/12/01 15:15:44 gray Exp $
22
33 Copyright (C) 1993, 1997, 2003, 2004, 2006, 2007, 2008, 2012
44 Free Software Foundation, Inc.
112112 }
113113
114114 int
115 display_node_text(void *closure, size_t line_index,
115 display_node_text(void *closure, size_t pline_index, size_t lline_index,
116116 const char *src_line,
117117 char *printed_line, size_t pl_index, size_t pl_count)
118118 {
119119 struct display_node_closure *dn = closure;
120120 WINDOW *win = dn->win;
121121 DISPLAY_LINE **display = dn->display;
122 DISPLAY_LINE *entry = display[win->first_row + line_index];
122 DISPLAY_LINE *entry = display[win->first_row + pline_index];
123123
124124 /* We have the exact line as it should appear on the screen.
125125 Check to see if this line matches the one already appearing
138138 /* Need to erase the line if it has escape sequences. */
139139 || (raw_escapes_p && mbschr (entry->text, '\033') != 0))
140140 {
141 terminal_goto_xy (0, win->first_row + line_index);
141 terminal_goto_xy (0, win->first_row + pline_index);
142142 terminal_clear_to_eol ();
143143 entry->inverse = 0;
144144 entry->text[0] = '\0';
153153 if (i != pl_count || pl_count != entry->textlen)
154154 {
155155 /* Move to the proper point on the terminal. */
156 terminal_goto_xy (i, win->first_row + line_index);
156 terminal_goto_xy (i, win->first_row + pline_index);
157157 /* If there is any text to print, print it. */
158158 if (i != pl_count)
159159 terminal_put_text (printed_line + i);
195195 return 1;
196196 }
197197
198 if (line_index + 1 == win->height)
198 if (pline_index + 1 == win->height)
199199 return 1;
200200
201201