~ubuntu-branches/debian/experimental/cups-filters/experimental

« back to all changes in this revision

Viewing changes to config-scripts/cups-pdf.m4

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2012-07-22 18:57:32 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20120722185732-26kkte5p1lth3rt5
Tags: 1.0.20-0bzr1
* New upstream release
   - pdftops: Added another workaround for Kyocera printers: Some
     models get very slow on images which request interpolation,
     so now we remove the image interpolation requests by additional
     PostScript code only inserted for Kyocera printers (LP: #1026974).
   - Made the Poppler-based filters pdftopdf and pdftoopvp build with
     both Poppler 0.18.x and 0.20.x (Upstream bug #1055).
   - Fixes according to Coverity scan results (Upstream bug #1054).
   - Switched build system to autotools. This especially fixes several
     build problems in Gentoo. Also build-tested with CUPS 1.6.0b1.
   - Fixes for compatibility with clang/gcc-4.7.
   - textonly: Filter did not work as a pipe with copies=1 (Upstream bug
     #1032).
   - texttopdf: Avoid trimming the results of FcFontSort(), as this may
     miss some reasonable candidates under certain circumstances. BTW,
     fix passing a non-pointer as a pointer to "result" (Closes: #670055).
   - Corrected documentation. The option for the maximum image rendering
     resolution in pdftops is "pdftops-max-image-resolution", not
     "pdftops-max-image-resolution-default".
* debian/patches/fcfontsort-no-trim.patch: Removed, fixed upstream.
* debian/rules: Updated options for ./configure and make for the new autotools
  build system.
* debian/watch: Switched to bz2 upstream packages.
* debian/rules, debian/copyright, debian/cups-filters.docs: Updated for
  renamed documentation files.
* debian/control, debian/libfontembed1.install,
  debian/libfontembed-dev.install: Added new binary packages for libfontembed.
* debian/copyright: Updated for recent file additions, and rearrangement of
  directories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl
2
 
dnl "$Id$"
3
 
dnl
4
 
dnl   PDF filter configuration stuff for OpenPrinting CUPS Filters.
5
 
dnl
6
 
dnl   Copyright 2007-2011 by Apple Inc.
7
 
dnl   Copyright 2006 by Easy Software Products, all rights reserved.
8
 
dnl
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/".
14
 
dnl
15
 
 
16
 
AC_ARG_WITH(pdftops-renderer, [  --with-pdftops-renderer set default renderer for pdftops filter (gs,pdftops), default=gs ])
17
 
AC_ARG_WITH(pdftops-maxres, [  --with-pdftops-maxres   set default maximum image rendering resolution for pdftops filter (0, 75, 150, 300, 600, 1200, 2400, 4800, 90, 180, 360, 720, 1440, 2880, 5760, unlimited), default=1440 ])
18
 
AC_ARG_WITH(ghostscript, [  --with-ghostscript      set ghostscript path for pdftops filter (gs,/path/to/gs,none), default=gs ])
19
 
AC_ARG_WITH(poppler-pdftops, [  --with-poppler-pdftops  set Poppler pdftops path for pdftops filter (pdftops,/path/to/pdftops,none), default=pdftops ])
20
 
 
21
 
CUPS_PDFTOPS_RENDERER=""
22
 
CUPS_PDFTOPS_MAX_RESOLUTION=""
23
 
CUPS_POPPLER_PDFTOPS=""
24
 
CUPS_GHOSTSCRIPT=""
25
 
 
26
 
case "x$with_ghostscript" in
27
 
        x) # Default/auto
28
 
        AC_PATH_PROG(CUPS_GHOSTSCRIPT, gs)
29
 
        if test "x$CUPS_GHOSTSCRIPT" != x; then
30
 
                AC_DEFINE(HAVE_GHOSTSCRIPT)
31
 
        fi
32
 
        ;;
33
 
 
34
 
        xgs)
35
 
        AC_PATH_PROG(CUPS_GHOSTSCRIPT, gs)
36
 
        if test "x$CUPS_GHOSTSCRIPT" != x; then
37
 
                AC_DEFINE(HAVE_GHOSTSCRIPT)
38
 
        else
39
 
                AC_MSG_WARN(Unable to find gs program!)
40
 
        fi
41
 
        ;;
42
 
 
43
 
        x/*/gs) # Use /path/to/gs without any check:
44
 
        CUPS_GHOSTSCRIPT="$with_ghostscript"
45
 
        AC_DEFINE(HAVE_GHOSTSCRIPT)
46
 
        ;;
47
 
 
48
 
        xno) # --without-ghostscript
49
 
        ;;
50
 
 
51
 
        *) # Invalid with_ghostscript value
52
 
        AC_MSG_ERROR(Invalid with-ghostscript value!)
53
 
        exit 1
54
 
        ;;
55
 
esac
56
 
 
57
 
case "x$with_poppler_pdftops" in
58
 
        x) # Default/auto
59
 
        AC_PATH_PROG(CUPS_POPPLER_PDFTOPS, pdftops)
60
 
        if test "x$CUPS_POPPLER_PDFTOPS" != x; then
61
 
                AC_DEFINE(HAVE_POPPLER_PDFTOPS)
62
 
        fi
63
 
        ;;
64
 
 
65
 
        xpdftops)
66
 
        AC_PATH_PROG(CUPS_POPPLER_PDFTOPS, pdftops)
67
 
        if test "x$CUPS_POPPLER_PDFTOPS" != x; then
68
 
                AC_DEFINE(HAVE_POPPLER_PDFTOPS)
69
 
        else
70
 
                AC_MSG_WARN(Unable to find Poppler pdftops program!)
71
 
        fi
72
 
        ;;
73
 
 
74
 
        x/*/pdftops) # Use /path/to/pdftops without any check:
75
 
        CUPS_POPPLER_PDFTOPS="$with_poppler_pdftops"
76
 
        AC_DEFINE(HAVE_POPPLER_PDFTOPS)
77
 
        ;;
78
 
 
79
 
        xno) # --without-poppler-pdftops
80
 
        ;;
81
 
 
82
 
        *) # Invalid with_poppler-pdftops value
83
 
        echo "$with_poppler_pdftops"
84
 
        AC_MSG_ERROR(Invalid with-poppler-pdftops value!)
85
 
        exit 1
86
 
        ;;
87
 
esac
88
 
 
89
 
if test "x$CUPS_POPPLER_PDFTOPS" != x; then
90
 
        AC_MSG_CHECKING(whether Poppler pdftops supports -origpagesizes)
91
 
        if ($CUPS_POPPLER_PDFTOPS -h 2>&1 | grep -q -- -origpagesizes); then
92
 
                AC_MSG_RESULT(yes)
93
 
                AC_DEFINE(HAVE_POPPLER_PDFTOPS_WITH_ORIGPAGESIZES)
94
 
        else
95
 
                AC_MSG_RESULT(no)
96
 
        fi
97
 
 
98
 
        AC_MSG_CHECKING(whether Poppler pdftops supports -r)
99
 
        if ($CUPS_POPPLER_PDFTOPS -h 2>&1 | grep -q -- '-r '); then
100
 
                AC_MSG_RESULT(yes)
101
 
                AC_DEFINE(HAVE_POPPLER_PDFTOPS_WITH_RESOLUTION)
102
 
        else
103
 
                AC_MSG_RESULT(no)
104
 
        fi
105
 
fi
106
 
if test "x$CUPS_GHOSTSCRIPT" != x; then
107
 
        AC_MSG_CHECKING(whether gs supports the ps2write device)
108
 
        if ($CUPS_GHOSTSCRIPT -h 2>&1 | grep -q ps2write); then
109
 
                AC_MSG_RESULT(yes)
110
 
                AC_DEFINE(HAVE_GHOSTSCRIPT_PS2WRITE)
111
 
        else
112
 
                AC_MSG_RESULT(no)
113
 
        fi
114
 
fi
115
 
 
116
 
case "x$with_pdftops_renderer" in
117
 
        x|xgs) # gs
118
 
        CUPS_PDFTOPS_RENDERER=GS
119
 
        if test "x$CUPS_GHOSTSCRIPT" = x; then
120
 
                AC_MSG_WARN(Default renderer Ghostscript is not available!)
121
 
        fi
122
 
        ;;
123
 
 
124
 
        xpdftops) # pdftops
125
 
        CUPS_PDFTOPS_RENDERER=PDFTOPS
126
 
        if test "x$CUPS_POPPLER_PDFTOPS" = x; then
127
 
                AC_MSG_WARN(Default renderer Poppler pdftops is not available!)
128
 
        fi
129
 
        ;;
130
 
 
131
 
        *) # Invalid with_pdftops-renderer value
132
 
        AC_MSG_ERROR(Invalid with-pdftops-renderer value!)
133
 
        exit 1
134
 
        ;;
135
 
esac
136
 
 
137
 
case "x$with_pdftops_maxres" in
138
 
 
139
 
        x)
140
 
        CUPS_PDFTOPS_MAXRES=1440
141
 
        ;;
142
 
 
143
 
        x75|x150|x300|x600|x1200|x2400|x4800|x90|x180|x360|x720|x1440|x2880|x5760)
144
 
        CUPS_PDFTOPS_MAXRES=$with_pdftops_maxres
145
 
        ;;
146
 
 
147
 
        x0|xunlimited|xno)
148
 
        CUPS_PDFTOPS_MAXRES=0
149
 
        ;;
150
 
 
151
 
        *) # Invalid with_pdftops-renderer value
152
 
        AC_MSG_ERROR(Invalid with-pdftops-maxres value!)
153
 
        exit 1
154
 
        ;;
155
 
esac
156
 
 
157
 
AC_DEFINE_UNQUOTED(CUPS_PDFTOPS_RENDERER, $CUPS_PDFTOPS_RENDERER)
158
 
AC_DEFINE_UNQUOTED(CUPS_PDFTOPS_MAX_RESOLUTION, $CUPS_PDFTOPS_MAXRES)
159
 
AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS")
160
 
AC_DEFINE_UNQUOTED(CUPS_GHOSTSCRIPT, "$CUPS_GHOSTSCRIPT")
161
 
 
162
 
dnl
163
 
dnl End of "$Id$".
164
 
dnl