/[auctex]/auctex/preview/aclocal.m4
ViewVC logotype

Diff of /auctex/preview/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.53 by dak, Fri Apr 8 02:42:55 2005 UTC revision 1.54 by dak, Mon Apr 11 09:01:32 2005 UTC
# Line 192  use  --with-lispdir, --datadir, or possi Line 192  use  --with-lispdir, --datadir, or possi
192    
193  AC_DEFUN(TEX_PATH_TEXMFDIR,  AC_DEFUN(TEX_PATH_TEXMFDIR,
194   [   [
195  AC_ARG_WITH(texmf-dir,[  --with-texmf-dir=DIR    TEXMF tree to install into],  AC_ARG_WITH(texmf-dir,
196    [  --with-texmf-dir=DIR    TEXMF tree to install into,
197                             or --without-texmf-dir for runtime config],
198   [ texmfdir="${withval}" ;   [ texmfdir="${withval}" ;
199     AC_FULL_EXPAND(withval)     if test "x${texmfdir}" = xno
200     if test ! -d "${withval}"  ; then     then
201        AC_MSG_ERROR([--with-texmf-dir="${texmfdir}": Directory does not exist])       previewtexmfdir="${packagedatadir}/latex"
202         previewdocdir="${packagedatadir}/doc"
203       else
204         AC_FULL_EXPAND(withval)
205         if test ! -d "${withval}"  ; then
206            AC_MSG_ERROR([--with-texmf-dir="${texmfdir}": Directory does not exist])
207         fi
208         previewtexmfdir="${texmfdir}/tex/latex/preview"
209         previewdocdir="${texmfdir}/doc/latex/styles"
210     fi     fi
    previewtexmfdir='${texmfdir}/tex/latex/preview'  
    previewdocdir='${texmfdir}/doc/latex/styles'  
211     ])     ])
212    
213  AC_ARG_WITH(tex-dir,  AC_ARG_WITH(tex-dir,
# Line 233  AC_ARG_WITH(doc-dir, Line 241  AC_ARG_WITH(doc-dir,
241  # hierarchy"  Install in preview subdirectory.  # hierarchy"  Install in preview subdirectory.
242  # c) anything absolute.  Install both files directly there.  # c) anything absolute.  Install both files directly there.
243    
244  if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no  ; then  if test "x${texmfdir}" != xno ; then
245    if test "x${previewtexmfdir}" = x ; then
246    
247  AC_MSG_CHECKING([for prefix from kpsepath])  AC_MSG_CHECKING([for prefix from kpsepath])
248    
# Line 260  EMACS_EXAMINE_INSTALLATION_DIR(texmfdir, Line 269  EMACS_EXAMINE_INSTALLATION_DIR(texmfdir,
269      [[pathoutput]],[["${pathoutput}"]])      [[pathoutput]],[["${pathoutput}"]])
270    
271  if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then  if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then
272     previewdocdir='${texmfdir}/doc/latex/styles'     previewdocdir="${texmfdir}/doc/latex/styles"
273     previewtexmfdir='${texmfdir}/tex/latex/preview'     previewtexmfdir="${texmfdir}/tex/latex/preview"
274  fi  fi
275    
276  if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no  ; then  if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no  ; then
# Line 281  EMACS_EXAMINE_INSTALLATION_DIR(texmfdir, Line 290  EMACS_EXAMINE_INSTALLATION_DIR(texmfdir,
290      [[pathoutput]],[["${pathoutput}"]])      [[pathoutput]],[["${pathoutput}"]])
291    
292  if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then  if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then
293     previewtexmfdir='${texmfdir}/preview'     previewtexmfdir="${texmfdir}/preview"
294     previewdocdir='${texmfdir}/preview'     previewdocdir="${texmfdir}/preview"
295  fi  fi
296  fi  fi
297    
# Line 303  EMACS_EXAMINE_INSTALLATION_DIR(texmfdir, Line 312  EMACS_EXAMINE_INSTALLATION_DIR(texmfdir,
312      [[pathoutput]],[["${pathoutput}"]])      [[pathoutput]],[["${pathoutput}"]])
313    
314  if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then  if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then
315     previewtexmfdir='${texmfdir}'     previewtexmfdir="${texmfdir}"
316     previewdocdir='${texmfdir}'     previewdocdir="${texmfdir}"
 fi  
317  fi  fi
318  fi  fi
319  fi  fi
# Line 318  Please use --with-texmf-dir=dir to speci Line 326  Please use --with-texmf-dir=dir to speci
326  fi  fi
327    
328  AC_MSG_RESULT(${texmfdir})  AC_MSG_RESULT(${texmfdir})
329    fi
330    fi
331    
332  echo Preview will be placed in ${previewtexmfdir}  echo Preview will be placed in ${previewtexmfdir}
333  echo Preview docs will be placed in ${previewdocdir}  echo Preview docs will be placed in ${previewdocdir}
# Line 569  EMACS_LISP([lisp$1],[[(progn (setq path Line 579  EMACS_LISP([lisp$1],[[(progn (setq path
579           path           path
580      \`(expand-file-name      \`(expand-file-name
581         ,(file-relative-name path (file-name-directory startup))         ,(file-relative-name path (file-name-directory startup))
582         load-file-name))))]],-no-site-file,[[path lispdir startup]],         (file-name-directory load-file-name)))))]],-no-site-file,[[path lispdir startup]],
583    [["${tmpdir}" "${explispdir}" "${expstartup}"]])    [["${tmpdir}" "${explispdir}" "${expstartup}"]])
584     AC_SUBST([lisp$1])     AC_SUBST([lisp$1])
585     AC_SUBST([$1])])     AC_SUBST([$1])])

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26