summaryrefslogtreecommitdiff
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
commit0b709a46f29426427b3092467e9cf2df58d3db2c (patch)
treeefe4f6236fc79474f11f4d89d36736242dc4a2f7
parent32dae2b491da32849561c38cfd3b3fd9fbc376b4 (diff)
downloadgnulib-0b709a46f29426427b3092467e9cf2df58d3db2c.tar.gz
(_): Honor the setting of ENABLE_NLS. Otherwise,
this code would end up calling gettext even in packages built with --disable-nls.
-rw-r--r--lib/regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/regex.c b/lib/regex.c
index 1840b03ef7..560a594476 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