diff options
author | Jim Meyering <jim@meyering.net> | 2001-10-21 10:55:29 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-10-21 10:55:29 +0000 |
commit | 9d8ec0121c4152f24de0085d8577ef2e10fc2a0c (patch) | |
tree | 4c1243730866d341e890af9bd93a8b29add0e9c2 /lib | |
parent | 9c0e765d5a7b63fa8be27761eb99f74561e81cd3 (diff) | |
download | coreutils-9d8ec0121c4152f24de0085d8577ef2e10fc2a0c.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/getopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getopt.c b/lib/getopt.c index c66fc8813..08ba35be3 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -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) |