From 455d0f33b1540e75006cbf267cd7bda1a70eb5bc Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Wed, 29 May 2013 11:41:09 +0200 Subject: [PATCH] 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 --- t/txinfo-no-split.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.47.2