2 dnl "$Id: cups-pdf.m4 6649 2007-07-11 21:46:42Z mike $"
4 dnl PDF filter configuration stuff for the Common UNIX Printing System (CUPS).
6 dnl Copyright 2007-2008 by Apple Inc.
7 dnl Copyright 2006 by Easy Software Products, all rights reserved.
9 dnl These coded instructions, statements, and computer programs are the
10 dnl property of Apple Inc. and are protected by Federal copyright
11 dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 dnl which should have been included with this file. If this file is
13 dnl file is missing or damaged, see the license at "http://www.cups.org/".
16 AC_ARG_ENABLE(pdftops, [ --enable-pdftops build pdftops filter, default=auto ])
20 if test "x$enable_pdftops" != xno; then
21 AC_PATH_PROG(CUPS_PDFTOPS, pdftops)
22 if test "x$CUPS_PDFTOPS" != x; then
23 AC_DEFINE(HAVE_PDFTOPS)
25 AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS")
27 AC_PATH_PROG(CUPS_GHOSTSCRIPT, gs)
28 if test "x$CUPS_GHOSTSCRIPT" != x; then
29 AC_DEFINE(HAVE_GHOSTSCRIPT)
31 AC_DEFINE_UNQUOTED(CUPS_GHOSTSCRIPT, "$CUPS_GHOSTSCRIPT")
33 if test "x$CUPS_PDFTOPS" != x -o "x$CUPS_GHOSTSCRIPT" != x; then
34 AC_MSG_CHECKING(whether to build pdftops filter)
35 if test x$enable_pdftops = xyes -o $uname != Darwin; then
41 elif test x$enable_pdftops = xyes; then
42 AC_MSG_ERROR(Unable to find pdftops or gs programs!)
50 dnl End of "$Id: cups-pdf.m4 6649 2007-07-11 21:46:42Z mike $".