From: Stefano Lattarini Date: Wed, 29 May 2013 09:41:09 +0000 (+0200) Subject: tests: avoid a spurious failure when TeX is not installed. X-Git-Tag: v1.16~71^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=455d0f33b1540e75006cbf267cd7bda1a70eb5bc;p=thirdparty%2Fautomake.git tests: avoid a spurious failure when TeX is not installed. Fixes automake bug#14499. * t/txinfo-no-split.sh: If TeX is not available, redefine 'dvi' to be a dummy target, so that "make distcheck" doesn't fail while trying to build the DVI version of the Texinfo manual. Signed-off-by: Stefano Lattarini --- diff --git a/t/txinfo-no-split.sh b/t/txinfo-no-split.sh index aecf7e735..6a50f1ccb 100644 --- a/t/txinfo-no-split.sh +++ b/t/txinfo-no-split.sh @@ -34,6 +34,13 @@ check-local: test "`find $(srcdir) . | grep '\.info'`" = "$(srcdir)/foo.info" END +# Systems lacking a working TeX installation cannot run "make dvi". +if test -z "$TEX"; then + warn_ "TeX installation missing, \"make dvi\" will be skipped" + echo AUTOMAKE_OPTIONS = -Wno-override >> Makefile.am + echo 'dvi:; @echo Tex is missing, do nothing' >> Makefile.am +fi + cat > foo.texi << 'END' \input texinfo @setfilename foo.info