summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-10-21 13:39:12 +0000
committerJim Meyering <jim@meyering.net>2001-10-21 13:39:12 +0000
commit2a1279c26df5d1eb4fa7da27c034909a96055e01 (patch)
treeef719cc36bb7668940984845a44d562aea94e39b /lib
parent9ff208503cb58602bbb6ac89c9d4d4015a5c04df (diff)
downloadcoreutils-2a1279c26df5d1eb4fa7da27c034909a96055e01.tar.xz
(_): Honor the setting of ENABLE_NLS. Otherwise,
this code would end up calling gettext even in packages built with --disable-nls.
Diffstat (limited to 'lib')
-rw-r--r--lib/regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/regex.c b/lib/regex.c
index 1840b03ef..560a59447 100644
--- 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 <libintl.h>
# ifdef _LIBC
# undef gettext