Make tunable for modulesdir
authorTimur I. Bakeyev <timur@com.bat.ru>
Sun, 7 Jun 2009 12:34:54 +0000 (12:34 +0000)
committerStefan Metzmacher <metze@samba.org>
Mon, 8 Jun 2009 11:20:51 +0000 (13:20 +0200)
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 <metze@samba.org>
source4/build/m4/check_path.m4

index 1751a89e5f8fa9bcdfa90d486acd0d56078b44ea..08a304b0d09299f0a566983ad88d0cb8a49780b7 100644 (file)
@@ -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,