Fix spelling. Add new macro which works out where to put TeX files.
authormdw <mdw>
Tue, 19 Feb 2002 22:50:24 +0000 (22:50 +0000)
committermdw <mdw>
Tue, 19 Feb 2002 22:50:24 +0000 (22:50 +0000)
aclocal.glob

index a04a9a6..1c19f01 100644 (file)
@@ -1,6 +1,6 @@
 dnl -*-fundamental-*-                                    *@--GLOB-HEADER--@*
 dnl
-dnl $Id: aclocal.glob,v 1.14 2002/02/03 19:15:15 mdw Exp $
+dnl $Id: aclocal.glob,v 1.15 2002/02/19 22:50:24 mdw Exp $
 dnl
 dnl Common library of autoconf macros
 dnl
@@ -28,6 +28,9 @@ dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 dnl----- Revision history ---------------------------------------------------
 dnl
 dnl $Log: aclocal.glob,v $
+dnl Revision 1.15  2002/02/19 22:50:24  mdw
+dnl Fix spelling.  Add new macro which works out where to put TeX files.
+dnl
 dnl Revision 1.14  2002/02/03 19:15:15  mdw
 dnl Add SDL-finding equipment.  Quote some macro names which need it.  Add
 dnl long-overdue macros for expanding configured paths (and do it
@@ -76,7 +79,7 @@ dnl
 
 dnl----- Common files distribution --------------------------- *@--NOTICE--@*
 dnl
-dnl $Id: aclocal.glob,v 1.14 2002/02/03 19:15:15 mdw Exp $
+dnl $Id: aclocal.glob,v 1.15 2002/02/19 22:50:24 mdw Exp $
 
 dnl --- *@-AM_PROG_CC_STDC-@* ---
 dnl
@@ -1746,7 +1749,7 @@ dnl --- *@-mdw_DEFINE_PATHS-@*
 dnl
 dnl Author:    Mark Wooding
 dnl
-dnl Synopsys:  mdw_DEFINE_FILES(CODE)
+dnl Synopsis:  mdw_DEFINE_FILES(CODE)
 dnl
 dnl Arguments: CODE = shell script code to execute
 dnl
@@ -1784,4 +1787,33 @@ echo "$t"`])
 AC_DEFUN([mdw_DEFINE_PROG], [AC_DEFINE_UNQUOTED([$1], ["mdw_PROG([$2])"])])
 AC_DEFUN([mdw_DEFINE_PATH], [AC_DEFINE_UNQUOTED([$1], ["mdw_PATH([$2])"])])
 
+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=$witharg],
+[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--@*