summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* setlocale: Trivial simplification.Bruno Haible2018-08-122-2/+5
| | | | * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
* Fix ChangeLog typo.Paul Eggert2018-08-111-1/+1
|
* verify: port 'assume' to traditional toolsPaul Eggert2018-08-112-1/+8
| | | | | * lib/verify.h (assume): Port better to Oracle Studio 12.6 and other tools that use /*NOTREACHED*/ comments.
* fnmatch: Fix compilation error in C++ namespace mode on Mac OS X.Bruno Haible2018-08-113-0/+10
| | | | | | * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR. * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module 'fnmatch-gnu' is in use.
* autoupdatePaul Eggert2018-08-101-5/+4
|
* autoupdateKarl Berry2018-08-081-27/+35
|
* glob-h: Add tests.Bruno Haible2018-08-078-29/+109
| | | | | | | | | | | * tests/test-glob-h.c: New file, partially based on tests/test-glob.c. * tests/test-glob.c: Reorder #includes. Remove tests that are moved to tests/test-glob-h.c. * modules/glob-h-tests: New file. * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add conditions. * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests. * modules/glob-tests (Depends-on): Remove glob-c++-tests.
* glob-h: New module.Bruno Haible2018-08-079-106/+302
| | | | | | | | | | | | | | | | | | | | | * lib/glob.in.h: Use nearly the usual gnulib idioms for header file replacements. * lib/glob.c: Include <config.h>. * m4/glob_h.m4: New file. * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P, REPLACE_GLOB_PATTERN_P as appropriate. (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'. * modules/glob-h: New file. * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h. (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config, lstat, sys_stat. Change conditions. (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P, REPLACE_GLOB_PATTERN_P. Set module indicator. (Makefile.am): Remove code that is moved to glob-h. * doc/posix-headers/glob.texi: Mention the 'glob-h' module. * modules/posixcheck (Depends-on): Add glob-h.
* Force generation of substitute .h file when C++ support is enabled.Bruno Haible2018-08-077-19/+65
| | | | | | | | | | | | | * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro. * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX. * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set FNMATCH_H to non-empty. * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set ICONV_H to non-empty. * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set MONETARY_H to non-empty. * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to non-empty.
* fnmatch-h: Fix test compilation error on mingw (regression from today).Bruno Haible2018-08-072-2/+7
| | | | * lib/fnmatch.in.h: Fix conditions.
* sys_resource: Relicense under LGPLv2+.Bruno Haible2018-08-062-1/+8
| | | | | | | John Malmberg's approval is in <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>. * modules/sys_resource (License): Change to LGPLv2+.
* fnmatch-h: Add tests.Bruno Haible2018-08-065-0/+104
| | | | | | | * tests/test-fnmatch-h.c: New file. * modules/fnmatch-h-tests: New file. * tests/test-fnmatch-h-c++.cc: New file. * modules/fnmatch-h-c++-tests: New file.
* fnmatch-h: New module.Bruno Haible2018-08-069-160/+321
| | | | | | | | | | | | | | | | | | | | | | | | * lib/fnmatch.in.h: Use the usual gnulib idioms for header file replacements. (FNM_*): Don't redefine if fnmatch exists and we are not overriding it. (fnmatch): Use the usual gnulib idiom for function declarations. Enable 'posixcheck' warning. * m4/fnmatch_h.m4: New file. * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH as appropriate. * modules/fnmatch-h: New file. * modules/fnmatch (Files): Remove lib/fnmatch.in.h. (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change conditions. (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module indicator. (Makefile.am): Remove code that is moved to fnmatch-h. * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module. * modules/posixcheck (Depends-on): Add fnmatch-h.
* Enable more C++ tests.Bruno Haible2018-08-066-0/+14
| | | | | | | | * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests. * modules/monetary-tests (Depends-on): Add monetary-c++-tests. * modules/strings-tests (Depends-on): Add strings-c++-tests. * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests. * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
* getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.Bruno Haible2018-08-063-2/+9
| | | | | | * modules/getopt-posix (Makefile.am): Add Makefile dependency for getopt.h. * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
* utime-h: Generate header file when module 'posixcheck' is in use.Bruno Haible2018-08-062-12/+21
| | | | | * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set UTIME_H to non-empty.
* monetary: Generate header file when module 'posixcheck' is in use.Bruno Haible2018-08-062-2/+8
| | | | | * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in use, set MONETARY_H to non-empty.
* iconv-h: Generate header file when module 'posixcheck' is in use.Bruno Haible2018-08-062-1/+8
| | | | | * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use, set ICONV_H to non-empty.
* Optimize the "checking whether ... is declared without a macro" checks.Bruno Haible2018-08-052-18/+30
| | | | | | | | Suggested by Paul Eggert in <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>. * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the Gnulib module 'posixcheck' is not in use.
* iconv-h: Enable 'posixcheck' warnings.Bruno Haible2018-08-053-1/+26
| | | | | | * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and iconv_open. * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
* Fix link error regarding 'rpl_environ' (regression from 2012-11-21).Bruno Haible2018-08-055-46/+88
| | | | | | | * m4/extern-inline.m4: Add more comments. * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro. * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE. * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
* New module 'posixcheck'.Bruno Haible2018-08-054-1/+126
| | | | | | | * modules/posixcheck: New file. * m4/posixcheck.m4: New file. * doc/gnulib-tool.texi (Finding POSIX substitutes): New section. (Which modules?): Reference it.
* autoupdateKarl Berry2018-08-031-2/+2
|
* dfa: fix memory leakAssaf Gordon2018-08-012-1/+9
| | | | * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
* ieee754-h: new modulePaul Eggert2018-08-019-2/+392
| | | | | | | | | | | | It looks like Emacs can use this for some NaN processing. Emacs uses it only on double NaNs so it should be safe. * MODULES.html.sh (func_all_modules): Add ieee754-h. * config/srclist.txt: Mention ieee754.h in a comment. * doc/glibc-headers/ieee754.texi (ieee754.h): Gnulib now has a substitute that should work except for long double and for non-IEEE platforms. * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h: * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
* autoupdatePaul Eggert2018-08-011-13/+5
|
* iswcntrl: Mention minor problem on macOS.Bruno Haible2018-07-272-0/+9
| | | | * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
* bootstrap, gnulib-tool: fix translations rsyncColin Watson2018-07-271-0/+10
|
* bootstrap, gnulib-tool: fix translations rsyncColin Watson2018-07-263-3/+3
| | | | | | | | | | Previously, we created files such as $pobase/Makefile.in.in and then the subsequent rsync would immediately delete them. * build-aux/bootstrap (po_download_command_format): Avoid deleting non-.po files in target directory when rsyncing translations. * gnulib-tool (func_import): Likewise. * pygnulib/GLImport.py (GLImport.execute): Likewise.
* autoupdateKarl Berry2018-07-251-3/+3
|
* bootstrap: reinstate definition fo gnulib_mk.Jim Meyering2018-07-252-1/+11
| | | | | | That variable is used at least by cppi. * build-aux/bootstrap (gnulib_mk): Restore definition. This reverts the deletion from v0.1-1844-gc66dba9ba.
* doc: For module names, use texinfo markup @code{} or @samp{}.Bruno Haible2018-07-2419-20/+42
| | | | | | | | | | | | | | | | | | | | | * doc/alloca.texi: Mark gnulib module names with @code. * doc/alloca-opt.texi: Likewise. * doc/quote.texi: Likewise. * doc/posix-functions/freopen.texi: Likewise. * doc/posix-functions/open.texi: Likewise. * doc/posix-functions/readlink.texi: Likewise. * doc/posix-functions/readlinkat.texi: Likewise. * doc/posix-functions/stdout.texi: Likewise. * doc/posix-functions/stderr.texi: Likewise. * doc/posix-functions/unlink.texi: Likewise. * doc/posix-functions/unlinkat.texi: Likewise. * doc/posix-functions/utime.texi: Likewise. * doc/posix-functions/utimensat.texi: Likewise. * doc/posix-functions/utimes.texi: Likewise. * doc/posix-headers/stdint.texi: Likewise. * doc/glibc-functions/futimesat.texi: Likewise. * doc/glibc-functions/lutimes.texi: Likewise. * doc/glibc-functions/memmem.texi: Likewise.
* doc: Avoid some overfull lines in the TeX output.Werner LEMBERG2018-07-245-13/+35
| | | | | | | | | | * doc/glibc-functions/futimesat.texi: Replace a long @code with a @example. * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a newline before the long URL. * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise. * doc/relocatable-maint.texi: Use @smallexample instead of @example. Add line breaks in code snippets.
* autoupdateKarl Berry2018-07-191-15/+21
|
* hard-locale: simplify by removing hard-locale.m4Paul Eggert2018-07-174-13/+7
| | | | | | * m4/hard-locale.m4: Remove. * modules/hard-locale (Files): Remove m4/hard-locale.m4. (configure.ac): Do not call gl_HARD_LOCALE.
* gnulib-tool: limit line length for git send-emailPaul Eggert2018-07-172-41/+52
| | | | | * gnulib-tool (func_import): Break actioncmd log line into multiple lines.
* ffs: Ensure declaration on mingw.Bruno Haible2018-07-172-2/+15
| | | | | | | | Reported by Daniel P. Berrangé <berrange@redhat.com> in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html. * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is also declared.
* autoupdateKarl Berry2018-07-141-1/+4
|
* autoupdatePaul Eggert2018-07-132-27/+22
|
* regex-tests: add dependencyPaul Eggert2018-07-132-0/+8
| | | | | | * modules/regex-tests (Depends-on): Add gettext-h. This is needed given the recent changes to regex, which no longer depends on gettext-h.
* autoupdateKarl Berry2018-07-121-38/+39
|
* renameatu: fix ChangeLog typoPaul Eggert2018-07-101-2/+2
|
* mkancesdirs: Add extern "C" to headerSimon Marchi2018-07-091-0/+9
| | | | * lib/mkancesdirs.h: Add extern "C".
* ; autoupdatePaul Eggert2018-07-061-3/+3
|
* regex: now in sync with glibcPaul Eggert2018-07-062-80/+12
| | | | | * config/srclist.txt: Gnulib and glibc regex code are synchronized again.
* renameatu: rename from renameat2Paul Eggert2018-07-0513-49/+75
| | | | | | | | | | | | | | | | | | | | It's looking like Glibc will add a renameat2 function that is incompatible with Gnulib renameat2; see: https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html To help avoid future confusion, rename renameat2 to something else. Use the name 'renameatu', as the Gnulib function is close to the Glibc function. Perhaps someday there will also be a renameat2 Gnulib module, which mimicks the future glibc renameat2, but that can wait as nobody seems to need such a module now. * NEWS: Mention this. * lib/renameatu.c: Rename from lib/renameat2.c. * lib/renameatu.h: Rename from lib/renameat2.h. * modules/renameat2: Rename from modules/renameatu. * modules/renameat2-tests: Rename from modules/renameat2-tests. All uses of "renameat2" in identifiers or file name changed to "renameatu", except for two instances in lib/renameatu.c that deal with the Linux kernel's renameat2 syscall.
* gnulib-tool: minor tweaks for --gnu-makePaul Eggert2018-07-042-1/+13
| | | | | | | * gnulib-tool: Do not allow --gnu-make in test modes, since they all require automake. (func_emit_lib_Makefile_am): Don’t emit automake comment if --gnu-make.
* regex: work around conditional-dependencies glitchPaul Eggert2018-07-042-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * modules/regex (Depends-on): Add langinfo. Without this change, I had problems building an experimental version of GNU Emacs. The symptom of the bug was a message ‘./configure: line 12726: test: =: unary operator expected’. This was due to a line in gl_FUNC_NL_LANGINFO that invokes ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET was unset. Although gl_FUNC_NL_LANGINFO has ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with --conditional-dependencies sometimes arranges for the gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H code. Since the regex code includes <langinfo.h> it should be depending on the langinfo module anyway, and this happens to work around the bug, so install that as a workaround for now. To reproduce the original problem, run the following shell script on the version of Gnulib just before this patch was installed. rm -fr foo mkdir foo cat >foo/configure.ac <<'EOF' AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/) gl_EARLY gl_INIT AC_OUTPUT EOF ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex ./gnulib-tool --copy build-aux/install-sh foo/install-sh ./gnulib-tool --copy build-aux/config.sub foo/config.sub ./gnulib-tool --copy build-aux/config.guess foo/config.guess cd foo aclocal -I m4 autoconf ./configure --with-included-regex
* autoupdateKarl Berry2018-07-041-9/+3
|
* autoupdateKarl Berry2018-07-031-1/+7
|