From: Bruno Haible Date: Sun, 20 Jun 2021 12:19:39 +0000 (+0200) Subject: Update after gnulib changed. X-Git-Tag: v0.22~237 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acb7f1cc9b4df499b23576c488f66540330ca836;p=thirdparty%2Fgettext.git Update after gnulib changed. Previously, different gnulib-tool invocations within the scope of the same configure.ac interfered with each other (through the GNULIB_* indicator macros, used in the generated .h files), and libgrep relied on it. Now, each gnulib-tool invocation needs its own copy of the generated .h files, in particular locale.h. Needed for the localeconv() override on native Windows. * autogen.sh: When invoking gnulib-tool for libgrep, don't avoid 'locale' and the other header file modules. * gettext-tools/configure.ac: Set GL_GRGL_GNULIB_SETLOCALE_NULL to 1. --- diff --git a/.gitignore b/.gitignore index 195edc595..71bc5dd02 100644 --- a/.gitignore +++ b/.gitignore @@ -288,14 +288,19 @@ /gettext-tools/libgrep/malloc/ /gettext-tools/libgrep/gnulib-m4/ /gettext-tools/libgrep/Makefile.gnulib +/gettext-tools/libgrep/_Noreturn.h +/gettext-tools/libgrep/arg-nonnull.h /gettext-tools/libgrep/attribute.h /gettext-tools/libgrep/btowc.c /gettext-tools/libgrep/c++defs.h /gettext-tools/libgrep/cdefs.h /gettext-tools/libgrep/dynarray.h /gettext-tools/libgrep/intprops.h +/gettext-tools/libgrep/inttypes.in.h /gettext-tools/libgrep/langinfo.in.h /gettext-tools/libgrep/libc-config.h +/gettext-tools/libgrep/limits.in.h +/gettext-tools/libgrep/locale.in.h /gettext-tools/libgrep/localeconv.c /gettext-tools/libgrep/mbrlen.c /gettext-tools/libgrep/mbtowc-impl.h @@ -308,7 +313,17 @@ /gettext-tools/libgrep/regex_internal.c /gettext-tools/libgrep/regex_internal.h /gettext-tools/libgrep/regexec.c +/gettext-tools/libgrep/stdbool.in.h +/gettext-tools/libgrep/stddef.in.h +/gettext-tools/libgrep/stdint.in.h +/gettext-tools/libgrep/stdlib.in.h +/gettext-tools/libgrep/sys_types.in.h +/gettext-tools/libgrep/unistd.c +/gettext-tools/libgrep/unistd.in.h /gettext-tools/libgrep/warn-on-use.h +/gettext-tools/libgrep/wchar.in.h +/gettext-tools/libgrep/wctype-h.c +/gettext-tools/libgrep/wctype.in.h /gettext-tools/libgrep/windows-initguard.h /gettext-tools/libgrep/wcrtomb.c /gettext-tools/man/x-to-1.in @@ -831,7 +846,18 @@ core /gettext-tools/libgettextpo/uniwidth.h /gettext-tools/libgettextpo/wchar.h /gettext-tools/libgettextpo/wctype.h +/gettext-tools/libgrep/inttypes.h /gettext-tools/libgrep/langinfo.h +/gettext-tools/libgrep/limits.h +/gettext-tools/libgrep/locale.h +/gettext-tools/libgrep/stdbool.h +/gettext-tools/libgrep/stddef.h +/gettext-tools/libgrep/stdint.h +/gettext-tools/libgrep/stdlib.h +/gettext-tools/libgrep/unistd.h +/gettext-tools/libgrep/wchar.h +/gettext-tools/libgrep/wctype.h +/gettext-tools/libgrep/sys/types.h /gettext-tools/po/??@*.insert-header /gettext-tools/po/remove-potcdate.sed /gettext-tools/src/gettext.res diff --git a/autogen.sh b/autogen.sh index 0eccb1a08..c3a7ef9e4 100755 --- a/autogen.sh +++ b/autogen.sh @@ -304,7 +304,14 @@ if ! $skip_gnulib; then ' $GNULIB_TOOL --dir=gettext-tools --macro-prefix=grgl --lib=libgrep --source-base=libgrep --m4-base=libgrep/gnulib-m4 --witness-c-macro=IN_GETTEXT_TOOLS_LIBGREP --makefile-name=Makefile.gnulib --local-dir=gnulib-local --local-symlink \ --import \ - `for m in $GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES; do if test \`$GNULIB_TOOL --extract-applicability $m\` != all; then echo --avoid=$m; fi; done` \ + `for m in $GNULIB_MODULES_TOOLS_FOR_SRC_COMMON_DEPENDENCIES; do \ + if test \`$GNULIB_TOOL --extract-applicability $m\` != all; then \ + case $m in \ + locale | stdbool | stddef | stdint | stdlib | unistd | wchar | wctype-h) ;; \ + *) echo --avoid=$m ;; \ + esac; \ + fi; \ + done` \ $GNULIB_MODULES_TOOLS_FOR_LIBGREP || exit $? # In gettext-tools/libgettextpo: # This is a subset of the GNULIB_MODULES_TOOLS_FOR_SRC. diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index 15ca68bac..65476ab85 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -211,6 +211,9 @@ gl_INIT grgl_INIT gtpo_INIT +dnl Allow libgrep/locale.h to use setlocale_null.h from gnulib-lib/. +GL_GRGL_GNULIB_SETLOCALE_NULL=1 + dnl Checks for header files. AC_CHECK_HEADERS([pwd.h])