From: Julien Rioux Date: Mon, 9 Sep 2013 17:56:48 +0000 (+0200) Subject: Build: Disallow metapost versions 1.600 <= x < 1.803. X-Git-Tag: release/2.17.27-1~23 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=29b05c33ce2a1b0ee671afb52d23a40e5fb26a39;p=lilypond.git Build: Disallow metapost versions 1.600 <= x < 1.803. Add a check in ./configure to avoid buggy versions of metapost starting with the rewrite that occured in the 1.600 series and finally fixed in version 1.803 and later. Fixes issue 3539: Configure should forbid mpost 1.802 from TexLive 2013 http://code.google.com/p/lilypond/issues/detail?id=3539 --- diff --git a/aclocal.m4 b/aclocal.m4 index 87d8474316..c9f0093381 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1167,6 +1167,14 @@ AC_DEFUN(STEPMAKE_TEXMF_DIRS, [ AC_DEFUN(STEPMAKE_TEXMF, [ STEPMAKE_PROGS(METAFONT, mf-nowin mf mfw mfont, $1) STEPMAKE_PROGS(METAPOST, mpost, $1) + if test "$METAPOST" != ""; then + ver=`STEPMAKE_GET_VERSION($METAPOST)` + num=`STEPMAKE_NUMERIC_VERSION($ver)` + # Avoid buggy metapost versions: 1.600 <= x < 1.803 + if test "$num" -ge "1600000" -a "$num" -lt "1803000"; then + STEPMAKE_ADD_ENTRY($1, ["mpost (due to a bug in metapost, versions 1.600 <= x < 1.803 are not supported; installed: $ver)"]) + fi + fi AC_MSG_CHECKING(for working metafont mode) modelist='ljfour lj4 lj3 lj2 ljet laserjet'