Download M4 Source Macro Index Page

ac_prog_jpeg2ps

Synopsis

AC_PROG_JPEG2PS

Description

This macro test if jpeg2ps is installed. If jpeg2ps is installed, it set $jpeg2ps to the right value

Author

Mathieu Boretti <boretti@bss-network.com>

Last Modified

2005-01-21

M4 Source Code

AC_DEFUN([AC_PROG_JPEG2PS],[
AC_CHECK_PROGS(jpeg2ps,[jpeg2ps],no)
export jpeg2ps;
if test $jpeg2ps = "no" ;
then
        AC_MSG_ERROR([Unable to find a jpeg2ps application]);
fi
AC_SUBST(jpeg2ps)
])