From 11332e106c8654f798177e089b332263bfb81e18 Mon Sep 17 00:00:00 2001 From: "Timur I. Bakeyev" Date: Sun, 7 Jun 2009 12:34:54 +0000 Subject: Make tunable for modulesdir This patch is for Samba4. It adds configure tunable for modulesdir - location, where modules should be installed. In the case, when no FHS compliance is used and libdir is redefined, modulesdir still points to $PREFIX/modules. In some installations it may be not desired. I'd rather set it myself :) So, here is the patch. With regards, Timur Bakeyev. Signed-off-by: Stefan Metzmacher --- source4/build/m4/check_path.m4 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source4/build') diff --git a/source4/build/m4/check_path.m4 b/source4/build/m4/check_path.m4 index 1751a89e5f8..08a304b0d09 100644 --- a/source4/build/m4/check_path.m4 +++ b/source4/build/m4/check_path.m4 @@ -48,6 +48,22 @@ else ]) fi +################################################# +# set modules directory location +AC_ARG_WITH(modulesdir, +[AS_HELP_STRING([--with-modulesdir=DIR],[Where to put dynamically loadable modules ($modulesdir)])], +[ case "$withval" in + yes|no) + # + # Just in case anybody calls it without argument + # + AC_MSG_WARN([--with-modulesdir called without argument - will use default]) + ;; + * ) + modulesdir="$withval" + ;; + esac]) + ################################################# # set private directory location AC_ARG_WITH(privatedir, -- cgit v1.2.1