]>
Commit | Line | Data |
---|---|---|
e1d6a774 | 1 | dnl |
75bd9771 | 2 | dnl "$Id: cups-pdf.m4 7449 2008-04-14 18:27:53Z mike $" |
e1d6a774 | 3 | dnl |
4 | dnl PDF filter configuration stuff for the Common UNIX Printing System (CUPS). | |
5 | dnl | |
8b116e60 | 6 | dnl Copyright 2007-2009 by Apple Inc. |
e1d6a774 | 7 | dnl Copyright 2006 by Easy Software Products, all rights reserved. |
8 | dnl | |
9 | dnl These coded instructions, statements, and computer programs are the | |
bc44d920 | 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/". | |
e1d6a774 | 14 | dnl |
15 | ||
bf3816c7 | 16 | AC_ARG_WITH(pdftops, [ --with-pdftops set pdftops filter (gs,pdftops,none), default=pdftops ]) |
e1d6a774 | 17 | |
18 | PDFTOPS="" | |
bf3816c7 MS |
19 | CUPS_PDFTOPS="" |
20 | CUPS_GHOSTSCRIPT="" | |
e1d6a774 | 21 | |
bf3816c7 MS |
22 | case "x$with_pdftops" in |
23 | x) # Default/auto | |
24 | if test $uname != Darwin; then | |
25 | AC_PATH_PROG(CUPS_PDFTOPS, pdftops) | |
26 | if test "x$CUPS_PDFTOPS" != x; then | |
27 | AC_DEFINE(HAVE_PDFTOPS) | |
28 | PDFTOPS="pdftops" | |
29 | else | |
30 | AC_PATH_PROG(CUPS_GHOSTSCRIPT, gs) | |
31 | if test "x$CUPS_GHOSTSCRIPT" != x; then | |
32 | AC_DEFINE(HAVE_GHOSTSCRIPT) | |
33 | PDFTOPS="pdftops" | |
34 | fi | |
35 | fi | |
ae71f5de | 36 | fi |
bf3816c7 | 37 | ;; |
91c84a35 | 38 | |
bf3816c7 | 39 | xgs) |
ae71f5de MS |
40 | AC_PATH_PROG(CUPS_GHOSTSCRIPT, gs) |
41 | if test "x$CUPS_GHOSTSCRIPT" != x; then | |
42 | AC_DEFINE(HAVE_GHOSTSCRIPT) | |
bf3816c7 MS |
43 | PDFTOPS="pdftops" |
44 | else | |
45 | AC_MSG_ERROR(Unable to find gs program!) | |
46 | exit 1 | |
ae71f5de | 47 | fi |
bf3816c7 | 48 | ;; |
ae71f5de | 49 | |
bf3816c7 MS |
50 | xpdftops) |
51 | AC_PATH_PROG(CUPS_PDFTOPS, pdftops) | |
52 | if test "x$CUPS_PDFTOPS" != x; then | |
53 | AC_DEFINE(HAVE_PDFTOPS) | |
54 | PDFTOPS="pdftops" | |
55 | else | |
56 | AC_MSG_ERROR(Unable to find pdftops program!) | |
91c84a35 | 57 | exit 1 |
e1d6a774 | 58 | fi |
bf3816c7 MS |
59 | ;; |
60 | esac | |
e1d6a774 | 61 | |
bf3816c7 MS |
62 | AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS") |
63 | AC_DEFINE_UNQUOTED(CUPS_GHOSTSCRIPT, "$CUPS_GHOSTSCRIPT") | |
e1d6a774 | 64 | AC_SUBST(PDFTOPS) |
65 | ||
66 | dnl | |
75bd9771 | 67 | dnl End of "$Id: cups-pdf.m4 7449 2008-04-14 18:27:53Z mike $". |
e1d6a774 | 68 | dnl |