2 dnl "$Id: cups-scripting.m4 11324 2013-10-04 03:11:42Z msweet $"
4 dnl Scripting configuration stuff for CUPS.
6 dnl Copyright 2007-2010 by Apple Inc.
7 dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
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/".
17 AC_ARG_WITH(java, [ --with-java set Java interpreter for web interfaces ],
21 if test "x$CUPS_JAVA" = x; then
22 AC_PATH_PROG(JAVA,java)
26 AC_DEFINE_UNQUOTED(CUPS_JAVA, "$CUPS_JAVA")
28 if test "x$CUPS_JAVA" != x; then
33 AC_ARG_WITH(perl, [ --with-perl set Perl interpreter for web interfaces ],
37 if test "x$CUPS_PERL" = x; then
38 AC_PATH_PROG(PERL,perl)
42 AC_DEFINE_UNQUOTED(CUPS_PERL, "$CUPS_PERL")
44 if test "x$CUPS_PERL" != x; then
49 AC_ARG_WITH(php, [ --with-php set PHP interpreter for web interfaces ],
53 if test "x$CUPS_PHP" = x; then
54 AC_PATH_PROG(PHPCGI,php-cgi)
55 if test "x$PHPCGI" = x; then
63 AC_DEFINE_UNQUOTED(CUPS_PHP, "$CUPS_PHP")
65 if test "x$CUPS_PHP" = x; then
71 dnl Do we have Python?
72 AC_ARG_WITH(python, [ --with-python set Python interpreter for web interfaces ],
73 CUPS_PYTHON="$withval",
76 if test "x$CUPS_PYTHON" = x; then
77 AC_PATH_PROG(PYTHON,python)
81 AC_DEFINE_UNQUOTED(CUPS_PYTHON, "$CUPS_PYTHON")
83 if test "x$CUPS_PYTHON" != x; then
84 AC_DEFINE(HAVE_PYTHON)
88 dnl End of "$Id: cups-scripting.m4 11324 2013-10-04 03:11:42Z msweet $".