]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-scripting.m4
Fix source file header text duplication text duplication.
[thirdparty/cups.git] / config-scripts / cups-scripting.m4
CommitLineData
ef416fc2 1dnl
503b54c9 2dnl Scripting configuration stuff for CUPS.
ef416fc2 3dnl
503b54c9
MS
4dnl Copyright 2007-2010 by Apple Inc.
5dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 6dnl
503b54c9
MS
7dnl These coded instructions, statements, and computer programs are the
8dnl property of Apple Inc. and are protected by Federal copyright
9dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
10dnl which should have been included with this file. If this file is
57b7b66b 11dnl missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 12dnl
13
14dnl Do we have Java?
15AC_ARG_WITH(java, [ --with-java set Java interpreter for web interfaces ],
16 CUPS_JAVA="$withval",
17 CUPS_JAVA="")
18
19if test "x$CUPS_JAVA" = x; then
20 AC_PATH_PROG(JAVA,java)
21 CUPS_JAVA="$JAVA"
22fi
23
24AC_DEFINE_UNQUOTED(CUPS_JAVA, "$CUPS_JAVA")
25
26if test "x$CUPS_JAVA" != x; then
27 AC_DEFINE(HAVE_JAVA)
28fi
29
30dnl Do we have Perl?
31AC_ARG_WITH(perl, [ --with-perl set Perl interpreter for web interfaces ],
32 CUPS_PERL="$withval",
33 CUPS_PERL="")
34
35if test "x$CUPS_PERL" = x; then
36 AC_PATH_PROG(PERL,perl)
37 CUPS_PERL="$PERL"
38fi
39
40AC_DEFINE_UNQUOTED(CUPS_PERL, "$CUPS_PERL")
41
42if test "x$CUPS_PERL" != x; then
43 AC_DEFINE(HAVE_PERL)
44fi
45
46dnl Do we have PHP?
47AC_ARG_WITH(php, [ --with-php set PHP interpreter for web interfaces ],
48 CUPS_PHP="$withval",
49 CUPS_PHP="")
50
51if test "x$CUPS_PHP" = x; then
49d87452
MS
52 AC_PATH_PROG(PHPCGI,php-cgi)
53 if test "x$PHPCGI" = x; then
54 AC_PATH_PROG(PHP,php)
55 CUPS_PHP="$PHP"
56 else
57 CUPS_PHP="$PHPCGI"
58 fi
ef416fc2 59fi
60
61AC_DEFINE_UNQUOTED(CUPS_PHP, "$CUPS_PHP")
62
b423cd4c 63if test "x$CUPS_PHP" = x; then
64 CUPS_PHP="no"
65else
ef416fc2 66 AC_DEFINE(HAVE_PHP)
67fi
68
69dnl Do we have Python?
70AC_ARG_WITH(python, [ --with-python set Python interpreter for web interfaces ],
71 CUPS_PYTHON="$withval",
72 CUPS_PYTHON="")
73
74if test "x$CUPS_PYTHON" = x; then
75 AC_PATH_PROG(PYTHON,python)
76 CUPS_PYTHON="$PYTHON"
77fi
78
79AC_DEFINE_UNQUOTED(CUPS_PYTHON, "$CUPS_PYTHON")
80
81if test "x$CUPS_PYTHON" != x; then
82 AC_DEFINE(HAVE_PYTHON)
83fi