(_): 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 1840b03..560a594 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