]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | dnl |
c07d5b2d | 2 | dnl "$Id: cups-scripting.m4 177 2006-06-21 00:20:03Z jlovell $" |
ef416fc2 | 3 | dnl |
4 | dnl Scripting configuration stuff for the Common UNIX Printing System (CUPS). | |
5 | dnl | |
b423cd4c | 6 | dnl Copyright 1997-2006 by Easy Software Products, all rights reserved. |
ef416fc2 | 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 | ||
b423cd4c | 69 | if test "x$CUPS_PHP" = x; then |
70 | CUPS_PHP="no" | |
71 | else | |
ef416fc2 | 72 | AC_DEFINE(HAVE_PHP) |
73 | fi | |
74 | ||
b423cd4c | 75 | PHPDIR="" |
76 | if test "x$CUPS_PHP" != xno; then | |
77 | AC_PATH_PROG(PHPCONFIG, php-config) | |
78 | ||
79 | if test "x$PHPCONFIG" != x; then | |
80 | PHPDIR="scripting/php" | |
81 | fi | |
82 | fi | |
83 | ||
84 | AC_SUBST(PHPDIR) | |
85 | ||
ef416fc2 | 86 | dnl Do we have Python? |
87 | AC_ARG_WITH(python, [ --with-python set Python interpreter for web interfaces ], | |
88 | CUPS_PYTHON="$withval", | |
89 | CUPS_PYTHON="") | |
90 | ||
91 | if test "x$CUPS_PYTHON" = x; then | |
92 | AC_PATH_PROG(PYTHON,python) | |
93 | CUPS_PYTHON="$PYTHON" | |
94 | fi | |
95 | ||
96 | AC_DEFINE_UNQUOTED(CUPS_PYTHON, "$CUPS_PYTHON") | |
97 | ||
98 | if test "x$CUPS_PYTHON" != x; then | |
99 | AC_DEFINE(HAVE_PYTHON) | |
100 | fi | |
101 | ||
102 | dnl | |
c07d5b2d | 103 | dnl End of "$Id: cups-scripting.m4 177 2006-06-21 00:20:03Z jlovell $". |
ef416fc2 | 104 | dnl |