diff options
author | Guillem Jover <guillem@debian.org> | 2009-10-29 18:41:54 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2009-10-29 18:47:32 +0100 |
commit | 679d1d75780f7e1b2e32f158cd72357d9087a7a6 (patch) | |
tree | d91b288ffd57f081408f7094d53fbde87b5fa23d /m4/dpkg-progs.m4 | |
parent | 99e213787595fec1a7939ba1a0395dfdfd62c7ba (diff) | |
download | dpkg-679d1d75780f7e1b2e32f158cd72357d9087a7a6.tar.gz |
build: Only use po4a if present and if NLS is enabled
Use the po4a command found when doing the availability checks.
Reported-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'm4/dpkg-progs.m4')
-rw-r--r-- | m4/dpkg-progs.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/dpkg-progs.m4 b/m4/dpkg-progs.m4 index 97416358a..08b460099 100644 --- a/m4/dpkg-progs.m4 +++ b/m4/dpkg-progs.m4 @@ -9,3 +9,17 @@ PERL_LIBDIR=$($PERL -MConfig -e 'my $r = $Config{vendorlibexp}; $r =~ s/$Config{vendorprefixexp}/\$(prefix)/; print $r')dnl ])# DPKG_PROG_PERL + +# DPKG_PROG_PO4A +# -------------- +AC_DEFUN([DPKG_PROG_PO4A], [ +AC_REQUIRE([AM_NLS]) +AC_CHECK_PROGS([PO4A], [po4a]) +if test "$USE_NLS" = "yes" && test -n "$PO4A"; then + USE_PO4A=yes +else + USE_PO4A=no +fi +AC_SUBST([USE_PO4A]) +])# DPKG_PROG_PO4A + |