[Initng-svn] r1965 - in initng: . plugins/pidfile

svn at initng.thinktux.net svn at initng.thinktux.net
Sun Nov 6 22:18:34 CET 2005


Author: grzegorz
Date: Sun Nov  6 22:18:33 2005
New Revision: 1965

Modified:
   initng/configure.in
   initng/plugins/pidfile/Makefile.am
Log:
- added condition to build pidfile-test program (make dist should work now)


Modified: initng/configure.in
==============================================================================
--- initng/configure.in	(original)
+++ initng/configure.in	Sun Nov  6 22:18:33 2005
@@ -221,6 +221,10 @@
     AC_HELP_STRING([--with-pidfile],[Build with pidfile plugin @<:@default=yes@:>@]),
     [with_pidfile=$withval], [with_pidfile=yes])
 
+AC_ARG_WITH(pidfile-test, 
+    AC_HELP_STRING([--with-pidfile-test],[Build pidfile plugin test program @<:@default=no@:>@]),
+    [with_pidfile_test=$withval], [with_pidfile_test=no])
+
 AC_ARG_WITH(provide, 
     AC_HELP_STRING([--with-provide],[Build with provide plugin @<:@default=yes@:>@]),
     [with_provide=$withval], [with_provide=no])
@@ -297,6 +301,7 @@
 AM_CONDITIONAL(BUILD_NGC2, test "$with_ngc2" = "yes")
 AM_CONDITIONAL(BUILD_PAUSE, test "$with_pause" = "yes")
 AM_CONDITIONAL(BUILD_PIDFILE, test "$with_pidfile" = "yes")
+AM_CONDITIONAL(BUILD_PIDFILETEST, test "$with_pidfile_test" = "yes")
 AM_CONDITIONAL(BUILD_PROVIDE, test "$with_provide" = "yes")
 AM_CONDITIONAL(BUILD_RELOAD, test "$with_reload" = "yes")
 AM_CONDITIONAL(BUILD_RENICE, test "$with_renice" = "yes")
@@ -404,5 +409,7 @@
 echo Build syslog plugin.................... : $with_syslog
 echo Build unneeded plugin.................. : $with_unneeded
 echo
+echo Build pidfile test program............. : $with_pidfile_test
+echo
 
 AC_SUBST(DOCDIR)

Modified: initng/plugins/pidfile/Makefile.am
==============================================================================
--- initng/plugins/pidfile/Makefile.am	(original)
+++ initng/plugins/pidfile/Makefile.am	Sun Nov  6 22:18:33 2005
@@ -1,4 +1,6 @@
-#SUBDIRS=test
+if BUILD_PIDFILETEST
+    SUBDIRS=test
+endif
 
 AUTOMAKE_OPTIONS = gnu
 plugin_LTLIBRARIES = libpidfile.la


More information about the Initng-svn mailing list