From: Mark Wooding Date: Thu, 5 Apr 2012 14:08:09 +0000 (+0100) Subject: aclocal: Reinstate `mdw_TEXMF_DIR'. X-Git-Tag: 1.3.7~3 X-Git-Url: https://git.distorted.org.uk/~mdw/cfd/commitdiff_plain/407625c794eee748e4c2cb4ea52cc5467e0ed5be aclocal: Reinstate `mdw_TEXMF_DIR'. The version from the Autoconf archive has vanished. --- diff --git a/aclocal.glob b/aclocal.glob index c20cfac..7c15e1e 100644 --- a/aclocal.glob +++ b/aclocal.glob @@ -175,4 +175,33 @@ AC_ARG_WITH([man-ext], [manext=$withval], [manext=mLib]) AC_SUBST(manext)]) +dnl --- *@-mdw_DIR_TEXMF-@* --- +dnl +dnl Author: Mark Wooding +dnl +dnl Synopsis: mdw_DIR_TEXMF +dnl +dnl Arguments: --- +dnl +dnl Use: Sets the substitution `texmfdir' as a sensible TeX install +dnl tree. + +AC_DEFUN([mdw_DIR_TEXMF], [ +AC_ARG_WITH([texmfdir], +[ --with-texmfdir=DIR set the TeX install directory to DIR], +[texmfdir=$withval], +[AC_MSG_CHECKING([where to put installed TeX files]) +mdw_DEFINE_PATHS([ +texmfdir='${datadir}/texmf' +for d in \ + '${datadir}/texmf' '${prefix}/lib/texmf' \ + '${prefix}/texmf' '${libdir}/lib/texmf'; do + if test -d "mdw_PATH([$d])"; then + texmfdir=$d + break + fi +done +AC_MSG_RESULT([$texmfdir])])]) +AC_SUBST(texmfdir)]) + dnl----- That's all, folks --------------------------------- *@--GLOB-END--@*