summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-08-15 00:45:57 +0200
committerMichael Adam <obnox@samba.org>2008-08-15 23:19:59 +0200
commite5830726f48fe786c807c1102f0f44eb38c6749e (patch)
tree68135b0410eabf672e1c9e73f0640a4d4913bb53 /source3/lib
parent8829b424fe10817fdc65138c94cd435a265ee05b (diff)
downloadsamba-e5830726f48fe786c807c1102f0f44eb38c6749e.tar.gz
samba-e5830726f48fe786c807c1102f0f44eb38c6749e.tar.bz2
samba-e5830726f48fe786c807c1102f0f44eb38c6749e.zip
popt: add support for setting MODULESDIR via popt_common_dynconfig.
Michael (This used to be commit 81030e49ce344260d279a3112b13a21ce3520748)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/popt_common.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/lib/popt_common.c b/source3/lib/popt_common.c
index b151f22742..8ceac26bf2 100644
--- a/source3/lib/popt_common.c
+++ b/source3/lib/popt_common.c
@@ -184,6 +184,7 @@ struct poptOption popt_common_debuglevel[] = {
* --swatdir
* --lmhostsfile
* --libdir
+ * --modulesdir
* --shlibext
* --lockdir
* --piddir
@@ -197,6 +198,7 @@ enum dyn_item{
DYN_SWATDIR,
DYN_LMHOSTSFILE,
DYN_LIBDIR,
+ DYN_MODULESDIR,
DYN_SHLIBEXT,
DYN_LOCKDIR,
DYN_PIDDIR,
@@ -242,6 +244,12 @@ static void popt_dynconfig_callback(poptContext con,
}
break;
+ case DYN_MODULESDIR:
+ if (arg) {
+ set_dyn_MODULESDIR(arg);
+ }
+ break;
+
case DYN_SHLIBEXT:
if (arg) {
set_dyn_SHLIBEXT(arg);
@@ -289,6 +297,8 @@ const struct poptOption popt_common_dynconfig[] = {
"Path to lmhosts file", "LMHOSTSFILE" },
{ "libdir", '\0' , POPT_ARG_STRING, NULL, DYN_LIBDIR,
"Path to shared library directory", "LIBDIR" },
+ { "modulesdir", '\0' , POPT_ARG_STRING, NULL, DYN_MODULESDIR,
+ "Path to shared modules directory", "MODULESDIR" },
{ "shlibext", '\0' , POPT_ARG_STRING, NULL, DYN_SHLIBEXT,
"Shared library extension", "SHLIBEXT" },
{ "lockdir", '\0' , POPT_ARG_STRING, NULL, DYN_LOCKDIR,