Debian Codegraph @

check_printer_health/check_printer_health-1.1.0.2/configure.ac

raw
1 dnl Process this file with autoconf to produce a configure script.
2 AC_REVISION ($Revision: 1.150 $)
3 AC_PREREQ(2.58)
4 AC_INIT(check_printer_health,1.1.0.2)
5 AM_INIT_AUTOMAKE([1.9 tar-pax])
6 AM_MAINTAINER_MODE([disable])
7 AC_CANONICAL_HOST
8
9 RELEASE=1
10 AC_SUBST(RELEASE)
11
12 AC_PREFIX_DEFAULT(/usr/local/nagios)
13
14 dnl Figure out how to invoke "install" and what install options to use.
15 AC_PROG_INSTALL
16 AC_SUBST(INSTALL)
17
18 AC_PROG_MAKE_SET
19 AC_PROG_AWK
20
21 WARRANTY="This plugin comes with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugin under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n"
22 AC_SUBST(WARRANTY)
23
24 SUPPORT="Send email to [email protected] if you have questions\nregarding use of this software.\nPlease include version information with all correspondence (when possible,\nuse output from the --version option of the plugin itself).\n"
25 AC_SUBST(SUPPORT)
26
27 AC_ARG_WITH(nagios_user,
28 ACX_HELP_STRING([--with-nagios-user=USER],
29 [set user name to run nagios]),
30 with_nagios_user=$withval,
31 with_nagios_user=nagios)
32 AC_ARG_WITH(nagios_group,
33 ACX_HELP_STRING([--with-nagios-group=GROUP],
34 [set group name to run nagios]),
35 with_nagios_group=$withval,
36 with_nagios_group=nagios)
37 AC_SUBST(with_nagios_user)
38 AC_SUBST(with_nagios_group)
39 INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group"
40 AC_SUBST(INSTALL_OPTS)
41
42 EXTRAS=
43 dnl PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH
44
45 dnl Checks for programs.
46 AC_PATH_PROG(SH,sh)
47 AC_PATH_PROG(PERL,perl)
48
49 dnl allow them to override the path of perl
50 AC_ARG_WITH(perl,
51 ACX_HELP_STRING([--with-perl=PATH],
52 [sets path to perl executable]),
53 with_perl=$withval,with_perl=$PERL)
54 AC_SUBST(PERL, $with_perl)
55
56 AC_ARG_ENABLE([standalone],
57 AS_HELP_STRING([--disable-standalone], [Disable feature standalone]))
58 AM_CONDITIONAL([DISABLE_STANDALONE], [test "$enable_standalone" = "no"])
59
60 AC_OUTPUT(Makefile plugins-scripts/Makefile plugins-scripts/subst)
61
62 ACX_FEATURE([with],[perl])
63 ACX_FEATURE([with],[nagios-user])
64 ACX_FEATURE([with],[nagios-group])
65 ACX_FEATURE([disable],[standalone], $disable_standalone)