(_): Honor the setting of ENABLE_NLS. Otherwise,
authorJim Meyering <jim@meyering.net>
Sun, 21 Oct 2001 13:39:12 +0000 (13:39 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 21 Oct 2001 13:39:12 +0000 (13:39 +0000)
this code would end up calling gettext even in packages built
with --disable-nls.

lib/regex.c

index 1840b03ef7e0ff464f0c47841f05c7d9b98fd461..560a5944761dec0fa85b0b9b362103cd983e5f45 100644 (file)
@@ -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