Changeset 1732

Show
Ignore:
Timestamp:
08/05/08 13:18:29 (5 months ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/admin/Makefile.am

    r1510 r1732  
    5151ModuleBalancer.py \ 
    5252ModuleMirror.py \ 
     53ModuleErrorNn.py \ 
    5354ModuleErrorRedir.py \ 
    5455ModuleAuth.py \ 
  • cherokee/trunk/admin/consts.py

    r1731 r1732  
    1616    ('',            'Default errors'), 
    1717    ('error_redir', 'Custom redirections'), 
    18     ('nn',          'Closet match') 
     18    ('error_nn',    'Closet match') 
    1919] 
    2020 
  • cherokee/trunk/cherokee/Makefile.am

    r1703 r1732  
    1616cherokeedepsdir = "$(datadir)/cherokee/deps" 
    1717cherokeedeps_DATA = \ 
    18 nn.deps \ 
    1918common.deps \ 
    2019combined.deps \ 
     
    452451 
    453452# 
     453# Handler error_nn 
     454# 
     455handler_error_nn = \ 
     456levenshtein_distance.c \ 
     457levenshtein_distance.h \ 
     458handler_error_nn.c \ 
     459handler_error_nn.h 
     460 
     461if PLATFORM_WIN32 
     462nn_ldflags_win32 = -lplugin_common -lplugin_redir 
     463endif 
     464 
     465libplugin_error_nn_la_LDFLAGS = $(module_ldflags) $(nn_ldflags_win32) 
     466libplugin_error_nn_la_SOURCES = $(handler_nn) 
     467 
     468if STATIC_HANDLER_ERROR_NN 
     469static_handler_error_nn_src = $(handler_error_nn) 
     470else 
     471dynamic_handler_error_nn_lib = libplugin_error_nn.la 
     472endif 
     473 
     474 
     475# 
    454476# Handler common 
    455477# 
     
    469491else 
    470492dynamic_handler_common_lib = libplugin_common.la 
    471 endif 
    472  
    473  
    474 # 
    475 # Handler nn 
    476 # 
    477 handler_nn = \ 
    478 levenshtein_distance.c \ 
    479 levenshtein_distance.h \ 
    480 handler_nn.c \ 
    481 handler_nn.h 
    482  
    483 if PLATFORM_WIN32 
    484 nn_ldflags_win32 = -lplugin_common -lplugin_redir 
    485 endif 
    486  
    487 libplugin_nn_la_LDFLAGS = $(module_ldflags) $(nn_ldflags_win32) 
    488 libplugin_nn_la_SOURCES = $(handler_nn) 
    489  
    490 if STATIC_HANDLER_NN 
    491 static_handler_nn_src = $(handler_nn) 
    492 else 
    493 dynamic_handler_nn_lib = libplugin_nn.la 
    494493endif 
    495494 
     
    10011000$(static_handler_redir_src) \ 
    10021001$(static_handler_error_redir_src) \ 
     1002$(static_handler_error_nn_src) \ 
    10031003$(static_handler_cgi_src) \ 
    10041004$(static_handler_phpcgi_src) \ 
    10051005$(static_handler_common_src) \ 
    1006 $(static_handler_nn_src) \ 
    10071006$(static_handler_proxy_src) \ 
    10081007$(static_handler_mirror_src) \ 
     
    11591158$(dynamic_handler_mirror_lib) \ 
    11601159$(dynamic_handler_error_redir_lib) \ 
     1160$(dynamic_handler_error_nn_lib) \ 
    11611161$(dynamic_handler_common_lib) \ 
    1162 $(dynamic_handler_nn_lib) \ 
    11631162$(dynamic_encoder_gzip_lib) \ 
    11641163$(dynamic_encoder_deflate_lib) \ 
  • cherokee/trunk/configure.in

    r1695 r1732  
    11931193           [use_static_module="$use_static_module $enableval "],[]) 
    11941194 
    1195 modules="error_redir server_info file admin dirlist fcgi fastcgi scgi redir common nn cgi phpcgi proxy mirror gzip deflate ncsa combined w3c pam ldap mysql htpasswd plain htdigest round_robin directory extensions request header geoip not and or" 
     1195modules="error_redir error_nn server_info file admin dirlist fcgi fastcgi scgi redir common cgi phpcgi proxy mirror gzip deflate ncsa combined w3c pam ldap mysql htpasswd plain htdigest round_robin directory extensions request header geoip not and or" 
    11961196 
    11971197# Remove modules that will not be compiles 
     
    12521252AM_CONDITIONAL(STATIC_HANDLER_SCGI,           grep scgi           $conf_h >/dev/null) 
    12531253AM_CONDITIONAL(STATIC_HANDLER_REDIR,          grep redir          $conf_h >/dev/null) 
    1254 AM_CONDITIONAL(STATIC_HANDLER_ERROR_REDIR,    grep redir          $conf_h >/dev/null) 
     1254AM_CONDITIONAL(STATIC_HANDLER_ERROR_REDIR,    grep error_redir    $conf_h >/dev/null) 
     1255AM_CONDITIONAL(STATIC_HANDLER_ERROR_NN,       grep error_nn       $conf_h >/dev/null) 
    12551256AM_CONDITIONAL(STATIC_HANDLER_COMMON,         grep common         $conf_h >/dev/null) 
    1256 AM_CONDITIONAL(STATIC_HANDLER_NN,             grep nn             $conf_h >/dev/null) 
    12571257AM_CONDITIONAL(STATIC_HANDLER_CGI,            grep cgi            $conf_h >/dev/null) 
    12581258AM_CONDITIONAL(STATIC_HANDLER_PHPCGI,         grep phpcgi         $conf_h >/dev/null)