diff options
author | Jan Kneschke <jan@kneschke.de> | 2005-08-27 14:43:45 +0000 |
---|---|---|
committer | Jan Kneschke <jan@kneschke.de> | 2005-08-27 14:43:45 +0000 |
commit | c7ec5012e0ee1e50277ff807379352b21245b224 (patch) | |
tree | 13e1350bc49fca9deccdf9e3b1790dc9082a5adc /src/plugin.c | |
parent | c18d4565cdf5e547481741e39ffbcfbd30c996eb (diff) | |
download | lighttpd-git-c7ec5012e0ee1e50277ff807379352b21245b224.tar.gz |
added -m to set the location of the modules
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@630 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugin.c b/src/plugin.c index c3d87f13..f612ba24 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -112,12 +112,13 @@ int plugins_load(server *srv) { buffer_reset(srv->tmp_buf); /* for make distcheck */ - if (NULL != (inst = strstr(LIBRARY_DIR, "/_inst/lib"))) { - buffer_copy_string_len(srv->tmp_buf, LIBRARY_DIR, strlen(LIBRARY_DIR) - strlen(inst)); + if (NULL != (inst = strstr(srv->srvconf.modules_dir->ptr, "/_inst/lib"))) { + buffer_copy_string_len(srv->tmp_buf, srv->srvconf.modules_dir->ptr, + strlen(srv->srvconf.modules_dir->ptr) - strlen(inst)); buffer_append_string(srv->tmp_buf, "/_build/src/.libs"); buffer_append_string(srv->tmp_buf, inst + strlen("/_inst/lib") ); } else { - buffer_copy_string(srv->tmp_buf, LIBRARY_DIR); + buffer_copy_string_buffer(srv->tmp_buf, srv->srvconf.modules_dir); } buffer_append_string(srv->tmp_buf, "/"); buffer_append_string(srv->tmp_buf, modules); |