aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2010-12-01 01:27:40 +0100
committerAndreas Oberritter <obi@opendreambox.org>2010-12-01 01:27:40 +0100
commitfb41a54877f82982b88a89aecd473f1089cc5252 (patch)
treeddb4009d806de035a06da94daa860df0693934c2 /configure.ac
parent4e8cc699a9a33db131ab29ea55b1993558eda1e0 (diff)
downloadenigma2-fb41a54877f82982b88a89aecd473f1089cc5252.tar.gz
enigma2-fb41a54877f82982b88a89aecd473f1089cc5252.zip
configure.ac: move some gettext checks to conditional block
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac18
1 files changed, 10 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index 5eadfb51..6e77e497 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,14 +16,7 @@ AC_CONFIG_MACRO_DIR([m4])
AC_CHECK_HEADERS([dbox/fp.h dbox/lcd-ks0713.h])
-AC_PATH_PROG(MSGFMT,[msgfmt])
-AC_PATH_PROG(MSGINIT,[msginit])
-AC_PATH_PROG(MSGMERGE,[msgmerge])
-AC_PATH_PROG(MSGUNIQ,[msguniq])
-AC_PATH_PROG(XGETTEXT,[xgettext])
-if test -z "$MSGFMT" -o -z "$MSGINIT" -o -z "$MSGMERGE" -o -z "$MSGUNIQ" -o -z "$XGETTEXT"; then
- AC_MSG_ERROR([Could not find required gettext tools])
-fi
+AC_PATH_PROG(MSGFMT, msgfmt, AC_MSG_ERROR(Could not find msgfmt))
AM_PATH_PYTHON
AX_PYTHON_DEVEL
@@ -88,6 +81,15 @@ fi
AC_ARG_WITH(po,
AS_HELP_STRING([--with-po],[enable updating of po files]),
[with_po="$withval"],[with_po="no"])
+if test "$with_po" = "yes"; then
+ AC_PATH_PROG(MSGINIT, msginit)
+ AC_PATH_PROG(MSGMERGE, msgmerge)
+ AC_PATH_PROG(MSGUNIQ, msguniq)
+ AC_PATH_PROG(XGETTEXT, xgettext)
+ if test -z "$MSGINIT" -o -z "$MSGMERGE" -o -z "$MSGUNIQ" -o -z "$XGETTEXT"; then
+ AC_MSG_ERROR([Could not find required gettext tools])
+ fi
+fi
AM_CONDITIONAL(UPDATE_PO, test "$with_po" = "yes")
CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"