diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-12-06 13:03:03 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-12-06 13:03:03 +0000 |
commit | f553a4098ae625812a9d082aedfc393c212c7d13 (patch) | |
tree | 8ec1f4d965bea8d7583164d57d4b792b7abc7558 /configure.ac | |
parent | 478fe22c01a4873e528422abfb4a7f390158e40e (diff) |
configure option --disable-autostart to disable auto-startup of services by ARM
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 50169797e..4ae54482d 100644 --- a/configure.ac +++ b/configure.ac @@ -1158,6 +1158,25 @@ AC_ARG_ENABLE([experimental], AC_MSG_RESULT($enable_experimental) AM_CONDITIONAL([HAVE_EXPERIMENTAL], [test "x$enable_experimental" = "xyes"]) +# should services be started by default when a peer starts? Some services may +# choose to never start by default and it is upto the service/module developer to +# decide it by having "AUTOSTART = NO" instead of "AUTOSTART = @AUTOSTART" in +# the service/module's conf.in file. +AUTOSTART="YES" +AC_MSG_CHECKING(whether to auto-start peer's services by default) +AC_ARG_ENABLE([autostart], + [AS_HELP_STRING([--disable-autostart], [do not start peer's services by default])], + [enable_autostart=${enableval} + if test "x$enable_autostart" == "xno" + then + AUTOSTART="NO" + fi + ], + [enable_autostart=yes]) +AC_MSG_RESULT($enable_autostart) +#AM_CONDITIONAL([HAVE_AUTOSTART], [test "x$enable_autostart" = "xyes"]) +AC_SUBST(AUTOSTART) + # should memory statistics be kept (very expensive CPU-wise!) AC_MSG_CHECKING(whether to create expensive statistics on memory use) AC_ARG_ENABLE([heapstats], |