configure: Add option to enable remote commands
authorMichael Hanselmann <hansmi@google.com>
Wed, 14 Nov 2012 10:23:33 +0000 (11:23 +0100)
committerMichael Hanselmann <hansmi@google.com>
Fri, 16 Nov 2012 14:09:38 +0000 (15:09 +0100)
By default remote commands are disabled and need to be explicitely
enabled at build time.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

Makefile.am
configure.ac
lib/constants.py

index 5ea9925..88f1369 100644 (file)
@@ -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
index 1cc62d5..e6ff101 100644 (file)
@@ -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],
index 5bcccd9..5f2b24a 100644 (file)
@@ -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"