diff options
| author | Paul Eggert | 2012-07-09 01:34:39 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-07-09 01:34:39 -0700 |
| commit | 2f93ecceb91ec8b0a18c95787503341780ca9233 (patch) | |
| tree | fdeb5f997a4ae19147f1ba490922b3c9bc223b1f | |
| parent | d01ba2f14965203aef327c2cebf1474af0f12f90 (diff) | |
| download | emacs-2f93ecceb91ec8b0a18c95787503341780ca9233.tar.gz emacs-2f93ecceb91ec8b0a18c95787503341780ca9233.zip | |
Merge from gnulib.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | doc/misc/texinfo.tex | 33 | ||||
| -rw-r--r-- | lib/getloadavg.c | 2 | ||||
| -rw-r--r-- | lib/timespec.h | 9 | ||||
| -rw-r--r-- | m4/getopt.m4 | 3 | ||||
| -rw-r--r-- | m4/gnulib-comp.m4 | 4 |
6 files changed, 43 insertions, 11 deletions
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-07-09 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2012-07-09 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Merge from gnulib, incorporating: | ||
| 4 | 2012-07-09 timespec: mark functions with const attributes | ||
| 5 | |||
| 3 | Rename configure.in to configure.ac (Bug#11603). | 6 | Rename configure.in to configure.ac (Bug#11603). |
| 4 | The name 'configure.in' has been obsolescent for quite some time, | 7 | The name 'configure.in' has been obsolescent for quite some time, |
| 5 | and the next release of Autoconf will generate warnings for it. | 8 | and the next release of Autoconf will generate warnings for it. |
diff --git a/doc/misc/texinfo.tex b/doc/misc/texinfo.tex index a5a7b2beac7..2b646dd671c 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{2012-06-05.14} | 6 | \def\texinfoversion{2012-07-03.16} |
| 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, |
| @@ -4206,7 +4206,7 @@ end | |||
| 4206 | } | 4206 | } |
| 4207 | \def\ifsetfail{\doignore{ifset}} | 4207 | \def\ifsetfail{\doignore{ifset}} |
| 4208 | 4208 | ||
| 4209 | % @ifclear VAR ... @end ifclear reads the `...' iff VAR has never been | 4209 | % @ifclear VAR ... @end executes the `...' iff VAR has never been |
| 4210 | % defined with @set, or has been undefined with @clear. | 4210 | % defined with @set, or has been undefined with @clear. |
| 4211 | % | 4211 | % |
| 4212 | % The `\else' inside the `\doifset' parameter is a trick to reuse the | 4212 | % The `\else' inside the `\doifset' parameter is a trick to reuse the |
| @@ -4217,6 +4217,35 @@ end | |||
| 4217 | \def\ifclear{\parsearg{\doifset{\else \let\next=\ifclearfail}}} | 4217 | \def\ifclear{\parsearg{\doifset{\else \let\next=\ifclearfail}}} |
| 4218 | \def\ifclearfail{\doignore{ifclear}} | 4218 | \def\ifclearfail{\doignore{ifclear}} |
| 4219 | 4219 | ||
| 4220 | % @ifcommandisdefined CMD ... @end executes the `...' if CMD (written | ||
| 4221 | % without the @) is in fact defined. We can only feasibly check at the | ||
| 4222 | % TeX level, so something like `mathcode' is going to considered | ||
| 4223 | % defined even though it is not a Texinfo command. | ||
| 4224 | % | ||
| 4225 | \makecond{ifcommanddefined} | ||
| 4226 | \def\ifcommanddefined{\parsearg{\doifcmddefined{\let\next=\ifcmddefinedfail}}} | ||
| 4227 | % | ||
| 4228 | \def\doifcmddefined#1#2{{% | ||
| 4229 | \makevalueexpandable | ||
| 4230 | \let\next=\empty | ||
| 4231 | \expandafter\ifx\csname #2\endcsname\relax | ||
| 4232 | #1% If not defined, \let\next as above. | ||
| 4233 | \fi | ||
| 4234 | \expandafter | ||
| 4235 | }\next | ||
| 4236 | } | ||
| 4237 | \def\ifcmddefinedfail{\doignore{ifcommanddefined}} | ||
| 4238 | |||
| 4239 | % @ifcommandnotdefined CMD ... handlded similar to @ifclear above. | ||
| 4240 | \makecond{ifcommandnotdefined} | ||
| 4241 | \def\ifcommandnotdefined{% | ||
| 4242 | \parsearg{\doifcmddefined{\else \let\next=\ifcmdnotdefinedfail}}} | ||
| 4243 | \def\ifcmdnotdefinedfail{\doignore{ifcommandnotdefined}} | ||
| 4244 | |||
| 4245 | % Set the `txicommandconditionals' variable, so documents have a way to | ||
| 4246 | % test if the @ifcommand...defined conditionals are available. | ||
| 4247 | \set txicommandconditionals | ||
| 4248 | |||
| 4220 | % @dircategory CATEGORY -- specify a category of the dir file | 4249 | % @dircategory CATEGORY -- specify a category of the dir file |
| 4221 | % which this file should belong to. Ignore this in TeX. | 4250 | % which this file should belong to. Ignore this in TeX. |
| 4222 | \let\dircategory=\comment | 4251 | \let\dircategory=\comment |
diff --git a/lib/getloadavg.c b/lib/getloadavg.c index d79ad136bc9..79ea71787ac 100644 --- a/lib/getloadavg.c +++ b/lib/getloadavg.c | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | macro that comes with autoconf 2.13 or newer. | 28 | macro that comes with autoconf 2.13 or newer. |
| 29 | If that isn't an option, then just put | 29 | If that isn't an option, then just put |
| 30 | AC_CHECK_FUNCS(pstat_getdynamic) in your | 30 | AC_CHECK_FUNCS(pstat_getdynamic) in your |
| 31 | configure.in file. | 31 | configure.ac file. |
| 32 | HAVE_LIBPERFSTAT Define this if your system has the | 32 | HAVE_LIBPERFSTAT Define this if your system has the |
| 33 | perfstat_cpu_total function in libperfstat (AIX). | 33 | perfstat_cpu_total function in libperfstat (AIX). |
| 34 | FIXUP_KERNEL_SYMBOL_ADDR() Adjust address in returned struct nlist. | 34 | FIXUP_KERNEL_SYMBOL_ADDR() Adjust address in returned struct nlist. |
diff --git a/lib/timespec.h b/lib/timespec.h index 388ddb83a76..a58707947ce 100644 --- a/lib/timespec.h +++ b/lib/timespec.h | |||
| @@ -65,9 +65,12 @@ timespec_sign (struct timespec a) | |||
| 65 | return a.tv_sec < 0 ? -1 : a.tv_sec || a.tv_nsec; | 65 | return a.tv_sec < 0 ? -1 : a.tv_sec || a.tv_nsec; |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | struct timespec timespec_add (struct timespec, struct timespec); | 68 | struct timespec timespec_add (struct timespec, struct timespec) |
| 69 | struct timespec timespec_sub (struct timespec, struct timespec); | 69 | _GL_ATTRIBUTE_CONST; |
| 70 | struct timespec dtotimespec (double); | 70 | struct timespec timespec_sub (struct timespec, struct timespec) |
| 71 | _GL_ATTRIBUTE_CONST; | ||
| 72 | struct timespec dtotimespec (double) | ||
| 73 | _GL_ATTRIBUTE_CONST; | ||
| 71 | 74 | ||
| 72 | /* Return an approximation to A, of type 'double'. */ | 75 | /* Return an approximation to A, of type 'double'. */ |
| 73 | static inline double | 76 | static inline double |
diff --git a/m4/getopt.m4 b/m4/getopt.m4 index 901c213b905..155edb235ff 100644 --- a/m4/getopt.m4 +++ b/m4/getopt.m4 | |||
| @@ -38,7 +38,6 @@ AC_DEFUN([gl_FUNC_GETOPT_GNU], | |||
| 38 | AC_REQUIRE([gl_FUNC_GETOPT_POSIX]) | 38 | AC_REQUIRE([gl_FUNC_GETOPT_POSIX]) |
| 39 | ]) | 39 | ]) |
| 40 | 40 | ||
| 41 | # emacs' configure.in uses this. | ||
| 42 | AC_DEFUN([gl_GETOPT_IFELSE], | 41 | AC_DEFUN([gl_GETOPT_IFELSE], |
| 43 | [ | 42 | [ |
| 44 | AC_REQUIRE([gl_GETOPT_CHECK_HEADERS]) | 43 | AC_REQUIRE([gl_GETOPT_CHECK_HEADERS]) |
| @@ -360,7 +359,6 @@ dnl is ambiguous with environment values that contain newlines. | |||
| 360 | fi | 359 | fi |
| 361 | ]) | 360 | ]) |
| 362 | 361 | ||
| 363 | # emacs' configure.in uses this. | ||
| 364 | AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER], | 362 | AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER], |
| 365 | [ | 363 | [ |
| 366 | GETOPT_H=getopt.h | 364 | GETOPT_H=getopt.h |
| @@ -371,7 +369,6 @@ AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER], | |||
| 371 | ]) | 369 | ]) |
| 372 | 370 | ||
| 373 | # Prerequisites of lib/getopt*. | 371 | # Prerequisites of lib/getopt*. |
| 374 | # emacs' configure.in uses this. | ||
| 375 | AC_DEFUN([gl_PREREQ_GETOPT], | 372 | AC_DEFUN([gl_PREREQ_GETOPT], |
| 376 | [ | 373 | [ |
| 377 | AC_CHECK_DECLS_ONCE([getenv]) | 374 | AC_CHECK_DECLS_ONCE([getenv]) |
diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4 index 824c8bbffc8..754086ec2e7 100644 --- a/m4/gnulib-comp.m4 +++ b/m4/gnulib-comp.m4 | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | # other built files. | 28 | # other built files. |
| 29 | 29 | ||
| 30 | 30 | ||
| 31 | # This macro should be invoked from ./configure.in, in the section | 31 | # This macro should be invoked from ./configure.ac, in the section |
| 32 | # "Checks for programs", right after AC_PROG_CC, and certainly before | 32 | # "Checks for programs", right after AC_PROG_CC, and certainly before |
| 33 | # any checks for libraries, header files, types and library functions. | 33 | # any checks for libraries, header files, types and library functions. |
| 34 | AC_DEFUN([gl_EARLY], | 34 | AC_DEFUN([gl_EARLY], |
| @@ -118,7 +118,7 @@ AC_DEFUN([gl_EARLY], | |||
| 118 | # Code from module warnings: | 118 | # Code from module warnings: |
| 119 | ]) | 119 | ]) |
| 120 | 120 | ||
| 121 | # This macro should be invoked from ./configure.in, in the section | 121 | # This macro should be invoked from ./configure.ac, in the section |
| 122 | # "Check for header files, types and library functions". | 122 | # "Check for header files, types and library functions". |
| 123 | AC_DEFUN([gl_INIT], | 123 | AC_DEFUN([gl_INIT], |
| 124 | [ | 124 | [ |