[mapserver-commits] r12338 - in trunk/mapserver/mapcache: . src

svn at osgeo.org svn at osgeo.org
Fri Aug 26 07:18:00 EDT 2011


Author: tbonfort
Date: 2011-08-26 04:18:00 -0700 (Fri, 26 Aug 2011)
New Revision: 12338

Modified:
   trunk/mapserver/mapcache/configure.in
   trunk/mapserver/mapcache/src/mod_geocache.c
Log:
add missing file
thomas.bonfort | 2011-03-11 17:01:42 +0100 (Fri, 11 Mar 2011)

Modified: trunk/mapserver/mapcache/configure.in
===================================================================
--- trunk/mapserver/mapcache/configure.in	2011-08-26 11:17:55 UTC (rev 12337)
+++ trunk/mapserver/mapcache/configure.in	2011-08-26 11:18:00 UTC (rev 12338)
@@ -578,6 +578,14 @@
 
 LOCKMECH_CHECK
 
+AC_ARG_ENABLE(version_string,
+    AC_HELP_STRING([--enable-version-string],[add mod-geocache version string to the apache server header]),
+    ,
+    [enable_version_string=yes]
+)
+if test "$enable_version_string" != "yes"; then
+   MISC_ENABLED="-DDISABLE_VERSION_STRING $MISC_ENABLED" 
+fi
 
 AC_ARG_ENABLE(module,
     AC_HELP_STRING([--enable-module],[Enable apache module building]),

Modified: trunk/mapserver/mapcache/src/mod_geocache.c
===================================================================
--- trunk/mapserver/mapcache/src/mod_geocache.c	2011-08-26 11:17:55 UTC (rev 12337)
+++ trunk/mapserver/mapcache/src/mod_geocache.c	2011-08-26 11:18:00 UTC (rev 12338)
@@ -338,6 +338,9 @@
 #endif
    apr_pool_cleanup_register(p,cfg->mutex,
          (void*)apr_global_mutex_destroy, apr_pool_cleanup_null);
+#ifndef DISABLE_VERSION_STRING
+   ap_add_version_component(p, GEOCACHE_USERAGENT);
+#endif
    return OK;
 }
 



More information about the mapserver-commits mailing list