From 9108958fd3cbd344e9bad4f3662299d3b2c82070 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann Date: Wed, 14 Nov 2012 11:23:33 +0100 Subject: [PATCH] configure: Add option to enable remote commands By default remote commands are disabled and need to be explicitely enabled at build time. Signed-off-by: Michael Hanselmann Reviewed-by: Iustin Pop --- Makefile.am | 1 + configure.ac | 13 +++++++++++++ lib/constants.py | 1 + 3 files changed, 15 insertions(+) diff --git a/Makefile.am b/Makefile.am index 5ea9925..88f1369 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1265,6 +1265,7 @@ lib/_autoconf.py: Makefile | stamp-directories echo "ENABLE_CONFD = $(ENABLE_CONFD)"; \ echo "XEN_CMD = '$(XEN_CMD)'"; \ echo "ENABLE_SPLIT_QUERY = $(ENABLE_SPLIT_QUERY)"; \ + echo "ENABLE_REMOTE_COMMANDS = $(ENABLE_REMOTE_COMMANDS)"; \ } > $@ lib/_vcsversion.py: Makefile vcs-version | stamp-directories diff --git a/configure.ac b/configure.ac index 1cc62d5..e6ff101 100644 --- a/configure.ac +++ b/configure.ac @@ -310,6 +310,19 @@ then fi AC_SUBST(SYSLOG_USAGE, $SYSLOG) +AC_ARG_ENABLE([remote-commands], + [AS_HELP_STRING([--enable-remote-commands], + m4_normalize([enable remote commands in the node daemon + (default: disabled)]))], + [[if test "$enableval" = no; then + enable_remote_commands=False + else + enable_remote_commands=True + fi + ]], + [enable_remote_commands=False]) +AC_SUBST(ENABLE_REMOTE_COMMANDS, $enable_remote_commands) + # --with-disk-separator=... AC_ARG_WITH([disk-separator], [AS_HELP_STRING([--with-disk-separator=STRING], diff --git a/lib/constants.py b/lib/constants.py index 5bcccd9..5f2b24a 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -140,6 +140,7 @@ ENABLE_FILE_STORAGE = _autoconf.ENABLE_FILE_STORAGE ENABLE_SHARED_FILE_STORAGE = _autoconf.ENABLE_SHARED_FILE_STORAGE ENABLE_CONFD = _autoconf.ENABLE_CONFD ENABLE_SPLIT_QUERY = _autoconf.ENABLE_SPLIT_QUERY +ENABLE_REMOTE_COMMANDS = _autoconf.ENABLE_REMOTE_COMMANDS NODED = "ganeti-noded" CONFD = "ganeti-confd" -- 1.7.10.4