[Nagios-devel] [PATCH] module/helloworld.c vs.
-
Guest
[Nagios-devel] [PATCH] module/helloworld.c vs.
--dDRMvlgZJXvWKvBx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
"./configure --disable-event-broker; make all" currently fails due to
the neb_set_module_info() calls added to module/helloworld.c (r1.6). I
guess "make all" should simply omit building module/helloworld.o if
"--disable-event-broker" was specified, as e.g. with the attached patch?
Holger
--dDRMvlgZJXvWKvBx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="disable-event-broker.diff"
Index: Makefile.in
===================================================================
RCS file: /cvsroot/nagios/nagios/Makefile.in,v
retrieving revision 1.32
diff -u -r1.32 Makefile.in
--- Makefile.in 10 Nov 2007 22:54:35 -0000 1.32
+++ Makefile.in 27 Dec 2007 20:25:25 -0000
@@ -37,6 +37,8 @@
CGICFGDIR=$(CGIDIR)
PERLDIR=@PERLDIR@
+USE_EVENTBROKER=@USE_EVENTBROKER@
+
INSTALLPERLSTUFF=@INSTALLPERLSTUFF@
CGIEXTRAS=@CGIEXTRAS@
@@ -60,7 +62,9 @@
cd $(SRC_BASE) && $(MAKE)
cd $(SRC_CGI) && $(MAKE)
cd $(SRC_HTM) && $(MAKE)
- cd $(SRC_MODULE) && $(MAKE)
+ if [ x$(USE_EVENTBROKER) = xyes ]; then \
+ cd $(SRC_MODULE) && $(MAKE); \
+ fi
@echo ""
@echo "*** Compile finished ***"
Index: configure.in
===================================================================
RCS file: /cvsroot/nagios/nagios/configure.in,v
retrieving revision 1.121
diff -u -r1.121 configure.in
--- configure.in 17 Dec 2007 17:51:51 -0000 1.121
+++ configure.in 27 Dec 2007 20:25:25 -0000
@@ -756,6 +756,7 @@
AC_SUBST(BASEEXTRALIBS)
AC_SUBST(INITDIR)
AC_SUBST(INSTALLPERLSTUFF)
+AC_SUBST(USE_EVENTBROKER)
AC_PATH_PROG(PERL,perl)
AC_OUTPUT(Makefile subst pkginfo base/Makefile common/Makefile contrib/Makefile cgi/Makefile html/Makefile module/Makefile xdata/Makefile daemon-init html/index.html html/side.html)
--dDRMvlgZJXvWKvBx--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]