From: Matthias Braun Date: Sat, 27 Nov 2004 14:48:10 +0000 (+0000) Subject: only run xgettext when it is installed X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ff047aa9eb7ff87773293c94fa51180c51c93f3b;p=supertux.git only run xgettext when it is installed SVN-Revision: 2209 --- 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