From 023db6aa774da240de437f3edb1a2d64d019eaa2 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Tue, 15 Nov 2005 02:39:20 +0000
Subject: [PATCH] per Mike Frysinger's patch, don't install the localized
 versions of the manpages if nano is built with --disable-nls

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3175 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog           | 3 +++
 configure.ac        | 1 +
 doc/man/Makefile.am | 4 ++++
 3 files changed, 8 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 4bc4e7e4..c79f9411 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -97,6 +97,9 @@ CVS code -
 	  completion functions adapted from busybox.  Also, invoke LGPL
 	  clause 3 to convert all LGPLed functions to GPLed ones, so
 	  that we don't have to include a copy of the LGPL. (DLR)
+	- Don't install the localized versions of the manpages if
+	  nano is built with --disable-nls.  Changes to Makefile.am and
+	  doc/man/Makefile.am. (Mike Frysinger)
 - chars.c:
   mbwidth()
 	- If wcwidth() returns -1 for the character passed in, treat the
diff --git a/configure.ac b/configure.ac
index f3673c4f..d34c83b0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,6 +39,7 @@ dnl Internationalization macros.
 
 AM_GNU_GETTEXT_VERSION(0.11.5)
 AM_GNU_GETTEXT([external], [need-ngettext])
+AM_CONDITIONAL(USE_NLS, test "x$USE_NLS" = "xyes")
 
 dnl Checks for header files.
 
diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
index a37ed2ff..f6a2df86 100644
--- a/doc/man/Makefile.am
+++ b/doc/man/Makefile.am
@@ -1,4 +1,8 @@
+if USE_NLS
 SUBDIRS = fr
+else
+SUBDIRS =
+endif
 
 man_MANS = nano.1 nanorc.5
 
-- 
GitLab