Changeset 630
- Timestamp:
- 08/27/2005 02:43:45 PM (3 years ago)
- Location:
- branches/lighttpd-merge-1.4.x/src
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/lighttpd-merge-1.4.x/src/base.h
r541 r630 437 437 buffer *event_handler; 438 438 439 buffer *modules_dir; 439 440 array *modules; 440 441 -
branches/lighttpd-merge-1.4.x/src/plugin.c
r532 r630 113 113 buffer_reset(srv->tmp_buf); 114 114 /* for make distcheck */ 115 if (NULL != (inst = strstr(LIBRARY_DIR, "/_inst/lib"))) { 116 buffer_copy_string_len(srv->tmp_buf, LIBRARY_DIR, strlen(LIBRARY_DIR) - strlen(inst)); 115 if (NULL != (inst = strstr(srv->srvconf.modules_dir->ptr, "/_inst/lib"))) { 116 buffer_copy_string_len(srv->tmp_buf, srv->srvconf.modules_dir->ptr, 117 strlen(srv->srvconf.modules_dir->ptr) - strlen(inst)); 117 118 buffer_append_string(srv->tmp_buf, "/_build/src/.libs"); 118 119 buffer_append_string(srv->tmp_buf, inst + strlen("/_inst/lib") ); 119 120 } else { 120 buffer_copy_string (srv->tmp_buf, LIBRARY_DIR);121 buffer_copy_string_buffer(srv->tmp_buf, srv->srvconf.modules_dir); 121 122 } 122 123 buffer_append_string(srv->tmp_buf, "/"); -
branches/lighttpd-merge-1.4.x/src/server.c
r629 r630 162 162 163 163 srv->srvconf.modules = array_init(); 164 srv->srvconf.modules_dir = buffer_init_string(LIBRARY_DIR); 164 165 165 166 /* use syslog */ … … 198 199 CLEAN(srvconf.event_handler); 199 200 CLEAN(srvconf.pid_file); 201 CLEAN(srvconf.modules_dir); 200 202 201 203 CLEAN(tmp_chunk_len); … … 275 277 "usage:\n" \ 276 278 " -f <name> filename of the config-file\n" \ 279 " -m <name> module directory (default: "LIBRARY_DIR")\n" \ 277 280 " -p print the parsed config-file in internal form, and exit\n" \ 278 281 " -t test the config-file, and exit\n" \ … … 331 334 srv->srvconf.dont_daemonize = 0; 332 335 333 while(-1 != (o = getopt(argc, argv, "f: hvDpt"))) {336 while(-1 != (o = getopt(argc, argv, "f:m:hvDpt"))) { 334 337 switch(o) { 335 338 case 'f': … … 338 341 return -1; 339 342 } 343 break; 344 case 'm': 345 buffer_copy_string(srv->srvconf.modules_dir, optarg); 340 346 break; 341 347 case 'p': print_config = 1; break;

