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

lib/getopt.c

index c66fc8813e2ac3f8dc7c9f2d643ccfb26367a55b..08ba35be363777fd12e79d7442ff9e15f1aa278c 100644 (file)
@@ -78,7 +78,7 @@
 
 #ifndef _
 /* This is for other GNU distributions with internationalized messages.  */
-# if defined HAVE_LIBINTL_H || defined _LIBC
+# if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC
 #  include <libintl.h>
 #  ifndef _
 #   define _(msgid)    gettext (msgid)