From 685a3eb11ab5167758449410961c753e5685830b Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 23 Nov 2020 19:55:51 +0100 Subject: Make configure fail if nls is enabled but the gettext tools are not found. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index e1b7e05..47fedd6 100644 --- a/configure.ac +++ b/configure.ac @@ -148,8 +148,14 @@ AC_ARG_WITH([nls], AS_IF([test "x$with_nls" == "xyes"], [AC_MSG_RESULT([*** Building with nls support!]) AC_CHECK_PROGS([XGETTEXT], [xgettext]) + AS_IF([test "x$XGETTEXT" = "x"], + AC_MSG_ERROR([Missing xgettext tool.])) AC_CHECK_PROGS([MSGMERGE], [msgmerge]) + AS_IF([test "x$MSGMERGE" = "x"], + AC_MSG_ERROR([Missing msgmerge tool.])) AC_CHECK_PROGS([MSGFMT], [msgfmt]) + AS_IF([test "x$MSGFMT" = "x"], + AC_MSG_ERROR([Missing msgfmt tool.])) AC_DEFINE_UNQUOTED([WITH_NLS], , [Build with nls support])], [AC_MSG_WARN([*** Building without nls support!])] ) -- cgit v1.2.3