]> git.ipfire.org Git - thirdparty/cups.git/blob - config-scripts/cups-pdf.m4
Remove old files.
[thirdparty/cups.git] / config-scripts / cups-pdf.m4
1 dnl
2 dnl "$Id: cups-pdf.m4 6649 2007-07-11 21:46:42Z mike $"
3 dnl
4 dnl PDF filter configuration stuff for the Common UNIX Printing System (CUPS).
5 dnl
6 dnl Copyright 2007-2008 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_ENABLE(pdftops, [ --enable-pdftops build pdftops filter, default=auto ])
17
18 PDFTOPS=""
19
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)
24 fi
25 AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS")
26
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
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
42 AC_MSG_ERROR(Unable to find pdftops or gs programs!)
43 exit 1
44 fi
45 fi
46
47 AC_SUBST(PDFTOPS)
48
49 dnl
50 dnl End of "$Id: cups-pdf.m4 6649 2007-07-11 21:46:42Z mike $".
51 dnl