summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorMatthias Dieter Wallnoefer <mwallnoefer@yahoo.de>2008-09-18 18:40:47 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-18 18:40:47 +0200
commite9429a2abe06c20e5e4582febe8e6c0a20756e48 (patch)
tree2a13e7ad2e1555ce12c32ee178b2de765ee94986 /source4/build
parenta0e5f9194a8214e6bc7f7e56b82575300401ffef (diff)
downloadsamba-e9429a2abe06c20e5e4582febe8e6c0a20756e48.tar.gz
samba-e9429a2abe06c20e5e4582febe8e6c0a20756e48.tar.bz2
samba-e9429a2abe06c20e5e4582febe8e6c0a20756e48.zip
Prevent prefix=/usr being used without --with-fhs.
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/m4/check_path.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/build/m4/check_path.m4 b/source4/build/m4/check_path.m4
index c45a803633..51d5daa913 100644
--- a/source4/build/m4/check_path.m4
+++ b/source4/build/m4/check_path.m4
@@ -23,6 +23,11 @@ winbindd_socket_dir="${localstatedir}/run/winbindd"
winbindd_privileged_socket_dir="${localstatedir}/lib/winbindd_privileged"
ntp_signd_socket_dir="${localstatedir}/run/ntp_signd"
+# Check to prevent installing directly under /usr without the FHS
+AS_IF([test ${prefix} == /usr],[
+ AC_MSG_ERROR([Don't install directly under "/usr" without using the FHS option (--with-fhs). This could lead to file loss!])
+])
+
AC_ARG_WITH(fhs,
[AS_HELP_STRING([--with-fhs],[Use FHS-compliant paths (default=no)])],
lockdir="${localstatedir}/lib/samba"