2 dnl "$Id: cups-scripting.m4 5466 2006-04-26 19:52:27Z mike $"
4 dnl Scripting configuration stuff for the Common UNIX Printing System (CUPS).
6 dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
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
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
20 dnl Voice: (301) 373-9600
21 dnl EMail: cups-info@cups.org
22 dnl WWW: http://www.cups.org
26 AC_ARG_WITH(java, [ --with-java set Java interpreter for web interfaces ],
30 if test "x$CUPS_JAVA" = x; then
31 AC_PATH_PROG(JAVA,java)
35 AC_DEFINE_UNQUOTED(CUPS_JAVA, "$CUPS_JAVA")
37 if test "x$CUPS_JAVA" != x; then
42 AC_ARG_WITH(perl, [ --with-perl set Perl interpreter for web interfaces ],
46 if test "x$CUPS_PERL" = x; then
47 AC_PATH_PROG(PERL,perl)
51 AC_DEFINE_UNQUOTED(CUPS_PERL, "$CUPS_PERL")
53 if test "x$CUPS_PERL" != x; then
58 AC_ARG_WITH(php, [ --with-php set PHP interpreter for web interfaces ],
62 if test "x$CUPS_PHP" = x; then
67 AC_DEFINE_UNQUOTED(CUPS_PHP, "$CUPS_PHP")
69 if test "x$CUPS_PHP" = x; then
76 if test "x$CUPS_PHP" != xno; then
77 AC_PATH_PROG(PHPCONFIG, php-config)
79 if test "x$PHPCONFIG" != x; then
80 PHPDIR="scripting/php"
86 dnl Do we have Python?
87 AC_ARG_WITH(python, [ --with-python set Python interpreter for web interfaces ],
88 CUPS_PYTHON="$withval",
91 if test "x$CUPS_PYTHON" = x; then
92 AC_PATH_PROG(PYTHON,python)
96 AC_DEFINE_UNQUOTED(CUPS_PYTHON, "$CUPS_PYTHON")
98 if test "x$CUPS_PYTHON" != x; then
99 AC_DEFINE(HAVE_PYTHON)
103 dnl End of "$Id: cups-scripting.m4 5466 2006-04-26 19:52:27Z mike $".