1From c9f5783bb2df4a19c6281daeda30e8ab905d2ca3 Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Sun, 22 Aug 2021 10:44:48 +0200
4Subject: [PATCH] Don't build po files if NLS is disabled
5
6Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7[Upstream status: https://github.com/ddugovic/uShare/pull/12]
8---
9 Makefile  | 7 +++++--
10 configure | 3 +++
11 2 files changed, 8 insertions(+), 2 deletions(-)
12
13diff --git a/Makefile b/Makefile
14index ebd8f91..6686cfd 100644
15--- a/Makefile
16+++ b/Makefile
17@@ -14,10 +14,13 @@ EXTRADIST = AUTHORS \
18 	    THANKS \
19 	    TODO \
20
21-SUBDIRS = po \
22-	  scripts \
23+SUBDIRS = scripts \
24 	  src \
25
26+ifeq ($(NLS),yes)
27+SUBDIRS += po
28+endif
29+
30 all:
31 	for subdir in $(SUBDIRS); do \
32 	  $(MAKE) -C $$subdir $@; \
33diff --git a/configure b/configure
34index 4a3efe0..f48806a 100755
35--- a/configure
36+++ b/configure
37@@ -414,6 +414,8 @@ for opt do
38   ;;
39   --with-libdlna-dir=*) libdlnadir="$optval";
40   ;;
41+  --enable-nls) nls="yes"
42+  ;;
43   --disable-nls) nls="no"
44   ;;
45   --enable-dlna) dlna="yes"
46@@ -723,6 +725,7 @@ append_config "LDFLAGS=$LDFLAGS"
47 append_config "INSTALL=$INSTALL"
48
49 append_config "DEBUG=$debug"
50+append_config "NLS=$nls"
51
52
53 echolog "Creating $CONFIG_H ..."
54--
552.32.0
56
57