diff options
author | Bruno Haible <bruno@clisp.org> | 2022-09-12 23:44:17 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-10-09 09:30:42 +0200 |
commit | 53c26c57c5c48f4aabc2ce29129053665945b057 (patch) | |
tree | 12370ee1cfedbef3f400dde7b12884deae3c3ee2 | |
parent | ebf2329bfdd4d48f9b0ed8b4f456447792fb50ec (diff) | |
download | gettext-53c26c57c5c48f4aabc2ce29129053665945b057.tar.gz |
Update after gnulib changed: Fix link errors of gettextpo-1-prg on mingw.
* gettext-tools/configure.ac: Set the module indicator variables
GL_GTPO_GNULIB_{PUTC,FPUTC,FPUTS,FWRITE,FPRINTF} to 0.
* gettext-tools/libgettextpo/Makefile.am (config.h): Undefine REPLACE_FCHDIR
that is defined in the parent config.h.
-rw-r--r-- | gettext-tools/configure.ac | 10 | ||||
-rw-r--r-- | gettext-tools/libgettextpo/Makefile.am | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index 1003667c5..3152306df 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -1,5 +1,5 @@ dnl Configuration for the gettext-tools directory of GNU gettext -dnl Copyright (C) 1995-2020 Free Software Foundation, Inc. +dnl Copyright (C) 1995-2022 Free Software Foundation, Inc. dnl dnl This program is free software: you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by @@ -211,6 +211,14 @@ gtpo_INIT dnl Allow libgrep/locale.h to use setlocale_null.h from gnulib-lib/. GL_GRGL_GNULIB_SETLOCALE_NULL=1 +dnl In libgettextpo/, we don't use the modules putc, fputc, fputs, fwrite, +dnl fprintf. +GL_GTPO_GNULIB_PUTC=0 +GL_GTPO_GNULIB_FPUTC=0 +GL_GTPO_GNULIB_FPUTS=0 +GL_GTPO_GNULIB_FWRITE=0 +GL_GTPO_GNULIB_FPRINTF=0 + dnl Checks for header files. AC_CHECK_HEADERS([pwd.h]) diff --git a/gettext-tools/libgettextpo/Makefile.am b/gettext-tools/libgettextpo/Makefile.am index 59b016ee4..96cab9784 100644 --- a/gettext-tools/libgettextpo/Makefile.am +++ b/gettext-tools/libgettextpo/Makefile.am @@ -1,5 +1,5 @@ ## Makefile for the gettext-tools/libgettextpo subdirectory of GNU gettext -## Copyright (C) 1995-1998, 2000-2016, 2019-2020 Free Software Foundation, Inc. +## Copyright (C) 1995-1998, 2000-2016, 2019-2022 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -154,6 +154,8 @@ config.h: $(BUILT_SOURCES) echo '#define GTPO_CONFIG_H'; \ echo; \ echo '#include "../config.h"'; \ + : "We don't use gnulib module 'fchdir' here."; \ + echo '#undef REPLACE_FCHDIR'; \ : "Turn all gettext() calls into dgettext() calls."; \ echo '#define DEFAULT_TEXT_DOMAIN "gettext-tools"'; \ : "All code is collected in a single library,"; \ |