aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-09-03 16:08:32 -0700
committerPaul Eggert2011-09-03 16:08:32 -0700
commit7f59d9c856de33b97bc3f2708dcc8dadf24ee040 (patch)
treeeb0c7bb18b57498965581881a5cccd5f1de48166
parentb49e353d9d01adbe60bc5d0b1658b4ef978b0b06 (diff)
downloademacs-7f59d9c856de33b97bc3f2708dcc8dadf24ee040.tar.gz
emacs-7f59d9c856de33b97bc3f2708dcc8dadf24ee040.zip
Merge from gnulib.
-rw-r--r--doc/misc/texinfo.tex14
-rw-r--r--lib/lstat.c5
-rw-r--r--lib/stat.c5
-rw-r--r--lib/unistd.in.h3
-rw-r--r--m4/gl-comp.m415
-rw-r--r--m4/gnulib-common.m456
-rw-r--r--m4/largefile.m420
-rw-r--r--m4/pthread_sigmask.m46
-rw-r--r--m4/strtoimax.m46
-rw-r--r--m4/strtoumax.m46
10 files changed, 103 insertions, 33 deletions
diff --git a/doc/misc/texinfo.tex b/doc/misc/texinfo.tex
index 6f593d76639..a7f94f96daa 100644
--- a/doc/misc/texinfo.tex
+++ b/doc/misc/texinfo.tex
@@ -3,7 +3,7 @@
3% Load plain if necessary, i.e., if running under initex. 3% Load plain if necessary, i.e., if running under initex.
4\expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi 4\expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
5% 5%
6\def\texinfoversion{2011-08-15.20} 6\def\texinfoversion{2011-08-14.17}
7% 7%
8% Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, 8% Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
9% 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 9% 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
@@ -5855,7 +5855,6 @@ end
5855 % This is purely so the last item on the list is a known \penalty > 5855 % This is purely so the last item on the list is a known \penalty >
5856 % 10000. This is so \startdefun can avoid allowing breakpoints after 5856 % 10000. This is so \startdefun can avoid allowing breakpoints after
5857 % section headings. Otherwise, it would insert a valid breakpoint between: 5857 % section headings. Otherwise, it would insert a valid breakpoint between:
5858 %
5859 % @section sec-whatever 5858 % @section sec-whatever
5860 % @deffn def-whatever 5859 % @deffn def-whatever
5861 \penalty 10001 5860 \penalty 10001
@@ -6273,6 +6272,12 @@ end
6273 \normbskip=\baselineskip \normpskip=\parskip \normlskip=\lineskip 6272 \normbskip=\baselineskip \normpskip=\parskip \normlskip=\lineskip
6274 % Flag to tell @lisp, etc., not to narrow margin. 6273 % Flag to tell @lisp, etc., not to narrow margin.
6275 \let\nonarrowing = t% 6274 \let\nonarrowing = t%
6275 %
6276 % If this cartouche directly follows a sectioning command, we need the
6277 % \parskip glue (backspaced over by default) or the cartouche can
6278 % collide with the section heading.
6279 \ifnum\lastpenalty>10000 \vskip\parskip \fi
6280 %
6276 \vbox\bgroup 6281 \vbox\bgroup
6277 \baselineskip=0pt\parskip=0pt\lineskip=0pt 6282 \baselineskip=0pt\parskip=0pt\lineskip=0pt
6278 \carttop 6283 \carttop
@@ -6286,7 +6291,7 @@ end
6286 \lineskip=\normlskip 6291 \lineskip=\normlskip
6287 \parskip=\normpskip 6292 \parskip=\normpskip
6288 \vskip -\parskip 6293 \vskip -\parskip
6289 \comment % For explanation, see the end of \def\group. 6294 \comment % For explanation, see the end of def\group.
6290} 6295}
6291\def\Ecartouche{% 6296\def\Ecartouche{%
6292 \ifhmode\par\fi 6297 \ifhmode\par\fi
@@ -9620,3 +9625,6 @@ directory should work if nowhere else does.}
9620 9625
9621@c vim:sw=2: 9626@c vim:sw=2:
9622 9627
9628@ignore
9629 arch-tag: e1b36e32-c96e-4135-a41a-0b2efa2ea115
9630@end ignore
diff --git a/lib/lstat.c b/lib/lstat.c
index b26065ede28..29fc6d25f90 100644
--- a/lib/lstat.c
+++ b/lib/lstat.c
@@ -17,6 +17,10 @@
17 17
18/* written by Jim Meyering */ 18/* written by Jim Meyering */
19 19
20/* If the user's config.h happens to include <sys/stat.h>, let it include only
21 the system's <sys/stat.h> here, so that orig_lstat doesn't recurse to
22 rpl_lstat. */
23#define __need_system_sys_stat_h
20#include <config.h> 24#include <config.h>
21 25
22#if !HAVE_LSTAT 26#if !HAVE_LSTAT
@@ -27,7 +31,6 @@ typedef int dummy;
27#else /* HAVE_LSTAT */ 31#else /* HAVE_LSTAT */
28 32
29/* Get the original definition of lstat. It might be defined as a macro. */ 33/* Get the original definition of lstat. It might be defined as a macro. */
30# define __need_system_sys_stat_h
31# include <sys/types.h> 34# include <sys/types.h>
32# include <sys/stat.h> 35# include <sys/stat.h>
33# undef __need_system_sys_stat_h 36# undef __need_system_sys_stat_h
diff --git a/lib/stat.c b/lib/stat.c
index f07370dd06b..6c354d1d357 100644
--- a/lib/stat.c
+++ b/lib/stat.c
@@ -16,10 +16,13 @@
16 16
17/* written by Eric Blake */ 17/* written by Eric Blake */
18 18
19/* If the user's config.h happens to include <sys/stat.h>, let it include only
20 the system's <sys/stat.h> here, so that orig_stat doesn't recurse to
21 rpl_stat. */
22#define __need_system_sys_stat_h
19#include <config.h> 23#include <config.h>
20 24
21/* Get the original definition of stat. It might be defined as a macro. */ 25/* Get the original definition of stat. It might be defined as a macro. */
22#define __need_system_sys_stat_h
23#include <sys/types.h> 26#include <sys/types.h>
24#include <sys/stat.h> 27#include <sys/stat.h>
25#undef __need_system_sys_stat_h 28#undef __need_system_sys_stat_h
diff --git a/lib/unistd.in.h b/lib/unistd.in.h
index 769ecf0d43f..119cd142f43 100644
--- a/lib/unistd.in.h
+++ b/lib/unistd.in.h
@@ -85,7 +85,8 @@
85/* mingw declares getcwd in <io.h>, not in <unistd.h>. */ 85/* mingw declares getcwd in <io.h>, not in <unistd.h>. */
86#if ((@GNULIB_GETCWD@ || defined GNULIB_POSIXCHECK) \ 86#if ((@GNULIB_GETCWD@ || defined GNULIB_POSIXCHECK) \
87 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) 87 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
88# include <io.h> 88# include <io.h> /* mingw32, mingw64 */
89# include <direct.h> /* mingw64 */
89#endif 90#endif
90 91
91/* AIX and OSF/1 5.1 declare getdomainname in <netdb.h>, not in <unistd.h>. 92/* AIX and OSF/1 5.1 declare getdomainname in <netdb.h>, not in <unistd.h>.
diff --git a/m4/gl-comp.m4 b/m4/gl-comp.m4
index becf95bef71..f7d99ca6f44 100644
--- a/m4/gl-comp.m4
+++ b/m4/gl-comp.m4
@@ -25,7 +25,7 @@ AC_DEFUN([gl_EARLY],
25 m4_pattern_allow([^gl_ES$])dnl a valid locale name 25 m4_pattern_allow([^gl_ES$])dnl a valid locale name
26 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable 26 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
27 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable 27 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
28 AC_REQUIRE([AC_PROG_RANLIB]) 28 AC_REQUIRE([gl_PROG_AR_RANLIB])
29 # Code from module alloca-opt: 29 # Code from module alloca-opt:
30 # Code from module allocator: 30 # Code from module allocator:
31 # Code from module careadlinkat: 31 # Code from module careadlinkat:
@@ -48,6 +48,7 @@ AC_DEFUN([gl_EARLY],
48 # Code from module intprops: 48 # Code from module intprops:
49 # Code from module inttypes-incomplete: 49 # Code from module inttypes-incomplete:
50 # Code from module largefile: 50 # Code from module largefile:
51 AC_REQUIRE([AC_SYS_LARGEFILE])
51 # Code from module lstat: 52 # Code from module lstat:
52 # Code from module mktime: 53 # Code from module mktime:
53 # Code from module multiarch: 54 # Code from module multiarch:
@@ -174,13 +175,13 @@ gl_STDIO_H
174gl_STDLIB_H 175gl_STDLIB_H
175gl_FUNC_GNU_STRFTIME 176gl_FUNC_GNU_STRFTIME
176gl_FUNC_STRTOIMAX 177gl_FUNC_STRTOIMAX
177if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no; then 178if test $ac_cv_func_strtoimax = no; then
178 AC_LIBOBJ([strtoimax]) 179 AC_LIBOBJ([strtoimax])
179 gl_PREREQ_STRTOIMAX 180 gl_PREREQ_STRTOIMAX
180fi 181fi
181gl_INTTYPES_MODULE_INDICATOR([strtoimax]) 182gl_INTTYPES_MODULE_INDICATOR([strtoimax])
182gl_FUNC_STRTOUMAX 183gl_FUNC_STRTOUMAX
183if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then 184if test $ac_cv_func_strtoumax = no; then
184 AC_LIBOBJ([strtoumax]) 185 AC_LIBOBJ([strtoumax])
185 gl_PREREQ_STRTOUMAX 186 gl_PREREQ_STRTOUMAX
186fi 187fi
@@ -297,16 +298,16 @@ gl_STDLIB_MODULE_INDICATOR([strtoull])
297 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then 298 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
298 func_gl_gnulib_m4code_stat 299 func_gl_gnulib_m4code_stat
299 fi 300 fi
300 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no; then 301 if test $ac_cv_func_strtoimax = no; then
301 func_gl_gnulib_m4code_verify 302 func_gl_gnulib_m4code_verify
302 fi 303 fi
303 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then 304 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
304 func_gl_gnulib_m4code_strtoll 305 func_gl_gnulib_m4code_strtoll
305 fi 306 fi
306 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then 307 if test $ac_cv_func_strtoumax = no; then
307 func_gl_gnulib_m4code_verify 308 func_gl_gnulib_m4code_verify
308 fi 309 fi
309 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then 310 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
310 func_gl_gnulib_m4code_strtoull 311 func_gl_gnulib_m4code_strtoull
311 fi 312 fi
312 m4_pattern_allow([^gl_GNULIB_ENABLED_]) 313 m4_pattern_allow([^gl_GNULIB_ENABLED_])
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4
index 6b5923a0ea6..8fc448fdc8f 100644
--- a/m4/gnulib-common.m4
+++ b/m4/gnulib-common.m4
@@ -1,4 +1,4 @@
1# gnulib-common.m4 serial 28 1# gnulib-common.m4 serial 30
2dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. 2dnl Copyright (C) 2007-2011 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -211,6 +211,60 @@ m4_ifndef([AS_VAR_IF],
211[m4_define([AS_VAR_IF], 211[m4_define([AS_VAR_IF],
212[AS_IF([test x"AS_VAR_GET([$1])" = x""$2], [$3], [$4])])]) 212[AS_IF([test x"AS_VAR_GET([$1])" = x""$2], [$3], [$4])])])
213 213
214# gl_PROG_AR_RANLIB
215# Determines the values for AR, ARFLAGS, RANLIB that fit with the compiler.
216# The user can set the variables AR, ARFLAGS, RANLIB if he wants to override
217# the values.
218AC_DEFUN([gl_PROG_AR_RANLIB],
219[
220 dnl Minix 3 comes with two toolchains: The Amsterdam Compiler Kit compiler
221 dnl as "cc", and GCC as "gcc". They have different object file formats and
222 dnl library formats. In particular, the GNU binutils programs ar, ranlib
223 dnl produce libraries that work only with gcc, not with cc.
224 AC_REQUIRE([AC_PROG_CC])
225 AC_CACHE_CHECK([for Minix Amsterdam compiler], [gl_cv_c_amsterdam_compiler],
226 [
227 AC_EGREP_CPP([Amsterdam],
228 [
229#ifdef __ACK__
230Amsterdam
231#endif
232 ],
233 [gl_cv_c_amsterdam_compiler=yes],
234 [gl_cv_c_amsterdam_compiler=no])
235 ])
236 if test -z "$AR"; then
237 if test $gl_cv_c_amsterdam_compiler = yes; then
238 AR='cc -c.a'
239 if test -z "$ARFLAGS"; then
240 ARFLAGS='-o'
241 fi
242 else
243 dnl Use the Automake-documented default values for AR and ARFLAGS,
244 dnl but prefer ${host}-ar over ar (useful for cross-compiling).
245 AC_CHECK_TOOL([AR], [ar], [ar])
246 if test -z "$ARFLAGS"; then
247 ARFLAGS='cru'
248 fi
249 fi
250 else
251 if test -z "$ARFLAGS"; then
252 ARFLAGS='cru'
253 fi
254 fi
255 AC_SUBST([AR])
256 AC_SUBST([ARFLAGS])
257 if test -z "$RANLIB"; then
258 if test $gl_cv_c_amsterdam_compiler = yes; then
259 RANLIB=':'
260 else
261 dnl Use the ranlib program if it is available.
262 AC_PROG_RANLIB
263 fi
264 fi
265 AC_SUBST([RANLIB])
266])
267
214# AC_PROG_MKDIR_P 268# AC_PROG_MKDIR_P
215# is a backport of autoconf-2.60's AC_PROG_MKDIR_P, with a fix 269# is a backport of autoconf-2.60's AC_PROG_MKDIR_P, with a fix
216# for interoperability with automake-1.9.6 from autoconf-2.62. 270# for interoperability with automake-1.9.6 from autoconf-2.62.
diff --git a/m4/largefile.m4 b/m4/largefile.m4
index 6986244b396..d83fea1233d 100644
--- a/m4/largefile.m4
+++ b/m4/largefile.m4
@@ -19,8 +19,8 @@ m4_define([_AC_SYS_LARGEFILE_TEST_INCLUDES],
19 incorrectly reject 9223372036854775807. */ 19 incorrectly reject 9223372036854775807. */
20@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 20@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21 int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721 21 int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721
22 && LARGE_OFF_T % 2147483647 == 1) 22 && LARGE_OFF_T % 2147483647 == 1)
23 ? 1 : -1]];[]dnl 23 ? 1 : -1]];[]dnl
24]) 24])
25 25
26 26
@@ -58,7 +58,7 @@ rm -rf conftest*[]dnl
58# http://www.unix-systems.org/version2/whatsnew/lfs20mar.html 58# http://www.unix-systems.org/version2/whatsnew/lfs20mar.html
59AC_DEFUN([AC_SYS_LARGEFILE], 59AC_DEFUN([AC_SYS_LARGEFILE],
60[AC_ARG_ENABLE(largefile, 60[AC_ARG_ENABLE(largefile,
61 [ --disable-largefile omit support for large files]) 61 [ --disable-largefile omit support for large files])
62if test "$enable_largefile" != no; then 62if test "$enable_largefile" != no; then
63 63
64 AC_CACHE_CHECK([for special C compiler options needed for large files], 64 AC_CACHE_CHECK([for special C compiler options needed for large files],
@@ -67,13 +67,13 @@ if test "$enable_largefile" != no; then
67 if test "$GCC" != yes; then 67 if test "$GCC" != yes; then
68 ac_save_CC=$CC 68 ac_save_CC=$CC
69 while :; do 69 while :; do
70 # IRIX 6.2 and later do not support large files by default, 70 # IRIX 6.2 and later do not support large files by default,
71 # so use the C compiler's -n32 option if that helps. 71 # so use the C compiler's -n32 option if that helps.
72 AC_LANG_CONFTEST([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_INCLUDES])]) 72 AC_LANG_CONFTEST([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_INCLUDES])])
73 AC_COMPILE_IFELSE([], [break]) 73 AC_COMPILE_IFELSE([], [break])
74 CC="$CC -n32" 74 CC="$CC -n32"
75 AC_COMPILE_IFELSE([], [ac_cv_sys_largefile_CC=' -n32'; break]) 75 AC_COMPILE_IFELSE([], [ac_cv_sys_largefile_CC=' -n32'; break])
76 break 76 break
77 done 77 done
78 CC=$ac_save_CC 78 CC=$ac_save_CC
79 rm -f conftest.$ac_ext 79 rm -f conftest.$ac_ext
diff --git a/m4/pthread_sigmask.m4 b/m4/pthread_sigmask.m4
index f3522496cd5..f06bc119ff3 100644
--- a/m4/pthread_sigmask.m4
+++ b/m4/pthread_sigmask.m4
@@ -1,4 +1,4 @@
1# pthread_sigmask.m4 serial 11 1# pthread_sigmask.m4 serial 12
2dnl Copyright (C) 2011 Free Software Foundation, Inc. 2dnl Copyright (C) 2011 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -13,8 +13,8 @@ AC_DEFUN([gl_FUNC_PTHREAD_SIGMASK],
13 dnl Some packages like Emacs use --avoid=threadlib. 13 dnl Some packages like Emacs use --avoid=threadlib.
14 dnl Write the symbol in such a way that it does not cause 'aclocal' to pick 14 dnl Write the symbol in such a way that it does not cause 'aclocal' to pick
15 dnl the threadlib.m4 file that is installed in $PREFIX/share/aclocal/. 15 dnl the threadlib.m4 file that is installed in $PREFIX/share/aclocal/.
16 m4_ifdef([gl_[]THREADLIB], [ 16 m4_ifdef([gl_][THREADLIB], [
17 AC_REQUIRE([gl_[]THREADLIB]) 17 AC_REQUIRE([gl_][THREADLIB])
18 18
19 if test "$gl_threads_api" = posix; then 19 if test "$gl_threads_api" = posix; then
20 if test $ac_cv_func_pthread_sigmask = yes; then 20 if test $ac_cv_func_pthread_sigmask = yes; then
diff --git a/m4/strtoimax.m4 b/m4/strtoimax.m4
index 47fb1bc9c38..a8d0b69c205 100644
--- a/m4/strtoimax.m4
+++ b/m4/strtoimax.m4
@@ -1,4 +1,4 @@
1# strtoimax.m4 serial 10 1# strtoimax.m4 serial 11
2dnl Copyright (C) 2002-2004, 2006, 2009-2011 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2004, 2006, 2009-2011 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -8,11 +8,11 @@ AC_DEFUN([gl_FUNC_STRTOIMAX],
8[ 8[
9 AC_REQUIRE([gl_INTTYPES_H_DEFAULTS]) 9 AC_REQUIRE([gl_INTTYPES_H_DEFAULTS])
10 10
11 dnl On OSF/1 5.1 with cc, this function is declared but not defined.
12 AC_CHECK_FUNCS_ONCE([strtoimax])
11 AC_CHECK_DECLS_ONCE([strtoimax]) 13 AC_CHECK_DECLS_ONCE([strtoimax])
12 if test "$ac_cv_have_decl_strtoimax" != yes; then 14 if test "$ac_cv_have_decl_strtoimax" != yes; then
13 HAVE_DECL_STRTOIMAX=0 15 HAVE_DECL_STRTOIMAX=0
14
15 AC_CHECK_FUNCS([strtoimax])
16 fi 16 fi
17]) 17])
18 18
diff --git a/m4/strtoumax.m4 b/m4/strtoumax.m4
index 58b310de85a..1ddf6820e3f 100644
--- a/m4/strtoumax.m4
+++ b/m4/strtoumax.m4
@@ -1,4 +1,4 @@
1# strtoumax.m4 serial 10 1# strtoumax.m4 serial 11
2dnl Copyright (C) 2002-2004, 2006, 2009-2011 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2004, 2006, 2009-2011 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -8,11 +8,11 @@ AC_DEFUN([gl_FUNC_STRTOUMAX],
8[ 8[
9 AC_REQUIRE([gl_INTTYPES_H_DEFAULTS]) 9 AC_REQUIRE([gl_INTTYPES_H_DEFAULTS])
10 10
11 dnl On OSF/1 5.1 with cc, this function is declared but not defined.
12 AC_CHECK_FUNCS_ONCE([strtoumax])
11 AC_CHECK_DECLS_ONCE([strtoumax]) 13 AC_CHECK_DECLS_ONCE([strtoumax])
12 if test "$ac_cv_have_decl_strtoumax" != yes; then 14 if test "$ac_cv_have_decl_strtoumax" != yes; then
13 HAVE_DECL_STRTOUMAX=0 15 HAVE_DECL_STRTOUMAX=0
14
15 AC_CHECK_FUNCS([strtoumax])
16 fi 16 fi
17]) 17])
18 18