mirror of
https://https.git.savannah.gnu.org/git/diffutils.git
synced 2026-01-27 01:44:20 +00:00
Recentish changes to Gnulib have pulled in more dependencies on multithreading, locking, and whatnot. Revamp to remove these unwanted dependencies. * bootstrap.conf: Also avoid hard-locale, localcharset, localename-unsafe, localename-unsafe-limited. Stop avoiding localename. (avoided_gnulib_tests): New var. Avoid these tests too. (gnulib-modules): Remove hard-locale, nstrftime. Add nstrftime-limited. * configure.ac (gl_cv_func_mbrtowc_C_locale_sans_EILSEQ) (gl_cv_func_mbrtoc32_C_locale_sans_EILSEQ): New vars, so that we do not worry about multibyte C locales. (gl_THREADLIB_DEFAULT_NO): New macro. Not sure how much it helps, but it can’t hurt. (SUPPORT_NON_GREG_CALENDARS_IN_STRFTIME): New macro. * src/cmp.c: Do not include hard-locale.h. (hard_locale_LC_MESSAGES): Assume that LC_MESSAGES is hard if and only if "(C)" gets translated. This drags in fewer dependencies than calling hard_locale. * src/diff.c: Include strftime.h instead of hard-locale.h. (hard_locale_LC_TIME): New function, that uses nstrftime to infer whether the time locale is hard. (main): Use it instead of hard_locale. maint: default Gnulib to no multithreading * configure.ac: Define gl_THREADLIB_DEFAULT_NO so that Gnulib defaults to no multithreading.
README for GNU DIFF This directory contains the GNU diff, diff3, sdiff, and cmp utilities. Their features are a superset of the Unix features and they are significantly faster. Please see the file COPYING for copying conditions. Please see the file doc/version.texi for version information. Please see the file doc/diffutils.texi (or doc/diffutils.info) for documentation that can be printed with TeX, or read with the 'info' program or with Emacs's 'M-x info'. Brief man pages are in man/*, but they are no substitute for the documentation. Please see the file ABOUT-NLS for notes about translations. Please see the file INSTALL for generic compilation and installation instructions. Briefly, you can run "./configure; make install". The command "./configure --help" lists the supported --enable and --with options. If you have a problem with internationalization, you might be able to work around it as described in ABOUT-NLS by invoking './configure --disable-nls'. Many of the problems arise from dynamic linking issues on non-GNU platforms (e.g. with the iconv library). Such problems tend to be shared by other GNU applications on these platforms, and can usually be fixed by carefully tweaking your non-GNU installation. If you have an older version of libiconv, please upgrade to the latest one; see <ftp://ftp.gnu.org/gnu/libiconv/>. If the problem seems isolated to diffutils, though, please report a bug. This program requires a Standard C compiler (C99 or later). If you have a nonstandard compiler, please install GCC first. If you make changes to the source code, you may need appropriate versions of GNU build tools to regenerate the intermediate files. See README-prereq for details. For any copyright year range specified as YYYY-ZZZZ in this package note that the range specifies every single year in that closed interval. Please report bugs to <bug-diffutils@gnu.org>. ----- Copyright (C) 1992, 1998, 2001-2002, 2004, 2009-2013, 2015-2025 Free Software Foundation, Inc. This file is part of GNU Diffutils. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the "GNU Free Documentation License" file as part of this distribution.
Description
Languages
C
72.6%
Shell
22%
Makefile
3.7%
M4
1.7%