source: trunk/m4/acltx_prog_dvips.m4 @ 1998

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

Merged patch release 0.5.4 to the trunk. Delta 0.5.4 - 0.5.3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Date
File size: 1.7 KB
Line 
1# ===========================================================================
2#            http://autoconf-archive.cryp.to/acltx_prog_dvips.html
3# ===========================================================================
4#
5# SYNOPSIS
6#
7#   ACLTX_PROG_DVIPS([ACTION-IF-NOT-FOUND])
8#
9# DESCRIPTION
10#
11#   This macro find a dvips application and set the variable dvips to the
12#   name of the application or to no if not found if ACTION-IF-NOT-FOUND is
13#   not specified, configure fail when then application is not found.
14#
15#   It is possible to set manually the program to use using dvips=...
16#
17# LICENSE
18#
19#   Copyright (c) 2008 Boretti Mathieu <boretti@eig.unige.ch>
20#
21#   This library is free software; you can redistribute it and/or modify it
22#   under the terms of the GNU Lesser General Public License as published by
23#   the Free Software Foundation; either version 2.1 of the License, or (at
24#   your option) any later version.
25#
26#   This library is distributed in the hope that it will be useful, but
27#   WITHOUT ANY WARRANTY; without even the implied warranty of
28#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
29#   General Public License for more details.
30#
31#   You should have received a copy of the GNU Lesser General Public License
32#   along with this library. If not, see <http://www.gnu.org/licenses/>.
33
34AC_DEFUN([ACLTX_PROG_DVIPS],[
35AC_ARG_VAR(dvips,[specify default dvips application])
36if test "$ac_cv_env_dvips_set" = "set" ; then
37    AC_MSG_CHECKING([Checking for dvips])
38    dvips="$ac_cv_env_dvips_value";
39    AC_MSG_RESULT([$dvips (from parameter)])
40else
41    AC_CHECK_PROGS(dvips,dvips,no)
42fi
43if test $dvips = "no" ;
44then
45  ifelse($#,0,[AC_MSG_ERROR([Unable to find the dvips application])],
46        $1)
47fi
48])
Note: See TracBrowser for help on using the repository browser.