Module: check_mk
Branch: master
Commit: 27a076cbe99f95a6eb9a21489e02195d1de7ebce
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=27a076cbe99f95…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Wed Oct 11 16:59:14 2017 +0200
Prevent building Windows agent outside chroot
The check was forgotten after taking GNU autotools into use. Also remove
leftover dummy config.h.
Change-Id: I3c4306f2bfe28bafb37855af8035a1b81d198483
---
agents/windows/config.h | 0
agents/windows/configure.ac | 4 ++++
2 files changed, 4 insertions(+)
diff --git a/agents/windows/config.h b/agents/windows/config.h
deleted file mode 100644
index e69de29..0000000
diff --git a/agents/windows/configure.ac b/agents/windows/configure.ac
index 064c0f1..1221acb 100644
--- a/agents/windows/configure.ac
+++ b/agents/windows/configure.ac
@@ -4,6 +4,10 @@
AC_PREREQ([2.69])
AC_INIT([Check_MK Windows Agent], [1.5.0i1], [feedback(a)check-mk.org])
AM_INIT_AUTOMAKE([foreign subdir-objects])
+AC_CONFIG_COMMANDS([check_chroot], \
+ [[[ -z $CHROOTNAME ]] && \
+ echo "Not allowed outside chroot. Please call
'./make-agent' instead." && \
+ exit 1])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADER([config.h])