configure.ac, Makefile.am: Support building without NLS
Subsystems (2)
PATCH 1/1 configure.ac, Makefile.am: Support building without NLS
Avoid entering the v4l-utils-po and libdvbv5-po directories if NLS support is disabled, as the generated Makefiles in those directories are empty then.
Signed-off-by Peter Kjellerstedt <[email protected]>
--- Makefile.am | 6 +++++- configure.ac | 1 + 2 files changed, 6 insertions(+), 1 deletion(-)
Makefile.am +5 -1
@@ -2,7 +2,11 @@ AUTOMAKE_OPTIONS = foreign ACLOCAL_AMFLAGS = -I m4 AM_MAKEFLAGS = $(word 1, $(subst 1, -w, $(filter 1, $(V))) --no-print-directory) -SUBDIRS = v4l-utils-po libdvbv5-po lib +SUBDIRS = lib + +if USE_NLS +SUBDIRS += v4l-utils-po libdvbv5-po +endif if WITH_V4LUTILS SUBDIRS += utils contrib
configure.ac +1 -0
@@ -99,6 +99,7 @@ DX_INIT_DOXYGEN($PACKAGE_NAME, doxygen_libdvbv5.cfg) ALL_LINGUAS="" m4_ifdef(AM_GNU_GETTEXT_REQUIRE_VERSION,[AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8])],[AM_GNU_GETTEXT_VERSION([0.19.8])]) AM_GNU_GETTEXT([external]) +AM_CONDITIONAL([USE_NLS], [test "$USE_NLS" = "yes"]) LIBDVBV5_DOMAIN="libdvbv5" AC_DEFINE([LIBDVBV5_DOMAIN], "libdvbv5", [libdvbv5 domain])