diff options
-rw-r--r-- | configure.in | 6 | ||||
-rw-r--r-- | plugins-root/Makefile.am | 11 |
2 files changed, 7 insertions, 10 deletions
diff --git a/configure.in b/configure.in index 1313b2f..d0a2a52 100644 --- a/configure.in +++ b/configure.in | |||
@@ -84,6 +84,7 @@ AC_ARG_WITH(trusted_path, | |||
84 | AC_SUBST(with_trusted_path) | 84 | AC_SUBST(with_trusted_path) |
85 | 85 | ||
86 | EXTRAS= | 86 | EXTRAS= |
87 | EXTRAS_ROOT=pst3 | ||
87 | dnl PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH | 88 | dnl PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH |
88 | 89 | ||
89 | LDFLAGS="$LDFLAGS -L." | 90 | LDFLAGS="$LDFLAGS -L." |
@@ -656,8 +657,6 @@ AC_ARG_WITH(ps_varlist, | |||
656 | [Variable list for sscanf of 'ps' output]), | 657 | [Variable list for sscanf of 'ps' output]), |
657 | PS_VARLIST=$withval) | 658 | PS_VARLIST=$withval) |
658 | 659 | ||
659 | AM_CONDITIONAL(WANT_PST3, false) | ||
660 | |||
661 | if test -n "$PS_COMMAND" && test -n "$PS_FORMAT" && test -n "$PS_COLS" && test -n "$PS_VARLIST"; then | 660 | if test -n "$PS_COMMAND" && test -n "$PS_FORMAT" && test -n "$PS_COLS" && test -n "$PS_VARLIST"; then |
662 | ac_cv_ps_command="$PS_COMMAND" | 661 | ac_cv_ps_command="$PS_COMMAND" |
663 | ac_cv_ps_format="$PS_FORMAT" | 662 | ac_cv_ps_format="$PS_FORMAT" |
@@ -688,7 +687,7 @@ elif test "$ac_cv_uname_s" = "SunOS"; then | |||
688 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" | 687 | ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]" |
689 | ac_cv_ps_cols=8 | 688 | ac_cv_ps_cols=8 |
690 | AC_MSG_RESULT([using nagios-plugins internal ps for solaris]) | 689 | AC_MSG_RESULT([using nagios-plugins internal ps for solaris]) |
691 | AM_CONDITIONAL(WANT_PST3, true) | 690 | EXTRAS_ROOT="$EXTRAS_ROOT pst3" |
692 | 691 | ||
693 | dnl Some gnu/linux systems (debian for one) don't like -axwo and need axwo. | 692 | dnl Some gnu/linux systems (debian for one) don't like -axwo and need axwo. |
694 | dnl so test for this first... | 693 | dnl so test for this first... |
@@ -1658,6 +1657,7 @@ case $host in | |||
1658 | esac | 1657 | esac |
1659 | 1658 | ||
1660 | AC_SUBST(EXTRAS) | 1659 | AC_SUBST(EXTRAS) |
1660 | AC_SUBST(EXTRAS_ROOT) | ||
1661 | AC_SUBST(EXTRA_NETOBJS) | 1661 | AC_SUBST(EXTRA_NETOBJS) |
1662 | AC_SUBST(DEPLIBS) | 1662 | AC_SUBST(DEPLIBS) |
1663 | 1663 | ||
diff --git a/plugins-root/Makefile.am b/plugins-root/Makefile.am index 54e91b0..782a1ca 100644 --- a/plugins-root/Makefile.am +++ b/plugins-root/Makefile.am | |||
@@ -9,12 +9,11 @@ localedir = $(datadir)/locale | |||
9 | DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ | 9 | DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ |
10 | LIBS = @LIBINTL@ @LIBS@ @SSLLIBS@ | 10 | LIBS = @LIBINTL@ @LIBS@ @SSLLIBS@ |
11 | 11 | ||
12 | EXTRA_PROGRAMS = check_dhcp check_icmp | 12 | libexec_PROGRAMS = check_dhcp check_icmp @EXTRAS_ROOT@ |
13 | 13 | ||
14 | if WANT_PST3 | 14 | EXTRA_PROGRAMS = pst3 |
15 | EXTRA_PROGRAMS += pst3 | 15 | |
16 | pst3_DEPENDENCIES = pst3.c | 16 | EXTRA_DIST = pst3.c |
17 | endif | ||
18 | 17 | ||
19 | BASEOBJS = ../plugins/utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a | 18 | BASEOBJS = ../plugins/utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a |
20 | NETOBJS = ../plugins/netutils.o $(BASEOBJS) $(EXTRA_NETOBJS) | 19 | NETOBJS = ../plugins/netutils.o $(BASEOBJS) $(EXTRA_NETOBJS) |
@@ -27,8 +26,6 @@ TESTS = @PLUGIN_TEST@ | |||
27 | test: | 26 | test: |
28 | perl -I $(top_builddir) -I $(top_srcdir) ../test.pl | 27 | perl -I $(top_builddir) -I $(top_srcdir) ../test.pl |
29 | 28 | ||
30 | all-local: $(EXTRA_PROGRAMS) | ||
31 | |||
32 | setuid_root_mode = 4550 | 29 | setuid_root_mode = 4550 |
33 | 30 | ||
34 | group = nagios | 31 | group = nagios |