# HG changeset patch # User Jim Meyering # Date 1003671552 0 # Node ID 3b5c1fa9579ca9fbe689b65dd0fc4787c2d005ac # Parent ba37e5f7ca418e82db2ad9e9fc2f7d6002196c64 (_): Honor the setting of ENABLE_NLS. Otherwise, this code would end up calling gettext even in packages built with --disable-nls. diff --git a/lib/regex.c b/lib/regex.c --- a/lib/regex.c +++ b/lib/regex.c @@ -91,7 +91,7 @@ # endif /* This is for other GNU distributions with internationalized messages. */ -# if HAVE_LIBINTL_H || defined _LIBC +# if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC # include # ifdef _LIBC # undef gettext