summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorJulien Rioux <jrioux@physics.utoronto.ca>2013-03-15 17:43:57 -0400
committerJulien Rioux <jrioux@physics.utoronto.ca>2013-03-20 16:07:45 -0400
commit0840d13e6d695215b1c353c35eaf32bfd78b3709 (patch)
tree103add835184fccd9588e6cb13008e2d781c90b5 /aclocal.m4
parent6f88af063980030706a883f95b20b11cdc7d780b (diff)
configure: Check for mfplain.mp (issue 3233).
./configure is now checking if required metapost files are installed on the system. Metapost is a required dependency. Also, kpsewhich isn't optional anymore, since we rely on it to check for metapost required files.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m414
1 files changed, 12 insertions, 2 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 4d5710ba9e..e2888727bd 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1083,8 +1083,18 @@ void *p = v.data ();
AC_DEFUN(STEPMAKE_TEXMF_DIRS, [
- # ugh
- STEPMAKE_PROGS(KPSEWHICH, kpsewhich, OPTIONAL)
+ STEPMAKE_PROGS(KPSEWHICH, kpsewhich, $1)
+
+ AC_MSG_CHECKING(for metapost required files)
+ if test "$MFPLAIN_MP" = ""; then
+ MFPLAIN_MP=`kpsewhich -format=mp mfplain`
+ fi
+ if test "$MFPLAIN_MP" = ""; then
+ AC_MSG_RESULT(no)
+ STEPMAKE_ADD_ENTRY($1,['metapost CTAN package (texlive-metapost)'])
+ else
+ AC_MSG_RESULT(yes)
+ fi
])
AC_DEFUN(STEPMAKE_TEXMF, [