source: trunk/m4/yat_prog_dvips_pspicture.m4 @ 2103

Last change on this file since 2103 was 2103, checked in by Peter, 12 years ago

merging patch release 0.5.5 into trunk. Delta 0.5.5 - 0.5.4

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Date
File size: 1.6 KB
Line 
1## $Id: yat_prog_dvips_pspicture.m4 2103 2009-11-06 12:40:26Z peter $
2
3# SYNOPSIS
4#
5#   YAT_PROG_DVIPS_PSPICTURE([ACTION-IF-FOUND], [VALUE-IF-NOT-FOUND])
6#
7# DESCRIPTION
8#
9#   Try to compile a small document using pspicture package, and run
10#   dvips on the generated dvi file. If successful execute
11#   ACTION-IF-FOUND, otherwise execute ACTION-IF-NOT-FOUND.
12#
13# COPYLEFT
14#
15#   Copyright (C) 2009 Peter Johansson
16#
17#   This file is part of the yat library, http://dev.thep.lu.se/yat
18#
19#   The yat library is free software; you can redistribute it and/or
20#   modify it under the terms of the GNU General Public License as
21#   published by the Free Software Foundation; either version 3 of the
22#   License, or (at your option) any later version.
23#
24#   The yat library is distributed in the hope that it will be useful,
25#   but WITHOUT ANY WARRANTY; without even the implied warranty of
26#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
27#   General Public License for more details.
28#
29#   You should have received a copy of the GNU General Public License
30#   along with yat. If not, see <http://www.gnu.org/licenses/>.
31#
32
33#
34# serial 0
35#
36
37AC_DEFUN([YAT_PROG_DVIPS_PSPICTURE],
38[
39AC_PREREQ([2.58])
40AC_REQUIRE([ACLTX_PROG_DVIPS])
41AC_MSG_CHECKING([for pspicture.ps])
42
43_ACLTX_TEST([
44\documentclass{article}
45\usepackage{pspicture}
46\begin{document}
47Test
48\end{document}
49],[have_pspicture], [NOCLEAN])
50
51AS_IF([test x$have_pspicture = xyes], [
52  cd conftest.dir/.acltx
53  YAT_RUN_LOG([$dvips conftest.dvi], [], [have_pspicture=no])
54  cd ../..
55])
56
57AC_MSG_RESULT([$have_pspicture])
58AS_IF([test x$have_pspicture = xyes], [$1], [$2])
59]) # YAT_PROG_DVIPS_PSPICTURE
Note: See TracBrowser for help on using the repository browser.