summaryrefslogtreecommitdiff
path: root/m4
Commit message (Collapse)AuthorAge
* * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Omit gl_THREADLIBPaul Eggert2011-07-09
| | | | | | | | | test, which runs afoul of Automake installations where, for example, /usr/share/aclocal contains a copy of gl_THREADLIB. Problem reported by Sven Joachim in <http://lists.gnu.org/archive/html/emacs-devel/2011-07/msg00529.html>. This is just a quick temporary fix, specific to Emacs; I'll work with the other gnulib maintainers to get a more-permanent fix.
* Add strtoimax module, needed for Solaris 8 port.Paul Eggert2011-07-08
| | | | | | | * Makefile.in (GNULIB_MODULES): Add strtoimax. * lib/strtoll.c, m4/strtoimax.m4, m4/strtoll.m4: New files, automatically imported from gnulib. * lib/gnulib.mk, m4/gl-comp.m4: Regenerate.
* Simplify Emacs part of pthread_sigmask support.Paul Eggert2011-07-08
| | | | | | | | | | | | * Makefile.in (GNULIB_TOOL_FLAGS): Do not avoid sigprocmask. * configure.in (AC_TYPE_UID_T): New dummy macro. Configure gnulib after adjusting LIBS, so that gnulib can assume the libraries in LIBS. * lib/pthread_sigmask.c, lib/sigprocmask.c, m4/signalblocking.m4: New files, automatically imported from gnulib. * lib/gnulib.mk, m4/gl-comp.m4: Regenerate. * src/Makefile.in (LIB_PTHREAD_SIGMASK): New macro. (LIBES): Use it.
* Add gnulib support for pthread_sigmask.Paul Eggert2011-07-06
| | | | | | | | | | | | | * Makefile.in (GNULIB_MODULES): Add pthread_sigmask. (GNULIB_TOOL_FLAGS): Avoid sigprocmask. Emacs does its own implementation of 'sigprocmask' on Windows, and it assumes 'sigprocmask' on non-Windows hosts, so it doesn't need the sigprocmask module. * lib/signal.in.h, m4/pthread_sigmask.m4, m4/signal_h.m4: New files, automatically imported from gnulib. * lib/gnulib.mk, m4/gl-comp.m4: Automatically-imported update due to the above changes. * .bzrignore: Add lib/signal.h.
* * m4/alloca.m4: Merge whitespace changes from gnulib.Paul Eggert2011-07-06
|
* Use gnulib's dup2 module instead of rolling our own.Paul Eggert2011-06-25
| | | | | | | * Makefile.in (GNULIB_MODULES): Add dup2. * configure.in: Do not check for dup2; gnulib does that now. * lib/dup2.c, m4/dup2.m4: New files, from gnulib. * src/sysdep.c (dup2) [!HAVE_DUP2]: Remove; gnulib now does this.
* * lib/getopt.c, lib/stat.c, m4/gl-comp.m4: Merge from gnulib.Paul Eggert2011-06-23
|
* Use gnulib's alloca-opt module.Paul Eggert2011-06-21
| | | | | | | | | * .bzrignore: Add lib/alloca.h. * Makefile.in (GNULIB_MODULES): Add alloca-opt. * configure.in (AC_FUNC_ALLOCA): Remove almost all the alloca stuff, as gnulib now does that for us. Put alloca check after gl_INIT. * lib/gnulib.mk, m4/gl-comp.m4: Regenerate. * lib/alloca.in.h, m4/alloca.m4: New files, from gnulib.
* Add crypto/sha256 and crypto/sha512 modules from gnulibLeo Liu2011-06-21
|
* * lib/unistd.in.h, m4/getloadavg.m4: Merge from gnulib.Paul Eggert2011-06-19
|
* * m4/lstat.m4: Merge from gnulib (Bug#8878).Paul Eggert2011-06-16
|
* Merge from gnulib: lib/gnulib.mk, m4/*.m4.Paul Eggert2011-06-15
|
* * lib/gnulib.mk, m4/gnulib-common.m4: Merge from gnulib.Paul Eggert2011-06-08
|
* Merge from gnulib.Paul Eggert2011-06-06
| | | | * lib/careadlinkat.c, lib/careadlinkat.h, m4/gnulib-common.m4: Merge.
* Adjust to recent gnulib change for @GUARD_PREFIX@.Paul Eggert2011-05-29
|
* Add crypto/sha1 module from gnulibLeo Liu2011-05-24
|
* Merge from gnulib.Paul Eggert2011-05-22
|
* Merge from gnulib.Paul Eggert2011-05-17
|
* Use C99's va_copy to avoid undefined behavior on x86-64 GNU/Linux.Paul Eggert2011-05-04
|
* * Makefile.in (GNULIB_TOOL_FLAG): Add --conditional-dependencies.Paul Eggert2011-05-03
| | | | | This new gnulib-tool option saves 'configure' the trouble of checking for strtoull when strtoumax exists.
* Update from gnulib.Paul Eggert2011-04-26
|
* Merge from gnulib.Paul Eggert2011-04-22
|
* Merge from gnulib.Paul Eggert2011-04-22
|
* Simpler version of strtoumax module.Paul Eggert2011-04-22
|
* * Makefile.in (GNULIB_MODULES): Add strtoumax.Paul Eggert2011-04-21
|
* Merge from gnulib.Paul Eggert2011-04-17
|
* Update from gnulib.Paul Eggert2011-04-08
|
* * lib/gnulib.mk, m4/stdbool.m4, m4/stddef_h.m4, m4/stdint.m4: Merge from gnulib.Paul Eggert2011-04-06
|
* Replace two copies of readlink code with single gnulib version.Paul Eggert2011-03-31
|
* lib/stdio.in.h, m4/gnulib-common.m4: Regenerate from latest gnulib.Paul Eggert2011-03-31
|
* Merge from trunk and from gnulib stdio.Paul Eggert2011-03-20
|\
| * Autogenerate.Paul Eggert2011-03-20
| |
| * [ChangeLog]Paul Eggert2011-03-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | fakemail: Remove dependency on ignore-value. * Makefile.in (GNULIB_MODULES): Add stdio. * lib/stdio.in.h, m4/stdio_h.m4: New files, automatically imported from gnulib. [lib-src/ChangeLog] fakemail: Remove dependency on ignore-value. This undoes some of the recent fakemail-related changes. It is made possible due to recent changes to gnulib's stdio module. * Makefile.in (fakemail${EXEEXT}): Do not depend on ignore-value.h. * fakemail.c: Do not include ignore-value.h. (put_line): Do not use ignore_value.
* | Merge from gnulib, for socklen_t.Paul Eggert2011-03-20
| |
* | process.c: Use socklen_t, not int, for socket lengths.Paul Eggert2011-03-17
|/
* Simplify symlink portability workaround.Paul Eggert2011-02-25
|
* [ChangeLog]Paul Eggert2011-02-22
| | | | | | | | | | | | | | | | | | | | Work around some portability problems with symlinks. * Makefile.in (GNULIB_MODULES): Add lstat, readlink, symlink. * configure.in (lstat, HAVE_LSTAT): Remove special hack. * lib/lstat.c, lib/readlink.c, lib/stat.c, lib/symlink.c: * m4/dos.m4, m4/lstat.m4, m4/readlink.m4, m4/stat.m4, m4/symlink.m4: New files, automatically generated from gnulib. * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk: * lib/stdlib.in.h, m4/gl-comp.m4, m4/stdlib_h.m4: Regenerate. 2011-02-22 Paul Eggert <eggert@cs.ucla.edu> [src/ChangeLog] Work around some portability problems with symlinks. * fileio.c (Frename_file, Fmake_symbolic_link, Ffile_symlink_p): Simplify the code by assuming that the readlink and symlink calls exist, even if they always fail on this host. (Ffile_readable_p): Likewise, for fifos. * config.in: Regenerate.
* Import filemode module from gnulib.Paul Eggert2011-02-20
| | | | | | | | | | | | | | | | * .bzrignore: Add lib/sys/. * Makefile.in (GNULIB_MODULES): Add filemode. * lib/Makefile.am (MOSTLYCLEANDIRS): New macro. * lib/filemode.c: Renamed from src/filemode.c and regenerated from gnulib. This adds support for some more file types, e.g., Cray DMF migrated files. * lisp/emacs-lisp/find-gc.el (find-gc-source-files): Remove filemode.c. * lib/filemode.h, lib/sys_stat.in.h, m4/filemode.m4, m4/st_dm_mode.m4: * m4/sys_stat_h.m4: New files, generated from gnulib. * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4: Regenerate. 2011-02-20 Paul Eggert <eggert@cs.ucla.edu>
* Import simpler crypto/md5 module from gnulib, plus stdint module.Paul Eggert2011-02-18
| | | | | | | | | | | * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4: * src/config.in: Regenerate. * lib/md5.c, lib/md5.h: Regenerate with simpler version, which assumes C99-style <stdint.h>, supplied by the stdint module. * lib/stdint.in.h, m4/longlong.m4, m4/stdint.m4: New files, generated from gnulib. * src/deps.mk (fns.o): Do not depend on md5.h, fixing a typo in the earlier patch.
* Import crypto/md5 module from gnulib.Paul Eggert2011-02-18
| | | | | | | | | | | | | | | | | * Makefile.in (MAKEFILE_MODULES): Add crypto/md5. * admin/notes/copyright: Remove src/md5.c and src/md5.h as special cases. * src/Makefile.in (base_obj): Remove md5.o, since this file is in lib now. * src/deps.mk (md5.o): Remove. * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4: Regenerate. * lib/md5.c: Regenerate. This renames the file from src/md5.c, and adds some porting improvements from gnulib. * lib/md5.h: Regenerate, likwise; rename from src/md5.h. * m4/md5.m4: New file, from gnulib. 2011-02-18 Paul Eggert <eggert@cs.ucla.edu>
* Import IRIX 6.5 getloadavg fixes from gnulib.Paul Eggert2011-02-17
| | | | * configure, lib/getloadavg.c, m4/getloadavg.m4: Regenerate.
* Import getloadavg module from gnulib.Paul Eggert2011-02-15
|
* sync from gnulib to remove HAVE_STDBOOL_HPaul Eggert2011-02-04
|
* allow C code to suppress warnings about ignored return valuesPaul Eggert2011-02-03
|
* strftime: import from gnulibPaul Eggert2011-01-30
|
* gnulib: import mktime and move-if-change fixes from gnulibPaul Eggert2011-01-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure: Regenerate from the following. 2011-01-30 Paul Eggert <eggert@cs.ucla.edu> mktime: clarify long_int width checking * lib/mktime.c (long_int_is_wide_enough): Move this assertion to the top level, to make it clearer that the assumption about long_int width is being checked. See <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>. 2011-01-29 Paul Eggert <eggert@cs.ucla.edu> TYPE_MAXIMUM: avoid theoretically undefined behavior * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a negative number, which the C Standard says has undefined behavior. In practice this is not a problem, but might as well do it by the book. Reported by Rich Felker and Eric Blake; see <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>. * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise. * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others. mktime: #undef mktime before #defining it * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it. mktime: systematically normalize tm_isdst comparisons * lib/mktime.c (isdst_differ): New function. (__mktime_internal): Use it systematically for all isdst comparisons. This completes the fix for libc BZ #6723, and removes the need for normalizing tm_isdst. See <http://sourceware.org/bugzilla/show_bug.cgi?id=6723> (not_equal_tm) [DEBUG]: Use isdst_differ here, too. mktime: fix some integer overflow issues and sidestep the rest This was prompted by a bug report by Benjamin Lindner for MinGW <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>. His bug is due to signed integer overflow (0 - INT_MIN), and I I scanned through mktime.c looking for other integer overflow problems, fixing all the bugs I found. Although the C Standard says the resulting code is still not safe in the presence of integer overflow, in practice it should be good enough for all real-world two's-complement implementations, except for debugging environments that deliberately trap on integer overflow (e.g., gcc -ftrapv). * lib/mktime.c (WRAPV): New macro. (SHR): Also check that long_int and time_t shift right in the usual way, before using the fast-but-unportable method. (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer used. The code already assumed two's complement, so there's no need to test for alternatives. All uses removed. (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by the C standard. Problem reported by Rich Felker in <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>. (twos_complement_arithmetic): Also check long_int and time_t. (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions. (guess_time_tm, ranged_convert, __mktime_internal): Use them. (__mktime_internal): Avoid integer overflow with unary subtraction in two instances where -1 - X is an adequate replacement for -X, since the calculations are approximate. 2011-01-29 Eric Blake <eblake@redhat.com> mktime: avoid infinite loop * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed type; behavior is still undefined but portable to all known targets. Reported by Rich Felker. 2011-01-28 Paul Eggert <eggert@cs.ucla.edu> mktime: avoid problems on NetBSD 5 / i386 * lib/mktime.c (long_int): New type. This works around a problem on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits but time_t is 64 bits, and where I expect the existing code is wrong in some cases. (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it. (ydhms_diff): Bring back the compile-time check for wide-enough year and yday. mktime: fix misspelling in comment * lib/mktime.c (__mktime_internal): Fix misspelling in comment. This merges all recent glibc changes of importance. 2011-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> move-if-change: cope with concurrent mv of identical file. * move-if-change (CMPPROG): Accept environment variable as an override for `cmp'. (usage): Document CMPPROG. Adjust comparison to drop stdout. Cope with failure of mv if the target file exists and is identical to the source, for parallel builds. Report from H.J. Lu against binutils in PR binutils/12283.
* fix two m4/gnulib-*.m4 file names that clashed under MS-DOSPaul Eggert2011-01-26
|
* Remove HAVE_RAW_DECL_CHOWN etc. from config.hPaul Eggert2011-01-23
|
* src/config.in: shrink slightlyPaul Eggert2011-01-21
| | | | | | | | | | | * configure.in: Invoke the new gnulib macro gl_ASSERT_NO_GNULIB_TESTS. This makes src/config.in a bit smaller, by removing identifiers like GNULIB_TEST_MKTIME that Emacs does not need. * m4/getopt.m4, m4/gnulib-common.m4, m4/include_next.m4: * m4/multiarch.m4, m4/stddef_h.m4, m4/time_h.m4, m4/unistd_h.m4: Sync from gnulib. This removes a few more unnecessary symbols from src/config.in, such as AA_APPLE_UNIVERSAL_BUILD and HAVE_STDDEF_H. * configure, src/config.in: Regenerate.
* Regenerate.Paul Eggert2011-01-11
|