From ff047aa9eb7ff87773293c94fa51180c51c93f3b Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sat, 27 Nov 2004 14:48:10 +0000 Subject: [PATCH] only run xgettext when it is installed SVN-Revision: 2209 --- Jamfile | 17 ++++++++++------- configure.ac | 2 ++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Jamfile b/Jamfile index 877ee449c..13259c77f 100644 --- a/Jamfile +++ b/Jamfile @@ -10,12 +10,15 @@ UseAutoconf ; # add some additional files to package Package INSTALL NEWS README COPYING AUTHORS ChangeLog ; - -actions MakePot +if $(XGETTEXT) != "" { - xgettext --keyword='_:1' --c++ -o $(<) $(>) + + actions MakePot + { + $(XGETTEXT) --keyword='_:1' --c++ -o $(<) $(>) + } + MakePot supertux.pot : $(TRANSLATABLE_SOURCES) ; + Depends supertux.pot : $(TRANSLATABLE_SOURCES) ; + MakeLocate supertux.pot : data/locale ; + Depends all : supertux.pot ; } -MakePot supertux.pot : $(TRANSLATABLE_SOURCES) ; -Depends supertux.pot : $(TRANSLATABLE_SOURCES) ; -MakeLocate supertux.pot : data/locale ; -Depends all : supertux.pot ; diff --git a/configure.ac b/configure.ac index 1790abe34..ca7065c0d 100644 --- a/configure.ac +++ b/configure.ac @@ -27,6 +27,8 @@ AC_PROG_CC AC_PROG_CXX AC_PROG_INSTALL +AC_CHECK_PROGS(XGETTEXT, xgettext) + dnl Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC -- 2.11.0