]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | dnl |
2 | dnl "$Id: cups-scripting.m4 4494 2005-02-18 02:18:11Z mike $" | |
3 | dnl | |
4 | dnl Scripting configuration stuff for the Common UNIX Printing System (CUPS). | |
5 | dnl | |
6 | dnl Copyright 1997-2005 by Easy Software Products, all rights reserved. | |
7 | dnl | |
8 | dnl These coded instructions, statements, and computer programs are the | |
9 | dnl property of Easy Software Products and are protected by Federal | |
10 | dnl copyright law. Distribution and use rights are outlined in the file | |
11 | dnl "LICENSE.txt" which should have been included with this file. If this | |
12 | dnl file is missing or damaged please contact Easy Software Products | |
13 | dnl at: | |
14 | dnl | |
15 | dnl Attn: CUPS Licensing Information | |
16 | dnl Easy Software Products | |
17 | dnl 44141 Airport View Drive, Suite 204 | |
18 | dnl Hollywood, Maryland 20636 USA | |
19 | dnl | |
20 | dnl Voice: (301) 373-9600 | |
21 | dnl EMail: cups-info@cups.org | |
22 | dnl WWW: http://www.cups.org | |
23 | dnl | |
24 | ||
25 | dnl Do we have Java? | |
26 | AC_ARG_WITH(java, [ --with-java set Java interpreter for web interfaces ], | |
27 | CUPS_JAVA="$withval", | |
28 | CUPS_JAVA="") | |
29 | ||
30 | if test "x$CUPS_JAVA" = x; then | |
31 | AC_PATH_PROG(JAVA,java) | |
32 | CUPS_JAVA="$JAVA" | |
33 | fi | |
34 | ||
35 | AC_DEFINE_UNQUOTED(CUPS_JAVA, "$CUPS_JAVA") | |
36 | ||
37 | if test "x$CUPS_JAVA" != x; then | |
38 | AC_DEFINE(HAVE_JAVA) | |
39 | fi | |
40 | ||
41 | dnl Do we have Perl? | |
42 | AC_ARG_WITH(perl, [ --with-perl set Perl interpreter for web interfaces ], | |
43 | CUPS_PERL="$withval", | |
44 | CUPS_PERL="") | |
45 | ||
46 | if test "x$CUPS_PERL" = x; then | |
47 | AC_PATH_PROG(PERL,perl) | |
48 | CUPS_PERL="$PERL" | |
49 | fi | |
50 | ||
51 | AC_DEFINE_UNQUOTED(CUPS_PERL, "$CUPS_PERL") | |
52 | ||
53 | if test "x$CUPS_PERL" != x; then | |
54 | AC_DEFINE(HAVE_PERL) | |
55 | fi | |
56 | ||
57 | dnl Do we have PHP? | |
58 | AC_ARG_WITH(php, [ --with-php set PHP interpreter for web interfaces ], | |
59 | CUPS_PHP="$withval", | |
60 | CUPS_PHP="") | |
61 | ||
62 | if test "x$CUPS_PHP" = x; then | |
63 | AC_PATH_PROG(PHP,php) | |
64 | CUPS_PHP="$PHP" | |
65 | fi | |
66 | ||
67 | AC_DEFINE_UNQUOTED(CUPS_PHP, "$CUPS_PHP") | |
68 | ||
69 | if test "x$CUPS_PHP" != x; then | |
70 | AC_DEFINE(HAVE_PHP) | |
71 | fi | |
72 | ||
73 | dnl Do we have Python? | |
74 | AC_ARG_WITH(python, [ --with-python set Python interpreter for web interfaces ], | |
75 | CUPS_PYTHON="$withval", | |
76 | CUPS_PYTHON="") | |
77 | ||
78 | if test "x$CUPS_PYTHON" = x; then | |
79 | AC_PATH_PROG(PYTHON,python) | |
80 | CUPS_PYTHON="$PYTHON" | |
81 | fi | |
82 | ||
83 | AC_DEFINE_UNQUOTED(CUPS_PYTHON, "$CUPS_PYTHON") | |
84 | ||
85 | if test "x$CUPS_PYTHON" != x; then | |
86 | AC_DEFINE(HAVE_PYTHON) | |
87 | fi | |
88 | ||
89 | dnl | |
90 | dnl End of "$Id: cups-scripting.m4 4494 2005-02-18 02:18:11Z mike $". | |
91 | dnl |