OSDN Git Service

test: do not LoadModule log_config_module unconditionally
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Wed, 11 Mar 2009 11:47:06 +0000 (12:47 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Mar 2009 19:41:56 +0000 (12:41 -0700)
LoadModule directive for log_config_module will not work if the module is
built-in.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-httpd/apache.conf

index a0d4077..f460e40 100644 (file)
@@ -4,7 +4,9 @@ DocumentRoot www
 LogFormat "%h %l %u %t \"%r\" %>s %b" common
 CustomLog access.log common
 ErrorLog error.log
-LoadModule log_config_module modules/mod_log_config.so
+<IfModule !mod_log_config.c>
+       LoadModule log_config_module modules/mod_log_config.so
+</IfModule>
 
 <IfDefine Darwin>
        LoadModule log_config_module modules/mod_log_config.so