]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-pdf.m4
Merge changes from CUPS 1.4svn-r7696.
[thirdparty/cups.git] / config-scripts / cups-pdf.m4
CommitLineData
e1d6a774 1dnl
75bd9771 2dnl "$Id: cups-pdf.m4 7449 2008-04-14 18:27:53Z mike $"
e1d6a774 3dnl
4dnl PDF filter configuration stuff for the Common UNIX Printing System (CUPS).
5dnl
ae71f5de 6dnl Copyright 2007-2008 by Apple Inc.
e1d6a774 7dnl Copyright 2006 by Easy Software Products, all rights reserved.
8dnl
9dnl These coded instructions, statements, and computer programs are the
bc44d920 10dnl property of Apple Inc. and are protected by Federal copyright
11dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
12dnl which should have been included with this file. If this file is
13dnl file is missing or damaged, see the license at "http://www.cups.org/".
e1d6a774 14dnl
15
16AC_ARG_ENABLE(pdftops, [ --enable-pdftops build pdftops filter, default=auto ])
17
18PDFTOPS=""
19
20if test "x$enable_pdftops" != xno; then
91c84a35 21 AC_PATH_PROG(CUPS_PDFTOPS, pdftops)
ae71f5de
MS
22 if test "x$CUPS_PDFTOPS" != x; then
23 AC_DEFINE(HAVE_PDFTOPS)
24 fi
91c84a35
MS
25 AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS")
26
ae71f5de
MS
27 AC_PATH_PROG(CUPS_GHOSTSCRIPT, gs)
28 if test "x$CUPS_GHOSTSCRIPT" != x; then
29 AC_DEFINE(HAVE_GHOSTSCRIPT)
30 fi
31 AC_DEFINE_UNQUOTED(CUPS_GHOSTSCRIPT, "$CUPS_GHOSTSCRIPT")
32
33 if test "x$CUPS_PDFTOPS" != x -o "x$CUPS_GHOSTSCRIPT" != x; then
91c84a35
MS
34 AC_MSG_CHECKING(whether to build pdftops filter)
35 if test x$enable_pdftops = xyes -o $uname != Darwin; then
36 PDFTOPS="pdftops"
37 AC_MSG_RESULT(yes)
38 else
39 AC_MSG_RESULT(no)
40 fi
41 elif test x$enable_pdftops = xyes; then
ae71f5de 42 AC_MSG_ERROR(Unable to find pdftops or gs programs!)
91c84a35 43 exit 1
e1d6a774 44 fi
45fi
46
47AC_SUBST(PDFTOPS)
48
49dnl
75bd9771 50dnl End of "$Id: cups-pdf.m4 7449 2008-04-14 18:27:53Z mike $".
e1d6a774 51dnl